arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.10899cs.CLcs.LOcs.SE
收藏

从证明到程序:刻画大语言模型中的工具诱导推理幻觉

From Proof to Program: Characterizing Tool-Induced Reasoning Hallucinations in Large Language Models

Megagon Labs(Megagon实验室)

Farima Fatahi Bayat, Pouya Pezeshkpour, Estevam Hruschka

AI总结:

研究探讨了工具增强语言模型在使用外部工具时产生的推理幻觉问题,通过PYMATH基准测试发现,尽管工具使用提升了最终答案准确率,但推理过程却愈发不连贯,提出基于偏好优化的框架以改善工具使用下的推理深度。

摘要:

工具增强语言模型(TaLMs)能够调用外部工具解决超出其参数容量的问题。然而,尚不清楚这些工具增强的能力是否反映可信的推理。聚焦于代码解释器工具,我们发现即使工具被正确选择和执行,TaLMs仍将工具输出视为推理的替代品,产生看似正确但缺乏连贯解释的解决方案。我们将其称为工具诱导短视(TIM),并通过PYMATH基准测试(包含1,679个竞赛级数学问题)进行研究。我们进一步开发了多维评估套件,以量化TaLMs相对于其非工具 counterpart 的推理退化。研究发现,尽管TaLMs在最终答案准确率上提升了19.3个百分点,但其推理行为却持续退化(例如,非工具LLMs在推理过程的成对比较中胜出比例高达41.5%)。这种退化随着工具使用增加而加剧;模型调用工具越频繁,推理的连贯性越差。此外,工具使用将错误从算术错误转向全局推理失败(逻辑、假设、创造力);在高风险案例中,TIM出现在约55%的情况中。最后,我们提出基于偏好优化的框架,使TaLMs重新利用工具作为辅助证据,从而在工具使用下提升最终答案准确率和推理深度。代码和数据可在:https://github.com/megagonlabs/TIM 获取。

英文摘要:

Tool-augmented Language Models (TaLMs) can invoke external tools to solve problems beyond their parametric capacity. However, it remains unclear whether these tool-enabled gains reflect trustworthy reasoning. Focusing on the Code Interpreter tool, we show that even when tools are selected and executed correctly, TaLMs treat tool outputs as substitutes for reasoning, producing solutions that appear correct but lack coherent justification. We term this failure mode Tool-Induced Myopia (TIM), and study it using PYMATH, a benchmark of 1,679 competition-level mathematical problems for which Python code is helpful but not sufficient. We further develop a multi-dimensional evaluation suite to quantify reasoning degradation in TaLMs relative to their non-tool counterparts. Our findings reveal that while TaLMs achieve up to a 19.3 percentage point gain in final-answer accuracy, their reasoning behavior consistently deteriorates (e.g., non-tool LLMs win up to 41.5% more often in pairwise comparisons of the reasoning process). This degradation intensifies with tool use; the more frequently a model invokes tools, the less coherent its reasoning becomes. Moreover, tool use shifts errors from arithmetic mistakes toward global reasoning failures (logic, assumption, creativity); with TIM present in ~55% of high-risk cases. Finally, we propose a preference-optimization-based framework that realigns TaLMs to use tools as assistive evidence, improving both final-answer accuracy and reasoning depth under tool use. Codes and data are available at: https://github.com/megagonlabs/TIM.

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

↑