English

Massive Activations in Large Language Models

Computation and Language 2024-08-15 v2 Machine Learning

Abstract

We observe an empirical phenomenon in Large Language Models (LLMs) -- very few activations exhibit significantly larger values than others (e.g., 100,000 times larger). We call them massive activations. First, we demonstrate the widespread existence of massive activations across various LLMs and characterize their locations. Second, we find their values largely stay constant regardless of the input, and they function as indispensable bias terms in LLMs. Third, these massive activations lead to the concentration of attention probabilities to their corresponding tokens, and further, implicit bias terms in the self-attention output. Last, we also study massive activations in Vision Transformers. Code is available at https://github.com/locuslab/massive-activations.

Keywords

Cite

@article{arxiv.2402.17762,
  title  = {Massive Activations in Large Language Models},
  author = {Mingjie Sun and Xinlei Chen and J. Zico Kolter and Zhuang Liu},
  journal= {arXiv preprint arXiv:2402.17762},
  year   = {2024}
}

Comments

First Conference on Language Modeling (COLM), 2024. Website at https://eric-mingjie.github.io/massive-activations/index.html

R2 v1 2026-06-28T15:02:21.615Z