Lune

ACL Findings2024

Peering into the Mind of Language Models: An Approach for Attribution in Contextual Question Answering

Anirudh Phukan, Shwetha Somasundaram, Apoorv Saxena, Koustava Goswami, Balaji Vasan Srinivasan

Abstract

With the enhancement in the field of generative artificial intelligence (AI), contextual question answering has become extremely relevant. Attributing model generations to the input source document is essential to ensure trustworthiness and reliability. We observe that when large language models (LLMs) are used for contextual question answering, the output answer often consists of text copied verbatim from the input prompt which is linked together with "glue text" generated by the LLM. Motivated by this, we propose that LLMs have an inherent awareness from where the text was copied, likely captured in the hidden states of the LLM. We introduce a novel method for attribution in contextual question answering, leveraging the hidden state representations of LLMs. Our approach bypasses the need for extensive model retraining and retrieval model overhead, offering granular attributions and preserving the quality of generated answers. Our experimental results demonstrate that our method performs on par or better than GPT-4 at identifying verbatim copied segments in LLM generations and in attributing these segments to their source. Importantly, our method shows robust performance across various LLM architectures, highlighting its broad applicability. Additionally, we present VERIFIABILITY-GRANULAR 1 , an attribution dataset which has token level annotations for LLM generations in the contextual question answering setup.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • On Synthesizing Data for Context Attribution in Question Answering cites Large Dual Encoders Are Generalizable Retrievers
  • On Synthesizing Data for Context Attribution in Question Answering cites Model Internals-based Answer Attribution for Trustworthy Retrieval-Augmented Generation
  • On Synthesizing Data for Context Attribution in Question Answering cites Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decomposition
  • Attribution, Citation, and Quotation: A Survey of Evidence-based Text Generation with Large Language Models cites Model Internals-based Answer Attribution for Trustworthy Retrieval-Augmented Generation
  • Attribution, Citation, and Quotation: A Survey of Evidence-based Text Generation with Large Language Models cites Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decomposition
  • Attribution, Citation, and Quotation: A Survey of Evidence-based Text Generation with Large Language Models cites Evaluating Verifiability in Generative Search Engines
  • Model Internals-based Answer Attribution for Trustworthy Retrieval-Augmented Generation cites Evaluating Verifiability in Generative Search Engines
  • Model Internals-based Answer Attribution for Trustworthy Retrieval-Augmented Generation cites Quantifying the Plausibility of Context Reliance in Neural Machine Translation
  • Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decomposition cites Large Dual Encoders Are Generalizable Retrievers
  • Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decomposition cites Retrieving Multimodal Information for Augmented Generation: A Survey
  • Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decomposition cites Evaluating Verifiability in Generative Search Engines
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Attribution, Citation, and Quotation: A Survey of Evidence-based Text Generation with Large Language ModelsTobias Schreieder, Tim Schopf, Michael FärberACL 2026 · 10 citations
  2. Model Internals-based Answer Attribution for Trustworthy Retrieval-Augmented GenerationJirui Qi, Gabriele Sarti, Raquel Fernández, Arianna BisazzaEMNLP 2024 · 6 citations
  3. Hessian-Enhanced Token Attribution (HETA): Interpreting Autoregressive LLMsVishal Pramanik, Maisha Maliha, Nathaniel D. Bastian, Sumit Kumar JhaICLR 2026 · 3 citations
  4. On Synthesizing Data for Context Attribution in Question AnsweringGorjan Radevski, Kiril Gashteovski, Shahbaz Syed, Christopher Malon et al.ACL 2025 · 1 citation
  5. Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer DecompositionPritika Ramu, Koustava Goswami, Apoorv Saxena, Balaji Vasan SrinivasanEMNLP 2024 · 1 citation

Builds on5

  1. Document Ranking with a Pretrained Sequence-to-Sequence ModelRodrigo Nogueira, Zhiying Jiang, Ronak Pradeep, Jimmy LinEMNLP Findings 2020 · 469 citations
  2. Large Dual Encoders Are Generalizable RetrieversJianmo Ni, Chen Qu, Jing Lu, Zhuyun Dai et al.EMNLP 2022 · 145 citations
  3. Evaluating Verifiability in Generative Search EnginesNelson F. Liu, Tianyi Zhang, Percy LiangEMNLP Findings 2023 · 143 citations
  4. Retrieving Multimodal Information for Augmented Generation: A SurveyRuochen Zhao, Hailin Chen, Weishi Wang, Fangkai Jiao et al.EMNLP Findings 2023 · 65 citations
  5. Quantifying the Plausibility of Context Reliance in Neural Machine TranslationGabriele Sarti, Grzegorz Chrupala, Malvina Nissim, Arianna BisazzaICLR 2024 · 8 citations

Related papers

  1. Evaluation of Attribution Bias in Generator-Aware Retrieval-Augmented Large Language ModelsAmin Abolghasemi, Leif Azzopardi, Seyyed Hadi Hashemi, Maarten de Rijke et al.ACL Findings 2025 · 2 citations
  2. A³: Automatic Alignment Framework for Attributed Text GenerationYue Wang, Haoke Zhang, Juntao Li, Jinxiong Chang et al.ACL 2025
  3. LongCite: Enabling LLMs to Generate Fine-grained Citations in Long-Context QAJiajie Zhang, Yushi Bai, Xin Lv, Wanjun Gu et al.ACL Findings 2025 · 15 citations
  4. Efficient Data Generation for Source-grounded Information-seeking Dialogs: A Use Case for Meeting TranscriptsLotem Golany, Filippo Galgani, Maya Mamo, Nimrod Parasol et al.EMNLP Findings 2024 · 1 citation
  5. Cite Pretrain: Retrieval-Free Knowledge Attribution for Large Language ModelsYukun Huang, Sanxing Chen, Jian Pei, Manzil Zaheer et al.ICLR 2026 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines