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

简洁即更好:函数调用语言代理中的非单调链式思维预算效应

Brief Is Better: Non-Monotonic Chain-of-Thought Budget Effects in Function-Calling Language Agents

IIIS, Tsinghua University(清华大学交叉信息研究院)

Xuan Qi

AI总结:

研究探讨了链式思维预算对函数调用代理性能的影响,发现简短的链式思维显著提升准确性,而延长的链式思维反而降低性能,提出Function-Routing CoT方法提升可靠性。

摘要:

语言代理在采取行动前应思考多久?链式思维(CoT)推理被广泛认为能提高性能,但在结构化工具使用场景中,推理长度与准确性之间的关系仍不明确。本文系统研究了CoT预算对函数调用代理的影响,跨越六个token预算(0-512)在200个任务上进行测试。核心发现是Qwen2.5-1.5B-Instruct上呈现出显著的非单调模式:简短推理(32 tokens)使准确性提高45%,从44.0%提升至64.0%,而延长推理(256 tokens)性能下降至25.0%(McNemar p < 0.001)。三重误差分解揭示了机制。在d=0时,30.5%的任务失败因为模型选择了错误的函数;简短Co T将此降至1.5%,实际上起到了函数路由的作用,而长Co T逆转了收益,导致d=256时错误选择28.0%和幻觉函数18.0%。Oracle分析显示,88.6%的可解任务最多需要32个推理token,平均27.6个,更细致的扫描表明最优解位于8-16个token。受此路由效应启发,我们提出Function-Routing CoT(FR-CoT),一种结构化的简短Co T方法,将推理阶段模板为“Function: [name] / Key args: [...]

英文摘要:

How much should a language agent think before taking action? Chain-of-thought (CoT) reasoning is widely assumed to improve agent performance, but the relationship between reasoning length and accuracy in structured tool-use settings remains poorly understood. We present a systematic study of CoT budget effects on function-calling agents, sweeping six token budgets (0--512) across 200 tasks from the Berkeley Function Calling Leaderboard v3 Multiple benchmark. Our central finding is a striking non-monotonic pattern on Qwen2.5-1.5B-Instruct: brief reasoning (32 tokens) dramatically improves accuracy by 45% relative over direct answers, from 44.0% to 64.0%, while extended reasoning (256 tokens) degrades performance well below the no-CoT baseline, to 25.0% (McNemar p < 0.001). A three-way error decomposition reveals the mechanism. At d = 0, 30.5% of tasks fail because the model selects the wrong function from the candidate set; brief CoT reduces this to 1.5%, effectively acting as a function-routing step, while long CoT reverses the gain, yielding 28.0% wrong selections and 18.0% hallucinated functions at d = 256. Oracle analysis shows that 88.6% of solvable tasks require at most 32 reasoning tokens, with an average of 27.6 tokens, and a finer-grained sweep indicates that the true optimum lies at 8--16 tokens. Motivated by this routing effect, we propose Function-Routing CoT (FR-CoT), a structured brief-CoT method that templates the reasoning phase as "Function: [name] / Key args: [...]," forcing commitment to a valid function name at the start of reasoning. FR-CoT achieves accuracy statistically equivalent to free-form d = 32 CoT while reducing function hallucination to 0.0%, providing a structural reliability guarantee without budget tuning.

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

↑