Pith. sign in

REVIEW 3 cited by

Mitigating Quantization Errors Due to Activation Spikes in GLU-Based LLMs

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2405.14428 v1 pith:WXRRO67O submitted 2024-05-23 cs.CL cs.LG

classification cs.CLcs.LG
keywords activationspikesquantizationllmsmethodsvariantsactivationscost
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

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.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 3 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Activation Quantization of Vision Encoders Needs Prefixing Registers

    cs.LG 2025-10 conditional novelty 6.0 of 10

    Inserting precomputed universal register tokens in the middle layers of pretrained vision encoders shrinks activation outliers, and deleting emerging sink tokens, improves low-bit post-training quantization accuracy.

  2. Assigning Distinct Roles to Quantized and Low-Rank Matrices Toward Optimal Weight Decomposition

    cs.LG 2025-06 conditional novelty 6.0 of 10

    ODLRI initializes the low-rank component using activation-outlier channels, improving low-bit compression of large language models over the CALDERA baseline.

  3. SmoothRot: Combining Channel-Wise Scaling and Rotation for Quantization-Friendly LLMs

    cs.CL 2025-06 conditional novelty 4.0 of 10

    Combining SmoothQuant-style channel scaling with QuaRot's Hadamard rotation reduces 4-bit weight-activation quantization error in LLMs by 10-30% of the gap to FP16.

Pith tools