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:
- 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. - 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.
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.
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.
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