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

ToolForge: 一种无需真实世界API的多跳搜索数据合成管道

ToolForge: A Data Synthesis Pipeline for Multi-Hop Search without Real-World APIs

North China University of Technology(华北理工大学);Meituan(美团);Institute of Software, Chinese Academy of Sciences(中国科学院软件研究所);National University of Singapore(新加坡国立大学);East China Normal University(华东师范大学)

Hao Chen, Zhexin Hu, Jiajun Chai, Haocheng Yang, Hang He, Xiaohan Wang, Wei Lin, Luhang Wang, Guojun Yin, Zhuofeng zhao

AI总结:

ToolForge通过构建虚拟工具生成多跳搜索数据,无需真实API调用,提升模型在多跳推理任务中的性能。

摘要:

训练大语言模型调用工具并利用检索信息需要高质量、多样化的数据。然而,现有的合成数据生成管道往往依赖成千上万次真实API调用来增强泛化能力,这带来了高昂的成本,同时缺乏多跳推理和自我反思能力。为了解决这些限制,我们引入了ToolForge,一种自动化合成框架,通过仅构建少量虚拟工具来实现强大的真实世界工具调用性能,从而消除了对真实API调用的需要。ToolForge利用(问题,黄金上下文,答案)三元组来合成大规模工具学习数据,专门设计用于多跳搜索场景,并通过多跳推理和自我反思机制进一步丰富生成数据。为确保数据的准确性,我们采用多层验证框架,整合了基于规则和基于模型的评估方法。实验结果表明,一个仅有8B参数的模型,当在我们的合成数据上进行训练时,在多个基准测试中优于GPT-4o。我们的代码和数据集可在https://github.com/Buycar-arb/ToolForge上公开获取。

英文摘要:

Training LLMs to invoke tools and leverage retrieved information necessitates high-quality, diverse data. However, existing pipelines for synthetic data generation often rely on tens of thousands of real API calls to enhance generalization, incurring prohibitive costs while lacking multi-hop reasoning and self-reflection. To address these limitations, we introduce ToolForge, an automated synthesis framework that achieves strong real-world tool-calling performance by constructing only a small number of virtual tools, eliminating the need for real API calls. ToolForge leverages a (question, golden context, answer) triple to synthesize large-scale tool-learning data specifically designed for multi-hop search scenarios, further enriching the generated data through multi-hop reasoning and self-reflection mechanisms. To ensure data fidelity, we employ a Multi-Layer Validation Framework that integrates both rule-based and model-based assessments. Empirical results show that a model with only 8B parameters, when trained on our synthesized data, outperforms GPT-4o on multiple benchmarks. Our code and dataset are publicly available at https://github.com/Buycar-arb/ToolForge .

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

↑