Abstract
As Large Language Models (LLMs) are increasingly applied to document-based tasks—such as document summarization, question answering, and information extraction—ensuring the trustworthiness and interpretability of these systems has become a critical concern. A central approach to addressing this challenge is attribution, which involves tracing generated outputs back to their source documents. This work proposes two techniques: (1) A zero-shot approach framing attribution as a straightforward textual entailment task, achieving improvements of 0.27% and 2.4% over the best baselines on In-Distribution (ID) and Out-of-Distribution (OOD) sets of AttributionBench, respectively. (2) An exploration of the role of the attention mechanism, where internal signals from flan-t5-small outperform baselines across most layers.
The Challenge of Document Attribution
As LLMs transition into document-based roles like legal analysis or medical summarization, the accuracy of their citations becomes paramount. However, LLMs frequently "hallucinate" references or provide citations that do not logically support their claims. This research addresses the problem of attribution: verifying that a generated statement is logically grounded in a specific source. The authors investigate whether high-quality attribution can be achieved through simple logical prompts or by analyzing a model's internal attention layers.
Methodology
The researchers evaluated two distinct approaches:
- Zero-shot Textual Entailment (TE): Attribution is treated as a binary logic problem. Using the prompt "Does the REFERENCE entail the CLAIM?", the model is forced to provide a "YES" or "NO" answer, leveraging its pre-existing logical reasoning without additional task-specific training.
- Attention-Based Probing: This method hypothesizes that a model's internal attention weights already contain information about which parts of a reference support a claim. Attention weights from
flan-t5-smallwere used to train a simple classifier to predict attribution validity.
Experimental Results
The methods were tested on AttributionBench, covering both In-Distribution (ID) and Out-of-Distribution (OOD) datasets.
Zero-shot Performance
The flan-ul2 (20B) model using the zero-shot TE approach set new performance standards. On In-Distribution datasets, it achieved an average F1 score of 73.8, outperforming both previous baselines and GPT-4 with Chain-of-Thought prompting.
On Out-of-Distribution (OOD) data, the method demonstrated even stronger generalization, reaching an F1 score of 83.43. This suggests that framing attribution as a logical entailment task allows models to learn a generalizable relationship rather than just memorizing benchmark patterns.
Attention Mechanism Insights
The study also revealed that attribution signals are physically present within the model's layers. Even a tiny model like flan-t5-small showed significant potential when its internal attention was probed.
As shown in the layer-wise analysis, the attention weights in early and middle layers (1-3 and 5-7) provided F1 scores that exceeded the zero-shot baseline. Performance only dipped significantly in layer 4 and the final layers (8-11), suggesting that the "understanding" of attribution is most concentrated in the model's initial processing stages.
Conclusion
This research demonstrates that document attribution can be significantly improved through simple logical framing and by tapping into internal model signals. The superior performance of instruction-tuned models like flan-ul2 over larger general-purpose models like GPT-4 highlights the importance of training objectives for specialized logical tasks. Future work will focus on scaling attention-based verification to larger architectures and integrating these signals to prevent hallucinations during generation.
Summary updated