Understanding and Overcoming the Challenges of Efficient Transformer Quantization
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
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,195
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
38 more
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,031
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Rethinking Attention with Performerscited by 1,584
- 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,548
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,462
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 994
- 2020Efficient Transformers: A Surveycited by 784
- 2018Universal Transformerscited by 613
- 2019Learned Step Size Quantizationcited by 604
- 2020Up or Down? Adaptive Rounding for Post-Training Quantizationcited by 600
- 2016DoReFa-Net: Training Low Bitwidth Convolutional Neural Networks with Low Bitwidth Gradientscited by 557
- 2018Quantizing deep convolutional networks for efficient inference: A whitepapercited by 507
- 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 476
- 2021A White Paper on Neural Network Quantizationcited by 453
- 2018HAQ: Hardware-Aware Automated Quantization with Mixed Precisioncited by 426
- 2016Quantized Neural Networks: Training Neural Networks with Low Precision Weights and Activationscited by 413
- 2020Movement Pruning: Adaptive Sparsity by Fine-Tuningcited by 398
- 2019HAWQ: Hessian AWare Quantization of Neural Networks with Mixed-Precisioncited by 387
- 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 377
- 2015Deep Learning with Limited Numerical Precisioncited by 368
- 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 355
- 2019Data-Free Quantization Through Weight Equalization and Bias Correctioncited by 328
- 2018Video Action Transformer Networkcited by 316
- 2019Q8BERT: Quantized 8Bit BERTcited by 296
- 2019A Multiscale Visualization of Attention in the Transformer Modelcited by 292
- 2018LQ-Nets: Learned Quantization for Highly Accurate and Compact Deep Neural Networkscited by 272
- 2021I-BERT: Integer-only BERT Quantizationcited by 250
- 2019Low-bit Quantization of Neural Networks for Efficient Inferencecited by 185
- 2020LSQ+: Improving low-bit quantization through learnable offsets and better initializationcited by 180
- 2020Training with Quantization Noise for Extreme Model Compressioncited by 145
- 2015Fixed Point Quantization of Deep Convolutional Networkscited by 141
- 2020HAT: Hardware-Aware Transformers for Efficient Natural Language Processingcited by 136
- 2018Mixed Precision Quantization of ConvNets via Differentiable Neural Architecture Searchcited by 122
50 most cited of 60 All 60 (JSON)
Built on by
Citing papers per year: 2021: 1; 2022: 18; 2023: 35; 2024: 40; 2025: 24; 2026: 21.
139 papers.
Sort:
By area:
- 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
- 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 776
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
- 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 517
- 2023SqueezeLLM: Dense-and-Sparse Quantizationcited by 285
- 2024Massive Activations in Large Language Modelscited by 277
- 2024Personal LLM Agents: Insights and Survey about the Capability, Efficiency and Securitycited by 257
- 2022The case for 4-bit precision: k-bit Inference Scaling Lawscited by 247
- 2022Outlier Suppression: Pushing the Limit of Low-bit Transformer Language Modelscited by 176
- 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 147
- 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 125
38 more
- 2023RPTQ: Reorder-based Post-training Quantization for Large Language Modelscited by 112
- 2021The Efficiency Misnomercited by 98
- 2024Q-DiT: Accurate Post-Training Quantization for Diffusion Transformerscited by 91
- 2023ZeroQuant-V2: Exploring Post-training Quantization in LLMs from Comprehensive Study to Low Rank Compensationcited by 78
- 2023LLM-FP4: 4-Bit Floating-Point Quantized Transformerscited by 65
- 2023QLLM: Accurate and Efficient Low-Bitwidth Quantization for Large Language Modelscited by 63
- 2023Outlier Suppression+: Accurate quantization of large language models by equivalent and optimal shifting and scalingcited by 62
- 2024Model Compression and Efficient Inference for Large Language Models: A Surveycited by 62
- 2022Outliers Dimensions that Disrupt Transformers Are Driven by Frequencycited by 55
- 2023Memory Efficient Optimizers with 4-bit Statescited by 54
- 2024Active-Dormant Attention Heads: Mechanistically Demystifying Extreme-Token Phenomena in LLMscited by 54
- 2022BiT: Robustly Binarized Multi-distilled Transformercited by 51
- 2024The Super Weight in Large Language Modelscited by 51
- 2024FastDecode: High-Throughput GPU-Efficient LLM Serving using Heterogeneous Pipelinescited by 49
- 2023Intriguing Properties of Quantization at Scalecited by 48
- 2023FlexRound: Learnable Rounding based on Element-wise Division for Post-Training Quantizationcited by 46
- 2024A Survey on Transformer Compressioncited by 44
- 2025ParetoQ: Improving Scaling Laws in Extremely Low-bit LLM Quantizationcited by 44
- 2024ExeGPT: Constraint-Aware Resource Scheduling for LLM Inferencecited by 43
- 2024Low-Rank Quantization-Aware Training for LLMscited by 42
- 2024Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Modelscited by 38
- 2024Outlier-Efficient Hopfield Layers for Large Transformer-Based Modelscited by 38
- 2023A Survey of Techniques for Optimizing Transformer Inferencecited by 35
- 2024Prefixing Attention Sinks can Mitigate Activation Outliers for Large Language Model Quantizationcited by 33
- 2023FP8 versus INT8 for efficient deep learning inferencecited by 31
- 2023Pre-RMSNorm and Pre-CRMSNorm Transformers: Equivalent and Efficient Pre-LN Transformerscited by 30
- 2024A Survey of Low-bit Large Language Models: Basics, Systems, and Algorithmscited by 30
- 2023QuantEase: Optimization-based Quantization for Language Modelscited by 28
- 2023Make Pre-trained Model Reversible: From Parameter to Memory Efficient Fine-Tuningcited by 26
- 2024Instance-Aware Group Quantization for Vision Transformerscited by 23
- 2022AlphaTuning: Quantization-Aware Parameter-Efficient Adaptation of Large-Scale Pre-Trained Language Modelscited by 22
- 2024Tender: Accelerating Large Language Models via Tensor Decomposition and Runtime Requantizationcited by 22
- 2024Mitigating Quantization Errors Due to Activation Spikes in GLU-Based LLMscited by 21
- 2026A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Trainingcited by 21
- 2022Train Flat, Then Compress: Sharpness-Aware Minimization Learns More Compressible Modelscited by 20
- 2023Training and inference of large language models using 8-bit floating pointcited by 20
- 2023Enhancing Computation Efficiency in Large Language Models through Weight and Activation Quantizationcited by 20
- 2024Spectra: Surprising Effectiveness of Pretraining Ternary Language Models at Scalecited by 20
50 most cited of 139 All 139 (JSON)
- 2026Is INT8 Portable? A Cross-Platform Measurement Study of Quantized Inference on Embedded and Automotive Accelerators14 Sep 2026
- 2026A Target-Centric Survey of Quantization-Aware Training30 Aug 2026
- 2026SplitLite: Low-Rank Residual Compression for Split Learning24 Aug 2026
- 2026On-Device Language Models for Privacy-Preserving Stress Prediction: A Multimodal Evaluation on Mobile Health11 Aug 2026
- 2026Transformer Accelerator (TFA): A Macro-Op INT8 Hardware Chip for Transformer Inference and Machine Translation6 Aug 2026
- 2026MXSens: Sensitivity-Aware Mixed-Precision Quantization for Efficient LLM Inference20 Jul 2026
- 2026LogbQuant: Quantizing Language Models in Logarithmic Space1 Jul 2026
- 2026Hierarchical Reinforcement Learning for Neural Network Compression (HiReLC): Pruning and Quantization24 Jun 2026
- 2026OffQ: Taming Structured Outliers in LLM Quantization by Offsetting5 Jun 2026
- 2026The Quantization Benefits of Residual-Free Transformers25 May 2026
- 2026Attention Sinks and Outliers in Attention Residuals18 May 2026
- 2026Quantization Undoes Alignment: Bias Emergence in Compressed LLMs Across Models and Precision Levels2 May 2026
38 more
- 2026Towards Joint Quantization and Token Pruning of Vision-Language Models19 Apr 2026
- 2026Activation Outliers in Transformer Quantization: Reproduction, Statistical Analysis, and Deployment Tradeoffs4 Mar 2026
- 2026pQuant: Towards Effective Low-Bit Language Models via Decoupled Linear Quantization-Aware Training26 Feb 2026
- 2026On the Convergence of Stochastic Gradient Descent with Perturbed Forward-Backward Passes24 Feb 2026
- 2026S2D: Selective Spectral Decay for Quantization-Friendly Conditioning of Neural Activations16 Feb 2026
- 2026On the Spectral Flattening of Quantized Embeddings1 Feb 2026
- 2026A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Training30 Jan 2026
- 2026Leveraging Second-Order Curvature for Efficient Learned Image Compression: Theory and Empirical Evidence28 Jan 2026
- 2026Deep Exploration of Epoch-wise Double Descent in Noisy Data: Signal Separation, Large Activation, and Benign Overfitting13 Jan 2026
- 2025Post-Training Quantization of OpenPangu Models for Efficient Deployment on Atlas A229 Dec 2025
- 2025QUARK: Quantization-Enabled Circuit Sharing for Transformer Acceleration by Exploiting Common Patterns in Nonlinear Operations10 Nov 2025
- 2025MDM: Manhattan Distance Mapping of DNN Weights for Parasitic-Resistance-Resilient Memristive Crossbars6 Nov 2025
- 2025DND: Boosting Large Language Models with Dynamic Nested Depth13 Oct 2025
- 2025The Achilles' Heel of LLMs: How Altering a Handful of Neurons Can Cripple Language Abilities11 Oct 2025
- 2025Value-State Gated Attention for Mitigating Extreme-Token Phenomena in Transformers10 Oct 2025
- 2025Activation Quantization of Vision Encoders Needs Prefixing Registers6 Oct 2025
- 2025A Comprehensive FP8 Training Recipe for Reasoning-Enhanced Language Models26 Sep 2025
- 2025I-Segmenter: Integer-Only Vision Transformer for Efficient Semantic Segmentation12 Sep 2025
- 2025Unveiling Super Experts in Mixture-of-Experts Large Language Models31 Jul 2025
- 2025Post-Training Quantization of Generative and Discriminative LSTM Text Classifiers: A Study of Calibration, Class Balance, and Robustness13 Jul 2025
- 2025Outlier-Safe Pre-Training for Robust 4-Bit Quantization of Large Language Models24 Jun 2025
- 2025FIMA-Q: Post-Training Quantization for Vision Transformers by Fisher Information Matrix Approximation13 Jun 2025
- 2025FPTQuant: Function-Preserving Transforms for LLM Quantization5 Jun 2025
- 2025Sentinel: Decoding Context Utilization via Attention Probing for Efficient LLM Context Compression29 May 2025
- 2025Resource-Efficient Language Models: Quantization for Fast and Accessible Inference13 May 2025
- 2025EntroLLM: Entropy Encoded Weight Compression for Efficient Large Language Model Inference on Edge Devices5 May 2025
- 2025Optimizing LLMs for Resource-Constrained Environments: A Survey of Model Compression Techniques5 May 2025
- 2025Precision Where It Matters: A Novel Spike Aware Mixed-Precision Quantization Strategy for LLaMA-based Language Models30 Apr 2025
- 2025Compressing Language Models for Specialized Domains25 Feb 2025
- 2025ParetoQ: Improving Scaling Laws in Extremely Low-bit LLM Quantization4 Feb 2025
- 2025Multi-stage Training of Bilingual Islamic LLM for Neural Passage Retrieval17 Jan 2025
- 2025DGQ: Distribution-Aware Group Quantization for Text-to-Image Diffusion Models8 Jan 2025
- 2025Dynamic Attention-Guided Context Decoding for Mitigating Context Faithfulness Hallucinations in Large Language Models2 Jan 2025
- 2024A Survey on Large Language Model Acceleration based on KV Cache Management27 Dec 2024
- 2024The Super Weight in Large Language Models11 Nov 2024
- 2024Building an Efficient Multilingual Non-Profit IR System for the Islamic Domain Leveraging Multiprocessing Design in Rust9 Nov 2024
- 2024Unlocking the Theory Behind Scaling 1-Bit Neural Networks3 Nov 2024
- 2024From Attention to Activation: Unravelling the Enigmas of Large Language Models22 Oct 2024
50 newest of 139 All 139 (JSON)
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantizationcited by 571
- 2024FastDecode: High-Throughput GPU-Efficient LLM Serving using Heterogeneous Pipelinescited by 49
- 2023LinguaLinked: A Distributed Large Language Model Inference System for Mobile Devicescited by 3
- 2025EntroLLM: Entropy Encoded Weight Compression for Efficient Large Language Model Inference on Edge Devicescited by 1
- 2026MXSens: Sensitivity-Aware Mixed-Precision Quantization for Efficient LLM Inferencecited by 1
- 2026MXSens: Sensitivity-Aware Mixed-Precision Quantization for Efficient LLM Inference20 Jul 2026
- 2025EntroLLM: Entropy Encoded Weight Compression for Efficient Large Language Model Inference on Edge Devices5 May 2025
- 2024FastDecode: High-Throughput GPU-Efficient LLM Serving using Heterogeneous Pipelines18 Mar 2024
- 2024KVQuant: Towards 10 Million Context Length LLM Inference with KV Cache Quantization31 Jan 2024
- 2023LinguaLinked: A Distributed Large Language Model Inference System for Mobile Devices1 Dec 2023
- 2024Q-DiT: Accurate Post-Training Quantization for Diffusion Transformerscited by 91
- 2023Softmax Bias Correction for Quantized Generative Modelscited by 15
- 2024Timestep-Aware Correction for Quantized Diffusion Modelscited by 13
- 2025DGQ: Distribution-Aware Group Quantization for Text-to-Image Diffusion Modelscited by 11
- 2025DGQ: Distribution-Aware Group Quantization for Text-to-Image Diffusion Models8 Jan 2025
- 2024Timestep-Aware Correction for Quantized Diffusion Models4 Jul 2024
- 2024Q-DiT: Accurate Post-Training Quantization for Diffusion Transformers25 Jun 2024
- 2023Softmax Bias Correction for Quantized Generative Models4 Sep 2023
- 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
- 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 776
- 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 517
- 2023SqueezeLLM: Dense-and-Sparse Quantizationcited by 285
- 2024Massive Activations in Large Language Modelscited by 277
- 2022The case for 4-bit precision: k-bit Inference Scaling Lawscited by 247
- 2022Outlier Suppression: Pushing the Limit of Low-bit Transformer Language Modelscited by 176
- 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 147
- 2023RPTQ: Reorder-based Post-training Quantization for Large Language Modelscited by 112
- 2021The Efficiency Misnomercited by 98
- 2023ZeroQuant-V2: Exploring Post-training Quantization in LLMs from Comprehensive Study to Low Rank Compensationcited by 78
12 most cited of 122 All 122 (JSON)
- 2026Is INT8 Portable? A Cross-Platform Measurement Study of Quantized Inference on Embedded and Automotive Accelerators14 Sep 2026
- 2026A Target-Centric Survey of Quantization-Aware Training30 Aug 2026
- 2026SplitLite: Low-Rank Residual Compression for Split Learning24 Aug 2026
- 2026On-Device Language Models for Privacy-Preserving Stress Prediction: A Multimodal Evaluation on Mobile Health11 Aug 2026
- 2026Transformer Accelerator (TFA): A Macro-Op INT8 Hardware Chip for Transformer Inference and Machine Translation6 Aug 2026
- 2026LogbQuant: Quantizing Language Models in Logarithmic Space1 Jul 2026
- 2026Hierarchical Reinforcement Learning for Neural Network Compression (HiReLC): Pruning and Quantization24 Jun 2026
- 2026OffQ: Taming Structured Outliers in LLM Quantization by Offsetting5 Jun 2026
- 2026The Quantization Benefits of Residual-Free Transformers25 May 2026
- 2026Attention Sinks and Outliers in Attention Residuals18 May 2026
- 2026Quantization Undoes Alignment: Bias Emergence in Compressed LLMs Across Models and Precision Levels2 May 2026
- 2026Activation Outliers in Transformer Quantization: Reproduction, Statistical Analysis, and Deployment Tradeoffs4 Mar 2026
12 newest of 122 All 122 (JSON)