LoopTool: Closing the Data-Training Loop for Robust LLM Tool Calls
LoopTool是一种全自动、模型感知的数据演变框架,通过紧密集成数据合成和模型训练,提高大型语言模型(LLM)工具使用能力。
更新于 2026-04-29。作者:Kangning Zhang、Wenxiang Jiao、Kounianhua Du、Yuan Lu、Weiwen Liu、Weinan Zhang、Lei Zhang、Yong Yu。
中文摘要
通过将外部工具与大型语言模型(LLMs)相结合,可以使其执行复杂的多步骤任务。然而,工具学习受到静态的合成数据管道的阻碍,其中数据生成和模型训练作为两个独立的、非交互的过程执行。这种方法无法自适应地关注模型的具体弱点,并允许噪声标签持续存在,降低训练效率。我们引入了LoopTool,这是一个完全自动化的、模型感知的数据演化框架,通过紧密集成数据合成和模型训练来闭合这个循环。LoopTool通过三个协同模块迭代地改进数据和模型:(1)贪婪能力探测(GCP)诊断模型已掌握和失败的技能;(2)判断引导标签验证(JGLV)使用开源的判断模型来查找和纠正标注错误,逐步净化数据集;(3)错误驱动数据扩展(EDDE)根据识别到的失败生成新的、具有挑战性的样本。这个闭环过程在一个成本效益高、开源的生态系统中运行,消除了对昂贵闭源API的依赖。实验表明,使用LoopTool训练的80亿参数模型显著优于其320亿参数的数据生成器,并在BFCL-v3和ACEBench基准测试中实现了其规模的新最先进结果。我们的工作表明,闭环、自我优化的数据管道可以显著提高LLMs的工具使用能力。
英文摘要
Augmenting Large Language Models (LLMs) with external tools enables them to execute complex, multi-step tasks. However, tool learning is hampered by the static synthetic data pipelines where data generation and model training are executed as two separate, non-interactive processes. This approach fails to adaptively focus on a model's specific weaknesses and allows noisy labels to persist, degrading training efficiency. We introduce LoopTool, a fully automated, model-aware data evolution framework that closes this loop by tightly integrating data synthesis and model training. LoopTool iteratively refines both the data and the model through three synergistic modules: (1) Greedy Capability Probing (GCP) diagnoses the model's mastered and failed capabilities; (2) Judgement-Guided Label Verification (JGLV) uses an open-source judge model to find and correct annotation errors, progressively purifying the dataset; and (3) Error-Driven Data Expansion (EDDE) generates new, challenging samples based on identified failures. This closed-loop process operates within a cost-effective, open-source ecosystem, eliminating dependence on expensive closed-source APIs. Experiments show that our 8B model trained with LoopTool significantly surpasses its 32B data generator and achieves new state-of-the-art results on the BFCL-v3 and ACEBench benchmarks for its scale. Our work demonstrates that closed-loop, self-refining data pipelines can dramatically enhance the tool-use capabilities of LLMs.
解读
一句话总结
LoopTool是一种全自动、模型感知的数据演变框架,通过紧密集成数据合成和模型训练,提高大型语言模型(LLM)工具使用能力。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:在LLM工具使用中,数据生成和模型训练是分开的,导致模型无法适应模型的具体弱点,且存在噪声标签,降低了训练效率。
- 现有方案不足:静态合成数据管道无法自适应地关注模型的具体弱点,且允许噪声标签存在,降低了训练效率。
- 研究目标:提出LoopTool,通过紧密集成数据合成和模型训练,实现数据演变和模型训练的闭环,提高LLM工具使用能力。
问题2:论文的核心创新点是什么?
- 技术创新:LoopTool是一个全自动、模型感知的数据演变框架,通过三个协同模块(GCP、JGLV、EDDE)迭代优化数据和模型。
- 方法改进:GCP诊断模型的能力;JGLV使用开源的评估模型进行标签验证;EDDE基于错误生成新的样本。
- 优势:LoopTool能够自适应地关注模型的具体弱点,提高训练效率,避免依赖昂贵的闭源API。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在BFCL-v3和ACEBench基准测试中,使用LoopTool训练的8B模型显著优于32B数据生成器,并取得了新的最先进的结果。
- 性能提升:LoopTool-8B在BFCL-v3上的总体准确率达到74.93%,在ACEBench上的总体准确率达到73.4%,均优于Qwen3-8B。
- 对比结果:LoopTool-8B在BFCL-v3和ACEBench基准测试中均取得了最先进的结果,证明了LoopTool的有效性。
问题4:这个研究的实际应用价值是什么?
- 应用场景:LoopTool可以应用于需要工具使用的复杂任务,如API调用、数据库查询和计算引擎交互等。
- 实施建议:LoopTool可以作为一个开源的数据演变框架,用于LLM工具使用训练。
- 局限与展望:LoopTool目前是一个离线迭代框架,未来可以探索在线或流式版本,以及并行迭代方案,以实现更快和更自适应的数据-模型协同进化。