arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2507.05065cs.LGcs.AI
收藏

用工具使用替代思考使小型语言模型具备推理能力

Replacing thinking with tool usage enables reasoning in small language models

Qualcomm AI Research(高通人工智能研究)

Corrado Rainone, Tim Bakker, Roland Memisevic

AI总结:

本文提出用有状态工具的多轮交互轨迹替代自然语言思考,在 Python 代码修复任务上实现更快的经验采样和更密集的奖励信号,使 3B 以下的小型语言模型也能学会通过额外计算进行推理。

摘要:

近期进展建立了一种新的机器学习范式,其基础是在推理时间和训练时间同时扩大计算规模。在这一研究方向上,监督微调(SFT)与可验证奖励强化学习(RLVR)的组合被用于训练大型语言模型,使其在推理期间以自然语言表达的“思考”形式消耗额外计算。在本文中,我们提出将这些 token 格式化为与一个有状态工具之间的多轮交互轨迹。在每一轮中,工具的新状态被追加到模型的上下文中,模型的任务是生成通过自定义 DSL 控制该工具所需的 token。我们在修复有故障的 Python 代码这一问题上对该方法进行了基准测试,并表明这种受限设置能够实现更快的经验采样和更密集的奖励信号,使得即使规模不超过 3B 参数的模型也能学会熟练地在任务上消耗额外计算。

英文摘要:

Recent advances have established a new machine learning paradigm based on scaling up compute at inference time as well as at training time. In that line of work, a combination of Supervised Fine-Tuning (SFT) on synthetic demonstrations and Reinforcement Learning with Verifiable Rewards (RLVR) is used for training Large Language Models to expend extra compute during inference in the form of "thoughts" expressed in natural language. In this paper, we propose to instead format these tokens as a multi-turn interaction trace with a stateful tool. At each turn, the new state of the tool is appended to the context of the model, whose job is to generate the tokens necessary to control the tool via a custom DSL. We benchmark this approach on the problem of repairing malfunctioning Python code, and show that this constrained setup allows for faster sampling of experience and a denser reward signal, allowing even models of size up to 3B parameters to learn how to proficiently expend additional compute on the task.

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

↑