TL;DR
Quantizing modern Large Language Models (LLMs) to low bit-widths depends heavily on managing extreme activation values, but how large do these values actually get? This paper introduces a unified pipeline to measure maximum activations across 27 recent open-model checkpoints, revealing that peak magnitudes vary by up to four orders of magnitude and are driven by model architecture and family rather than size alone.
What Problem Does This Paper Address?
To deploy LLMs efficiently, engineers frequently compress them using low-bit quantization (such as INT8 or FP8). However, if a model produces even a few extremely large activation values—often called "massive activations" or "outliers"—the quantization scale must expand to accommodate them. This wastes precious quantization levels on rare extremes and destroys precision for normal values.
While early studies characterized this phenomenon in pre-2024 LLaMA-style models, the recent explosion of diverse open-source architectures (featuring Mixture-of-Experts, SwiGLU gates, and vision-language adaptations) means our understanding of activation dynamics is outdated. This paper addresses this gap by systematically mapping out how large activations can get in modern open LLMs, where these peaks form, and how they change across model generations and training stages.
Methods
The authors developed a unified, forward-only inference pipeline to systematically track activation statistics without modifying model weights. Using PyTorch hooks, they extracted layerwise data across six key component classes:
- Embedding outputs
- Post-residual hidden states
- Attention outputs
- MLP or MoE block outputs
- SwiGLU gate pre-activations
- Final LayerNorm outputs
Instead of treating massive activations as a simple binary flag, they focused on a continuous, deployment-critical metric: the global maximum absolute activation ($M = \max |a|$).
Datasets
To ensure that the activation statistics were robust and not dominated by a single domain, the authors constructed a shared evaluation corpus of 5,000 multi-domain text samples sourced from RedPajama. The dataset is balanced across several categories:
- Math / Science (850)
- Code (850)
- English Web (850)
- Knowledge / QA / Books (850)
- Chinese (400)
- Low-Resource Languages (300)
- Mixed Web (900)
The corpus also controls for sequence-length diversity, heavily favoring long contexts (93% of the samples are 4,096 tokens long). Crucially, the text is re-tokenized using each model family's specific tokenizer to prevent tokenization mismatches from biasing the results.
Key Insights and Ideas
- Architecture Over Size: Activation magnitude is an intrinsic property of a model's family and design, not a simple byproduct of parameter scale. For instance, Qwen3.5 heavily suppresses peaks, whereas Gemma3-27B-it reaches extreme activation values.
- The MoE Advantage: Mixture-of-Experts (MoE) models exhibit $14.0\times$ to $23.4\times$ lower activation peaks than dense models of a similar scale. Sparse routing naturally mitigates extreme activation spikes.
- The Residual Stream is the Carrier: In 22 out of 24 main checkpoints, the global maximum occurs within the layerwise hidden states (the residual stream). This means extreme values are propagated and preserved through the network backbone rather than being isolated inside attention or MLP blocks.
- Two Distinct Trajectories: Models generally form peaks via two distinct layerwise patterns: a "jump-and-plateau" pattern (a sharp rise in early layers that remains high) or a "gradual-accumulation" pattern (smooth growth peaking near the final layers).
Key Results
- Massive Cross-Family Variance: Global activation maxima span nearly four orders of magnitude across comparable models. Qwen3.5 and MoE models stay in the modest $10^2$–$10^3$ range, while Gemma3-27B-it spikes to an astonishing $696,320$.
- Non-Monotonic Generational Scaling: Newer generations do not automatically have smaller activations. Qwen showed an inverted-V trend (rising from Qwen2.5 to Qwen3, then dropping sharply in Qwen3.5), while Gemma's peaks increased drastically from Gemma2 to Gemma3.
- Quantization Impact: A lightweight INT8 sanity check showed that higher maximum activations directly correlate with lower Signal-to-Quantization-Noise Ratios (SQNR) under standard max-abs scaling, confirming that $M$ is a vital metric for deployment readiness.
Limitations and Future Work
- Corpus & Context Constraints: The evaluation mixture is restricted to English, Chinese, and code domains, with context lengths capped at 4,096 tokens. Future work should explore longer contexts (32k–128k) where activation dynamics might shift or saturate.
- Coarse Training Labels: The comparison between Base and Instruct models treats instruction tuning as a single bucket, conflating supervised fine-tuning (SFT) with downstream RLHF or DPO stages.
- Lack of Causal Mechanisms: The study identifies stable empirical differences across model families but does not establish the underlying causal training mechanisms or loss formulations responsible for suppressing or amplifying these peaks.
Summary updated