TL;DR
When you ask a Large Language Model (LLM) to cite its sources, it often hallucinates references because generating text and citing evidence are tangled together in the same output stream. This paper discovers a tiny subset of specialized attention heads—dubbed Evidence Heads—that naturally track supporting documents behind the scenes. By reading directly from these heads, the authors achieve state-of-the-art source attribution without any extra model training.
What Problem Does This Paper Address?
In high-stakes tasks like Retrieval-Augmented Generation (RAG), getting the right answer isn't enough; the model must faithfully point to the exact retrieved documents that back up each claim.
Currently, we treat citation as a text-generation problem. We either prompt the LLM to spit out bracketed numbers like [1] alongside its answer, or we spend massive compute fine-tuning it to do so. Both approaches have a fundamental flaw: autoregressive self-citation doesn't guarantee faithfulness. Just because a model writes [1] at the end of a sentence doesn't mean Document 1 actually informed its internal reasoning, leading to missing or hallucinated citations. The authors ask a refreshing mechanistic question: instead of forcing models to write citations, can we just read who they are "looking at" directly from their internal attention mechanisms?
Methods
Raw transformer attention is famously noisy, so averaging across all attention heads won't tell you which document supports which sentence. Instead, the authors build a three-step, training-free pipeline:
- Finding the "Evidence Heads": To separate signal from noise, the authors corrupt supporting documents by swapping key entities with unrelated, length-matched entities. They pass both clean and corrupted contexts into the model and measure how much each attention head's distribution shifts using Kullback–Leibler (KL) divergence. Only a tiny fraction of heads react strongly to broken evidence. They select the top 1% most sensitive heads per model and call them Evidence Heads.
- Max-Pooling Token Signals: Because a sentence is usually backed by a few specific facts rather than an entire document, token-to-token attention shows up as sharp, localized spikes. To capture these spikes without diluting them in background noise, the authors use max pooling (taking the maximum attention weight between tokens in generated sentence $s_i$ and candidate document $d_j$), averaged across the Evidence Heads.
- Adaptive Thresholding: Because one sentence might need three citations while another needs zero, fixed Top-$k$ cutoffs fail. The authors introduce two statistical thresholding strategies based on mean ($\mu$) and standard deviation ($\sigma$) of attention scores: Global attribution (one threshold across the whole answer, favoring precision) and Local attribution (a tailored threshold per sentence, favoring recall).
Datasets
No new datasets are introduced, keeping the evaluation grounded in standard benchmarks:
- Head Identification: HotpotQA is used once per model (Llama-3.1-8B-Instruct, Mistral-7B-Instruct-v0.3, and Qwen-2.5-7B-Instruct) to locate the Evidence Heads, which are then kept fixed across all downstream tests.
- Evaluation: Six single-hop and multi-hop QA datasets—ASQA, ELI5, 2WikiMultiHopQA, Natural Questions (NQ), PopQA, and TriviaQA—evaluated via the ALCE benchmark's AutoAIS metric (which uses a Natural Language Inference model to verify if cited documents logically entail the generated sentences).
Key Insights and Ideas
- Attribution lives in the middle layers: Layer-wise ablations show that attribution signals peak around layers 15–25, aligning with broader interpretability research showing that middle transformer layers handle semantic integration.
- Evidence Heads are causal, not just correlational: Zeroing out Evidence Heads causes a steep drop in citation F1 scores compared to ablating random heads. Conversely, when feeding a model corrupted documents, "patching" in clean Evidence Head activations substantially rescues attribution performance.
- It's not a "citation-reading" trick: What if Evidence Heads just look at the
[1]token the model already generated? When the authors stripped citation markers out of answers—or didn't even prompt the model to cite sources at all—Evidence Heads still accurately recovered the supporting documents (in fact, removing markers slightly improved F1 scores). - Spikes beat averages: Max-pooled Evidence Head scores correlate strongly with external Natural Language Inference (NLI) entailment probabilities, whereas mean-pooling washes out the signal.
Key Results
Across all three 7B–8B model families and six datasets, this lightweight, training-free method outperforms both prompting baselines (Vanilla, Summary, Snippet) and heavier methods involving counterfactual simulation (MIRAGE) or instruction-tuned modules ($\text{C}^2$-Cite):
- Llama-3.1-8B-Instruct: Achieves 58.24 overall F1 (local), beating Vanilla prompting (54.41) and $\text{C}^2$-Cite (54.87).
- Qwen-2.5-7B-Instruct: Reaches 55.05 overall F1 (local), over 6 points higher than Vanilla (48.11) and $\text{C}^2$-Cite (48.68).
- Mistral-7B-Instruct-v0.3: Delivers a massive jump from 31.38 (Vanilla) and 44.72 ($\text{C}^2$-Cite) up to 53.72 overall F1, rescuing a model that otherwise struggles with prompt-based formatting.
Limitations and Future Work
While the main text does not include a dedicated limitations section (likely tucked into the appendix), two boundaries stand out from the experiments:
- Prompt sensitivity: While Evidence Heads still work without an explicit citation prompt, omitting citation instructions drops overall F1 on Qwen-2.5-7B from 55.05 to 50.41, showing that explicit grounding instructions still help sharpen internal attention signals.
- Hyperparameter bounds: Ablations show the thresholding scalar $\alpha$ is stable within $[0, 1]$, but performance degrades rapidly if pushed past $1.0$.
Looking forward, the authors suggest their work opens a path toward leveraging internal model mechanics directly for more transparent, controllable, and faithful multi-document reasoning.
Summary updated