Retrieval Capacity of Self-Attention Under Competition
Timur Mudarisov, Mikhail Burtsev, Radu State
University of Luxembourg · London Institute for Mathematical Sciences
Published September 29, 2026 · on the feed October 1, 2026 · ▲ 2 · arXiv 2609.37879
The 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.
The Brief
3:03A short podcast summary of the paper. Written and voiced by AI.
Transcript
Retrieval Capacity of Self-Attention Under Competition. By Timur Mudarisov and two others, from the University of Luxembourg and the London Institute for Mathematical Sciences. Published on the twenty-ninth of September. No code repository is linked to it.
A language model is handed a long context. How many of those tokens does it actually use, and what decides that number? The authors answer through self-attention, and their answer has two parts. First, a relatively small set of tokens can keep the model's loss close to what it gets with full attention, though how small varies from one model to another. Second, the size of that set is not fixed by how much there is to retrieve. It grows with competition. When more background crowds the context, the model needs a larger set to stay within the same loss, even when no additional distinct information is there to find.
The measurement works without any retraining. At each head, each layer and each query, only the tokens with the highest attention weights are kept, and their original weights are left unchanged. Varying how many are kept, and watching how much the negative log-likelihood rises, gives an effective attention set size: the number of tokens needed to stay within a chosen loss tolerance.
Several observations follow from that probe. Selecting by attention substantially beats selecting at random. The selected sets show geometric structure, though the authors are careful that geometric separation alone does not establish that the model's loss is preserved. Extending the context while evaluating the same prediction targets raises the required set size, even as its fraction of the context falls over the tested range. With a fixed supporting fact planted in the context, adding background pushes that fact's tokens down the attention ranking and reduces the attention mass they receive. And renormalizing the retained weights can substantially shrink the required set, which shows the number depends not only on which tokens are selected but on how their representations are combined. Conditional theoretical models then explain how competition, together with how much attention mass is retained, can produce growing set sizes without more to retrieve.
The limits are stated plainly in the abstract, and they matter. The falling fraction of context holds over the tested range, not beyond it. The required size differs across models, so no single number is being offered as universal. The geometric structure is reported as an observation, explicitly not as proof that loss is kept. The theoretical models are conditional: they show how competition can produce the growth, under their assumptions, rather than proving that it must. And the whole quantity is defined relative to a loss tolerance the experimenter chooses, so the set size is always a size for a given tolerance.
What the work contributes is less a single answer than an instrument. It turns the question of how much context a model uses into something measurable, then shows that the measured quantity bends with three things: how long the context is, how much irrelevant material competes for attention, and how the retained pieces are added back together. The middle one carries the title's word, competition. A model can need more tokens without having more to find, simply because there is more around the thing it is looking for.
Paper Quest · 7 chapters · about 41 min
Play this paper
Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.
Chapter 1 🧩 · The problem
A long context, and a model that seems to look at all of it. Does it really?
You hand a language model a long context. Every attention head spreads some weight over every token, yet you suspect only a few of those tokens really matter.
The road ahead
- 1 · The problem ~7 min A language model spreads attention over every token in its context, and you want to know how many of those tokens it really uses.
- 2 · What came before ~3 min
- 3 · The key idea ~9 min Keep only each head's top-weighted tokens, see how much the loss rises, and read off the smallest count that stays within a tolerance.
- 4 · Choose your own research ~3 min
- 5 · Build the method ~8 min Rank tokens by attention, keep the top ones with weights unchanged, measure the loss rise, and turn it into one count with a tolerance.
- 6 · The experiment ~6 min You’ll guess: When context is extended while the same prediction targets are evaluated, what happens to the number of tokens needed and its share of the context?
- 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Free, with Google or an email address. Your stars and progress are kept.