Scaling Laws for Tool-Use Agents via Controllable Environment Synthesis

Andrew Szot, Samira Abnar, Omar Attia, Abbas Kazerouni, Michael Kirchhof, Cheng-Yu Hsieh, Raviteja Vemulapalli, Alexander ToshevarXiv 2026 · arXiv

TL;DR

The paper introduces SynthAPI, a controllable pipeline for generating synthetic tool-use environments, and uses it to derive the first scaling laws for training LLM agents. The authors demonstrate that as training budgets grow, diversifying tools and database states becomes significantly more effective for generalization than simply increasing the number of tasks.

What Problem Does This Paper Address?

Large Language Models (LLMs) are increasingly used as "agents" that interact with the world via APIs. However, training these agents to handle complex, multi-step tasks is difficult because high-quality interaction data is scarce on the open web.

While researchers have turned to synthetic data, most existing approaches treat data generation as a "black box," focusing on sheer volume. This leaves a critical gap: we don't know which properties of synthetic data—such as the number of available tools, the variety of tasks, or the complexity of the underlying database—actually drive an agent's ability to generalize to new environments. This paper seeks to turn synthetic data generation into a science by establishing predictable scaling laws.

Methods

The authors propose SynthAPI, a two-stage pipeline designed for maximum controllability:

  1. App Generation: A "builder LLM" (Gemini-3.1 Pro) generates entire Python-based "apps." Each app includes a database schema (db.py), a set of functional APIs (apis.py), and metadata. This mirrors real-world settings where tools are part of a coherent system.
  2. Task Generation: The system synthesizes task instructions, programmatic success verifiers, and "oracle solvers" (expert trajectories) to provide training supervision.

The core innovation is the ability to explicitly control four axes of diversity:

  • $A$ (Apps): The number of different toolsets/APIs.
  • $T$ (Tasks per App): The number of unique instructions for a given toolset.
  • $S$ (Database Breadth): The number of different starting database states for the same task.
  • $D$ (Database Depth): The amount of "distractor" data (irrelevant records) in the database.

The authors trained 849 models (ranging from 2B to 27B parameters) across 458,752 tasks to observe how varying these parameters affects downstream performance.

Overview of the SynthAPI pipeline and the resulting scaling laws.

Datasets

  • SynthAPI (Training): A massive collection of 458,752 synthetic tasks across 64 apps, totaling approximately 5.9B tokens.
  • Evaluation Benchmarks: To test generalization, the authors used three major external benchmarks:
  • AppWorld: Complex, multi-app device assistant tasks.
  • BFCLv3 (Berkeley Function Calling Leaderboard): Multi-turn tool use.
  • ASTRA-Bench: Persona-driven evaluation with rich context.
  • SynthAPI-Holdout: A set of unseen apps and tasks generated by the authors' own pipeline to measure within-distribution generalization.

Key Insights and Ideas

  • The "Diversity Shift" at Scale: At low data budgets, it is more efficient to generate many tasks for a few tools. However, as the budget increases, adding more apps (tool diversity) becomes the dominant factor for performance.
  • State Diversity is Underestimated: One of the most surprising findings is that repeating the same task instruction across different database states ($S$) is highly effective at high budgets. It prevents the model from over-fitting to specific data values and forces it to learn the underlying logic of the tool.
  • Complexity Pays Off: Increasing database "depth" ($D$)—adding more distractor information—yields larger performance gains as the total training budget grows.
  • Predictable Scaling: The authors derived a joint scaling law (Equation 4.2 in the paper) that predicts agent performance based on $(A, T, S, D)$ and training FLOPs. This law is remarkably accurate, even when extrapolating to 16x more compute than used for fitting.
The effect of varying app count, database breadth, and database depth on performance.

Key Results

  • Superior Scaling: The composition-aware scaling law achieved a Mean Absolute Error (MAE) of 0.0285 on held-out runs, vastly outperforming a standard scaling model (MAE 0.1706) that only considers the total number of tasks.
  • State-of-the-Art Performance: Agents trained using the "optimal" recipe derived from their scaling law (SynthAPI-Big) outperformed models trained on prior large-scale datasets (like NVIDIA's Nemotron-Agentic) by an average of 30.5 percentage points across benchmarks.
  • Benchmark Gains: On the challenging AppWorld Test-C split, SynthAPI-Big (9B) achieved 77.0%, surpassing the strong SimSAT baseline by 11.6 points.
Visualization of the scaling law extrapolating to higher compute budgets.

Limitations and Future Work

  • Static Environments: SynthAPI currently does not simulate a "user in the loop" who might provide feedback or change requirements mid-task.
  • Semantic Depth: Since all content is synthesized from scratch, it may lack the nuanced semantic depth found in real-world long-form documents (e.g., complex email threads).
  • Generalization of the Law: The scaling law was validated on the SynthAPI pipeline; the authors note it is not guaranteed to transfer perfectly to entirely different data synthesis methods or reinforcement learning regimes.
  • Multi-App Tasks: While the agents generalize to multi-app benchmarks, the training data currently focuses on single-app interactions. Expanding SynthAPI to generate multi-app trajectories is a suggested next step.

Summary updated

Abstract

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.
BibTeX
@misc{szot2026scaling,
  author = {Andrew Szot and Samira Abnar and Omar Attia and Abbas Kazerouni and Michael Kirchhof and Cheng-Yu Hsieh and Raviteja Vemulapalli and Alexander Toshev},
  title = {{Scaling Laws for Tool-Use Agents via Controllable Environment Synthesis}},
  year = {2026},
  eprint = {2610.37648},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.37648},
}
Figure