TL;DR
When training AI agents with reinforcement learning, treating "data" as a single number—like total tokens—hides a massive design choice. By breaking agentic data down into environments, tasks, and trajectories, this paper reveals that scaling environment diversity gives you far more bang for your buck than the standard practice of generating endless action rollouts. Using these new scaling laws to optimize where you spend your compute budget yields up to $1.7\times$ better efficiency.
What Problem Does This Paper Address?
In standard large language model (LLM) pretraining, scaling laws (like Chinchilla) treat data as a one-dimensional pile of tokens: pour more tokens in, get predictable improvements out. Agentic reinforcement learning (RL)—where models learn to use tools, browse the web, and write code—quietly inherited this habit, measuring data simply by rollout tokens or prompt counts.
Today, however, synthetic data pipelines can generate practically infinite training data. An agentic data point isn't a flat string of text; it is a bundle of an environment (the codebase, app, or API rules), a task (the goal to achieve), and a trajectory (the step-by-step actions the model takes). Because each of these is synthesized differently and at wildly different costs, the core question shifts from "how much data should I collect?" to "where should I spend my budget?"
As shown above, two training runs burning the exact same compute and tokens can differ by nearly 14 percentage points in task success, purely based on how that budget was divided.
Methods
To turn guesswork into math, the authors build a three-step framework using standard RL algorithms (GRPO and PPO) across Qwen3 (4B/8B/14B), Qwen2.5-7B, and Llama-3.1-8B models:
- Decomposing the Data Tensor: Instead of one scalar, they separate data into three distinct axes—unique environments ($D_{\text{E}}$), unique tasks ($D_{\text{T}}$), and average trajectories/rollouts per task-environment pair ($D_\tau$)—plus a categorical control variable for sparse vs. dense rewards. Using $-\log(p_{\text{success}})$ as a smooth stand-in for loss, they hold two axes at saturation and sweep the third to fit independent power-law scaling exponents ($\alpha$). They also split environments into worlds (distinct apps or code repos) and structural variants (API schemas or tool interfaces).
- Pricing Synthetic Data: Using these fitted laws as a common ruler, they evaluate popular synthesis methods (like AWM for environments, AutoPlay for tasks, and SWiRL for trajectories). They measure a "discount factor" $\kappa \in [0,1]$ (how much real-data value one unit of synthetic data actually provides) and pinpoint the critical synthetic-to-real ratio ($r^\star$) where model performance begins to collapse.
- Budget Optimization: Combining per-axis scaling exponents, synthesis discounts, and unit generation costs into a constrained Lagrangian optimization, they derive a Chinchilla-style recipe specifying how model size and each data axis should grow with total compute $C$.
Datasets
Rather than introducing a new benchmark, the authors stress-test their laws across five diverse existing agentic domains:
- Math+Code: Synthetic math problems (ZeroTIR recipe) with a Python interpreter, evaluated on AIME24/25, MATH500, and AMC23.
- Code Agents (SWE): SWE-Gym execution environments, evaluated on SWE-bench Verified.
- Web Agents: WebArena-Lite (via BrowserGym) and WebShop.
- UI/Tool Agents: AppWorld and ALFWorld.
- Search Agents: Wikipedia retrieval + web-search API, evaluated on Bamboogle and a multi-hop split.
Key Insights and Ideas
- The Iron Hierarchy of Agentic Data: Across all 21 tested combinations of models, domains, and RL algorithms, the scaling exponents strictly follow $\alpha_{\text{E}} > \alpha_{\text{T}} > \alpha_\tau$. Digging deeper, environment scaling wins because of world diversity (new apps/repos), whereas structural API tweaks scale roughly on par with new tasks. New worlds force genuine generalization; resampling trajectories mostly just reduces variance in territory the model has already explored.
- Environments Gate Tasks: Cross-axis experiments reveal a prerequisite bottleneck: if your pool of environments is tiny, generating thousands of new tasks yields near-zero return.
- The Synthesis-Allocation Paradox: Most open-source RL pipelines dump the vast majority of their compute into generating trajectories. Yet trajectories have both the flattest scaling exponent and collapse earliest when using synthetic data. Why? Groundedness. Synthetic code environments are kept honest at every step by a strict interpreter, whereas synthetic trajectories sampled from the model itself just echo and amplify the model's own biases.
- Data Variety Trumps Model Size: Compared to Chinchilla pretraining (which splits compute $C^{0.50}$ to data and $C^{0.50}$ to model parameters), agentic RL is hungry for data diversity—demanding $C^{0.74}$ across the data axes and only $C^{0.26}$ for model size.
Key Results
- Per-Axis Exponents: On Qwen3-8B (Math+Code), exponents fit cleanly ($R^2 > 0.97$) at $\alpha_{\text{E}} = 0.41$, $\alpha_{\text{T}} = 0.26$, and $\alpha_\tau = 0.11$. Separating worlds ($W$) from structure ($V$) yields $\alpha_{\text{W}} = 0.44 > \alpha_{\text{V}} = 0.28 \approx \alpha_{\text{T}} > \alpha_\tau = 0.11$.
- Collapse Thresholds: Synthetic environment generation stays net-positive up to a synthetic-to-real ratio of $r^\star_{\text{E}} \approx 9.4$, compared to $r^\star_{\text{T}} \approx 3.4$ for tasks, and an early collapse at $r^\star_\tau \approx 1.4$ for trajectories.
- The Compute-Optimal Recipe: Optimal budget allocation scales with compute $C$ as $D^\star_{\text{E}} \propto C^{0.34}$, $D^\star_{\text{T}} \propto C^{0.27}$, $D^\star_\tau \propto C^{0.13}$, and model size $N^\star \propto C^{0.26}$.
- Held-Out Validation: Extrapolating from smaller runs to a 32$\times$ base compute budget on Qwen3-14B predicted a $51.7\%$ success rate and achieved $51.3\%$ empirically. This beat a Chinchilla-style equal-split baseline ($47.3\%$) and crushed the standard trajectory-heavy baseline ($42.9\%$), translating to a $1.4\times$ to $1.7\times$ compute-efficiency gain.
Limitations and Future Work
- Cost Sensitivity for Real Worlds: While world diversity scales steepest, building or acquiring brand-new, verifiable worlds (like wiring up a fresh GitHub repo with test harnesses) can be expensive. If a new world costs more than ~$40 USD-equivalent, task synthesis overtakes it on a strict per-dollar basis (though trajectory resampling still ranks dead last).
- Reward Axis Simplification: Reward density was only treated as a binary sparse/dense multiplier rather than a continuous, orthogonal scaling axis.
- Future Directions: The authors highlight verifying these laws at frontier model scales, modeling richer cross-axis interactions, and pairing their high-level budget recipe with curriculum learning methods that decide in what order to feed that data during training.
Summary updated