Anatomy of Massive Activations and Attention Sinks

Shangwen Sun, Alfredo Canziani, Yann LeCun, Jiachen Zhu

Large Language Models (LLMs) exhibit fascinating, sometimes frustrating, internal behaviors. If you have ever attempted to quantize an LLM to 4-bit or 8-bit precision, you have likely encountered "outlier features"—specific channels in the model's hidden layers where numerical values explode to thousands of times the average magnitude. Curiously, these massive activations frequently co-occur on the exact same tokens (such as the initial token or a period) that act as "attention sinks," absorbing disproportionate amounts of attention regardless of semantic relevance.

Until recently, the functional roles and causal relationships between these two phenomena remained a "chicken and egg" mystery. Are these spikes a bug, a feature, or a necessary evil of the Transformer architecture? A recent study by researchers at NYU (including Yann LeCun) provides a mechanistic autopsy of these phenomena, revealing that they are not inherent to Transformers. Instead, they are architectural artifacts of the "Pre-Norm" design that the model repurposes as global implicit parameters and local gating mechanisms.

The Mechanistic Autopsy

To decode these internal mechanics, the research team observed the behavior of widely used open-source models, including Llama 2 and 3 (7B to 13B) and Qwen 2.5 and 3 (7B to 14B). They then conducted controlled ablations, training dozens of 7B-parameter models from scratch on a 100-billion-token budget (using the DCLM dataset) and evaluating predictive accuracy via perplexity on the C4 dataset.

Their methodology relied on three core analytical pillars:

  1. Life Cycle Tracking: Tracing how activations evolve across layers to identify "step-up" blocks that inject spikes and "step-down" blocks that neutralize them.
  2. Mathematical Modeling: Demonstrating that the SwiGLU activation function—standard in modern LLMs—acts as a "directional quadratic amplifier," explaining how small inputs balloon into massive outliers.
  3. Controlled Ablations: Systematically altering variables like the normalization layer, Feed-Forward Network (FFN) design, and attention head size to isolate the root causes of spikes and sinks.

Unpacking the Phenomena: Spikes and Sinks

The study reveals that massive activations and attention sinks serve related but distinct functions within the network.

The "Implicit Parameter" Theory: Massive activations are not merely noise. Because they persist across layers in the residual stream, they effectively function as "global implicit parameters." The model stores a near-constant vector in these spikes, using it as a stable reference point across the entire network.

Sinks as Implicit Gating: Attention sinks, operating locally, act as a numerical dumping ground. In models lacking explicit gating mechanisms, the attention mechanism uses specific tokens (like the first token) to "park" unnecessary attention mass. This allows the model to modulate attention outputs across heads and focus on local sentence structure where needed.

The Pre-Norm Culprit: The researchers identified the "Pre-Norm" configuration—where normalization occurs before the residual block—as the primary enabler of these phenomena. Pre-Norm allows the residual stream to accumulate unbounded values, setting the stage for massive activations.

Key Findings: Decoupling and Drivers

Perhaps the most significant finding is that massive activations and attention sinks are not inextricably linked. By altering the model's architecture, developers can eliminate quantization-breaking spikes while preserving the attention sinks necessary for long-context inference.

  • Normalization Matters: Replacing standard RMSNorm with an alternative like DynamicTanh reduced the massive activation "spike" magnitude from 3,818 down to just 153. Surprisingly, this change actually increased the sink ratio, proving that spikes are an artifact, not a prerequisite for sinks.
  • Head Dimension is the Driver: The size of the attention head ($d_{head}$) is the primary architectural driver for attention sinks. Increasing $d_{head}$ from 8 to 128 caused the sink ratio to surge from 4.1% to 46.0%. Larger dimensions provide the model with more geometric space to separate sink keys from normal keys.
  • Context Length Induction: Sinks are largely a byproduct of training on short sequences. When models were trained exclusively on long contexts (excluding short sequences), the sink ratio collapsed from 46% to a mere 1.2%.

Limitations and Future Directions

While the paper offers a brilliant mechanistic account of LLM internals, the authors acknowledge a few remaining gaps. First, the analysis is primarily observational regarding the forward pass; "surgical" interventions—such as clamping spikes in real-time on frozen, pre-trained models—are needed to confirm causal reasoning. Second, the ablations focused heavily on perplexity. It remains to be seen how "spike-free" models perform on complex reasoning tasks or "needle-in-a-haystack" long-context evaluations. Finally, while we now know how spikes are amplified, the specific optimization dynamics and training-time pressures that force weights to align into these high-gain directions remain an open question.

Summary updated

BibTeX
@inproceedings{sun2026anatomy,
  author = {Shangwen Sun and Alfredo Canziani and Yann LeCun and Jiachen Zhu},
  title = {{Anatomy of Massive Activations and Attention Sinks}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=VUiMZBfHBe},
}
Figure