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

基于归因的解码

Attribution-Guided Decoding

Department of Artificial Intelligence, Fraunhofer Heinrich Hertz Institute(人工智能系,弗劳恩霍夫海因里希·赫兹研究所);Department of Electrical Engineering and Computer Science, Technische Universität Berlin(电气工程与计算机科学系,柏林技术大学);BIFOLD - Berlin Institute for the Foundations of Learning and Data(柏林学习与数据基础研究所);Centre of eXplainable Artificial Intelligence, Technological University Dublin(可解释人工智能中心,都柏林技术大学)

Piotr Komorowski, Elena Golimblevskaia, Reduan Achtibat, Thomas Wiegand, Sebastian Lapuschkin, Wojciech Samek

AI总结:

本文提出基于归因的解码方法AGD,通过引导生成过程以提升指令遵循、知识密集型任务的准确性和可靠性,同时减少计算开销。

摘要:

大型语言模型(LLMs)在遵循复杂指令和生成事实准确文本方面的能力对实际应用至关重要。然而,标准解码方法往往无法稳健地满足这些要求,而现有控制技术通常会降低整体输出质量。在本文中,我们引入了基于可解释性的解码策略AGD。与直接操控模型激活不同,AGD考虑一组高概率输出token候选,并选择对用户定义的兴趣区域(ROI)具有最高归因的token。此ROI可以灵活定义在模型输入或内部组件的不同部分,使AGD能够引导生成朝向各种期望的行为。我们展示了AGD在三个具有挑战性的领域中的有效性。在指令遵循方面,我们显示AGD显著提高了遵循程度(例如,将Llama 3.1的整体成功率从66.0%提高到79.1%)。在知识密集型任务中,我们显示引导生成使用内部知识组件或上下文来源可以减少幻觉并提高事实准确性,无论是在闭书还是开书设置中。此外,我们提出了一种自适应的、基于熵的AGD变体,通过仅在模型不确定时应用引导来减轻质量下降并减少计算开销。本文提出了一种多功能、更可解释且更有效的增强现代LLMs可靠性的方法。

英文摘要:

The capacity of Large Language Models (LLMs) to follow complex instructions and generate factually accurate text is critical for their real-world application. However, standard decoding methods often fail to robustly satisfy these requirements, while existing control techniques frequently degrade general output quality. In this work, we introduce Attribution-Guided Decoding (AGD), an interpretability-based decoding strategy. Instead of directly manipulating model activations, AGD considers a set of high-probability output token candidates and selects the one that exhibits the highest attribution to a user-defined Region of Interest (ROI). This ROI can be flexibly defined over different parts of the model's input or internal components, allowing AGD to steer generation towards various desirable behaviors. We demonstrate AGD's efficacy across three challenging domains. For instruction following, we show that AGD significantly boosts adherence (e.g., improving the overall success rate on Llama 3.1 from 66.0% to 79.1%). For knowledge-intensive tasks, we show that guiding generation towards usage of internal knowledge components or contextual sources can reduce hallucinations and improve factual accuracy in both closed-book and open-book settings. Furthermore, we propose an adaptive, entropy-based variant of AGD that mitigates quality degradation and reduces computational overhead by applying guidance only when the model is uncertain. Our work presents a versatile, more interpretable, and effective method for enhancing the reliability of modern LLMs.

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

↑