mlsanityData to 7 Oct 2026

Logit-Contribution Scoring Identifies Non-Literal Retrieval Heads

arXiv 2607.01002 ↗First posted 1 Jul 2026cs.CL cs.AI cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

In long-context use, large language models frequently synthesize answers from the meaning of a relevant context span rather than literally copy-pasting them. Identifying which attention heads perform this synthesis matters for interpreting long-context model behavior. Yet existing detectors miss these heads by construction: they reward heads whose attended token matches the generated token, a literal-copy criterion that captures where a head reads but not what it writes through its output-value (OV) circuit, the very mechanism that 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 needle and off-needle source 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 BABI-Long from 0.62 to 0.20, while a random-heads control stays within 0.05 of baseline.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 26 of its 34 references that are in the map. First posted on arXiv 1 Jul 2026.

Builds on

26 of 34 references.

References · 26

  1. 2017Attention Is All You Needcited by 59,932
  2. 2022Locating and Editing Factual Associations in GPTcited by 2,609
  3. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  4. 2025Gemma 3 Technical Reportcited by 1,686
  5. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
  6. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,130
  7. 2022When Not to Trust Language Models: Investigating Effectiveness of Parametric and Non-Parametric Memoriescited by 1,103
  8. 2019Attention is not Explanationcited by 916
  9. 2021MuSiQue: Multihop Questions via Single-hop Question Compositioncited by 893
  10. 2024SnapKV: LLM Knows What You are Looking for Before Generationcited by 848
  11. 2023Progress measures for grokking via mechanistic interpretabilitycited by 822
  12. 2023H2O: Heavy-Hitter Oracle for Efficient Generative Inference of Large Language Modelscited by 805
14 more
  1. 2019Attention is not not Explanationcited by 629
  2. 2023Eliciting Latent Predictions from Transformers with the Tuned Lenscited by 579
  3. 2024PyramidKV: Dynamic KV Cache Compression based on Pyramidal Information Funnelingcited by 420
  4. 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 283
  5. 2024Retrieval Head Mechanistically Explains Long-Context Factualitycited by 219
  6. 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 211
  7. 2020The elephant in the interpretability room: Why use attention as explanation when we have saliency methods?cited by 122
  8. 2025NoLiMa: Long-Context Evaluation Beyond Literal Matchingcited by 120
  9. 2024ReDeEP: Detecting Hallucination in Retrieval-Augmented Generation via Mechanistic Interpretabilitycited by 100
  10. 2024Not All Heads Matter: A Head-Level KV Cache Compression Method with Integrated Retrieval and Reasoningcited by 96
  11. 2023Copy Suppression: Comprehensively Understanding an Attention Headcited by 73
  12. 2024DeCoRe: Decoding by Contrasting Retrieval Heads to Mitigate Hallucinationscited by 23
  13. 2025CompressKV: Semantic Retrieval Heads Know What Tokens are Not Important Before Generationcited by 9
  14. 2026From Interpretability to Performance: Optimizing Retrieval Heads for Long-Context Language Modelscited by 4

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Identifying Crucial Attention Heads for Multilingual Language Models: Retrieval and Retrieval-Transition Heads
  2. 2025Infinite Retrieval: Attention Enhanced LLMs in Long-Context Processing
  3. 2026Language Models Can Control Their Own Attention
  4. 2026Retrieval Heads Meet Vision: Uncovering How VLMs Locate and Extract Visual Information
  5. 2026Attention Degradation, Function Token Anchoring, and the Limits of Attention-Based Intervention in Large Language Models
  6. 2024Found in the Middle: Calibrating Positional Attention Bias Improves Long Context Utilization
  7. 2026Linear Predictability of Attention Heads in Large Language Models
  8. 2026Targeted Retrieval, Compact Representations: How CoT Reasoning Improves Long-Context Counting