arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2506.19977cs.AI
收藏

基于多臂老虎机优化的上下文归因

Context Attribution with Multi-Armed Bandit Optimization

Lucy Family Institute for Data & Society, University of Notre Dame(数据与社会学院卢西家庭研究所,圣约翰大学);Department of Computer Science & Engineering, University of Notre Dame(计算机科学与工程系,圣约翰大学);IBM Research(IBM研究院)

Deng Pan, Keerthiram Murugesan, Ting Hua, Nuno Moniz, Nitesh Chawla

AI总结:

本文提出一种将上下文归因问题建模为组合多臂老虎机问题的框架,利用线性汤普森采样高效识别关键上下文片段,减少模型查询次数,实验表明在多个问答基准上实现30%的查询减少同时保持归因质量。

摘要:

理解检索上下文哪些部分对大型语言模型生成回答起作用对于构建可解释和可信的检索增强生成系统至关重要。我们提出了一种新的框架,将上下文归因建模为组合多臂老虎机问题。我们利用线性汤普森采样高效识别最有影响力的上下文片段,同时最小化模型查询次数。我们的奖励函数利用token对数概率来衡量子集片段对原始响应的支持程度,使其适用于开源和黑盒API模型。不同于SHAP等基于扰动的方法,我们的方法根据后验估计的片段相关性自适应优先选择信息量大的子集,从而降低计算成本。在多个问答基准上的实验表明,我们的方法在模型查询次数上减少高达30%,同时匹配或超越现有方法的归因质量。我们的代码在https://github.com/pd90506/camab公开可用。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑