mlsanityData to 14 Oct 2026

Context Attribution with Multi-Armed Bandit Optimization

arXiv 2506.19977 ↗First posted 24 Jun 2025cs.AIcited by 2

On the map: Retrieval-augmented generation → RAG robustness and adaptive retrieval

Abstract (arXiv)

Understanding which parts of the retrieved context contribute to a large language model's generated answer is essential for building interpretable and trustworthy retrieval-augmented generation. We propose a novel framework that formulates context attribution as a combinatorial multi-armed bandit problem. We utilize Linear Thompson Sampling to efficiently identify the most influential context segments while minimizing the number of model queries. Our reward function leverages token log-probabilities to measure how well a subset of segments supports the original response, making it applicable to both open-source and black-box API-based models. Unlike SHAP and other perturbation-based methods that sample subsets uniformly, our approach adaptively prioritizes informative subsets based on posterior estimates of segment relevance, reducing computational costs. Experiments on multiple QA benchmarks demonstrate that our method achieves up to 30% reduction in model queries while matching or exceeding the attribution quality of existing approaches. Our code is publicly available at https://github.com/pd90506/camab.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in RAG robustness and adaptive retrieval, one of 15 directions in Retrieval-augmented generation. Builds on 23 of its 31 references that are in the map. First posted on arXiv 24 Jun 2025.

Builds on

23 of 31 references.

References · 23

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2017A Unified Approach to Interpreting Model Predictionscited by 6,555
  3. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
  4. 2016"Why Should I Trust You?": Explaining the Predictions of Any Classifiercited by 5,070
  5. 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,754
  6. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
  7. 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,745
  8. 2017Get To The Point: Summarization with Pointer-Generator Networkscited by 1,292
  9. 2021BARTScore: Evaluating Generated Text as Text Generationcited by 722
  10. 2023Enabling Large Language Models to Generate Text with Citationscited by 595
  11. 2020TyDi QA: A Benchmark for Information-Seeking Question Answering in Typologically Diverse Languagescited by 488
  12. 2022Teaching language models to support answers with verified quotescited by 292
11 more
  1. 2021FastSHAP: Real-Time Shapley Value Estimationcited by 125
  2. 2024ContextCite: Attributing Model Generation to Contextcited by 98
  3. 2024LongCite: Enabling LLMs to Generate Fine-grained Citations in Long-context QAcited by 81
  4. 2018Thompson Sampling for Combinatorial Semi-Banditscited by 78
  5. 2020Generating Hierarchical Explanations on Text Classification via Feature Interaction Detectioncited by 57
  6. 2018BanditSum: Extractive Summarization as a Contextual Banditcited by 46
  7. 2024Training Language Models to Generate Text with Citations via Fine-grained Rewardscited by 42
  8. 2021Ada-SISE: Adaptive Semantic Input Sampling for Efficient Explanation of Convolutional Neural Networkscited by 11
  9. 2024Multi-Level Explanations for Generative Language Modelscited by 11
  10. 2025Automation and Feature Selection Enhancement with Reinforcement Learning (RL)cited by 2
  11. 2024Fast Explanations via Policy Gradient-Optimized Explainercited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Attributing Response to Context: A Jensen-Shannon Divergence Driven Mechanistic Study of Context Attribution in Retrieval-Augmented Generation
  2. 2025Chunks as Arms: Multi-Armed Bandit-Guided Sampling for Long-Context LLM Preference Optimization
  3. 2024Adapting to Non-Stationary Environments: Multi-Armed Bandit Enhanced Retrieval-Augmented Generation on Knowledge Graphs
  4. 2024MBA-RAG: a Bandit Approach for Adaptive Retrieval-Augmented Generation through Question Complexity
  5. 2024Advancing Large Language Model Attribution through Self-Improving
  6. 2025On Synthesizing Data for Context Attribution in Question Answering
  7. 2025Decomposition-Enhanced Training for Post-Hoc Attributions In Language Models
  8. 2026When Context Misleads: Intent-Guided Decoding for Robust Retrieval-Augmented Generation