TL;DR
This paper reveals that the massive "outlier" activations often seen in Large Language Models (LLMs)—specifically attention and residual sinks—are not bugs, but essential functional components. The authors propose the outlier-driven rescaling hypothesis: these outliers interact with normalization layers (like Softmax and RMSNorm) to control the scale of other features, and by replacing this emergent behavior with explicit GatedNorm layers, we can train more stable models that are significantly easier to quantize.
What Problem Does This Paper Address?
If you’ve ever looked at the activations of a Transformer, you’ve likely seen "sinks": a few tokens (attention sinks) or specific dimensions (residual sinks) that have values orders of magnitude larger than everything else.
These outliers pose a massive headache for engineers. They dominate the dynamic range, making it incredibly difficult to quantize models into 4-bit formats (W4A4) without destroying accuracy. However, simply clipping these values or removing normalization layers typically leads to training instability or catastrophic performance drops. The community has long wondered: Why do these outliers form, and can we get rid of them without breaking the model?
Methods
The authors investigate the relationship between outliers and normalization. They hypothesize that the model creates these extreme values specifically to manipulate the denominator in normalization functions (like the RMS in RMSNorm), effectively rescaling the rest of the vector.
To test and mitigate this, they introduce two architectural interventions:
- PreAffine: A learnable element-wise scaling vector ($\lambda_1$) placed before RMSNorm. This allows the model to "absorb" the outlier behavior into fixed parameters rather than dynamic activations.
- GatedNorm: A lightweight, low-rank self-gating mechanism applied after normalization. It uses a small bottleneck (rank $r \ll d$) to compute a gating signal that explicitly rescales activations.
They validate these methods across various architectures, including dense 2B models and large Mixture-of-Experts (MoE) models (up to 24B parameters), comparing them against standard baselines and "normalization-free" variants like Dynamic Tanh (DyT).
Datasets
The models were trained on massive datasets ranging from 120B to 1.2T tokens. Evaluation was performed across a comprehensive suite of benchmarks:
- Knowledge & Reasoning: MMLU-Redux, MMLU-Pro.
- STEM: SuperGPQA, GPQA-Diamond, GSM8K, MATH.
- Code: CruxEval, MultiPL-E, MBPP.
- Multilingual: MMMLU, MGSM.
Key Insights and Ideas
- The Rescaling Hypothesis: Outliers aren't carrying information; they are "volume knobs." By becoming very large, they increase the normalization denominator, which shrinks all other features.
- Downstream Suppression: A fascinating "aha" moment occurs when looking at the learned weights ($\lambda$) of RMSNorm. For dimensions where a residual sink exists, the corresponding $\lambda$ is often tiny (e.g., 0.004 vs. a mean of 1.0). This proves the model uses the outlier to set the scale, then immediately suppresses the outlier's own contribution to the next layer.
- Normalization is a Double-Edged Sword: Removing normalization (e.g., using linear attention or DyT) eliminates outliers but makes training incredibly fragile. The model needs the ability to rescale features to remain stable.
- Gating as a Cure: By providing an explicit gating mechanism (GatedNorm), the model no longer needs to "hack" the normalization layer by creating outliers. This leads to much smoother activation distributions.
Key Results
- Performance Gains: GatedNorm isn't just a "fix"; it actually improves the model. On a 24B MoE model, it achieved a +1.0 point gain on knowledge tasks and over +2.0 points on STEM and Code benchmarks compared to the baseline.
- Quantization Robustness: This is the big win for deployment. Under aggressive W4A4 quantization, the GatedNorm model saw only a 1.23 point drop in performance, whereas the standard baseline and other mitigation strategies (like PreAffine) suffered much larger degradations (up to 2.76 points).
- Training Stability: GatedNorm allows models to train at higher learning rates and makes them less sensitive to architectural choices (like the choice of activation function in GLUs).
Limitations and Future Work
While the paper provides strong empirical evidence for how outliers function, the authors note that they haven't fully answered why this specific type of rescaling is so critical for effective representation learning in Transformers. A deeper theoretical understanding of the optimization landscape that necessitates these "sinks" remains an open question. Additionally, while GatedNorm is parameter-efficient, it does introduce a small latency overhead (approx. 3-5% in dense models, though less in MoEs) that might need further optimization for real-time applications.
Summary updated