A few attention heads account for sparse retrieval misses
Lost in a Few Heads: Diagnosing and Repairing Block Selection in Sparse Attention · arXiv:2611.21917
In plain words
Long-context models sometimes skip parts of a long text to save work. Even when they look at enough parts, they can miss an answer if their selector chooses the wrong parts.
This paper introduces a way to find which attention heads cause those misses, then fixes those heads without retraining. In one tested model, either of two fixes raised accuracy on a multi-item retrieval test from 54.1% to 97.5% at 64K context. The result is for that model and test setting.
The research
A model can spend its limited attention on the wrong passages, so simply allowing it to read more may miss the cause of retrieval errors.
Locating the heads that make those choices changes what a targeted repair can accomplish in the tested models, while leaving the rest of their selection unchanged.
A diagnostic probe finds which sparse-attention heads miss needed text blocks, then guides training-free changes that recover retrieval accuracy in tested models.
The method compares released block choices with exact-mass selection at the same budget, then uses a calibration probe to identify heads whose selection matters to the answer.
On a multi-key retrieval test, targeted fixes raised MiniCPM4.1-8B accuracy from 54.1% to 97.5% at 64K, its native context limit.
Because other heads kept the released selector, this result supports locating and repairing concentrated losses in that setting. A same-count control and a separate conversation-retrieval test provide evidence beyond that model lineage, though results vary by model.
The three repeatedly identified heads come from one model lineage, and the probe needs look-alike competitors in its calibration examples. Results and latency measurements cover the reported models, tasks and serving setups.
What the evidence shows
- The budget can hold the answer
The diagnostic compares RULER’s MK3 test, which asks a model to retrieve several requested items among look-alike passages, under different block choices. For InfLLM-V2-8B at 32K, mean string-match accuracy was 63.1% with the released selector and 95.3% when exact attention mass chose blocks at the same budget, including at generated tokens and in the question window.
The budget could hold the needed blocks; the selector’s ranking was the limiting factor in this setting.
- A few heads carry the loss
The method’s calibration probe identifies where the ranking failure occurs by measuring missed needle attention and each unit’s contribution to the answer as selection moves toward full attention. Across four checkpoints in the MiniCPM4-8B lineage, its fix-gain readout identifies the same three heads.
A blind head can attend to the requested item when its block is selected, but its selector fails to select that block. The result localizes a repeated failure in this lineage; it does not show that every model concentrates losses in three heads.
- Targeted changes recover retrieval
The two fixes target only heads flagged by the probe: one reads every block in those heads, while the other scores blocks from a four-bit key copy and keeps the released budget.
Either fix substantially recovered retrieval accuracy on MiniCPM4.1-8B’s MK3 test at 64K, showing that the diagnosis can guide a targeted repair in this setting while other heads retain their released selection.
- The choice of heads matters
A same-count control on Qwen3-8B tests whether recovery depends on which heads receive full attention. On RULER’s MK3 task, which measures exact-string retrieval of several requested items among look-alike passages, the probe-selected heads reached 97.7% accuracy, compared with 69.4% for the same number of echo-ranked heads.
This supports the value of the probe’s head choices in that setup. On OpenAI MRCR, a long-conversation test requiring retrieval of one look-alike passage, heads chosen on synthetic prompts also recovered part of Qwen3-8B’s loss; this did not hold for Qwen3-14B’s smaller loss.
Deep
- Original paper authors
- Wenhe Zhang, Boxing Chen
- Submitted to arXiv
- License
- arXiv non-exclusive