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

通过上下文感知解码缓解思维链中的查询捷径

Mitigating Query Shortcuts in Chain-of-Thought with Context-Aware Decoding

NTT

Shin'ya Yamaguchi

AI总结:

本文针对大语言模型推理中依赖查询捷径而非推理步骤的问题,提出推理步骤对比解码(RCD)方法,通过对比解码增强最终答案对推理步骤的依赖性,在五个推理基准上提升了答案准确率。

摘要:

思维链(CoT)提示可提升大语言模型(LLM)的推理性能,但近期研究表明,最终答案并非总是依赖生成的推理步骤,LLM可能依赖查询特定的捷径而非推理步骤提供的信息。本文研究将现有对比解码方法上下文感知解码(CAD)应用于CoT推理时,能否缓解此类捷径行为,该应用被称为推理步骤对比解码(RCD),它对比查询在有推理步骤和无推理步骤条件下的下一个词分布,放大因推理步骤而概率增加的词元。我们通过KL正则化奖励最大化目标对该解码规则进行理论解释。在五个推理基准上的实验表明,RCD相比标准CoT提升了答案准确率;此外,使用真实推理步骤和随机推理步骤的干预分析显示,RCD增强了最终答案对推理步骤内容的行为依赖性。研究结果表明,对比解码提供了一种简单、无需训练的方法来缓解查询捷径。

英文摘要:

While Chain-of-Thought (CoT) prompting improves the reasoning performance of large language models (LLMs), recent studies have shown that final answers do not always depend on the generated rationales. In particular, LLMs may rely on query-specific shortcuts rather than the information provided by their reasoning steps. In this paper, we investigate whether context-aware decoding (CAD), an existing contrastive decoding method, can mitigate such shortcut behavior when applied to CoT reasoning. We study this application as Rationale Contrastive Decoding (RCD), which contrasts the next-token distributions conditioned on the query with and without its rationale, amplifying tokens whose likelihood increases due to the rationale. We provide a theoretical interpretation of this decoding rule via a KL-regularized reward-maximization objective. Experiments across five reasoning benchmarks demonstrate that RCD improves answer accuracy over standard CoT. Furthermore, intervention analyses using ground-truth and random rationales reveal that RCD increases the behavioral dependence of final answers on the rationale content. Our findings suggest that contrastive decoding offers a simple, training-free approach to mitigating query shortcuts.

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

↑