← Latest papers
🤖 machine learning

Logit-Contribution Scoring Identifies Non-Literal Retrieval Heads

This paper introduces Logit-Contribution Scoring (LOCOS), a novel method that identifies non-literal retrieval heads in large language models by measuring their output-value circuit's contribution to answer tokens, demonstrating that ablating these specific heads significantly degrades long-context synthesis performance while preserving other capabilities.

Original authors: Aryo Pradipta Gema, Beatrice Alex, Pasquale Minervini

Published 2026-07-02
📖 4 min read☕ Coffee break read

Original authors: Aryo Pradipta Gema, Beatrice Alex, Pasquale Minervini

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine a large language model (LLM) as a brilliant, overworked librarian who has read the entire internet. When you ask a question, this librarian doesn't just shout out a random fact they memorized; they scan the massive library (the "context") to find the specific book or page that holds the answer.

For a long time, researchers thought they knew exactly how the librarian found these answers. They believed the librarian simply pointed a finger at the exact words in the book that matched the answer and copied them down. This is called literal retrieval.

However, the authors of this paper discovered that the librarian is actually much smarter. Often, the answer isn't a direct copy of the words in the book. Instead, the librarian reads a sentence, understands its meaning, and then writes a new answer based on that understanding. This is non-literal retrieval.

The Problem: The Wrong Detective

The paper argues that previous methods for figuring out which part of the librarian's brain (called an "attention head") does the work were like a detective who only looks at where the librarian pointed their finger, but not what they wrote down.

  • The Old Way (Attention-Based): Imagine a detective watching the librarian. If the librarian points at the words "Eiffel Tower" to answer the question "Who lives in Paris?", the detective says, "Great! That head is doing the work."
  • The Reality: Sometimes, the librarian points at "Eiffel Tower" but writes down "Yuki" (because the text said Yuki lives near the Eiffel Tower). The old detective misses this because the finger-pointing (attention) and the writing (the answer) don't match. The old method thinks the librarian is just copying, not understanding.

The Solution: LOCOS (The "Write-Aware" Detective)

The authors introduce a new method called LOCOS (Logit-Contribution Scoring). Think of LOCOS as a detective who watches both the pointing and the writing.

LOCOS asks: "Did this specific part of the brain actually help write the correct answer?"

  • It looks at the "Output-Value" (OV) circuit. This is the mechanism that takes the information the librarian read and transforms it into the final answer.
  • If a head points at "Eiffel Tower" but its "writing machine" (OV circuit) successfully pushes the word "Yuki" onto the answer sheet, LOCOS gives that head a high score.
  • If a head points at "Eiffel Tower" but its writing machine pushes a random word or nothing at all, LOCOS ignores it, even if the pointing was strong.

The Experiment: The "Silence" Test

To prove their theory, the researchers ran a "silence test" on several different AI models (like Qwen, Gemma, and OLMo).

  1. The Setup: They took the top 50 heads identified by LOCOS and "turned them off" (ablated them) in the AI's brain.
  2. The Result:
    • When they turned off the LOCOS heads, the AI's ability to answer non-literal questions crashed. On one test, the score went from a healthy 0.40 down to 0.00 (complete failure).
    • When they turned off the heads identified by the old methods, the AI still performed reasonably well (scoring around 0.29).
    • The Analogy: It's like trying to drive a car. If you remove the engine (LOCOS heads), the car stops dead. If you remove the side mirrors (old method heads), the car can still drive, just a bit clumsier.

Why This Matters (According to the Paper)

The paper claims that LOCOS found a hidden group of "retrieval heads" that the old methods completely missed. These are the specific parts of the AI that do the heavy lifting of synthesizing meaning rather than just copying text.

  • Specificity: When they turned off these heads, the AI stopped answering context questions, but it could still do math and recall general facts (like "Paris is in France"). This proves these heads are special to retrieving information from the text, not just general intelligence.
  • The "Non-Literal" Gap: The old methods only found the heads that copy-paste. LOCOS found the heads that actually think about the text to construct a new answer.

Summary

In short, this paper says: "We found a better way to spot the parts of an AI that actually understand and synthesize information from a long text. The old way only saw the parts that copy-paste. By turning off the new 'smart' parts we found, the AI completely loses its ability to answer questions based on context, proving these parts are the real engines of long-context understanding."

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →