Logit-Contribution Scoring Identifies Non-Literal Retrieval Heads
Aryo Pradipta Gema, Beatrice Alex, Pasquale Minervini
Mech Interp @ ICML 2026
TL;DR. We propose Logit-Contribution Scoring (LOCOS) which scores attention heads by projecting what they write at each source position onto the answer-token unembedding direction.
Abstract. On long-context retrieval tasks where the relevant span shares no words with the question, a model must synthesize the answer from the span’s meaning rather than copy it; we study which attention heads carry out this synthesis in the single-needle setting. Yet existing detectors miss these heads: they reward heads whose attended token matches the generated token, capturing where a head reads but not what it writes through its output-value (OV) circuit, which carries non-literal retrieval. We introduce Logit-Contribution Scoring (LOCOS), a write-aware detector that scores each head by the projection of its OV-circuit output onto the answer-token unembedding direction, contrasting source positions inside the answer-bearing span (the needle) with all other (off-needle) positions in a single forward pass. Across three model families (Qwen3, Gemma-3, OLMo-3.1), mean-ablating the top LOCOS heads on the NoLiMa non-literal retrieval benchmark collapses ROUGE-L at lower head counts than prior attention-based detections; on Qwen3-8B, ablating 50 heads drives ROUGE-L from 0.401 to 0.000 while the strongest baseline still retains 0.292. The selected heads are retrieval-specific: parametric recall and arithmetic reasoning stay at baseline under the same ablation. On Qwen3-8B, the same ablation also drops MuSiQue from 0.55 to 0.08 and BABILong from 0.62 to 0.20, while a random-heads control stays within 0.05 of baseline.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:49 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
Summary:
- LLMs, when presented with long context, generate answers based on the meaning of the relevant context rather than directly copying it,
- which attention heads are responsible for this process is explored in this work
- this is done using a novel method: logit-contribution scoring,
- Ablation experiments are conducted to demonstrate that ablating these heads does degrade downstream performance
Strengths:
- This is an interesting and relevant problem to study,
- This identification of these retrial heads that provide an abstract meaning is interesting and relevant,
- The method presented in novel and has potential uses
Weaknesses:
- There are concerns about the circularity of the method, specifically the circularity and applicability in the wild,
- Scope of the paper being smaller than the claim,
- Context with relation to related work
What I’d like to see during the Author Response:
This is interesting and relevant work. However, the reviewers have raised some very valid concerns which might preclude publication and I would like to see them addressed during the discussion period. Specifically, please address the questions raised by Reviewer WEjX with an emphasis on how this work is different from the prior work listed therein.
Final justification
- Reviewer WEjX (Score 3): This reviewer raised several concerns which were all addressed by the authors. However, their remaining concern is that of applicability: they say that they would have liked a more general interpretation of the result. The authors address this by describing how they provide a component level description of attention heads. Authors demonstrate that looking at only WHERE the attention heads attend to is not sufficient and that other aspects are required I believe this is sufficiently general.
- Reviewer KwfX (Score 4): While they raised their confidence, they did not raise their score. They felt their concerns regarding the scope remained. Specifically, they believe that the experiments do not clearly demonstrate when to use LOCOS.
- Reviewer LVJg (Score 5): Overall, the reviewer felt that their concerns were addressed. However, the explicitly state that this work is not within their expertise.
I believe the rebuttal has substantially clarified several of the reviewer concerns which is why I have updated my scores. The remaining concerns are about the generality and applicability.
Read meta-review
Meta-review
Summary:
- LLMs, when presented with long context, generate answers based on the meaning of the relevant context rather than directly copying it,
- which attention heads are responsible for this process is explored in this work
- this is done using a novel method: logit-contribution scoring,
- Ablation experiments are conducted to demonstrate that ablating these heads does degrade downstream performance
Strengths:
- This is an interesting and relevant problem to study,
- This identification of these retrial heads that provide an abstract meaning is interesting and relevant,
- The method presented in novel and has potential uses
Weaknesses:
- There are concerns about the circularity of the method, specifically the circularity and applicability in the wild,
- Scope of the paper being smaller than the claim,
- Context with relation to related work
What I’d like to see during the Author Response:
This is interesting and relevant work. However, the reviewers have raised some very valid concerns which might preclude publication and I would like to see them addressed during the discussion period. Specifically, please address the questions raised by Reviewer WEjX with an emphasis on how this work is different from the prior work listed therein.
Final justification
- Reviewer WEjX (Score 3): This reviewer raised several concerns which were all addressed by the authors. However, their remaining concern is that of applicability: they say that they would have liked a more general interpretation of the result. The authors address this by describing how they provide a component level description of attention heads. Authors demonstrate that looking at only WHERE the attention heads attend to is not sufficient and that other aspects are required I believe this is sufficiently general.
- Reviewer KwfX (Score 4): While they raised their confidence, they did not raise their score. They felt their concerns regarding the scope remained. Specifically, they believe that the experiments do not clearly demonstrate when to use LOCOS.
- Reviewer LVJg (Score 5): Overall, the reviewer felt that their concerns were addressed. However, the explicitly state that this work is not within their expertise.
I believe the rebuttal has substantially clarified several of the reviewer concerns which is why I have updated my scores. The remaining concerns are about the generality and applicability.
1 comment
- Rating
- 5/6
- Confidence
- 2/5
- Quality
- 4/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 4/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper proposes LOCOS, a method for finding non-literal retrieval heads in long-context LLMs. Unlike methods that only look at attention positions, LOCOS projects each attention head’s OV output onto the unembedding direction of the answer token. It then compares the contributions from needle and off-needle positions. The experiments cover Qwen3, Gemma-3, and OLMo-3.1, and include mean ablation, bottom-k controls, parametric knowledge tasks, literal NIAH, and downstream long-context tasks.
Strengths and weaknesses
The paper has a clear mechanistic idea, tests several model families, and includes useful control experiments. The appendix also explains how LOCOS relates to attention-based scores. Compared with methods that only use attention, the idea is more original. The main weaknesses are that the method depends on the direct-path or linear readout assumption, and most evidence comes from group ablation rather than single-head causal validation. The causal attribution comparison is also limited to a small number of models, and the scoring mainly relies on one non-literal retrieval benchmark.
Questions
- How well does LOCOS generalize to non-literal retrieval formats beyond NoLiMa?
- Can the authors quantify the sensitivity of the off-needle baseline using controlled distractor types?
- If KV-cache compression is one motivation, can the authors include at least a small-scale compression experiment?
Limitations
yes
Final justification
The author response substantively addresses my original concerns. The tuned-lens and causal-attribution analyses reduce the concern that the late-layer concentration is merely an artifact of the direct-path readout. Although the single-head ablation yields a null result, it appropriately narrows the causal interpretation. The paired distractor experiment also directly addresses my concern about the off-needle baseline and shows stable rankings under the tested entity-overlap perturbations. I therefore maintain my current score. Since this topic is not fully within my core area of expertise, I also keep my confidence unchanged.
Formatting concerns
no
4 comments
Rebuttal
Thank you for the careful reading and concrete suggestions.
W1: Dependence on the direct-path or linear readout
LOCOS does use a linear readout. We tested how much the conclusions depend on it in two ways: A tuned-lens variant (Appx. N.4), which replaces the direct projection with a learned per-layer translator, preserves the late-layer concentration of top heads on Gemma-3-27B. A causal-attribution probe (Appx. N.5) also concentrates its top heads in upper layers on Qwen3-8B and Gemma-3-12B.
These checks agree on the layer-level pattern, but not on the exact heads: top-10 overlap between the causal probe and LOCOS is 2/10 and 3/10 (§4.4). This reduces, albeit does not completely remove, the method's dependence on the direct-path or linear-readout assumption.
W2: Group ablation and single-head validation
Following your suggestion, we mean-ablated each of the top-20 LOCOS heads on Qwen3-8B, along with 20 random and 20 bottom-k heads. The result is a null: ablating one top-20 head changes ROUGE-L by 0.002 on average (0.5% of the 0.401 baseline), similar to random (0.000) and bottom-k heads (−0.001). Within the top-20, LOCOS rank does not predict the single-head effect (Spearman , ; correlation is computed only among the already high-scoring top-20 heads, so the range of LOCOS scores is narrow).
Therefore, this result does not support an interpretation in which individual LOCOS heads are load-bearing. What the evidence supports is a head-set claim: ablation damage grows with k, while bottom-k and random ablations stay near baseline. This pattern is consistent with the backup-head and self-repair effects reported by Wang et al. (2023) and McGrath et al. (2023), which imply that single-head ablation can understate causal importance: redundant heads can perform the same function, while other components can increase their contribution after ablation. We will add the single-head result and state the causal claim at the head-set level in the camera-ready.
W3: Causal comparison across models
We agree that broader coverage would strengthen the generality of this result. However, causal attribution is computationally expensive because it requires patching and evaluating each attention head separately. We nevertheless ran it on two independently developed model families (Qwen3-8B and Gemma-3-12B) and found the same upper-layer concentration in both. The tuned-lens analysis additionally requires a pretrained tuned lens, which, among our evaluated models, was available only for Gemma-3-27B at the time of writing. Given these constraints, our results support the scoped conclusion that the pattern is not specific to a single model family (Appx. N.5, "Scope"), although they do not establish universal generality. We will clarify this scope in the paper.
W4 and Q1: Generalization beyond NoLiMa
LOCOS scoring is evaluated on NoLiMa, where the clean single-needle and off-needle structure supports spatial contrast. The current method-level evidence therefore covers this setting.
The transfer experiment tests whether a head set selected on NoLiMa matters on other tasks. MuSiQue and BABILong do not have the same clean needle structure (§4.7; Appx. M gives a BABILong example), but ablating the NoLiMa-selected heads degrades both (Qwen3-8B: 0.55→0.08 on MuSiQue and 0.62→0.20 on BABILong at k=50; §4.7). Across 12 cells, LOCOS is the most damaging ablation in 6, while random ablation stays within 0.05 of baseline in 11. The validation covers NoLiMa, NIAH, MuSiQue, and BABILong qa2 and qa3. These results show that heads selected on NoLiMa also affect performance on other retrieval tasks, even though LOCOS itself is not applied directly to those tasks.
Q2: Sensitivity to off-needle distractors
Thank you for this suggestion! We ran this experiment on all six models, scoring each NoLiMa trial both with and without a distractor. For the ranking and head-set comparisons, we retained trials whose answers passed the ROUGE gate in both conditions and matched each clean run to the corresponding distractor run. Each distractor is one sentence from NoLiMa's released set, which repeats the entity in question but names no character, and is inserted at least 20% of the context away from the needle. Context length is fixed by removing the same number of haystack tokens, so a change in cannot be due to a longer prompt.
These are hard negatives for literal matching because the distractor shares words with the question while the needle does not. For example: question "Which character has been to Helsinki?", needle "Actually, Yuki lives next to the Kiasma museum.", distractor "There was an article about Helsinki in the daily newspaper."
The top-50 heads' changes by at most 0.005, compared with total contributions of 0.19–2.9. Rankings also remain stable: score correlation between the two conditions is 0.91–0.98 (Spearman, all heads), and top-50 Jaccard overlap is 0.92–1.00. Four of the six top-50 comparisons fall within the clean run's resampling variability. Qwen3-32B and OLMo-3.1 fall marginally but still retain 49/50 heads (Jaccard 0.961). The largest change is Qwen3-32B's top-10, where 8/10 heads are shared.
The controlled test supports a specific conclusion: with NoLiMa's entity-overlap distractors, the off-needle baseline changes marginally and the ranking is largely stable when retrieval succeeds. To separate score stability from outright task failure, the paired comparison includes only trials answered correctly in both conditions; the models retain 38–64% as many correct trials with distractors. We did not test character-naming decoys, multiple true positives, or semantically answer-aligned distractors, so sensitivity to those cases remains open.
Q3: KV-cache compression
We appreciate this suggestion and agree that KV-cache compression is a valuable downstream application (we discuss it and its caveats in Appx. K). However, it tests a systems claim beyond this paper’s mechanistic claim that LOCOS identifies head sets whose retrieval contribution is causally important. Establishing a compression benefit requires evaluating quality–efficiency trade-offs across cache budgets, retrieval and non-retrieval tasks, random-eviction controls, and established compression baselines. A small experiment without these controls would not adequately test that claim. We will therefore clarify that compression motivates the broader relevance of head-level localization but is not an empirical contribution of this paper.
Thank you again for the suggestions. If the new analyses and clearer scope address your concerns, we would appreciate it if you would consider raising your score. We are happy to provide further evidence during the discussion.
Citations:
- Wang et al., 2023 — arXiv:2211.00593
- McGrath et al., 2023 — arXiv:2307.15771
- Modarressi et al., 2025 — arXiv:2502.05167
- Fu et al., 2025 — arXiv:2410.19258
- Lin et al., 2025 — arXiv:2508.02401
Dear reviewer LVJg,
Could youplease take a look at the author response and let us know if it addresses your concerns?
AC
I have read the rebuttal. Thank you for the clarifications, which have addressed my questions. I will maintain my score.
Thank you very much for reading our rebuttal and your positive assessment of the work! Since the clarifications have resolved the questions, we hope they may also be helpful when revisiting the confidence score.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes a method for identifying attention heads involved in non-literal retrieval in long-context language models. The key argument here is that attention-based retrieval-head detectors only measure where a head reads, whereas non-literal retrieval also depends on what the head writes through what the authors call the OV circuit. The authors project the OV output of the needle position to the unembedding space and normalize the scores against the off-position output.
Strengths and weaknesses
Strength: This is a very insightful paper and it reveals a certain type of retrieval heads that synthesize answers from context rather than simply copying literal answer tokens. The motivation is clear and well grounded in the roles of QK/OV in reading/writing information. Methodology is clear and easy to follow. The experimental validation is broad and convincing, with extensive ablation that rules out other artifacts and confounding variables.
Weakness: I guess my main concern about LOCOS is under what conditions it can be used as a practical detector for identifying non-literal retrieval attention heads. It's unclear to me, for example, why does Wu/NIAH-scored ablation outperform LOCOS ablation for some models on MuSiQue? Does this indicate that MuSiQue relies more heavily on literal retrieval heads than NoLiMa, or does it suggest limitations of LOCOS on certin type of data (i.e., multihop-qa)? In addition, the spatial contrast method seems only useful when the off position outputs do not contain "hard negatives" or "multiple positives" or "distractors" which the authors also mentioned in the limitation. I'm concerned about the scope and praticality of LOCOS, whether it could be misleading for interpreting the model behaviors under certain circumstances. Other than that I think it's a very solid paper.
Questions
See weaknesses.
Limitations
yes
Final justification
Thanks for the detailed rebuttal and for running the extra analyses. After reading the other reviews and the discussion, I think my view is still somewhere in the middle. I agree that the main idea is interesting and that the added experiments make the paper stronger. At the same time, I also think some of the concerns raised in the discussion still matter, especially around the scope of the claims and what exactly the ablation results let us conclude.
The new distractor experiment is helpful. It is reassuring that the LOCOS rankings stay pretty stable under the tested entity-overlap distractors. I also appreciate that the authors are careful in saying what this result does and does not show.
However, I still feel that my main concern is only partly addressed. The rebuttal says that the MuSiQue results cannot really tell us whether Wu/NIAH does better on some models because MuSiQue relies more on literal retrieval, or because LOCOS is missing some multihop retrieval heads. That uncertainty is basically the issue I was worried about: for more realistic mixed retrieval settings, I am still not fully sure when LOCOS should be the preferred tool.
Overall, I think the rebuttal improves the paper and the planned revisions should make the scope clearer. But I see the response more as clarifying and narrowing the claims than fully resolving my concern about practical applicability. So I will maintain my score. Thanks again.
Formatting concerns
None
6 comments
Rebuttal
Thank you for the careful reading and suggestions about the scope of LOCOS.
W1: When is LOCOS the right detector?
LOCOS and Wu/NIAH measure different aspects of retrieval, so we argue that neither should be expected to produce the largest ablation effect on every downstream task. LOCOS is most useful when the goal is to identify heads that read from a supporting span and write that information toward the answer when the span and answer do not overlap literally. Wu/NIAH instead identifies heads through literal token matching. On tasks that may use both forms of retrieval, the two detectors are complementary.
This distinction is consistent with the downstream results. Wu/NIAH ablation is more damaging on MuSiQue for Gemma-3-12B, Gemma-3-27B, and OLMo-3.1-32B. On BABILong, however, Wu/NIAH ablation slightly raises accuracy on three models, while LOCOS ablation reduces accuracy on all six. These ablations show that the selected head sets have different effects across tasks, but they cannot causally determine whether the MuSiQue result reflects greater reliance on literal retrieval or LOCOS missing some multihop heads. Therefore, we will not present either explanation as established.
In practical terms, LOCOS requires a small labelled probe set with known answers and supporting spans. It uses that set to identify a fixed group of heads, which can then be tested on unlabelled tasks, as in our MuSiQue and BABILong experiments. Thus, LOCOS is a targeted diagnostic for answer-aligned retrieval from known evidence, not a universal detector for every retrieval process in a mixed downstream task.
W2: Hard negatives, multiple positives, and distractors
Thank you for pointing this out! We added an experiment with distractors that overlap with the question and found that the LOCOS ranking remains stable.
On all six models, we scored each NoLiMa trial both with and without one of NoLiMa's released distractors (Modarressi et al., 2025). Each distractor repeats the entity in the question but names no character, making it a hard negative for literal matching. For example: question "Which character has been to Helsinki?", needle "Actually, Yuki lives next to the Kiasma museum.", distractor "There was an article about Helsinki in the daily newspaper." The distractor is inserted at least 20% of the context away from the needle, and context length is held fixed by removing the same number of haystack tokens.
For the ranking comparison, we matched each clean run to its corresponding distractor run and retained trials whose answers passed the ROUGE gate in both conditions. This ensures that any change is due to the distractor rather than a longer context or a different set of trials.
We found that the top-50 heads' changes by at most 0.005, compared with total contributions of 0.19–2.9. The all-head score correlation is 0.91–0.98 (Spearman), and the top-50 Jaccard overlap is 0.92–1.00. Four of six comparisons fall within the clean run's resampling variability. Qwen3-32B and OLMo-3.1 fall below it but still retain 49/50 heads. Even the largest change, for Qwen3-32B's top-10, retains 8/10 heads.
This establishes that the tested entity-overlap distractors change the off-needle baseline only slightly and leave the selected head set largely unchanged when retrieval succeeds. Thus, off-needle text does not make LOCOS misleading simply because it repeats the entity in the question. Because LOCOS is scored at correct answer steps, this comparison includes only trials answered correctly in both conditions; the models retain 38–64% as many correct trials with distractors. The result establishes stability of the detector on successful trials, not robustness of model accuracy to distractors.
Regarding the "multiple positives in off-needle position" idea: a known positive should not be treated as off-needle in a diagnostic dataset like NoLiMa. It should be included in the on-needle region, or at least excluded from the negative baseline. Our current experiments use one positive span, so we have not evaluated a multi-span version of the spatial contrast.
Thank you again. If these results and clarifications address your concerns, we would be grateful if you would consider raising your score.
Citations:
- Modarressi et al., 2025 — arXiv:2502.05167
Dear reviewer KwfX,
Could you please take a look at the author response and let us know if it addresses your concerns?
AC
Thank you for the rebuttal. I changed the confidence to 4 and maintained my score. Please see the final Justification.
- Rating
- 3/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 1/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The authors apply a new method, logit-contribution scoring, to find attention heads responsible for copying abstractive information from context for non-literal retrieval tasks. They score heads using the OV circuit's alignment with the desired answer token, comparing positions that contain the answer against positions that do not. Ablating the top-k heads found using this method leads to degraded performance for benchmarks requiring abstractive long-context retrieval.
Strengths and weaknesses
Strengths:
- The logit-contribution scoring approach for heads makes sense; it is an interesting decision to do it on the OV side for each token in the context, rather than on summed head outputs.
- In general, non-literal retrieval is an important and interesting problem for mechanistic interpretability, that seems to cover a broad range of settings we care about.
Weaknesses:
- Although the authors provide an experiment in 4.3 that attempts to show otherwise, the main method is still circular. The experiment in 4.3 would be valid if the absolute magnitude of mean scores for the bottom-k heads was comparable to the magnitude of the top-k heads; however, looking at Figure 9, these heads (while negative) do not promote the desired output token as strongly as the positive heads. This means that it is an unfair comparison, and does not resolve the issue of circularity.
- The analysis starts and ends with identifying a set of heads by searching for heads that output the answer we want. I would be okay with this circularity if deeper analysis was conducted into what these heads do in non-needle-in-a-haystack contexts: for example, what are these heads actually doing for MuSiQue and BABILong? In other words, the circularity from above would have been okay if the rest of the paper "triangulated" these findings with other approaches.
- In terms of framing, the paper is mostly concerned with a specific non-literal needle-in-a-haystack task, but the abstract and introduction are written in a way that suggests the paper is about non-literal retrieval in a more general sense. This makes the paper's claims seem more broad than what their findings actually show.
- Other writing choices are odd/confusing, like referring to "off-needle" positions before explaining that the task is needle-in-a-haystack, or making an unnecessary distinction between "spatial" and "temporal" contrast when both refer to different time steps (line 102).
Questions
- This set of papers (from the same group) all discover and analyze types of attention heads that could be viewed as heads that retrieve non-literal information from the context: Todd et al. (2024), Feucht et al. (2025), Sen Sharma et al. (2026). How does your setting compare to induction or other types of in-context tasks?
- Did you look at attention patterns for these retrieval heads within the needle attention window? I would be curious to see if there are any patterns in where these heads typically attend to retrieve summarized information.
Limitations
Yes
Final justification
I thank the authors for the thorough response and writing adjustments, and review of prior work. Unfortunately, I maintain my score, as I think that this contribution needs to provide more general insight to be useful to the community (as I articulated in my second "Weakness" point). Even if the way that these attention heads were found is not circular, it don't think that it is sufficient for a NeurIPS-level paper to report a list of attention heads responsible for one specific task, unless further work is done to show what these particular heads might teach us about non-literal retrieval more broadly. Thus, I will maintain my original score.
Formatting concerns
None
4 comments
Rebuttal
Thank you for the careful review. We address the circularity and downstream evidence first, followed by the framing and related-work questions.
W1 and W2: Circularity
We agree with the concern: ablating heads selected for writing the answer token does not, on its own, establish that those heads implement (non-literal) retrieval. To check whether LOCOS is finding more than generic answer-writing heads, we use three comparisons. Two were already in the submission.
-
Transfer (§4.7). We select heads on NoLiMa by projecting onto its answer tokens, then ablate the same fixed set on tasks with different answers. Across the 12 model–benchmark cells, LOCOS is the most damaging ablation in 6 and drops accuracy by ≥0.10 in 8; random heads ablation stays within 0.05 accuracy points of baseline in 11.
-
Retrieval specificity (§4.5). The same ablation leaves parametric recall (city–country associations and PopQA) and arithmetic at baseline, although these tasks also require writing an answer token. LOCOS has the highest Dissociation Score peak in every configuration. This suggests that the selected heads are specific to (non-literal) retrieval rather than generic answer writers.
-
OV isolation (new result). After your comment, we added another analysis with the same spatial-contrast aggregation but replace the OV projection with plain attention weight. The ablations differ at k=50 (ROUGE-L 0.000 vs. 0.148 on Qwen3-8B; 0.077 vs. 0.346 on Qwen3-32B). Attention-only is competitive on average and is stronger on Gemma-3-27B at large k, but the OV score is more consistent across the six models. This indicates that the OV projection adds information beyond the aggregation procedure itself.
You are also right that the bottom-k control is not magnitude-matched. Figure 9 shows the net contrast, not the total answer-logit contribution . By the latter measure, the top-50 contribution is 4.1×–16.3× larger than the bottom-50 contribution across the six models (2.33 vs. 0.20 on Qwen3-8B). We appreciate you pointing this out and will remove the magnitude-control claim in the camera-ready. The bottom-k result is consistent with the other evidence, but it cannot separate source from magnitude on its own.
Together, these comparisons triangulate the findings with held-out evidence not used to define the score. LOCOS remains answer-conditioned; the comparisons test effects beyond writing the NoLiMa answer.
W2: Evidence on MuSiQue and BABILong
The downstream ablations test whether a head set identified on NoLiMa remains behaviorally important when the task structure and answer tokens change (§4.7). The set is fixed before evaluation, yet its ablation reduces Qwen3-8B accuracy from 0.55 to 0.08 on MuSiQue and from 0.62 to 0.20 on BABILong (§4.7). LOCOS ablation also reduces BABILong accuracy on all six models, whereas Wu/NIAH ablation slightly increases it on three. This provides evidence beyond the criterion used to select the heads.
We agree that analyzing "what these heads actually do" within MuSiQue and BABILong would provide a deeper mechanistic account. However, that is a stronger question than the transfer experiment is intended to answer. Both downstream tasks involve multiple supporting facts and lack NoLiMa's clean single-needle/off-needle decomposition (Appx. M gives a BABILong example), so answering it would require a separate, task-specific mechanistic analysis. Our claim is therefore limited to behavioral transfer of the fixed head set. Together with the retrieval-specificity and OV-isolation controls above, this helps "triangulate" the findings as requested.
W3: Scope of the claims
We agree. The abstract and introduction currently make a broader claim than the experiments support, and we will narrow both. We will replace the abstract opening with:
"On long-context retrieval tasks where the relevant span shares no words with the question, a model must synthesize the answer from the span's meaning rather than copy it; we study which attention heads carry out this synthesis in the single-needle setting."
The introduction will also state:
"Our probing evidence comes from one non-literal format, NoLiMa's needle-in-a-haystack. Claims beyond it rest on the transfer experiments, which we report as the measured extent of generality."
W4: Writing
We agree that the terminology appears too early. We will define needle and off-needle at first use and clarify that spatial contrast compares positions in one forward pass, whereas temporal contrast compares generation steps.
Q1: Relation to induction, function-vector, concept, and filter heads
Thank you for pointing us to these papers. They are closely related, and we will discuss them more carefully in the camera-ready.
Feucht et al. (2025) is the closest prior work: both Feucht et al. (2025) and LOCOS are designed to identify heads whose outputs carry semantic information, beyond syntactic similarity. We do not assume that the mechanisms or head sets are disjoint. The clearest differences are the probe task and the quantity used to rank heads.
| Work | Probe used to find heads | How heads are identified | What the analysis establishes |
|---|---|---|---|
| Olsson et al., 2022 | repeated-prefix text | prefix-matching attention score | token induction and copying |
| Todd et al., 2024 | few-shot ICL demonstrations | causal patching of head outputs | heads carrying a reusable task representation |
| Feucht et al., 2025 | a repeated multi-token concept | output patching; change in the probability of a later token of that concept | heads carrying lexical concept information |
| Sen Sharma et al., 2026 | list-filtering tasks | query-state patching + sparse causal mask | heads carrying a portable filtering predicate |
| LOCOS | long-context QA with a labelled evidence span | per-position OV contribution to the answer, contrasted inside vs. outside that span | heads whose answer-supporting contribution comes from the evidence span |
Feucht et al.'s concept-copying score uses clean and corrupted repeated-concept prompts. It patches one head's output and measures whether this raises the probability of a later token of the same multi-token concept; the paper then shows that these heads also mediate translation and other forms of fuzzy copying. LOCOS instead starts from a long-context QA prompt and asks how much of each head's support for the answer comes from the labelled evidence span rather than the rest of the context. It requires neither a repeated concept nor a clean/corrupt prompt and scores all heads in one forward pass. Feucht et al.'s per-head patching belongs to the same broad intervention family as our causal-attribution control (Appx. N.5), which requires one additional forward pass per head per trial and is roughly two orders of magnitude more expensive than one LOCOS pass in our setting. Thus, LOCOS is not distinguished merely by "meaning rather than tokens." Feucht et al. identify heads through continuation of a repeated lexical concept; LOCOS provides a source-specific head ranking for answer generation in long-context retrieval. Some heads may support both behaviors.
Todd et al. ask whether head outputs carry a reusable representation of an ICL task and combine the selected outputs into a function vector that can trigger the task elsewhere. Sen Sharma et al. ask whether query states encode a filtering predicate that can be reapplied to new lists. LOCOS neither extracts a reusable task vector nor localizes a query-side selection rule: the output of LOCOS is a ranking of heads by how much answer support their OV outputs draw from the evidence span.
Our only empirical head-set comparison is with the Wu/NIAH baseline (§4.2). We now measured its top-50 overlap with the LOCOS set across all six models: 24–52%. On Qwen3-8B, ablating the token-matching set leaves NoLiMa near baseline (0.337 when scored on NoLiMa and 0.292 when scored on NIAH, versus 0.401 before ablation; LOCOS gives 0.000 at k=50). This distinguishes LOCOS from literal token-matching detectors.
Q2: Attention within the needle window
Thank you for suggesting this analysis. Our completed analysis is at the span level: we measure each head's attention on the needle minus its attention on an equally long off-needle span (0 means no preference):
| attn(needle) − attn(off), k=50 | Q3-8B | Q3-14B | Q3-32B | G3-12B | G3-27B | OLMo |
|---|---|---|---|---|---|---|
| LOCOS top-50 | 0.21 | 0.21 | 0.19 | 0.10 | 0.17 | 0.21 |
| LOCOS bottom-50 | 0.10 | 0.14 | 0.16 | 0.05 | 0.08 | 0.08 |
| Wu/NIAH top-50 | 0.22 | 0.33 | 0.17 | −0.01 | −0.01 | 0.24 |
| random-50 | 0.03 | 0.01 | 0.00 | 0.00 | 0.01 | 0.00 |
Across all six models, both the LOCOS top-50 and bottom-50 attend to the needle more than random heads do. Thus, attending to the needle is not enough to rank highly under LOCOS. A head ranks highly when its attention to the needle is paired with a stronger answer-aligned write from the needle than from the off-needle context.
Wu/NIAH and LOCOS share only 24–52% of their top-50 heads. On the Qwen3 models and OLMo, the Wu heads rejected by LOCOS read the needle but contribute little toward the answer. The heads kept by both methods combine the read with an answer-aligned write.
These results establish that the top-ranked LOCOS heads do attend to the needle. A token-level map could further describe where within the span they read, but it would not show whether a head writes the attended information toward the answer. Two heads can attend to the same tokens while making very different contributions to the answer. Thus, explaining how these heads "retrieve summarized information" requires both where they attend and what they write.
If these results and revisions address your concerns, we would appreciate it if you would reconsider your score. We are also happy to answer follow-up questions during the discussion.
Dear reviewer WEjX,
Could you please take a look at the author response and let us know if it addresses your concerns. Specifically your concern regarding scope and prior work?
AC
Thank you for the thorough response and writing adjustments, and review of prior work. Unfortunately, I think that this contribution needs to provide more general insight to be useful to the community—to my understanding, the authors essentially found attention heads that are important for a particular type of task, but this does not help to shed light on how models process/understand non-literal retrieval more broadly. This is more what I meant by circularity, rather than the method by which attention heads themselves are isolated. Thus, I will maintain my score.
Thank you for clarifying what you mean by circularity. We understand your remaining concern as asking how broad a mechanistic account must be to count as useful. Our experiments provide a component-level account of attention heads in non-literal retrieval through three results:
-
Reading and writing are distinct. Attending to the evidence does not by itself determine whether a head writes answer-supporting information. This distinction is formalized through the QK and OV circuits in §§2–3 and tested by the attention-pattern and attention-only controls reported in our W1/W2 and Q2 responses.
-
The function is retrieval-specific and distributed. Set ablation damages contextual retrieval while leaving parametric recall and arithmetic intact (§4.5), whereas the single-head follow-up reported during rebuttal is near-null.
-
The result transfers beyond the selection task. The fixed NoLiMa-selected head set affects MuSiQue and BABILong (§4.7), whose answers were not used for selection.
Together, these findings support a component-level conclusion: in the evaluated models, non-literal retrieval relies on distributed, retrieval-specific head sets whose function cannot be inferred from attention location alone. Our evidence isolates the attention-head contribution to this process. However, we agree that tracing behaviors (such as semantic parsing and multi-step composition) end-to-end remains a broader (and task-specific) question.
To align the presentation with the evidence we have, our rebuttal provides narrower wording for the abstract and introduction and clarifies in Q1 how LOCOS differs from Todd et al., Feucht et al., and Sen Sharma et al. We hope this clarifies both the intended scope and why, within that scope, the evidence goes beyond circularly identifying task-important heads.
Thank you again for the constructive discussion!
Comments on the paper
1 comment
Reviewers: Please respond to author response
Dear reviewers,
Could you please take a look at the response posted by the authors and respond with: a) does it address your concerns, b) if not what concerns remain and what can the authors do to address them
AC
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Global summary of the discussion
Thank you for facilitating the discussion and encouraging reviewer engagement. As we enter the final hours of the discussion phase, we hope the summary below helps tabulate the discussion:
Discussion status
What the evidence now supports
Remaining disagreement
Overall position
Taken together, the discussion supports a scoped component-level conclusion: distributed, retrieval-specific head sets cannot be characterized from attention location alone. The remaining disagreements (WEjX's request for a broader mechanistic account and KwfX's concern about practical detector choice) are about the contribution's breadth and reach, rather than the validity of this scoped conclusion.