Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

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

About

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.

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

Related benchmarks

TaskDatasetResultRank
Faithfulness EvaluationWikiBio
AUC π-Soft-NS1.2
67
Faithfulness EvaluationTellMeWhy
AUC π-Soft-NS0.5
67
Attribution FaithfulnessLongRA
Soft-NC Score2.15
40
Attribution AlignmentCurated Attribution Dataset (NarrativeQA + SciQ)
DSA (Dependent Sentence Attribution)-0.21
40
AttributionVerifiability-Granular (test)
Attribution Accuracy77.71
28
AttributionQuoteSum (test)
Accuracy89.95
18
Causal AttributionCausal and Downstream Robustness Ablation Suite Averaged over LLaMA-3.1 70B, Phi-3 14B, GPT-J 6B, Qwen2.5 3B
Causal Pass@555
14
Decoding StabilityCausal and Downstream Robustness Ablation Suite Averaged over 4 models
Decoding Δ%3.1
14
Fact CheckingCausal and Downstream Robustness Ablation Suite Averaged over 4 models
Fact EMΔ1
14
Span ExtractionCausal and Downstream Robustness Ablation Suite
Span F152
14
Showing 10 of 18 rows

Other info

Code

Follow for update