mlsanityData to 7 Oct 2026

Understanding and Overcoming the Challenges of Efficient Transformer Quantization

arXiv 2109.12948 ↗First posted 27 Sep 2021cs.LG cs.AI cs.CLcited by 139

Not on the map. Why?

Abstract (arXiv)

Transformer-based architectures have become the de-facto standard models for a wide range of Natural Language Processing tasks. However, their memory footprint and high latency are prohibitive for efficient deployment and inference on resource-limited devices. In this work, we explore quantization for transformers. We show that transformers have unique quantization challenges -- namely, high dynamic activation ranges that are difficult to represent with a low bit fixed-point format. We establish that these activations contain structured outliers in the residual connections that encourage specific attention patterns, such as attending to the special separator token. To combat these challenges, we present three solutions based on post-training quantization and quantization-aware training, each with a different set of compromises for accuracy, model size, and ease of use. In particular, we introduce a novel quantization scheme -- per-embedding-group quantization. We demonstrate the effectiveness of our methods on the GLUE benchmark using BERT, establishing state-of-the-art results for post-training quantization. Finally, we show that transformer weights and embeddings can be quantized to ultra-low bit-widths, leading to significant memory savings with a minimum accuracy loss. Our source code is available at~urlhttps://github.com/qualcomm-ai-research/transformer-quantization.

Key facts. Cited by 139 papers in the map (data through 7 Oct 2026). Builds on 60 of its 76 references that are in the map. First posted on arXiv 27 Sep 2021.

Builds on

60 of 76 references.

References · 60

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2014Adam: A Method for Stochastic Optimizationcited by 36,960
  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. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  7. 2020End-to-End Object Detection with Transformerscited by 7,384
  8. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  9. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  10. 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
  11. 2020Longformer: The Long-Document Transformercited by 3,362
  12. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
38 more
  1. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  2. 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,031
  3. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
  4. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
  5. 2020Reformer: The Efficient Transformercited by 1,658
  6. 2020Rethinking Attention with Performerscited by 1,584
  7. 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,548
  8. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  9. 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
  10. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
  11. 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
  12. 2020Efficient Transformers: A Surveycited by 784
  13. 2018Universal Transformerscited by 613
  14. 2019Learned Step Size Quantizationcited by 604
  15. 2020Up or Down? Adaptive Rounding for Post-Training Quantizationcited by 600
  16. 2016DoReFa-Net: Training Low Bitwidth Convolutional Neural Networks with Low Bitwidth Gradientscited by 557
  17. 2018Quantizing deep convolutional networks for efficient inference: A whitepapercited by 507
  18. 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 476
  19. 2021A White Paper on Neural Network Quantizationcited by 453
  20. 2018HAQ: Hardware-Aware Automated Quantization with Mixed Precisioncited by 426
  21. 2016Quantized Neural Networks: Training Neural Networks with Low Precision Weights and Activationscited by 413
  22. 2020Movement Pruning: Adaptive Sparsity by Fine-Tuningcited by 398
  23. 2019HAWQ: Hessian AWare Quantization of Neural Networks with Mixed-Precisioncited by 387
  24. 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 377
  25. 2015Deep Learning with Limited Numerical Precisioncited by 368
  26. 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 355
  27. 2019Data-Free Quantization Through Weight Equalization and Bias Correctioncited by 328
  28. 2018Video Action Transformer Networkcited by 316
  29. 2019Q8BERT: Quantized 8Bit BERTcited by 296
  30. 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
  31. 2018LQ-Nets: Learned Quantization for Highly Accurate and Compact Deep Neural Networkscited by 272
  32. 2021I-BERT: Integer-only BERT Quantizationcited by 250
  33. 2019Low-bit Quantization of Neural Networks for Efficient Inferencecited by 185
  34. 2020LSQ+: Improving low-bit quantization through learnable offsets and better initializationcited by 180
  35. 2020Training with Quantization Noise for Extreme Model Compressioncited by 145
  36. 2015Fixed Point Quantization of Deep Convolutional Networkscited by 141
  37. 2020HAT: Hardware-Aware Transformers for Efficient Natural Language Processingcited by 136
  38. 2018Mixed Precision Quantization of ConvNets via Differentiable Neural Architecture Searchcited by 122

50 most cited of 60 All 60 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2021: 1; 2022: 18; 2023: 35; 2024: 40; 2025: 24; 2026: 21.

139 papers.

Sort:

By area:

  1. 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
  2. 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
  3. 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 776
  4. 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
  5. 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 517
  6. 2023SqueezeLLM: Dense-and-Sparse Quantizationcited by 285
  7. 2024Massive Activations in Large Language Modelscited by 277
  8. 2024Personal LLM Agents: Insights and Survey about the Capability, Efficiency and Securitycited by 257
  9. 2022The case for 4-bit precision: k-bit Inference Scaling Lawscited by 247
  10. 2022Outlier Suppression: Pushing the Limit of Low-bit Transformer Language Modelscited by 176
  11. 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 147
  12. 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 125
38 more
  1. 2023RPTQ: Reorder-based Post-training Quantization for Large Language Modelscited by 112
  2. 2021The Efficiency Misnomercited by 98
  3. 2024Q-DiT: Accurate Post-Training Quantization for Diffusion Transformerscited by 91
  4. 2023ZeroQuant-V2: Exploring Post-training Quantization in LLMs from Comprehensive Study to Low Rank Compensationcited by 78
  5. 2023LLM-FP4: 4-Bit Floating-Point Quantized Transformerscited by 65
  6. 2023QLLM: Accurate and Efficient Low-Bitwidth Quantization for Large Language Modelscited by 63
  7. 2023Outlier Suppression+: Accurate quantization of large language models by equivalent and optimal shifting and scalingcited by 62
  8. 2024Model Compression and Efficient Inference for Large Language Models: A Surveycited by 62
  9. 2022Outliers Dimensions that Disrupt Transformers Are Driven by Frequencycited by 55
  10. 2023Memory Efficient Optimizers with 4-bit Statescited by 54
  11. 2024Active-Dormant Attention Heads: Mechanistically Demystifying Extreme-Token Phenomena in LLMscited by 54
  12. 2022BiT: Robustly Binarized Multi-distilled Transformercited by 51
  13. 2024The Super Weight in Large Language Modelscited by 51
  14. 2024FastDecode: High-Throughput GPU-Efficient LLM Serving using Heterogeneous Pipelinescited by 49
  15. 2023Intriguing Properties of Quantization at Scalecited by 48
  16. 2023FlexRound: Learnable Rounding based on Element-wise Division for Post-Training Quantizationcited by 46
  17. 2024A Survey on Transformer Compressioncited by 44
  18. 2025ParetoQ: Improving Scaling Laws in Extremely Low-bit LLM Quantizationcited by 44
  19. 2024ExeGPT: Constraint-Aware Resource Scheduling for LLM Inferencecited by 43
  20. 2024Low-Rank Quantization-Aware Training for LLMscited by 42
  21. 2024Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Modelscited by 38
  22. 2024Outlier-Efficient Hopfield Layers for Large Transformer-Based Modelscited by 38
  23. 2023A Survey of Techniques for Optimizing Transformer Inferencecited by 35
  24. 2024Prefixing Attention Sinks can Mitigate Activation Outliers for Large Language Model Quantizationcited by 33
  25. 2023FP8 versus INT8 for efficient deep learning inferencecited by 31
  26. 2023Pre-RMSNorm and Pre-CRMSNorm Transformers: Equivalent and Efficient Pre-LN Transformerscited by 30
  27. 2024A Survey of Low-bit Large Language Models: Basics, Systems, and Algorithmscited by 30
  28. 2023QuantEase: Optimization-based Quantization for Language Modelscited by 28
  29. 2023Make Pre-trained Model Reversible: From Parameter to Memory Efficient Fine-Tuningcited by 26
  30. 2024Instance-Aware Group Quantization for Vision Transformerscited by 23
  31. 2022AlphaTuning: Quantization-Aware Parameter-Efficient Adaptation of Large-Scale Pre-Trained Language Modelscited by 22
  32. 2024Tender: Accelerating Large Language Models via Tensor Decomposition and Runtime Requantizationcited by 22
  33. 2024Mitigating Quantization Errors Due to Activation Spikes in GLU-Based LLMscited by 21
  34. 2026A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Trainingcited by 21
  35. 2022Train Flat, Then Compress: Sharpness-Aware Minimization Learns More Compressible Modelscited by 20
  36. 2023Training and inference of large language models using 8-bit floating pointcited by 20
  37. 2023Enhancing Computation Efficiency in Large Language Models through Weight and Activation Quantizationcited by 20
  38. 2024Spectra: Surprising Effectiveness of Pretraining Ternary Language Models at Scalecited by 20

50 most cited of 139 All 139 (JSON)