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

从失败到精通:为工具使用代理生成困难样本

From Failure to Mastery: Generating Hard Samples for Tool-use Agents

Bingguang Hao, Zengzhuang Xu, Yuntao Wen, Xinyi Xu, Yang Liu, Tong Zhao, Maolin Wang, Long Chen, Dong Wang, Yicheng Chen, Cunyin Peng, Xiangyu Zhao, Chenyi Zhuang, Ji Zhang

AI总结:

本文提出HardGen方法,通过生成具有可验证推理的困难样本,提升工具使用代理的训练效果。

摘要:

大型语言模型代理的进步需要多样且复杂的训练语料。现有的数据生成方法大多遵循随机采样和浅层生成的范式,往往产生简单且同质的轨迹,无法捕捉复杂的、隐含的逻辑依赖关系。为此,我们引入了HardGen,一个自动代理流水线,旨在生成具有可验证推理的困难工具使用训练样本。首先,HardGen基于代理失败案例构建动态API图,从中采样以合成困难轨迹。其次,这些轨迹作为条件先验,指导模块化、抽象高级工具的实例化,随后用于制定困难查询。最后,高级工具和困难查询能够生成可验证的复杂思维链(CoT),闭环评估反馈引导过程的持续优化。大量评估显示,使用我们精心编纂的数据集训练的4000亿参数模型在对比领先开源和闭源竞争对手(如GPT-5.2、Gemini-3-Pro和Claude-Opus-4.5)时表现更优。我们的代码、模型和数据集将开源以促进未来研究。

英文摘要:

The advancement of LLM agents with tool-use capabilities requires diverse and complex training corpora. Existing data generation methods, which predominantly follow a paradigm of random sampling and shallow generation, often yield simple and homogeneous trajectories that fail to capture complex, implicit logical dependencies. To bridge this gap, we introduce HardGen, an automatic agentic pipeline designed to generate hard tool-use training samples with verifiable reasoning. Firstly, HardGen establishes a dynamic API Graph built upon agent failure cases, from which it samples to synthesize hard traces. Secondly, these traces serve as conditional priors to guide the instantiation of modular, abstract advanced tools, which are subsequently leveraged to formulate hard queries. Finally, the advanced tools and hard queries enable the generation of verifiable complex Chain-of-Thought (CoT), with a closed-loop evaluation feedback steering the continuous refinement of the process. Extensive evaluations demonstrate that a 4B parameter model trained with our curated dataset achieves superior performance compared to several leading open-source and closed-source competitors (e.g., GPT-5.2, Gemini-3-Pro and Claude-Opus-4.5). Our code, models, and dataset will be open-sourced to facilitate future research.

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

↑