Scaling Laws for Tool-Use Agents via Controllable Environment Synthesis

LLM SFT Other LLM Agent Tool Learning Agent Eval Benchmarks ML NNGTB
我们探讨了如何构建高性能的大语言模型(LLM)工具调用智能体,以完成复杂、多步骤的任务。具体而言,我们研究了在人工合成的工具调用环境中,训练数据的构成方式如何影响此类智能体的训练效果。为此,我们提出了 SynthAPI 流程框架,该框架可显式地沿三大维度——可用工具、待执行任务以及工具所操作的数据库——精确调控所生成环境的多样性。通过在 458,752 项任务上系统性地调整 SynthAPI 的生成参数,并在 849 个不同规模(共四种尺寸)的模型上开展实验,我们归纳出一条标度律(scaling law):该规律可根据合成环境的规模与构成特征,准确预测下游工具调用智能体的泛化能力。这些可预测的规律揭示了若干关于工具调用智能体数据规模化建设的重要启示:随着数据预算的增加,提升工具种类和数据库的多样性,其效果优于单纯增加任务数量;同时,提高数据本身的复杂性所能带来的性能增益更为显著。依据上述发现进行数据规模化扩展后,所训练出的智能体在四个评估基准测试中,全面超越了以往大规模工具调用智能体研究及合成环境生成工作中所采用的数据所训练出的模型。
We explore how to build performant large language model (LLM) tool-use agents that complete complex, multi-step tasks. Specifically, we study how data composition in synthetically generated tool-use environments affects the training of such agents. To do so, we propose the SynthAPI pipeline, which explicitly controls the diversity of generated environments along the axes of tools, tasks, and the databases on which the tools operate. By systematically varying SynthAPI's generation controls in 458,752 tasks across 849 trained models of four different sizes, we derive a scaling law that predicts downstream tool-use agent generalization based on the scale and composition of the synthesized environments. These predictable relationships reveal several lessons for scaling tool-use agent data. As data budgets grow, scaling tool and database diversity becomes more effective than increasing the number of tasks, and increasing data complexity yields larger gains. Scaling according to these findings yields agents that outperform models trained on data from prior work in large-scale tool-use agent and synthetic environment generation across four evaluation benchmarks.
许愿