mlsanityData to 7 Oct 2026

RepQuant: Towards Accurate Post-Training Quantization of Large Transformer Models via Scale Reparameterization

arXiv 2402.05628 ↗First posted 8 Feb 2024cs.LGcited by 10

Not on the map. Why?

Abstract (arXiv)

Large transformer models have demonstrated remarkable success. Post-training quantization (PTQ), which requires only a small dataset for calibration and avoids end-to-end retraining, is a promising solution for compressing these large models. Regrettably, existing PTQ methods typically exhibit non-trivial performance loss. We find that the performance bottleneck stems from over-consideration of hardware compatibility in the quantization process, compelling them to reluctantly employ simple quantizers, albeit at the expense of accuracy. With the above insights, we propose RepQuant, a novel PTQ framework with quantization-inference decoupling paradigm to address the above issues. RepQuant employs complex quantizers in the quantization process and simplified quantizers in the inference process, and performs mathematically equivalent transformations between the two through quantization scale reparameterization, thus ensuring both accurate quantization and efficient inference. More specifically, we focus on two components with extreme distributions: LayerNorm activations and Softmax activations. Initially, we apply channel-wise quantization and log√2 quantization, respectively, which are tailored to their distributions. In particular, for the former, we introduce a learnable per-channel dual clipping scheme, which is designed to efficiently identify outliers in the unbalanced activations with fine granularity. Then, we reparameterize the scales to hardware-friendly layer-wise quantization and log2 quantization for inference. Moreover, quantized weight reconstruction is seamlessly integrated into the above procedure to further push the performance limits. Extensive experiments are performed on different large-scale transformer variants on multiple tasks, including vision, language, and multi-modal transformers, and RepQuant encouragingly demonstrates significant performance advantages.

Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Builds on 56 of its 70 references that are in the map. First posted on arXiv 8 Feb 2024.

Builds on

56 of 70 references.

References · 56

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  3. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  7. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  8. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  9. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  10. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  11. 2023Segment Anythingcited by 8,158
  12. 2020End-to-End Object Detection with Transformerscited by 7,384
38 more
  1. 2017Mask R-CNNcited by 7,259
  2. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  3. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  4. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  5. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  6. 2016Pointer Sentinel Mixture Modelscited by 2,992
  7. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  8. 2023A Survey of Large Language Modelscited by 2,537
  9. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
  10. 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,548
  11. 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
  12. 2017Cascade R-CNN: Delving into High Quality Object Detectioncited by 1,275
  13. 2021ViLT: Vision-and-Language Transformer Without Convolution or Region Supervisioncited by 1,224
  14. 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,090
  15. 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
  16. 2021A Survey of Quantization Methods for Efficient Neural Network Inferencecited by 798
  17. 2020A Survey on Visual Transformercited by 653
  18. 2020Up or Down? Adaptive Rounding for Post-Training Quantizationcited by 600
  19. 2016DoReFa-Net: Training Low Bitwidth Convolutional Neural Networks with Low Bitwidth Gradientscited by 557
  20. 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 517
  21. 2018Quantizing deep convolutional networks for efficient inference: A whitepapercited by 507
  22. 2021BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstructioncited by 464
  23. 2023OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Modelscited by 403
  24. 2022Multimodal Learning with Transformers: A Surveycited by 399
  25. 2019Data-Free Quantization Through Weight Equalization and Bias Correctioncited by 328
  26. 2023LLM-QAT: Data-Free Quantization Aware Training for Large Language Modelscited by 320
  27. 2022Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruningcited by 317
  28. 2023SqueezeLLM: Dense-and-Sparse Quantizationcited by 285
  29. 2021Post-Training Quantization for Vision Transformercited by 274
  30. 2023A Survey on Model Compression for Large Language Modelscited by 263
  31. 2022Outlier Suppression: Pushing the Limit of Low-bit Transformer Language Modelscited by 176
  32. 2021PTQ4ViT: Post-training quantization for vision transformers with twin uniform quantizationcited by 173
  33. 2021FQ-ViT: Post-Training Quantization for Fully Quantized Vision Transformercited by 148
  34. 2022RepQ-ViT: Scale Reparameterization for Post-Training Quantization of Vision Transformerscited by 134
  35. 2023RPTQ: Reorder-based Post-training Quantization for Large Language Modelscited by 112
  36. 2022I-ViT: Integer-only Quantization for Efficient Vision Transformer Inferencecited by 93
  37. 2022Compression of Generative Pre-trained Language Models via Quantizationcited by 79
  38. 2023Towards Accurate Post-Training Quantization for Vision Transformercited by 70

50 most cited of 56 All 56 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 4; 2025: 2; 2026: 4.

10 papers.