CLLGFeb 27, 2024

Massive Activations in Large Language Models

arXiv:2402.17762v2225 citationsh-index: 71Has Code
Originality Synthesis-oriented
AI Analysis

This work reveals a fundamental architectural quirk in LLMs that could affect model interpretability and performance, though it is incremental in nature.

The paper identifies massive activations in Large Language Models—extremely large values that remain constant across inputs and function as bias terms, which concentrate attention probabilities and create implicit biases in self-attention outputs.

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.

Code Implementations6 repos
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes