Retrieval Capacity of Self-Attention Under Competition
Timur Mudarisov, Mikhail Burtsev, Radu State
Key points
From the paper's conclusion- We study this question through self-attention.
Abstract
How many tokens from its context does a language model actually use, and what determines that number? We study this question through self-attention. Without retraining, we retain only the tokens with the highest attention weights at each head, layer, and query, keeping their original weights unchanged. By varying the selected set size and measuring the increase in negative log-likelihood (NLL), we estimate the effective attention set size needed to stay within a chosen loss tolerance. Relatively small selected sets can keep NLL close to the full-attention baseline, although the required size varies across models. Attention-based selection substantially outperforms random selection. Selected sets exhibit geometric structure, although geometric separation alone does not establish that model loss is preserved. Extending context while evaluating the same prediction targets increases the required set size, while its fraction of context decreases over the tested range. Experiments with a fixed supporting fact show that additional background pushes its tokens down the attention ranking and reduces their attention mass. Renormalizing the retained weights can substantially reduce the required set size, showing that it also depends on how selected representations are combined. Conditional theoretical models explain how competition and attention-mass retention can produce growing set sizes without more distinct information to retrieve. These results provide a way to measure effective attention set size in language models and investigate its dependence on context, competition, and aggregation.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Length Is Cheap, Competition Is Not: Attention Predicts Context Rot in RetrievalarXiv · 2026
- When Exact Token Importance Is Not Enough: Limits of Top-K Selection in LLM AttentionarXiv · 2026
- Lost in a Few Heads: Diagnosing and Repairing Block Selection in Sparse AttentionarXiv · 2026
- Attention via Black-Box Vector SearcharXiv · 2026
- State Space Attention: Learning Context-Dependent Memory RetentionarXiv · 2026
- Sparse Attention Is Matrix Approximation, Not Choosing from a Bag of ValuesarXiv · 2026