TL;DR
This paper unifies two well-known transformer anomalies—attention sinks and residual sinks—under a single concept called outlier-driven rescaling. Rather than being pathological bugs, these extreme activation spikes work dynamically with normalization layers (like softmax and RMSNorm) to act as "volume knobs" that rescale other features. By introducing explicit gating mechanisms like GatedNorm, the authors eliminate these massive outliers while simultaneously boosting downstream performance and making models highly robust to aggressive 4-bit quantization.
What Problem Does This Paper Address?
As Large Language Models (LLMs) scale, they naturally develop extreme outlier values—activations or logits that exceed typical values by orders of magnitude. These outliers present themselves in two primary ways:
- Attention Sinks: A few specific tokens (often the very first token in a sequence) that receive abnormally high attention scores.
- Residual Sinks: Specific, fixed dimensions in the hidden states that maintain massive activations across almost all tokens.
These outliers pose severe engineering challenges, particularly for model quantization (compressing models into 4-bit or 8-bit formats), where extreme ranges destroy quantization precision. However, simply clipping or removing them breaks the model's performance. This paper investigates why these outliers form and uncovers their essential functional role in keeping transformer training stable.
Methods
The authors propose that outliers exist to manipulate normalization layers. Because functions like RMSNorm divide by the root-mean-square of the entire hidden state, blowing up one dimension automatically scales down all other dimensions.
To test this "outlier-driven rescaling" hypothesis and mitigate the resulting quantization issues, the authors introduce two architectural modifications:
- PreAffine: A learnable element-wise scaling vector ($\lambda_1$) placed right before RMSNorm: $\text{PreAffineRMSNorm}(x) = \text{RMSNorm}(\lambda_1 \odot x)$. This allows the model to absorb the outlier behavior directly into static parameters rather than forcing the dynamic activations to blow up.
- GatedNorm: A lightweight, element-wise low-rank self-gating mechanism applied after normalization. It uses a low-rank bottleneck ($r \ll d$, e.g., $r=16$) and a sigmoid activation to explicitly calculate rescaling factors, completely bypassing the need for the model to generate extreme activation outliers.
Datasets
The authors validated their approaches by training dense and Mixture-of-Experts (MoE) models ranging from 1B to 24B parameters on datasets containing 120B to 1T tokens.
Models were evaluated across a comprehensive suite of standard benchmarks:
- General Knowledge: MMLU-Redux, MMLU-Pro
- STEM & Reasoning: SuperGPQA, GPQA-Diamond, GSM8K, MATH
- Coding: CruxEval, MultiPL-E, MBPP
- Multilingual: MMMLU, MGSM
Key Insights and Ideas
- Outliers are Rescale Factors, Not Feature Contributors: Once an outlier passes through a normalization layer, its downstream weights or value vector norms are heavily suppressed. The outlier doesn't actually carry semantic information; it exists purely to alter the denominator of the normalization function.
- Architectural Choices Dictate Outliers: Popular components like SwiGLU outperform standard GLU precisely because their unbounded nature easily generates the massive activations needed for outlier-driven rescaling. When explicit gating (GatedNorm) is provided, standard GLU can match or even beat SwiGLU performance.
- Normalization is the Root Cause: Replacing normalization layers with pointwise functions (like Dynamic Tanh) eliminates outliers entirely, but severely degrades training stability and final model performance because the model loses its ability to perform feature rescaling.
Key Results
- Outlier Suppression: GatedNorm successfully flattens activation spikes throughout training. In a 24B MoE model, it entirely prevents the massive early-training outlier surge seen in baseline models.
- Performance Gains: On a 24B MoE model trained on 500B tokens, GatedNorm delivered an average performance increase of 2 points across all benchmarks compared to the baseline (improving the average score from 52.71 to 54.79).
- Quantization Robustness: Under aggressive W4A4 (4-bit weight, 4-bit activation) quantization, the baseline model suffered severe performance degradation. Models trained with GatedNorm proved remarkably robust, experiencing a minor drop of only 1.23 points on average, significantly outperforming post-training techniques like SmoothQuant.
Limitations and Future Work
While the paper empirically demonstrates how outliers interact with normalization layers to rescale features, the authors note that they have not fully answered why this specific type of rescaling is so fundamentally necessary for effective transformer training or representation learning. Uncovering the deeper theoretical reasons behind this requirement remains an open challenge for future research.
Summary updated