Mitigating Quantization Errors Due to Activation Spikes in GLU-Based LLMs
Not on the map. Why?
Abstract (arXiv)
Modern large language models (LLMs) have established state-of-the-art performance through architectural improvements, but still require significant computational cost for inference. In an effort to reduce the inference cost, post-training quantization (PTQ) has become a popular approach, quantizing weights and activations to lower precision, such as INT8. In this paper, we reveal the challenges of activation quantization in GLU variants, which are widely used in feed-forward network (FFN) of modern LLMs, such as LLaMA family. The problem is that severe local quantization errors, caused by excessive magnitudes of activation in GLU variants, significantly degrade the performance of the quantized LLM. We denote these activations as activation spikes. Our further observations provide a systematic pattern of activation spikes: 1) The activation spikes occur in the FFN of specific layers, particularly in the early and late layers, 2) The activation spikes are dedicated to a couple of tokens, rather than being shared across a sequence. Based on our observations, we propose two empirical methods, Quantization-free Module (QFeM) and Quantization-free Prefix (QFeP), to isolate the activation spikes during quantization. Our extensive experiments validate the effectiveness of the proposed methods for the activation quantization, especially with coarse-grained scheme, of latest LLMs with GLU variants, including LLaMA-2/3, Mistral, Mixtral, SOLAR, and Gemma. In particular, our methods enhance the current alleviation techniques (e.g., SmoothQuant) that fail to control the activation spikes. Code is available at https://github.com/onnoo/activation-spikes.
Key facts. Cited by 21 papers in the map (data through 14 Oct 2026). Builds on 50 of its 57 references that are in the map. First posted on arXiv 23 May 2024.
Builds on
50 of 57 references.
References · 50
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2023Mistral 7Bcited by 3,164
- 2016Pointer Sentinel Mixture Modelscited by 3,096
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
38 more
- 2023A Survey of Large Language Modelscited by 2,576
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2016Identity Mappings in Deep Residual Networkscited by 1,965
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,919
- 2024Mixtral of Expertscited by 1,823
- 2020GLU Variants Improve Transformercited by 1,804
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,593
- 2019fairseq: A Fast, Extensible Toolkit for Sequence Modelingcited by 1,488
- 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,386
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
- 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,298
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 992
- 2020On Layer Normalization in the Transformer Architecturecited by 922
- 2021A Survey of Quantization Methods for Efficient Neural Network Inferencecited by 815
- 2022Efficiently Scaling Transformer Inferencecited by 539
- 2023The Falcon Series of Open Language Modelscited by 535
- 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 526
- 2021A White Paper on Neural Network Quantizationcited by 472
- 2023OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Modelscited by 424
- 2023QuIP: 2-Bit Quantization of Large Language Models With Guaranteescited by 414
- 2023SpQR: A Sparse-Quantized Representation for Near-Lossless LLM Weight Compressioncited by 367
- 2019Revealing the Dark Secrets of BERTcited by 301
- 2023SqueezeLLM: Dense-and-Sparse Quantizationcited by 294
- 2024Massive Activations in Large Language Modelscited by 294
- 2018Adaptive Input Representations for Neural Language Modelingcited by 226
- 2023SOLAR 10.7B: Scaling Large Language Models with Simple yet Effective Depth Up-Scalingcited by 172
- 2021All Bark and No Bite: Rogue Dimensions in Transformer Language Models Obscure Representational Qualitycited by 156
- 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 151
- 2021Understanding and Overcoming the Challenges of Efficient Transformer Quantizationcited by 141
- 2021BERT Busters: Outlier Dimensions that Disrupt Transformerscited by 112
- 2024Stable LM 2 1.6B Technical Reportcited by 90
- 2021Do Transformer Modifications Transfer Across Implementations and Applications?cited by 87
- 2023Outlier Suppression+: Accurate quantization of large language models by equivalent and optimal shifting and scalingcited by 61
- 2022Outliers Dimensions that Disrupt Transformers Are Driven by Frequencycited by 55
- 2023Intriguing Properties of Quantization at Scalecited by 49
- 2020Positional Artefacts Propagate Through Masked Language Model Embeddingscited by 35
Built on by
Citing papers per year: 2024: 7; 2025: 11; 2026: 3.
21 papers.
Sort:
By area:
- 2024DuQuant: Distributing Outliers via Dual Transformation Makes Stronger Quantized LLMscited by 167
- 2024Scaling FP8 training to trillion-token LLMscited by 65
- 2024The Super Weight in Large Language Modelscited by 52
- 2024COAT: Compressing Optimizer states and Activation for Memory-Efficient FP8 Trainingcited by 33
- 2024AMXFP4: Taming Activation Outliers with Asymmetric Microscaling Floating-Point for 4-bit LLM Inferencecited by 19
- 2025Unveiling Super Experts in Mixture-of-Experts Large Language Modelscited by 17
- 2024PrefixQuant: Eliminating Outliers by Prefixed Tokens for Large Language Models Quantizationcited by 12
- 2025A Refined Analysis of Massive Activations in LLMscited by 12
- 2025Hidden Dynamics of Massive Activations in Transformer Trainingcited by 10
- 2025The Achilles' Heel of LLMs: How Altering a Handful of Neurons Can Cripple Language Abilitiescited by 7
- 2025Variance Control via Weight Rescaling in LLM Pre-trainingcited by 4
- 2025SmoothRot: Combining Channel-Wise Scaling and Rotation for Quantization-Friendly LLMscited by 4
9 more
- 2025Turning LLM Activations Quantization-Friendlycited by 2
- 2025FlexQ: Efficient Post-training INT6 Quantization for LLM Serving via Algorithm-System Co-Designcited by 2
- 2025Activation Quantization of Vision Encoders Needs Prefixing Registerscited by 2
- 2026Massive Spikes in LLMs are Bias Vectors: Mechanistic Uncovering and Spike-Free Quantizationcited by 2
- 2025Precision Where It Matters: A Novel Spike Aware Mixed-Precision Quantization Strategy for LLaMA-based Language Modelscited by 1
- 2025Assigning Distinct Roles to Quantized and Low-Rank Matrices Toward Optimal Weight Decompositioncited by 1
- 2026Expand More, Shrink Less: Shaping Effective-Rank Dynamics for Dense Scaling in Recommendationcited by 1
- 2024Compensate Quantization Errors+: Quantized Models Are Inquisitive Learnerscited by 0
- 2026Trainable Smooth-Rotation Transforms with Learned Channel Scales for LLM Quantizationcited by 0
- 2026Trainable Smooth-Rotation Transforms with Learned Channel Scales for LLM Quantization7 Jun 2026
- 2026Massive Spikes in LLMs are Bias Vectors: Mechanistic Uncovering and Spike-Free Quantization1 Jun 2026
- 2026Expand More, Shrink Less: Shaping Effective-Rank Dynamics for Dense Scaling in Recommendation22 May 2026
- 2025The Achilles' Heel of LLMs: How Altering a Handful of Neurons Can Cripple Language Abilities11 Oct 2025
- 2025Activation Quantization of Vision Encoders Needs Prefixing Registers6 Oct 2025
- 2025FlexQ: Efficient Post-training INT6 Quantization for LLM Serving via Algorithm-System Co-Design6 Aug 2025
- 2025Hidden Dynamics of Massive Activations in Transformer Training5 Aug 2025
- 2025Unveiling Super Experts in Mixture-of-Experts Large Language Models31 Jul 2025
- 2025SmoothRot: Combining Channel-Wise Scaling and Rotation for Quantization-Friendly LLMs4 Jun 2025
- 2025Assigning Distinct Roles to Quantized and Low-Rank Matrices Toward Optimal Weight Decomposition2 Jun 2025
- 2025Turning LLM Activations Quantization-Friendly11 May 2025
- 2025Precision Where It Matters: A Novel Spike Aware Mixed-Precision Quantization Strategy for LLaMA-based Language Models30 Apr 2025
9 more
- 2025A Refined Analysis of Massive Activations in LLMs28 Mar 2025
- 2025Variance Control via Weight Rescaling in LLM Pre-training21 Mar 2025
- 2024AMXFP4: Taming Activation Outliers with Asymmetric Microscaling Floating-Point for 4-bit LLM Inference15 Nov 2024
- 2024The Super Weight in Large Language Models11 Nov 2024
- 2024COAT: Compressing Optimizer states and Activation for Memory-Efficient FP8 Training25 Oct 2024
- 2024PrefixQuant: Eliminating Outliers by Prefixed Tokens for Large Language Models Quantization7 Oct 2024
- 2024Scaling FP8 training to trillion-token LLMs19 Sep 2024
- 2024Compensate Quantization Errors+: Quantized Models Are Inquisitive Learners22 Jul 2024
- 2024DuQuant: Distributing Outliers via Dual Transformation Makes Stronger Quantized LLMs3 Jun 2024
- 2024DuQuant: Distributing Outliers via Dual Transformation Makes Stronger Quantized LLMscited by 167
- 2024Scaling FP8 training to trillion-token LLMscited by 65
- 2024The Super Weight in Large Language Modelscited by 52
- 2024COAT: Compressing Optimizer states and Activation for Memory-Efficient FP8 Trainingcited by 33
- 2024AMXFP4: Taming Activation Outliers with Asymmetric Microscaling Floating-Point for 4-bit LLM Inferencecited by 19
- 2024PrefixQuant: Eliminating Outliers by Prefixed Tokens for Large Language Models Quantizationcited by 12
- 2025A Refined Analysis of Massive Activations in LLMscited by 12
- 2025Hidden Dynamics of Massive Activations in Transformer Trainingcited by 10
- 2025The Achilles' Heel of LLMs: How Altering a Handful of Neurons Can Cripple Language Abilitiescited by 7
- 2025Variance Control via Weight Rescaling in LLM Pre-trainingcited by 4
- 2025SmoothRot: Combining Channel-Wise Scaling and Rotation for Quantization-Friendly LLMscited by 4
- 2025Turning LLM Activations Quantization-Friendlycited by 2
12 most cited of 18 All 18 (JSON)
- 2026Trainable Smooth-Rotation Transforms with Learned Channel Scales for LLM Quantization7 Jun 2026
- 2026Massive Spikes in LLMs are Bias Vectors: Mechanistic Uncovering and Spike-Free Quantization1 Jun 2026
- 2026Expand More, Shrink Less: Shaping Effective-Rank Dynamics for Dense Scaling in Recommendation22 May 2026
- 2025The Achilles' Heel of LLMs: How Altering a Handful of Neurons Can Cripple Language Abilities11 Oct 2025
- 2025Hidden Dynamics of Massive Activations in Transformer Training5 Aug 2025
- 2025SmoothRot: Combining Channel-Wise Scaling and Rotation for Quantization-Friendly LLMs4 Jun 2025
- 2025Assigning Distinct Roles to Quantized and Low-Rank Matrices Toward Optimal Weight Decomposition2 Jun 2025
- 2025Turning LLM Activations Quantization-Friendly11 May 2025
- 2025Precision Where It Matters: A Novel Spike Aware Mixed-Precision Quantization Strategy for LLaMA-based Language Models30 Apr 2025
- 2025A Refined Analysis of Massive Activations in LLMs28 Mar 2025
- 2025Variance Control via Weight Rescaling in LLM Pre-training21 Mar 2025
- 2024AMXFP4: Taming Activation Outliers with Asymmetric Microscaling Floating-Point for 4-bit LLM Inference15 Nov 2024
12 newest of 18 All 18 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2025Achieving binary weight and activation for LLMs using Post-Training Quantization
- 2023ZeroQuant-V2: Exploring Post-training Quantization in LLMs from Comprehensive Study to Low Rank Compensation
- 2026Understanding LLM Quantization through Activation-Guided Compensation and Orthogonal Residuals
- 2024Understanding the Difficulty of Low-Precision Post-Training Quantization for LLMs
- 2024Outliers and Calibration Sets have Diminishing Effect on Quantization of Modern LLMs
- 2026InfoQuant: Shaping Activation Distributions for Low-Bit LLM Quantization
- 2024A Comprehensive Evaluation of Quantization Strategies for Large Language Models
- 2026QuantaSpike: Short-Window Spike-Driven Quantization for Large Language Models