Peering into the Mind of Language Models: An Approach for Attribution in Contextual Question Answering
Not on the map. Why?
Abstract (arXiv)
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, an attribution dataset which has token level annotations for LLM generations in the contextual question answering setup.
Key facts. Cited by 25 papers in the map (data through 14 Oct 2026). Builds on 26 of its 41 references that are in the map. First posted on arXiv 28 May 2024.
Builds on
26 of 41 references.
References · 26
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2017Reading Wikipedia to Answer Open-Domain Questionscited by 777
- 2024Yi: Open Foundation Models by 01.AIcited by 719
- 2019Latent Retrieval for Weakly Supervised Open Domain Question Answeringcited by 695
- 2023Enabling Large Language Models to Generate Text with Citationscited by 595
- 2021Large Dual Encoders Are Generalizable Retrieverscited by 456
- 2020Document Ranking with a Pretrained Sequence-to-Sequence Modelcited by 376
- 2023Evaluating Verifiability in Generative Search Enginescited by 303
14 more
- 2022RARR: Researching and Revising What Language Models Say, Using Language Modelscited by 287
- 2021Measuring Attribution in Natural Language Generation Modelscited by 256
- 2021Truthful AI: Developing and governing AI that does not liecited by 113
- 2018The Fact Extraction and VERification (FEVER) Shared Taskcited by 108
- 2023Retrieving Multimodal Information for Augmented Generation: A Surveycited by 85
- 2023Inseq: An Interpretability Toolkit for Sequence Generation Modelscited by 78
- 2021Evaluating Attribution in Dialogue Systems: The BEGIN Benchmarkcited by 77
- 2023A Survey of Large Language Models Attributioncited by 71
- 2023HAGRID: A Human-LLM Collaborative Dataset for Generative Information-Seeking with Attributioncited by 56
- 2017Towards better understanding of gradient-based attribution methods for Deep Neural Networkscited by 54
- 2023"According to ...": Prompting Language Models Improves Quoting from Pre-Training Datacited by 42
- 2015A Survey on Truth Discoverycited by 36
- 2023Retrieving Supporting Evidence for Generative Question Answeringcited by 31
- 2023SEMQA: Semi-Extractive Multi-Source Question Answeringcited by 19
Built on by
Citing papers per year: 2024: 5; 2025: 15; 2026: 5.
25 papers.
Sort:
By area:
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Modelscited by 27
- 2024Model Internals-based Answer Attribution for Trustworthy Retrieval-Augmented Generationcited by 25
- 2024Beyond Logit Lens: Contextual Embeddings for Robust Hallucination Detection & Grounding in VLMscited by 22
- 2025SelfCite: Self-Supervised Alignment for Context Attribution in Large Language Modelscited by 20
- 2024PLD+: Accelerating LLM inference by leveraging Language Model Artifactscited by 17
- 2025TokenShapley: Token Level Context Attribution with Shapley Valuecited by 15
- 2025Learning to Attribute with Attentioncited by 13
- 2025LAQuer: Localized Attribution Queries in Content-grounded Generationcited by 13
- 2024Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decompositioncited by 12
- 2025Attribution, Citation, and Quotation: A Survey of Evidence-based Text Generation with Large Language Modelscited by 7
- 2025Generation-Time vs. Post-hoc Citation: A Holistic Evaluation of LLM Attributioncited by 6
- 2024Attention with Dependency Parsing Augmentation for Fine-Grained Attributioncited by 5
13 more
- 2025GenerationPrograms: Fine-grained Attribution with Executable Programscited by 4
- 2026Reasoning models do not yet follow their reasoning in autonomous driving: The KITScenes LongTail Datasetcited by 4
- 2025Doc2Chart: Intent-Driven Zero-Shot Chart Generation from Documentscited by 3
- 2025On Synthesizing Data for Context Attribution in Question Answeringcited by 2
- 2025Model Editing with Graph-Based External Memorycited by 2
- 2025SafePassage: High-Fidelity Information Extraction with Black Box LLMscited by 2
- 2026Hessian-Enhanced Token Attribution (HETA): Interpreting Autoregressive LLMscited by 2
- 2025Decomposition-Enhanced Training for Post-Hoc Attributions In Language Modelscited by 1
- 2025Jointly Generating and Attributing Answers using Logits of Document-Identifier Tokenscited by 0
- 2025Citation Failure: Definition, Analysis and Efficient Mitigationcited by 0
- 2025C2-Cite: Contextual-Aware Citation Generation for Attributed Large Language Modelscited by 0
- 2026How Do LLMs Cite? A Mechanistic Interpretation of Attribution in Retrieval-Augmented Generationcited by 0
- 2026MultAttnAttrib: Training-Free Multimodal Attribution in Long Document Question Answeringcited by 0
- 2026MultAttnAttrib: Training-Free Multimodal Attribution in Long Document Question Answering1 Jul 2026
- 2026How Do LLMs Cite? A Mechanistic Interpretation of Attribution in Retrieval-Augmented Generation9 Jun 2026
- 2026Hessian-Enhanced Token Attribution (HETA): Interpreting Autoregressive LLMs14 Apr 2026
- 2026Reasoning models do not yet follow their reasoning in autonomous driving: The KITScenes LongTail Dataset24 Mar 2026
- 2026Locate, Steer, and Improve: A Practical Survey of Actionable Mechanistic Interpretability in Large Language Models20 Jan 2026
- 2025C2-Cite: Contextual-Aware Citation Generation for Attributed Large Language Models19 Nov 2025
- 2025Decomposition-Enhanced Training for Post-Hoc Attributions In Language Models29 Oct 2025
- 2025Citation Failure: Definition, Analysis and Efficient Mitigation23 Oct 2025
- 2025SafePassage: High-Fidelity Information Extraction with Black Box LLMs30 Sep 2025
- 2025Generation-Time vs. Post-hoc Citation: A Holistic Evaluation of LLM Attribution25 Sep 2025
- 2025Attribution, Citation, and Quotation: A Survey of Evidence-based Text Generation with Large Language Models21 Aug 2025
- 2025Jointly Generating and Attributing Answers using Logits of Document-Identifier Tokens12 Aug 2025
13 more
- 2025Doc2Chart: Intent-Driven Zero-Shot Chart Generation from Documents20 Jul 2025
- 2025TokenShapley: Token Level Context Attribution with Shapley Value18 Jun 2025
- 2025GenerationPrograms: Fine-grained Attribution with Executable Programs17 Jun 2025
- 2025LAQuer: Localized Attribution Queries in Content-grounded Generation1 Jun 2025
- 2025Model Editing with Graph-Based External Memory23 May 2025
- 2025Learning to Attribute with Attention18 Apr 2025
- 2025On Synthesizing Data for Context Attribution in Question Answering21 Feb 2025
- 2025SelfCite: Self-Supervised Alignment for Context Attribution in Large Language Models13 Feb 2025
- 2024Attention with Dependency Parsing Augmentation for Fine-Grained Attribution16 Dec 2024
- 2024PLD+: Accelerating LLM inference by leveraging Language Model Artifacts2 Dec 2024
- 2024Beyond Logit Lens: Contextual Embeddings for Robust Hallucination Detection & Grounding in VLMs28 Nov 2024
- 2024Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decomposition25 Sep 2024
- 2024Model Internals-based Answer Attribution for Trustworthy Retrieval-Augmented Generation19 Jun 2024
- 2025TokenShapley: Token Level Context Attribution with Shapley Valuecited by 15
- 2025Learning to Attribute with Attentioncited by 13
- 2025LAQuer: Localized Attribution Queries in Content-grounded Generationcited by 13
- 2024Enhancing Post-Hoc Attributions in Long Document Comprehension via Coarse Grained Answer Decompositioncited by 12
- 2025Attribution, Citation, and Quotation: A Survey of Evidence-based Text Generation with Large Language Modelscited by 7
- 2025Generation-Time vs. Post-hoc Citation: A Holistic Evaluation of LLM Attributioncited by 6
- 2024Attention with Dependency Parsing Augmentation for Fine-Grained Attributioncited by 5
- 2025GenerationPrograms: Fine-grained Attribution with Executable Programscited by 4
- 2025Doc2Chart: Intent-Driven Zero-Shot Chart Generation from Documentscited by 3
- 2025Model Editing with Graph-Based External Memorycited by 2
- 2025SafePassage: High-Fidelity Information Extraction with Black Box LLMscited by 2
- 2026Hessian-Enhanced Token Attribution (HETA): Interpreting Autoregressive LLMscited by 2
12 most cited of 16 All 16 (JSON)
- 2026MultAttnAttrib: Training-Free Multimodal Attribution in Long Document Question Answering1 Jul 2026
- 2026Hessian-Enhanced Token Attribution (HETA): Interpreting Autoregressive LLMs14 Apr 2026
- 2025C2-Cite: Contextual-Aware Citation Generation for Attributed Large Language Models19 Nov 2025
- 2025Decomposition-Enhanced Training for Post-Hoc Attributions In Language Models29 Oct 2025
- 2025SafePassage: High-Fidelity Information Extraction with Black Box LLMs30 Sep 2025
- 2025Generation-Time vs. Post-hoc Citation: A Holistic Evaluation of LLM Attribution25 Sep 2025
- 2025Attribution, Citation, and Quotation: A Survey of Evidence-based Text Generation with Large Language Models21 Aug 2025
- 2025Jointly Generating and Attributing Answers using Logits of Document-Identifier Tokens12 Aug 2025
- 2025Doc2Chart: Intent-Driven Zero-Shot Chart Generation from Documents20 Jul 2025
- 2025TokenShapley: Token Level Context Attribution with Shapley Value18 Jun 2025
- 2025GenerationPrograms: Fine-grained Attribution with Executable Programs17 Jun 2025
- 2025LAQuer: Localized Attribution Queries in Content-grounded Generation1 Jun 2025
12 newest of 16 All 16 (JSON)