Understanding the Importance of Massive Activations through Adversarial Robustness
Tigran Fahradyan, Riccardo Ali, Sergio Calvo-Ordoñez, José Miguel Hernández-Lobato, Pietro Liò, Álvaro Arroyo
Abstract
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.
Create a lesson
Metadata
- Comments
- Includes an appendix. Code available at https://github.com/tigranfah/ma-robustness
Related papers
Breaking the Joint Action Space Dependence in Distributionally Robust Multi-Agent Reinforcement Learning
Shared title terminologycs.LGYue Wang
EPRO: Robust Policy Optimization Through an Imperfect Execution-Policy Predictor
Shared title terminologycs.LGYibo Wang, Changyi Yang, Yuanxin Liu et al.
Gated Concept Adapters: Layer-Wise Concept Bottlenecks for Auditable Text Understanding
Shared title terminologycs.LGNiloofar Ranjbar, Saeedeh Momtazi, Mohammad Mehdi Homayounpoor
Beyond Robust Algorithmic Recourse: Sharing the Burden of Validity through Model Multiplicity
Shared title terminologycs.LGPrakhar Ganesh, Afaf Taïk, Golnoosh Farnadi
Assessing Robustness to Catastrophic Forgetting in Continual Deep Reinforcement Learning for Cyber-Physical Systems
Shared title terminologycs.LGKim N. Nolle, Ivana Dusparic, Rhodri Cusack et al.
The Activity Geometry of Discrete Generative Sampling
Shared title terminologycs.LGXinlong Guo, Jie Zhang, Lingyou Zhou