A common occurrence in Large Language Models (LLMs) is the emergence of so-called massive activations. This phenomenon is well known in the literature and has been connected to attention sinks, representational compression, as well as signal propagation. However, the reasons and consequences for their appearance are not yet well understood. In this paper, we explain the role of massive activations in deep learning by showing that they are connected to the region migration phenomenon in delayed robustness. Under the spline theoretic interpretation of deep networks, we show that massive activations push the representations away from the nonlinearity boundaries of the network, decreasing the complexity of its input-output map around data points. Furthermore, we uncover for the first time that this phenomenon is not unique to transformers and actually appears in a number of common architectures performing simple supervised learning tasks. We validate this connection through extensive experiments on a diverse set of architectures including residual MLP, ResNet18, Vision Transformers and GPT and datasets including MNIST, CIFAR10, Imagenette and Shakespeare Text. We consistently observe that massive activations and region migration co-occur with adversarial robustness. Furthermore, we illustrate that this connection holds in the large-scale pretraining of LLMs by showing that the rise of massive activations in LLMs closely tracks the adversarial accuracy of the model under perturbations of the token embeddings.
Figures & tables
Figure 1: Residual MLP training on MNIST digit classification dataset. Left: train, test and adversarial accuracies along with the LC on train, test and random points. Middle and Right: SplineCam visualization of the input space partitioning of the residual MLP that passes through three data points. The black lines in the SplineCam plots represent the nonlinearity boundaries of the model, where on each induced cell or region the neural network is an affine map. Stars represent the data points, red line is the decision boundary and colors of the regions correspond to the norm of their affine mappings. We provide more detailed explanation about SplineCam visualization in A.4
Figure 2: Joint emergence of massive activations, region migration and adversarial robustness (evaluated with AutoAttack) in MLP on MNIST with ϵ=0.03 (left), GPT on Shakespeare Text with ϵ=0.01 (middle) Pythia 160M on The Pile with ϵ=0.001 (right). The top row shows the accuracy and adversarial accuracy on the test set along with the LC (on the mirrored axis) throughout the training. The bottom row shows the sum of the three largest activations in the representation across all the layers.
Figure 3: Visualization of massive activations in the hidden representations of residual MLP trained on MNIST (left), the CLS token representations of ViT Small trained on Imagenette (middle) and the first token representations of GPT trained on Shakespeare Text (right). Massive activations emerge as early as in the first layer and propagate through the network via the residual stream. In the case of ViT Small the massive activations amplify during the first few layers after the emergence.
Model
Condition
Accuracy ( % )
Consistency ( % )
LC
ViT Tiny
No suppression
71.88
39.84
47.55
Top 4 zeroed
59.38
21.88
61.97
Random 4 zeroed
71.72
38.75
47.20
GPT
No suppression
63.48
59.38
11.65
Top 4 zeroed
25.98
1.95
43.09
Random 4 zeroed
63.67
57.30
11.62
Table 1: Effect of zeroing dominant versus randomly selected activations on accuracy, adversarial consistency, and LC. Consistency is the percentage of predictions that remain unchanged under the attack, regardless of whether the clean prediction is correct.
Figure 4: Removing the dominant activation from the input representation of the last layer of a 4 depth and 200 width residual MLP on MNIST undoes region migration. Left: Without any changes, serving as a reference. Right: The dominant activation set to zero. This Figure follows the same format as Figure 1 (middle and right).
Figure 5: Visualization of the massive activations in the residual streams of ResNet18, ViT Small and GPT. Left: Activations of ResNet18 on CIFAR10, which contains the channels where the top 6 (by magnitude) massive activations reside. Middle: Activations of ViT Small on Imagenette of the CLS token, followed by the activations of the next 6 patch tokens. Right: Activations of GPT on Shakespeare Text for the first 6 tokens in the sequence.
Figure 6: Evolution of top activations, adversarial accuracy and LC in Pythia 1.4B. Massive activations (left) co-occur with region migration, manifested by the decreasing LC (right) and robustness to adversarial perturbations (middle). The perturbations are constructed with AutoAttack detailed in Appendix C.2 .
Figure 7: The activation magnitudes in the hidden representations of the Pythia suite across different model sizes.
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
Figure 8: Output of a SplineCam visualization. The input space partitioning on a 2 D slice of the input space from a 4 layer ReLU MLP. On each region the network is an affine mapping. Colors are randomly selected.
Figure 9: Emergence of the massive activations, region migration and adversarial robustness, in ResNet18 on CIFAR10 (left), ViT Tiny on CIFAR10 (middle) and ViT Small on Imagenette (right). Plots follow the same format as Figure 2 . Adversarial radius of ϵ=0.0025 is chosen in all evaluations.
Figure 10: The activations have different patterns for different classes and activate on the same positions for samples within the same class. This figure represents the activation patterns prior to entering the last layer for the 4 layer residual MLP with width 200 trained on MNIST. Left figure shows that the activation patterns are different from three distinct classes in MNIST. Middle-left , middle-right and right figures show the activation patterns of seven examples from the first, second and third classes outlined on the left plot respectively, showing that the indices where the large activations appear are consistent.
Figure 11: MLP without residual connections on MNIST. Massive activations emerge in the first layer, but gradually fade away with each layer unlike in residual MLP, where they are propagated through the layers via the residual stream.
Figure 12: Massive activations in Qwen 2.5 family of pretrained models across different sizes.
Figure 13: Massive activations in Gemma 3 family of pretrained models across different sizes.
Figure 14: SplineCam visualization of the input space partitioning of the last layer of a depth 4 and 200 width residual MLP trained on MNIST as the dominant activations in the input are suppressed from left to right. Left represents the partitioning without any input modifications, serving as a reference, right with the dominant activation set to zero, middle left and middle right with the dominant activation set to 66% and 33% of its original value respectively.
We investigate the origins of massive activations in large language models (LLMs) and identify a specific layer named the Massive Emergence Layer (ME Layer), that is consistently observed across model families, where massive activations first emerge and subsequently propagate to deeper layers through residual connections. We show that, within the ME Layer both the RMSNorm and the FFN parameters jointly contribute to the emergence of massive activations. Once formed, the massive activation token representation remains largely invariant across layers, reducing the diversity of hidden representations passed to the attention module. Motivated by this limitation, we propose a simple and effective method to reduce the rigidity of the massive activation token. Our approach consistently improves LLM performance across multiple tasks, including instruction following and math reasoning, in both training free and fine tuning settings. Moreover, we show that our method mitigates attention sinks by selectively weakening their influence, elucidating their origin at the hidden state level and shedding new light on principled mitigation strategies.
Zeru Shi, Zhenting Wang, Fan Yang +2
Rutgers University · Wake Forest University · Meta AI
Activation steering has become a popular training-free method to control LLMs' behavior by injecting precomputed direction vectors into the model's residual stream at inference time. Yet, its robustness to realistic input variation remains under-explored. We present the first systematic evaluation of activation steering robustness under adversarial text perturbations on the inputs, covering four extraction methods, three attack strategies, six personas from the Anthropic Model-Written Evaluations dataset, and five models ranging from 1.5B to 30B parameters. Attacks succeed broadly across all settings: directional robustness drops by up to 64%, post-attack confidence collapses near or below 0.25 across all methods and models, and steering strength degrades on nearly every steerable input. Layer selection is equally fragile, with the optimal layer identified by an automated method on clean inputs shifting by up to 17 positions under perturbation, a failure that compounds the vector-level breakdown. Extracting vectors from adversarially perturbed inputs partially recovers steerability for PCA and MD on mid-to-large models, but they consistently fail to locate the improved optimal layer, limiting the practical benefit of this mitigation. Together, these findings reveal that the brittleness of activation steering is structural rather than method-specific, and that current layer selection strategies are not robust enough for real-world deployment. Our code is available at github.com/kien206/steering-adv-robustness.
Massive activations, a phenomenon in which a small number of hidden channels exhibit exceptionally large magnitudes, are pervasive in large language models (LLMs). However, the mechanism by which a token develops massive activations as it propagates through a pretrained LLM remains poorly understood. In this paper, we find that the emergence of massive activations is controlled by a single channel in the input embedding to a spike feed-forward network (FFN). The position of this channel is fixed for a particular LLM. We name this channel the massive activation gating channel (MAGC). When the value of the MAGC is sufficiently large (or small, depending on the LLM), the output of the spike FFN exhibits massive activations. Examining six LLMs across four model families and different model sizes, we verify the existence and effect of MAGC. We further provide a theoretical explanation of the mechanism by which MAGC induces massive activations. When the value of MAGC is sufficiently large (or small), the output of a spike FFN asymptotically reduces to a quadratic form that mixes a few columns of the down-projection matrix of the FFN. Since these columns exhibit the shape of massive activations, the output therefore exhibits massive activations.