Attention Sinks Induce Gradient Sinks: Massive Activations as Gradient Regulators in Transformers
Yihong Chen, Zhouchen Lin, Quanming Yao
NeurIPS page · Open on the map
Category: Interpretability & Model Adaptation › Transformer Dynamics Theory · Type: new method · Keywords: attention sinks, gradient sinks, massive activations, RMSNorm, Transformer training
Areas: LLM Reasoning › Efficient Reasoning › Attention Mechanisms; Model Architectures & Sequence Modeling › Language Model Architectures › Attention Geometry
Summary
The paper shows that attention sinks create gradient sinks in Transformers and introduces V-scale, a modification that attenuates sink-induced gradients, thereby suppressing massive activations.
Explained to a 5-year-old
In big computer brain models, some parts get really big. These big parts help control how the model learns. The paper finds that these big parts are caused by something called gradient sinks. They also show a way to make the big parts smaller without breaking other parts. This helps the model learn better.
Explained to a 5-year-old, longer
Transformers are computer programs that understand words. While they learn, some numbers inside them become very large. These large numbers are called massive activations. The paper looks at why they become large. It discovers that a part of the model called an attention sink creates a lot of gradient pressure. This gradient pressure is named a gradient sink. The model’s normalization step, RMSNorm, makes the gradients smaller when the numbers are big. This means the large numbers act like a brake on the training process. The authors test a new way to change the gradients that keeps the attention sinks but reduces the gradient sinks. With this change, the massive activations become smaller. The model still works well and remembers what it learned. This helps make training bigger models easier and more stable.
For a technical reader
The paper investigates why Transformer models develop unusually large activations during training. It shows that attention sinks cause gradient concentration, which the authors term gradient sinks, and that RMSNorm’s gradient scaling amplifies this effect. They propose a gradient modification that reduces this concentration while preserving the original attention behavior. Experiments confirm that the modification suppresses massive activations without harming model performance. This insight helps engineers design more stable training procedures for large models.
Problem
Understanding why massive activations appear in Transformer training and how they relate to attention sinks is challenging. The paper investigates whether gradient concentration caused by attention sinks drives these activations and seeks a way to control this effect.
Method
The authors analyze the relationship between attention sinks and gradient concentration under causal masking, deriving theoretical insights on how RMSNorm's Jacobian attenuates gradients. They then propose a modification to the backpropagation of value-path gradients that preserves attention sinks while reducing gradient sinks, and empirically evaluate its effect on activation magnitudes.
Results
The approach reduces massive activations while retaining attention sinks, confirming the gradient sink hypothesis.
Contributions
It identifies gradient sinks as a backward-pass counterpart to attention sinks and shows that massive activations act as adaptive regulators via RMSNorm. It also provides a practical gradient modification that weakens these effects without removing attention sinks.
Research questions this paper is counted under
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction