Drowning
in Documents.
It's the math.
Researchers set out to understand why in-context retrieval collapses as document count grows. The common answer was "context length." The actual answer was simpler and more actionable: a mathematical failure in how attention normalizes probability across many documents, a problem they named attention dilution.
First surfaced in Tandemly Briefing — 2026-08-01.
Accuracy falls as
documents pile up.
Long-context language models can process a million tokens. The assumption was that larger windows meant better retrieval. The empirical result was the opposite.
In-context retrieval is exactly what it sounds like: instead of indexing documents in a separate vector store and querying it, you put all the documents directly into the model's context window and let the model find what it needs by reading. It is conceptually clean, avoids the complexity of external retrieval pipelines, and has become more practical as context windows have expanded to hundreds of thousands or millions of tokens.
The problem is that it does not work reliably at scale. Measured accuracy on retrieval tasks falls as the number of documents in the context increases. Researchers and engineers who have observed this pattern have often attributed it to "context length limitations," as if the model simply runs out of useful memory past some threshold. This explanation is intuitive but vague. It does not tell you what is actually breaking, and it does not point toward a fix.
The more troubling observation is that the failure appears to happen even when the gold document is clearly within the model's context length and even when the model would correctly retrieve it in a shorter context. Something specific goes wrong as the document pool grows. The question is what, exactly, and whether it is fixable without changing the model.
Is the failure mode in long-context retrieval a fundamental capacity limit, or is it a specific, diagnosable, and fixable property of how attention normalizes over long sequences? If it is the latter, what is the intervention?
Name the mechanism.
Then fix it.
The researchers built a controlled diagnostic that could separate a capacity failure from a normalization failure. The distinction turns out to matter for which fix you reach for.
The key insight starts with how attention works. When a transformer attends to a sequence, it computes a raw score for each position, then runs those scores through a softmax function. Softmax turns raw scores into a probability distribution that sums to one. The denominator of that distribution grows with every additional position in the context. More tokens means a larger denominator, which means each individual position receives a smaller slice of the total attention budget, regardless of its raw score.
This is attention dilution. A gold document might have the highest raw relevance score in the entire context, but if the context contains a thousand other documents, the softmax math distributes attention across all of them. The gold document's normalized attention weight collapses, not because the model assessed it as less relevant, but because the denominator got bigger. The model is being drowned out by arithmetic, not by confusion.
The researchers confirmed this with a controlled diagnostic: hold the gold document fixed, add distractor documents one at a time, and measure the model's normalized attention weight on the gold document at each step. The result is that normalized weight drops monotonically as distractor count increases, even when the gold document's raw pre-softmax score stays stable. This is the dilution signature, and it separates the failure class from genuine capacity limitations.
With the mechanism named, the team proposed two fixes. First, a length-aware adjusted attention softmax that compensates for denominator growth as the sequence lengthens. Second, document-level sparse attention, which directly limits which document positions attend to each other, preventing irrelevant documents from contributing to the denominator of attention over the gold document.
They also built BlockSearch, a 0.6 billion parameter language model trained specifically for block-level retrieval in long contexts. Rather than trying to patch the dilution problem inside a general-purpose large model, BlockSearch is designed from the ground up to work correctly as document counts scale into the millions. It length-generalizes up to ten times beyond its training context length, meaning a model trained on contexts of a given size can handle contexts ten times larger without retraining.
Insert a gold document into a context. Add distractor documents one at a time. At each step, extract the model's attention weights over the gold document's positions (averaged or summed). If attention mass drops monotonically as distractor count increases, while the gold document's relevance score stays stable, you have attention dilution. The intervention is attention normalization, not a larger model.
The small model beats
the one seven times larger.
The proposed fixes restore accuracy at scale. BlockSearch reaches million-token retrieval at a fraction of the parameter count of competing approaches.
On MS MARCO and Natural Questions, BlockSearch (0.6 billion parameters) outperforms a concurrent retrieval model seven times its size. The performance gap is not marginal. A small model trained with the dilution problem explicitly in scope beats a large model that was not.
This inverts the usual scaling assumption. The authors are not arguing for smaller models in general. They are arguing that the architectural target matters: a model built to handle block-level retrieval correctly at scale, rather than a general-purpose large model that happens to be used for retrieval, can be dramatically more efficient.
BlockSearch generalizes to contexts ten times longer than its training contexts without degradation. This is unusual. Most retrieval models trained on a given context length degrade sharply when deployed at longer lengths. The architecture, shaped around the attention dilution mechanism, produces a model that does not share that failure mode.
The length-aware adjusted softmax and the document-level sparse attention both restore retrieval accuracy as document count scales. This validates the mechanistic diagnosis: if the problem were capacity, fixing the normalization math would not help. The fact that it does confirms that attention dilution is the primary failure mode in this setting, not window size.
This synthesis is based on the arXiv abstract, briefing summary, and published findings. Full benchmark tables, ablation details, and implementation specifics appear in the paper at arXiv:2607.01538. The specific accuracy numbers for MS MARCO and NQ are in the paper.
Run the diagnostic
before scaling context.
Attention dilution is separable, measurable, and fixable. That makes it actionable in a way that "context length limitation" is not.
Where to go
from here.
The diagnostic and the fix are both implementable without changing model weights.