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

利用强化学习提升小语言模型的工具使用能力

Advancing SLM Tool-Use Capability using Reinforcement Learning

Dept. of Computer Engineering MPSTME, NMIMS(计算机工程系 MPSTME、NMIMS)

Dhruvi Paprunia, Vansh Kharidia, Pankti Doshi

AI总结:

本研究利用群体相对策略优化(GRPO)强化学习,通过设计奖励系统提升小语言模型(SLMs)在工具使用(函数调用/JSON输出)上的准确性,提供了一种计算高效的训练方法。

摘要:

在工具增强型AI智能体日益重要的时代,我们的研究结果凸显了群体相对策略优化(GRPO)能够赋能传统上在工具使用方面受限的小语言模型(SLMs)。有效使用工具的能力已成为大语言模型(LLMs)的一个决定性特征,使其能够访问外部数据和内部资源。随着AI智能体变得越来越复杂,工具使用能力已变得不可或缺。尽管LLMs在这一领域取得了显著进展,但小语言模型(SLMs)在准确整合工具使用方面仍面临挑战,尤其是在资源受限的环境中。本研究探讨了强化学习,特别是群体相对策略优化(GRPO),如何提升SLMs的工具使用准确性。通过设计一个定义良好的奖励系统,强化结构化JSON输出、正确的工具选择以及精确的参数使用,我们证明了GRPO能使SLMs在工具使用能力(函数调用/JSON输出)方面取得显著改进。我们的方法提供了一种计算高效的训练方法,增强了SLMs在实际AI应用中的部署能力。

英文摘要:

In an era where tool-augmented AI agents are becoming increasingly vital, our findings highlight the ability of Group Relative Policy Optimization (GRPO) to empower SLMs, which are traditionally constrained in tool use. The ability to use tools effectively has become a defining feature of Large Language Models (LLMs), allowing them to access external data and internal resources. As AI agents grow more sophisticated, tool-use capabilities have become indispensable. While LLMs have made significant progress in this area, Small Language Models (SLMs) still face challenges in accurately integrating tool use, especially in resource-constrained settings. This study investigates how Reinforcement Learning, specifically Group Relative Policy Optimization (GRPO), can enhance the tool-use accuracy of SLMs. By designing a well-defined reward system that reinforces structured JSON output, correct tool selection, and precise parameter usage, we demonstrate that GRPO enables SLMs to achieve significant improvements in tool-use capabilities (function calling/JSON output). Our approach provides a computationally efficient training method that enhances SLMs practical deployment in real-world AI applications.

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

↑