AttriBoT: A Bag of Tricks for Efficiently Approximating Leave-One-Out Context Attribution
Not on the map. Why?
Abstract (arXiv)
The influence of contextual input on the behavior of large language models (LLMs) has prompted the development of context attribution methods that aim to quantify each context span's effect on an LLM's generations. The leave-one-out (LOO) error, which measures the change in the likelihood of the LLM's response when a given span of the context is removed, provides a principled way to perform context attribution, but can be prohibitively expensive to compute for large models. In this work, we introduce AttriBoT, a series of novel techniques for efficiently computing an approximation of the LOO error for context attribution. Specifically, AttriBoT uses cached activations to avoid redundant operations, performs hierarchical attribution to reduce computation, and emulates the behavior of large target models with smaller proxy models. Taken together, AttriBoT can provide a >300x speedup while remaining more faithful to a target model's LOO error than prior context attribution methods. This stark increase in performance makes computing context attributions for a given response 30x faster than generating the response itself, empowering real-world applications that require computing attributions at scale. We release a user-friendly and efficient implementation of AttriBoT to enable efficient LLM interpretability as well as encourage future development of efficient context attribution methods.
Key facts. Cited by 23 papers in the map (data through 14 Oct 2026). Builds on 48 of its 63 references that are in the map. First posted on arXiv 22 Nov 2024.
Builds on
48 of 63 references.
References · 48
- 2017Attention Is All You Needcited by 60,361
- 2023GPT-4 Technical Reportcited by 18,396
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
- 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2023Self-RAG: Learning to Retrieve, Generate, and Critique through Self-Reflectioncited by 1,839
- 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,745
36 more
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
- 2018Know What You Don't Know: Unanswerable Questions for SQuADcited by 1,554
- 2019Attention is not Explanationcited by 929
- 2019Attention is not not Explanationcited by 636
- 2023Enabling Large Language Models to Generate Text with Citationscited by 595
- 2020Estimating Training Data Influence by Tracing Gradient Descentcited by 580
- 2021A Dataset of Information-Seeking Questions and Answers Anchored in Research Paperscited by 486
- 2022Large Language Models Struggle to Learn Long-Tail Knowledgecited by 458
- 2023Studying Large Language Model Generalization with Influence Functionscited by 326
- 2023Evaluating Verifiability in Generative Search Enginescited by 303
- 2022Teaching language models to support answers with verified quotescited by 292
- 2022RARR: Researching and Revising What Language Models Say, Using Language Modelscited by 287
- 2020Influence Functions in Deep Learning Are Fragilecited by 252
- 2018The Natural Language Decathlon: Multitask Learning as Question Answeringcited by 236
- 2024A Survey on Data Selection for Language Modelscited by 236
- 2016Understanding Neural Networks through Representation Erasurecited by 224
- 2024BABILong: Testing the Limits of LLMs with Long Context Reasoning-in-a-Haystackcited by 215
- 2015Visualizing and Understanding Neural Models in NLPcited by 200
- 2022If Influence Functions are the Answer, Then What is the Question?cited by 144
- 2019Learning to Deceive with Attention-Based Explanationscited by 111
- 2023Complex Claim Verification with Evidence Retrieved in the Wildcited by 110
- 2020Perturbed Masking: Parameter-free Probing for Analyzing and Interpreting BERTcited by 109
- 2024ContextCite: Attributing Model Generation to Contextcited by 98
- 2024What is Your Data Worth to GPT? LLM-Scale Data Valuation with Influence Functionscited by 94
- 2022Interpreting Language Models with Contrastive Explanationscited by 92
- 2024How Do Large Language Models Acquire Factual Knowledge During Pretraining?cited by 90
- 2024Generalization v.s. Memorization: Tracing Language Models' Capabilities Back to Pretraining Datacited by 85
- 2023Sequential Integrated Gradients: a simple but effective method for explaining language modelscited by 52
- 2023LLatrieval: LLM-Verified Retrieval for Verifiable Generationcited by 52
- 2021Discretized Integrated Gradients for Explaining Language Modelscited by 46
- 2023"According to ...": Prompting Language Models Improves Quoting from Pre-Training Datacited by 42
- 2023Retrieving Supporting Evidence for Generative Question Answeringcited by 31
- 2021Exploring the Role of BERT Token Representations to Explain Sentence Probing Resultscited by 29
- 2024Improving Attributed Text Generation of Large Language Models via Preference Learningcited by 23
- 2023Towards Verifiable Text Generation with Evolving Memory and Self-Reflectioncited by 21
- 2023ChatGPT Hallucinates when Attributing Answerscited by 14
Built on by
Citing papers per year: 2025: 10; 2026: 13.
23 papers.
Sort:
By area:
- 2026CausalArmor: Efficient Indirect Prompt Injection Guardrails via Causal Attributioncited by 14
- 2025Learning to Attribute with Attentioncited by 13
- 2025Attributing Response to Context: A Jensen-Shannon Divergence Driven Mechanistic Study of Context Attribution in Retrieval-Augmented Generationcited by 12
- 2025Who Taught the Lie? Responsibility Attribution for Poisoned Knowledge in Retrieval-Augmented Generationcited by 12
- 2026The Why Behind the Action: Unveiling Internal Drivers via Agentic Attributioncited by 11
- 2026Towards Long-Horizon Interpretability: Efficient and Faithful Multi-Token Attribution for Reasoning LLMscited by 7
- 2025MedPAIR: Measuring Physicians and AI Relevance Alignment in Medical Question Answeringcited by 5
- 2025Large Language Model Sourcing: A Surveycited by 5
- 2025MaxShapley: Towards Incentive-compatible Generative Search with Fair Context Attributioncited by 3
- 2025Explaining the Reasoning of Large Language Models Using Attribution Graphscited by 3
- 2025Know Or Not: a library for evaluating out-of-knowledge base robustnesscited by 2
- 2025Style Attack Disguise: When Fonts Become a Camouflage for Adversarial Intentcited by 2
11 more
- 2026Contrastive Attribution in the Wild: An Interpretability Analysis of LLM Failures on Realistic Benchmarkscited by 2
- 2026In-Context Credit Assignment via the Corecited by 2
- 2025RDAR: Reward-Driven Agent Relevance Estimation for Autonomous Drivingcited by 1
- 2026RREDCoT: Segment-Level Reward Redistribution for Reasoning Modelscited by 1
- 2026Detecting Hallucinations in Retrieval-Augmented Generation through Grounding-Aware Sensitivity by Perturbation (GASP)cited by 1
- 2026RoPE-LIME: RoPE-Space Locality + Sparse-K Sampling for Efficient LLM Attributioncited by 0
- 2026TRUE: A Trustworthy Unified Explanation Framework for Large Language Model Reasoningcited by 0
- 2026Knowledge Dependency Estimation for Reliable Question Answeringcited by 0
- 2026Surrogate Fidelity: When Can Open LLMs Explain Closed Ones?cited by 0
- 2026How Context Attribution Handles What the Model Already Knowscited by 0
- 2026Auditing Agent Actions through Query-Conditioned Attributioncited by 0
- 2026Auditing Agent Actions through Query-Conditioned Attribution27 Sep 2026
- 2026How Context Attribution Handles What the Model Already Knows26 Jul 2026
- 2026Detecting Hallucinations in Retrieval-Augmented Generation through Grounding-Aware Sensitivity by Perturbation (GASP)5 Jul 2026
- 2026Surrogate Fidelity: When Can Open LLMs Explain Closed Ones?30 Jun 2026
- 2026RREDCoT: Segment-Level Reward Redistribution for Reasoning Models4 Jun 2026
- 2026Knowledge Dependency Estimation for Reliable Question Answering27 May 2026
- 2026In-Context Credit Assignment via the Core7 May 2026
- 2026Contrastive Attribution in the Wild: An Interpretability Analysis of LLM Failures on Realistic Benchmarks20 Apr 2026
- 2026TRUE: A Trustworthy Unified Explanation Framework for Large Language Model Reasoning21 Feb 2026
- 2026CausalArmor: Efficient Indirect Prompt Injection Guardrails via Causal Attribution8 Feb 2026
- 2026RoPE-LIME: RoPE-Space Locality + Sparse-K Sampling for Efficient LLM Attribution6 Feb 2026
- 2026Towards Long-Horizon Interpretability: Efficient and Faithful Multi-Token Attribution for Reasoning LLMs2 Feb 2026
11 more
- 2026The Why Behind the Action: Unveiling Internal Drivers via Agentic Attribution21 Jan 2026
- 2025Explaining the Reasoning of Large Language Models Using Attribution Graphs17 Dec 2025
- 2025MaxShapley: Towards Incentive-compatible Generative Search with Fair Context Attribution5 Dec 2025
- 2025Style Attack Disguise: When Fonts Become a Camouflage for Adversarial Intent22 Oct 2025
- 2025Large Language Model Sourcing: A Survey11 Oct 2025
- 2025RDAR: Reward-Driven Agent Relevance Estimation for Autonomous Driving24 Sep 2025
- 2025Who Taught the Lie? Responsibility Attribution for Poisoned Knowledge in Retrieval-Augmented Generation17 Sep 2025
- 2025MedPAIR: Measuring Physicians and AI Relevance Alignment in Medical Question Answering29 May 2025
- 2025Attributing Response to Context: A Jensen-Shannon Divergence Driven Mechanistic Study of Context Attribution in Retrieval-Augmented Generation22 May 2025
- 2025Know Or Not: a library for evaluating out-of-knowledge base robustness19 May 2025
- 2025Learning to Attribute with Attention18 Apr 2025
- 2026Towards Long-Horizon Interpretability: Efficient and Faithful Multi-Token Attribution for Reasoning LLMscited by 7
- 2025Explaining the Reasoning of Large Language Models Using Attribution Graphscited by 3
- 2026RREDCoT: Segment-Level Reward Redistribution for Reasoning Modelscited by 1
- 2026TRUE: A Trustworthy Unified Explanation Framework for Large Language Model Reasoningcited by 0
- 2026RREDCoT: Segment-Level Reward Redistribution for Reasoning Models4 Jun 2026
- 2026TRUE: A Trustworthy Unified Explanation Framework for Large Language Model Reasoning21 Feb 2026
- 2026Towards Long-Horizon Interpretability: Efficient and Faithful Multi-Token Attribution for Reasoning LLMs2 Feb 2026
- 2025Explaining the Reasoning of Large Language Models Using Attribution Graphs17 Dec 2025
- 2025Attributing Response to Context: A Jensen-Shannon Divergence Driven Mechanistic Study of Context Attribution in Retrieval-Augmented Generationcited by 12
- 2025Who Taught the Lie? Responsibility Attribution for Poisoned Knowledge in Retrieval-Augmented Generationcited by 12
- 2026Detecting Hallucinations in Retrieval-Augmented Generation through Grounding-Aware Sensitivity by Perturbation (GASP)cited by 1
- 2026Detecting Hallucinations in Retrieval-Augmented Generation through Grounding-Aware Sensitivity by Perturbation (GASP)5 Jul 2026
- 2025Who Taught the Lie? Responsibility Attribution for Poisoned Knowledge in Retrieval-Augmented Generation17 Sep 2025
- 2025Attributing Response to Context: A Jensen-Shannon Divergence Driven Mechanistic Study of Context Attribution in Retrieval-Augmented Generation22 May 2025
- 2025Learning to Attribute with Attentioncited by 13
- 2025MedPAIR: Measuring Physicians and AI Relevance Alignment in Medical Question Answeringcited by 5
- 2025Large Language Model Sourcing: A Surveycited by 5
- 2025MaxShapley: Towards Incentive-compatible Generative Search with Fair Context Attributioncited by 3
- 2025Know Or Not: a library for evaluating out-of-knowledge base robustnesscited by 2
- 2025Style Attack Disguise: When Fonts Become a Camouflage for Adversarial Intentcited by 2
- 2026In-Context Credit Assignment via the Corecited by 2
- 2025RDAR: Reward-Driven Agent Relevance Estimation for Autonomous Drivingcited by 1
- 2026RoPE-LIME: RoPE-Space Locality + Sparse-K Sampling for Efficient LLM Attributioncited by 0
- 2026Knowledge Dependency Estimation for Reliable Question Answeringcited by 0
- 2026How Context Attribution Handles What the Model Already Knowscited by 0
- 2026How Context Attribution Handles What the Model Already Knows26 Jul 2026
- 2026Knowledge Dependency Estimation for Reliable Question Answering27 May 2026
- 2026In-Context Credit Assignment via the Core7 May 2026
- 2026RoPE-LIME: RoPE-Space Locality + Sparse-K Sampling for Efficient LLM Attribution6 Feb 2026
- 2025MaxShapley: Towards Incentive-compatible Generative Search with Fair Context Attribution5 Dec 2025
- 2025Style Attack Disguise: When Fonts Become a Camouflage for Adversarial Intent22 Oct 2025
- 2025Large Language Model Sourcing: A Survey11 Oct 2025
- 2025RDAR: Reward-Driven Agent Relevance Estimation for Autonomous Driving24 Sep 2025
- 2025MedPAIR: Measuring Physicians and AI Relevance Alignment in Medical Question Answering29 May 2025
- 2025Know Or Not: a library for evaluating out-of-knowledge base robustness19 May 2025
- 2025Learning to Attribute with Attention18 Apr 2025