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

少行动即多推理!教会模型高效行动

Acting Less is Reasoning More! Teaching Model to Act Efficiently

The Chinese University of Hong Kong(香港中文大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴娜-香槟分校);Princeton University(普林斯顿大学);Sun Yat-sen University(中山大学);Hong Kong University of Science and Technology(香港科学理工大学)

Hongru Wang, Cheng Qian, Wanjun Zhong, Xiusi Chen, Jiahao Qiu, Shijue Huang, Bowen Jin, Mengdi Wang, Kam-Fai Wong, Heng Ji

AI总结:

本文提出OTC-PO框架,通过工具集成奖励同时优化答案正确性与工具调用效率,在PPO和GRPO中实例化后显著减少工具调用并提升工具生产率,同时保持准确率。

摘要:

工具集成推理(TIR)增强了大语言模型(LLMs)在长程推理过程中调用外部工具的能力,例如搜索引擎和代码解释器,以解决超出内部推理能力范围的任务。尽管强化学习(RL)在训练此类智能体方面已展现出潜力,但现有大多数方法通常只优化最终正确性,而不考虑外部工具使用的效率或必要性。这往往导致过度的工具调用,带来高昂的计算成本,并阻碍内部推理能力的发展——这一现象被称为“认知卸载”。为此,我们提出了最优工具调用控制策略优化(OTC-PO),这是一个简单而有效的基于强化学习的框架,鼓励模型以最少的工具调用产生准确的答案。我们的方法引入了一种工具集成奖励,该奖励同时考虑答案正确性以及模型为得到该答案所对应的工具使用行为。为了验证有效性,我们引入了“工具生产率”这一指标,其定义为所有测试用例中正确答案数量与工具调用总数之比。该指标反映了工具使用对成功完成任务的贡献效率,数值越高表明推理越智能、越自主。我们在近端策略优化(PPO)和分组相对偏好优化(GRPO)中实例化了该框架,得到OTC-PPO和OTC-GRPO。在多个问答基准上使用Qwen-2.5和Qwen-Math进行的实验表明,我们的方法将工具调用次数最多减少了68.3%,并将工具生产率最多提高了215.4%,同时保持了相当的答案准确率。

英文摘要:

Tool-integrated reasoning (TIR) augments large language models (LLMs) with the ability to invoke external tools during long-form reasoning, such as search engines and code interpreters, to solve tasks beyond the capabilities of internal reasoning. While reinforcement learning (RL) has shown promise in training such agents, most of existing approaches typically optimize only for final correctness without considering the efficiency or necessity of external tool use. This often leads to excessive tool calling, incurring high computational costs and hindering the development of internal reasoning capabilities - a phenomenon known as \textit{cognitive offloading}. To this end, we propose Optimal Tool Call-controlled Policy Optimization (OTC-PO), a simple yet effective RL-based framework that encourages models to produce accurate answers with minimal tool calls. Our method introduces a tool-integrated reward that jointly considers answer correctness and corresponding tool use behavior of model to reach that answer. To validate the effectiveness, we introduce the metric of \textit{tool productivity}, defined as the ratio between the number of correct answers and the total number of tool calls across all test cases. This metric reflects how efficiently tool usage contributes to successful task completion, with higher values indicating smarter and more autonomous reasoning. We instantiate this framework within both Proximal Policy Optimization (PPO) and Group Relative Preference Optimization (GRPO), resulting in OTC-PPO and OTC-GRPO. Experiments with Qwen-2.5 and Qwen-Math across multiple QA benchmarks show that our approach reduces tool calls by up to 68.3\% and improves tool productivity by up to 215.4\%, while maintaining comparable answer accuracy.

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

↑