Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothing
Not on the map. Why?
Abstract (arXiv)
Transformer models have been widely adopted in various domains over the last years, and especially large language models have advanced the field of AI significantly. Due to their size, the capability of these networks has increased tremendously, but this has come at the cost of a significant increase in necessary compute. Quantization is one of the most effective ways to reduce the computational time and memory consumption of neural networks. Many studies have shown, however, that modern transformer models tend to learn strong outliers in their activations, making them difficult to quantize. To retain acceptable performance, the existence of these outliers requires activations to be in higher bitwidth or the use of different numeric formats, extra fine-tuning, or other workarounds. We show that strong outliers are related to very specific behavior of attention heads that try to learn a "no-op" or just a partial update of the residual. To achieve the exact zeros needed in the attention matrix for a no-update, the input to the softmax is pushed to be larger and larger during training, causing outliers in other parts of the network. Based on these observations, we propose two simple (independent) modifications to the attention mechanism - clipped softmax and gated attention. We empirically show that models pre-trained using our methods learn significantly smaller outliers while maintaining and sometimes even improving the floating-point task performance. This enables us to quantize transformers to full INT8 quantization of the activations without any additional effort. We demonstrate the effectiveness of our methods on both language models (BERT, OPT) and vision transformers.
Key facts. Cited by 151 papers in the map (data through 14 Oct 2026). Builds on 62 of its 80 references that are in the map. First posted on arXiv 22 Jun 2023.
Builds on
62 of 80 references.
References · 62
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,498
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,893
- 2016Layer Normalizationcited by 5,669
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,183
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
38 more
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2014Going Deeper with Convolutionscited by 4,241
- 2015Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classificationcited by 3,611
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,884
- 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,811
- 2019RandAugment: Practical automated data augmentation with a reduced search spacecited by 2,269
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,919
- 2016Understanding deep learning requires rethinking generalizationcited by 1,674
- 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,593
- 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,386
- 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,298
- 2015Aligning Books and Movies: Towards Story-like Visual Explanations by Watching Movies and Reading Bookscited by 1,043
- 2019What Does BERT Look At? An Analysis of BERT's Attentioncited by 1,003
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 906
- 2021A Survey of Quantization Methods for Efficient Neural Network Inferencecited by 815
- 2021Going deeper with Image Transformerscited by 764
- 2019Learned Step Size Quantizationcited by 628
- 2020Up or Down? Adaptive Rounding for Post-Training Quantizationcited by 621
- 2017Learning Sparse Neural Networks through L0 Regularizationcited by 583
- 2016DoReFa-Net: Training Low Bitwidth Convolutional Neural Networks with Low Bitwidth Gradientscited by 569
- 2021Datasets: A Community Library for Natural Language Processingcited by 530
- 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 526
- 2018Quantizing deep convolutional networks for efficient inference: A whitepapercited by 521
- 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 482
- 2021BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstructioncited by 479
- 2021A White Paper on Neural Network Quantizationcited by 472
- 2016Quantized Neural Networks: Training Neural Networks with Low Precision Weights and Activationscited by 426
- 2022DeiT III: Revenge of the ViTcited by 419
- 2015Deep Learning with Limited Numerical Precisioncited by 376
- 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 359
- 2019Data-Free Quantization Through Weight Equalization and Bias Correctioncited by 336
- 2019Revealing the Dark Secrets of BERTcited by 301
- 2019Q8BERT: Quantized 8Bit BERTcited by 300
- 2020ZeroQ: A Novel Zero Shot Quantization Frameworkcited by 269
- 2021I-BERT: Integer-only BERT Quantizationcited by 255
- 2022The case for 4-bit precision: k-bit Inference Scaling Lawscited by 251
50 most cited of 62 All 62 (JSON)
Built on by
Citing papers per year: 2023: 10; 2024: 49; 2025: 37; 2026: 55.
151 papers.
Sort:
By area:
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2024SpinQuant: LLM quantization with learned rotationscited by 471
- 2024Massive Activations in Large Language Modelscited by 294
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 283
- 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 208
- 2025See What You Are Told: Visual Attention Sink in Large Multimodal Modelscited by 132
- 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 131
- 2024Hymba: A Hybrid-head Architecture for Small Language Modelscited by 99
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 85
- 2024Evaluating Quantized Large Language Modelscited by 77
- 2024AffineQuant: Affine Transformation Quantization for Large Language Modelscited by 67
- 2024Model Compression and Efficient Inference for Large Language Models: A Surveycited by 64
38 more
- 2024Active-Dormant Attention Heads: Mechanistically Demystifying Extreme-Token Phenomena in LLMscited by 56
- 2024IntactKV: Improving Large Language Model Quantization by Keeping Pivot Tokens Intactcited by 52
- 2025Attention Sinks and Compression Valleys in LLMs are Two Sides of the Same Coincited by 52
- 2023Optimize Weight Rounding via Signed Gradient Descent for the Quantization of LLMscited by 50
- 2024Low-Rank Quantization-Aware Training for LLMscited by 43
- 2024How Does Quantization Affect Multilingual LLMs?cited by 43
- 2024LQER: Low-Rank Quantization Error Reconstruction for LLMscited by 41
- 2025Vision Transformers Don't Need Trained Registerscited by 41
- 2024Uniform Memory Retrieval with Larger Capacity for Modern Hopfield Modelscited by 38
- 2024Outlier-Efficient Hopfield Layers for Large Transformer-Based Modelscited by 38
- 2024Activation Scaling for Steering and Interpreting Language Modelscited by 35
- 2025Four Over Six: More Accurate NVFP4 Quantization with Adaptive Block Scalingcited by 35
- 2024LLMC: Benchmarking Large Language Model Quantization with a Versatile Compression Toolkitcited by 33
- 2024Prefixing Attention Sinks can Mitigate Activation Outliers for Large Language Model Quantizationcited by 33
- 2024Computational Limits of Low-Rank Adaptation (LoRA) Fine-Tuning for Transformer Modelscited by 31
- 2024u-μP: The Unit-Scaled Maximal Update Parametrizationcited by 29
- 2024Beat this! Accurate beat tracking without DBN postprocessingcited by 27
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 27
- 2026The Spike, the Sparse and the Sink: Anatomy of Massive Activations and Attention Sinkscited by 27
- 2024What Makes Quantization for Large Language Models Hard? An Empirical Study from the Lens of Perturbationcited by 23
- 2026A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Trainingcited by 23
- 2025Softpick: No Attention Sink, No Massive Activations with Rectified Softmaxcited by 22
- 2024Mitigating Quantization Errors Due to Activation Spikes in GLU-Based LLMscited by 21
- 2023Training and inference of large language models using 8-bit floating pointcited by 20
- 2024StableMask: Refining Causal Masking in Decoder-only Transformercited by 20
- 2024Conv-CoA: Improving Open-domain Question Answering in Large Language Models via Conversational Chain-of-Actioncited by 19
- 2023Quantization Variation: A New Perspective on Training Transformers with Low-Bit Precisioncited by 17
- 2024MobileQuant: Mobile-friendly Quantization for On-device Language Modelscited by 17
- 2025Unveiling Super Experts in Mixture-of-Experts Large Language Modelscited by 17
- 2025Attention Sinks: A 'Catch, Tag, Release' Mechanism for Embeddingscited by 16
- 2025Interpreting the Repeated Token Phenomenon in Large Language Modelscited by 16
- 2025FPTQuant: Function-Preserving Transforms for LLM Quantizationcited by 16
- 2023Softmax Bias Correction for Quantized Generative Modelscited by 15
- 2024Mamba-PTQ: Outlier Channels in Recurrent Large Language Modelscited by 15
- 2024RoLoRA: Fine-tuning Rotated Outlier-free LLMs for Effective Weight-Activation Quantizationcited by 13
- 2024Differential Transformercited by 13
- 2024Methods of improving LLM training stabilitycited by 13
- 2024From Attention to Activation: Unravelling the Enigmas of Large Language Modelscited by 13
50 most cited of 151 All 151 (JSON)
- 2026Exploring Attention Sinks in Text-to-Image Transformers from Diffusion and Autoregressive Models9 Oct 2026
- 2026Underscoring the Problem: Why Softpick Fails at Initialization4 Oct 2026
- 2026The Life Cycle of a Massive Activation: Stochastic Birth, Weight-Decay-Driven Growth, and Competitive Consolidation30 Sep 2026
- 2026Making Analog Training Scale: Co-Designing Mapping, Optimizer, and Converters29 Sep 2026
- 2026Which the Eye Fears: Writing with Read-Blindness Explains Massive Activations in Transformers28 Sep 2026
- 2026JustQuant: You Don't Need Smoothing, SVD, or Rotation for 4-Bit Activation Quantization27 Sep 2026
- 2026Same Probe, Different Numbers: Are Activation Probes Robust to Inference-Time Numerical Non-Determinism?25 Sep 2026
- 2026Abstention and Noise Filtering: Two Missing Primitives of Softmax Attention18 Sep 2026
- 2026Permutation-Based Stegomalware in Large Language Models: Threats and Countermeasures14 Sep 2026
- 2026It's Not RoPE that Creates Sinks: The Role of Self-Concentration and Value-Non-Mixing in Attention8 Sep 2026
- 2026CONDUIT: A Unified Residual-Stream Restoration Framework for KV Cache Reuse in Vision-Language Models5 Sep 2026
- 2026Activation Outliers Matter: Robust Recovery for Quantized Multimodal LLMs27 Aug 2026
38 more
- 2026From Attention Masks to Inert Zero-Vector Tokens: OAttention and O-Closure for Token Dynamics21 Aug 2026
- 2026Cracks in the Foundation: Seemingly Minor Architectural Choices Impact Long Context Extension10 Aug 2026
- 2026Escaping Oversquashing: Addressable and Support-Aware Global Memory for Message Passing Networks3 Aug 2026
- 2026Regularize or Localize: When Training-Time KV-Cache Geometry Pays Under Quantization19 Jul 2026
- 2026Thresholded Cross-Attention for Reliable Intensity-Chromaticity Fusion in Low-Light Image Enhancement15 Jul 2026
- 2026Lynx: Progressive Speculative Quantization for accelerating KV Transfer in Long-Context Inference2 Jul 2026
- 2026Massive Activations Are Architecturally Robust: A Controlled Scratch/Commitment Residual Stream Test17 Jun 2026
- 2026Sumi: Open Uniform Diffusion Language Model from Scratch17 Jun 2026
- 2026Scaling Adaptive Depth with Norm-Agnostic Residual Networks15 Jun 2026
- 2026Decompose Sparsely Where You Should, Absorb Densely Where You Should No12 Jun 2026
- 2026Overcoming Decoder Inconsistencies in Whisper for Dravidian and Low-Resource Languages8 Jun 2026
- 2026A Unifying View of Attention Sinks: From Mechanisms to Architectural Interventions6 Jun 2026
- 2026The Devil is in the Spectrum: Mitigating Representation Collapse in LLMs via Topologically Regularized Side-Path2 Jun 2026
- 2026Massive Spikes in LLMs are Bias Vectors: Mechanistic Uncovering and Spike-Free Quantization1 Jun 2026
- 2026A Circuit, Not The Circuit: Non-Unique Causal Localisation of the Mamba-2 State Sink30 May 2026
- 2026LISA: Linear-Indexed Sparse Attention for Efficient Long-Context Reasoning29 May 2026
- 2026Contribution Weights: A Geometrical Analysis of Self-Attention Transformers29 May 2026
- 2026On the Relationship Between Activation Outliers and Feature Death in Sparse Autoencoders29 May 2026
- 2026Gated Graph Attention Networks with Learnable Temperature28 May 2026
- 2026The Quantization Benefits of Residual-Free Transformers25 May 2026
- 2026OScaR: The Occam's Razor for Extreme KV Cache Quantization in LLMs and Beyond19 May 2026
- 2026Attention Sinks and Outliers in Attention Residuals18 May 2026
- 2026A Two-Parameter Weibull Framework for Diagnosing Transformer Weight Distributions17 May 2026
- 2026Measuring Maximum Activations in Open Large Language Models15 May 2026
- 2026A Single Layer to Explain Them All:Understanding Massive Activations in Large Language Models8 May 2026
- 2026Sink vs. diagonal patterns as mechanisms for attention switch and oversmoothing prevention8 May 2026
- 2026The Structural Origin of Attention Sink: Variance Discrepancy, Super Neurons, and Dimension Disparity7 May 2026
- 2026FLUID: Continuous-Time Hyperconnected Sparse Transformer for Sink-Free Learning6 May 2026
- 2026Coverage-Based Calibration for Post-Training Quantization via Weighted Set Cover over Outlier Channels27 Apr 2026
- 2026Supernodes and Halos: Loss-Critical Hubs in LLM Feed-Forward Layers26 Apr 2026
- 2026Depth Registers Unlock W4A4 on SwiGLU: A Reader/Generator Decomposition20 Apr 2026
- 2026SinkRouter: Sink-Aware Routing for Efficient Long-Context Decoding in Large Language and Multimodal Models18 Apr 2026
- 2026Attention to Mamba: A Recipe for Cross-Architecture Distillation1 Apr 2026
- 2026Attention Sinks Induce Gradient Sinks: Massive Activations as Gradient Regulators in Transformers18 Mar 2026
- 2026Efficient Reasoning on the Edge17 Mar 2026
- 2026Attention Sinks Are Provably Necessary in Softmax Transformers: Evidence from Trigger-Conditional Tasks12 Mar 2026
- 2026The Spike, the Sparse and the Sink: Anatomy of Massive Activations and Attention Sinks5 Mar 2026
- 2026ARKV: Adaptive and Resource-Efficient KV Cache Management under Limited Memory Budget for Long-Context Inference in LLMs19 Feb 2026
50 newest of 151 All 151 (JSON)
- 2024SpinQuant: LLM quantization with learned rotationscited by 471
- 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 208
- 2024Multi-Draft Speculative Sampling: Canonical Decomposition and Theoretical Limitscited by 11
- 2026OScaR: The Occam's Razor for Extreme KV Cache Quantization in LLMs and Beyondcited by 5
- 2024Optimized Speculative Sampling for GPU Hardware Acceleratorscited by 2
- 2026SinkRouter: Sink-Aware Routing for Efficient Long-Context Decoding in Large Language and Multimodal Modelscited by 0
- 2026Regularize or Localize: When Training-Time KV-Cache Geometry Pays Under Quantizationcited by 0
- 2026Regularize or Localize: When Training-Time KV-Cache Geometry Pays Under Quantization19 Jul 2026
- 2026OScaR: The Occam's Razor for Extreme KV Cache Quantization in LLMs and Beyond19 May 2026
- 2026SinkRouter: Sink-Aware Routing for Efficient Long-Context Decoding in Large Language and Multimodal Models18 Apr 2026
- 2024Multi-Draft Speculative Sampling: Canonical Decomposition and Theoretical Limits23 Oct 2024
- 2024When Attention Sink Emerges in Language Models: An Empirical View14 Oct 2024
- 2024Optimized Speculative Sampling for GPU Hardware Accelerators16 Jun 2024
- 2024SpinQuant: LLM quantization with learned rotations26 May 2024
- 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 131
- 2024LLMC: Benchmarking Large Language Model Quantization with a Versatile Compression Toolkitcited by 33
- 2025Rethinking the Outlier Distribution in Large Language Models: An In-depth Studycited by 4
- 2023Rethinking Channel Dimensions to Isolate Outliers for Low-bit Weight Quantization of Large Language Modelscited by 0
- 2026Efficient Reasoning on the Edgecited by 0
- 2026LISA: Linear-Indexed Sparse Attention for Efficient Long-Context Reasoningcited by 0
- 2026LISA: Linear-Indexed Sparse Attention for Efficient Long-Context Reasoning29 May 2026
- 2026Efficient Reasoning on the Edge17 Mar 2026
- 2025Rethinking the Outlier Distribution in Large Language Models: An In-depth Study27 May 2025
- 2024A Survey on Large Language Model Acceleration based on KV Cache Management27 Dec 2024
- 2024LLMC: Benchmarking Large Language Model Quantization with a Versatile Compression Toolkit9 May 2024
- 2023Rethinking Channel Dimensions to Isolate Outliers for Low-bit Weight Quantization of Large Language Models27 Sep 2023
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 283
- 2025Unveiling Super Experts in Mixture-of-Experts Large Language Modelscited by 17
- 2026Attention Sink Forges Native MoE in Attention Layers: Sink-Aware Training to Address Head Collapsecited by 5
- 2026Measuring Maximum Activations in Open Large Language Modelscited by 0
- 2026Measuring Maximum Activations in Open Large Language Models15 May 2026
- 2026Attention Sink Forges Native MoE in Attention Layers: Sink-Aware Training to Address Head Collapse1 Feb 2026
- 2025Unveiling Super Experts in Mixture-of-Experts Large Language Models31 Jul 2025
- 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free10 May 2025
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 27
- 2026On the Relationship Between Activation Outliers and Feature Death in Sparse Autoencoderscited by 2
- 2026Decompose Sparsely Where You Should, Absorb Densely Where You Should Nocited by 0
- 2026Decompose Sparsely Where You Should, Absorb Densely Where You Should No12 Jun 2026
- 2026On the Relationship Between Activation Outliers and Feature Death in Sparse Autoencoders29 May 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026
- 2023Softmax Bias Correction for Quantized Generative Modelscited by 15
- 2026Sumi: Open Uniform Diffusion Language Model from Scratchcited by 3
- 2026Sumi: Open Uniform Diffusion Language Model from Scratch17 Jun 2026
- 2023Softmax Bias Correction for Quantized Generative Models4 Sep 2023
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2024Massive Activations in Large Language Modelscited by 294
- 2024Hymba: A Hybrid-head Architecture for Small Language Modelscited by 99
- 2024A Primer on the Inner Workings of Transformer-based Language Modelscited by 85
- 2024Evaluating Quantized Large Language Modelscited by 77
- 2024AffineQuant: Affine Transformation Quantization for Large Language Modelscited by 67
- 2024Model Compression and Efficient Inference for Large Language Models: A Surveycited by 64
- 2024Active-Dormant Attention Heads: Mechanistically Demystifying Extreme-Token Phenomena in LLMscited by 56
- 2024IntactKV: Improving Large Language Model Quantization by Keeping Pivot Tokens Intactcited by 52
- 2025Attention Sinks and Compression Valleys in LLMs are Two Sides of the Same Coincited by 52
- 2023Optimize Weight Rounding via Signed Gradient Descent for the Quantization of LLMscited by 50
- 2024Low-Rank Quantization-Aware Training for LLMscited by 43
12 most cited of 119 All 119 (JSON)
- 2026Exploring Attention Sinks in Text-to-Image Transformers from Diffusion and Autoregressive Models9 Oct 2026
- 2026Underscoring the Problem: Why Softpick Fails at Initialization4 Oct 2026
- 2026The Life Cycle of a Massive Activation: Stochastic Birth, Weight-Decay-Driven Growth, and Competitive Consolidation30 Sep 2026
- 2026Making Analog Training Scale: Co-Designing Mapping, Optimizer, and Converters29 Sep 2026
- 2026Which the Eye Fears: Writing with Read-Blindness Explains Massive Activations in Transformers28 Sep 2026
- 2026JustQuant: You Don't Need Smoothing, SVD, or Rotation for 4-Bit Activation Quantization27 Sep 2026
- 2026Same Probe, Different Numbers: Are Activation Probes Robust to Inference-Time Numerical Non-Determinism?25 Sep 2026
- 2026Abstention and Noise Filtering: Two Missing Primitives of Softmax Attention18 Sep 2026
- 2026Permutation-Based Stegomalware in Large Language Models: Threats and Countermeasures14 Sep 2026
- 2026It's Not RoPE that Creates Sinks: The Role of Self-Concentration and Value-Non-Mixing in Attention8 Sep 2026
- 2026From Attention Masks to Inert Zero-Vector Tokens: OAttention and O-Closure for Token Dynamics21 Aug 2026
- 2026Cracks in the Foundation: Seemingly Minor Architectural Choices Impact Long Context Extension10 Aug 2026
12 newest of 119 All 119 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2023Outlier Suppression+: Accurate quantization of large language models by equivalent and optimal shifting and scaling
- 2026Activation Outliers in Transformer Quantization: Reproduction, Statistical Analysis, and Deployment Tradeoffs
- 2024Mitigating the Impact of Outlier Channels for Language Model Quantization with Activation Regularization
- 2026Theory-optimal Quantization Based on Flatness
- 2024OutlierTune: Efficient Channel-Wise Quantization for Large Language Models
- 2026Pretraining Transformers with Quantized Softmax in Attention
- 2024Art and Science of Quantizing Large-Scale Models: A Comprehensive Overview
- 2023Intriguing Properties of Quantization at Scale