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

知道何时求助:面向LLM工具使用的片段级信用分配

Knowing When to Ask: Segment-Level Credit Assignment for LLM Tool Use

Microsoft AI Redmond(微软AI红mond)

Abhijit Kumar, Zoey Wu, Mohit Suley

AI总结:

提出CARL方法,通过强化学习在模型自身轨迹上训练评论家,对每个工具使用片段独立分配信用,使模型学会区分参数知识足够与需要外部帮助的情况,在多个基准上提升准确率并减少不必要的工具调用。

摘要:

人类知道何时需要求助,例如 $347 \times 28$ 需要计算器而 $2+2$ 不需要。语言模型则不然。基于提示的方法可以指导模型何时调用工具,但这种脚手架并不能教会模型识别自身知识的边界。将单一结果奖励分配给整个轨迹的强化学习方法同样效果不佳:轨迹级信用无法隔离成功回合中哪个工具调用真正有帮助,也无法惩罚不必要的调用。我们提出 \textbf{CARL}(\textbf{C}ompetence-\textbf{A}ware \textbf{R}einforcement \textbf{L}earning),该方法在模型自身的 rollout 上训练评论家,以学习参数知识何时足够以及何时需要外部帮助。通过在每个 rollout 的自然工具使用边界(例如代码围栏分隔符和上下文块转换)处进行分解,CARL 从单一二元结果中为每个片段分配独立信用,无需外部评判或步骤级标注。因此,错误的工具调用、不正确的提取以及不必要的调用各自获得适当符号的优势。训练好的评论家捕捉了模型的领域能力:在7B规模下,它以AUC 0.93区分参数可解问题与工具依赖问题。在涵盖算术、多跳事实问答和金融表格数值推理的五个基准上,CARL在7B和3B规模下分别比最佳RL基线提高了6.7和9.7个精确匹配准确率点,其中在Musique上增益最大(7B +8.3 EM,3B +9.0 EM)。模型在参数可回答的问题上减少了53%的工具调用,同时在这些问题上仍保持约10个EM点的更高准确率。增益在小规模上最大:3B的改进是7B改进的1.4倍,这表明知道何时求助对参数记忆较小的模型有更大益处。

英文摘要:

Humans know when to reach for help e.g. $347 \times 28$ warrants a calculator while $2+2$ does not. Language models do not. Prompt-based approaches can instruct a model when to invoke tools, but this scaffolding does not teach it to recognize the boundary of its own knowledge. RL approaches that assign a single outcome reward to the whole trajectory fare no better: trajectory-level credit cannot isolate which tool call in a successful episode actually helped, nor penalize unnecessary calls. We propose CARL (Competence-Aware Reinforcement Learning), which trains a critic on the model's own rollouts to learn where parametric knowledge suffices and where it needs external help. By decomposing each rollout at natural tool-use boundaries (e.g., code fence delimiters and context block transitions), CARL assigns independent credit to each segment from a single binary outcome, without external judges or step-level annotations. As a result, erroneous tool calls, incorrect extractions, and unnecessary calls each receive appropriately signed advantages. The trained critic captures the model's domain competence: it separates parametrically solvable from tool-dependent questions with AUC 0.93 at 7B. On five benchmarks spanning arithmetic, multi-hop factual QA, and numerical reasoning over financial tables, CARL improves average exact-match accuracy on the three search benchmarks by 6.7 points at 7B and 9.6 points at 3B over the best RL baseline, with the largest gain (+8.3 EM at 7B, +12.5 EM at 3B) on MuSiQue. At 7B, CARL has a 53% lower tool-use rate than Search-R1 PPO on parametrically answerable questions while remaining 9.8 EM points more accurate on them. Gains are largest at small scale: the 3B improvement is $1.4\times$ the 7B improvement, suggesting that knowing when to ask disproportionately benefits models with smaller parametric memory.

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

↑