arXiv(opens in a new tab)cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.37648

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 Toshev

Andrew Szot, Samira Abnar, Omar Attia, Abbas Kazerouni, Michael Kirchhof, Cheng-Yu Hsieh, Raviteja Vemulapalli, Alexander Toshev

Apple

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.

Correspondence: Andrew Szot: a_szot@apple.com

Date: October 28, 2026

1 Introduction

Large language models (LLMs) have demonstrated impressive capabilities as tool-use agents that interact with complex, stateful environments (Trivedi et al., 2024; Patil et al., 2025). Such agents must select and compose tools over multiple steps while tracking state changes and generalizing to new environments with new APIs. Progress in developing such agents depends on scaling high-quality, diverse training data. Yet producing this data is challenging because multi-step tool interactions are scarce in internet text and require realistic tasks, diverse tools, and rich environment data.

Prior work addresses this challenge by using LLMs to synthesize tool-use data. While many existing works focus on synthesizing tool-use data to train stateless, read-only tool-use agents (Schick et al., 2023), work on scaling supervision for stateful tool-use agents is more limited. Some approaches use LLMs to synthesize entire tool-use trajectories, including simulating the tool responses (Liu et al., 2024a; Tang et al., 2023). These techniques have demonstrated impressive scaling (NVIDIA, 2025; Lee et al., 2026), but complex tool outputs and state transitions can be difficult to simulate reliably. Other approaches synthesize code-backed executable tool environments (Wang et al., 2026; Song et al., 2026; Xu et al., 2026; Dong et al., 2026). However, these efforts primarily emphasize increasing data quantity, leaving open which properties of the generated data drive downstream performance. Tool-use agent data varies in the diversity of available tools, the tasks they support, and the database states over which they operate. Understanding how these properties affect generalization is necessary to determine what data to generate as training scales.

To study these relationships, we introduce SynthAPI, a controllable synthesis pipeline for multi-step tool-use environments. SynthAPI uses LLMs to implement apps comprising Python tools that read and modify

Apple and the Apple logo are trademarks of Apple Inc., registered in the U.S. and other countries and regions.

Multi-Step Tool Agent Environments

Agent Action

Task

Play a music playlist with enough songs for the entire workout today. My workout plan is in my notes app.

"I need to find the user's music library and search what songs will fit into their workout. First I will search for their workout length..."

notes = show_notes()

print([note['content'] for note in notes])

Environment Response

"playlist_id": "pl_7f3a91c2",

"name": "Late Night Mix",

"is_public": true,

"track_count": 4,

"duration_ms": 913000,

"tracks": [

"I found their workout content, next I will search for a playlist that is longer than the workout"

playlists = show_playlists()

playlist_durations = []

for playlist in playlists:

playlist_durations.append(...

SynthAPI: generates synthetic tool-use environments at scale

Control the diversity along axes of

Tools

show_playlists() -> List[Playlist]

add_item_to_cart(product_id, quantity)

send_message(recipient_number, content)

...

Tasks

"Process a return for the running shoes from my last order."

"View the applied pronos in my cart."

"Send a message to everyone I paid back."

Data Profiles

Product(Name, Skews, Reviews, Description)

Playlist(Title, SongIds, Plays)

Seller(SellerName, Products, Reviews)

...

Control properties and composition of synthesized environments

SynthAPI Env Composition Controls

Give Predictable Scaling

Figure

Calibrate diversity of tools/tasks/data profiles for optimal performance at fixed FLOP/model-size

Figure 1 Overview of SynthAPI. On the left, we show the tool-use agent tasks we focus on, where given an instruction, an agent must reason and execute tool calls to complete the task. In the middle, the SynthAPI pipeline generates synthetic tool-use agent environments at scale. SynthAPI generates this data while controlling the diversity of the tools, tasks, and starting database states. These controls allow deriving the scaling laws on the right (presented in detail in Figure 3).

structured databases. SynthAPI then generates tasks with initial database states, which we call data profiles and executable success verifiers. The key distinction from prior executable environment synthesis approaches is that SynthAPI provides explicit controls over the diversity of tools, tasks, and data profiles. These controls allow us to vary the composition of the synthesized training tasks and study how a fixed budget should be allocated among new tools, new tasks, and new data profiles. Figure 1 summarizes the pipeline and its controls.

We use this controllability to derive a predictive scaling law that uses data composition factors to predict downstream tool-use agent generalization. We find that the data composition that best supports downstream generalization changes with scale. Comparisons at fixed task budgets show that, as these budgets grow, expanding tool diversity becomes more valuable than generating additional tasks within the same set of tools. Furthermore, repeating the same tasks with different data profiles also becomes more important than generating new tasks. Training with more complex data profiles also yields larger gains at higher budgets. These findings emphasize the importance of tool and data profile diversity over simply increasing the number of tasks. We propose an environment composition dependent scaling law that captures these effects. Across four model sizes, we hold out the runs in the top 25% of training FLOPs and show that the law extrapolates to them, including runs with up to 16×16\times the largest FLOP budget used for fitting, achieving a mean absolute error of 0.0285 on the normalized downstream score, compared with 0.1706 for a scaling model that relies on the number of tasks alone and ignores the composition of environment properties.

With the optimal environment composition recipe determined by our proposed method, we show SynthAPI transfers to broad tool-use agent benchmarks across AppWorld, BFCL, and ASTRA-Bench (Trivedi et al., 2024; Patil et al., 2025; Xiu et al., 2026). At a fixed data budget, the recipe identified by our analysis outperforms a suboptimal recipe that simply relies on scaling the number of tasks alone across all model sizes and benchmarks. We find that agents trained on the SynthAPI data outperform agents trained on prior large-scale tool-use agent data (NVIDIA, 2025) by 30.5 percentage points on average across the three benchmarks. We also compare SynthAPI to strong per-benchmark data synthesis baselines, outperforming the strongest baseline at each model size by 7.6–11.6 percentage points on AppWorld Test-Challenge and 2.0–3.7 points on BFCL (Lee et al., 2026; Xu et al., 2026; Song et al., 2026). These results demonstrate the importance of properly scaling the data composition of synthesized environments through our scaling law enabled by the controllable environment generation in SynthAPI.

References (28)