How Data Scales in Agentic RL: Environments, Tasks and Trajectories
TL;DR. Agentic RL data has three axes: how many environments (D_E), how many distinct tasks (D_T), and how many rollouts per task–environment cell (D_τ). Fitting a power law to each, the authors find a consistent ordering, α_E ≈ 0.41 > α_T ≈ 0.26 > α_τ ≈ 0.11, across domains, model families and algorithms. They also measure how much synthetic data on each axis is worth (κ) and turn this into a budget-allocation recipe. That recipe beat a Chinchilla-style split by about 4 points at 32× base compute and matched a held-out 14B run.
Why it matters now. Most open agentic-RL pipelines spend their budget on resampling rollouts on a fixed task pool, because that is the easiest thing to scale. This paper argues that this is the worst-value axis. For a search-agent builder the practical question is whether to add retrieval backends and tool configurations, write more queries, or sample more trajectories per query. The paper includes a search domain whose environments differ in retrieval backend (BM25, dense, web API), and the same ordering held there.
Key idea
Section titled “Key idea”Success on held-out evaluation is converted to a loss-like quantity, L = −log p_success. The paper fits an additive law
Each axis is swept over a 32× nested grid while the other two are held at (256, 10,240, 8). The environment and task sweeps keep the number of task–environment cells and updates fixed, so the rollout-token count barely changes along them.
Three refinements make the law usable:
- World vs structure. An environment count mixes distinct worlds (repositories, apps, sites) with structural variants of one world. Worlds have the steepest exponent (α_W ≈ 0.44); structural variants (α_V ≈ 0.28) are about as valuable as tasks.
- Interaction. A coupling term I = −γ(D_E·D_T)^(−β) captures the finding that extra tasks barely help when the environment pool is small.
- Synthesis discount. Synthetic data on an axis counts as κ units of real data, L = f(D_real + κ·D_synth). Past a collapse ratio r*, more synthetic data hurts.
Allocation then becomes a constrained optimisation: minimise the sum of per-axis loss terms (plus a model-size term) subject to a budget where axis i costs c_i/κ_i per unit.
Key results
Section titled “Key results”All numbers are paper-reported. Default model is Qwen3-8B (also 4B and 14B, Llama-3.1-8B and Qwen2.5-7B) trained with GRPO (group size 8) in verl with VerlTool, with 3 seeds and bootstrap 95% intervals. Hyperparameters were fixed once and never re-tuned.
- Table 2 / §4.1. On math+code, α_E = 0.41 ± 0.03, α_T = 0.26 ± 0.02 and α_τ = 0.11 ± 0.02 (R² above 0.97). The ordering holds with non-overlapping intervals in all 18 model × algorithm × domain cells. Web/UI domains have larger α_E (web: 0.46).
- §4.3. Reduced sweeps keep the ordering on Llama-3.1-8B (0.36, 0.23, 0.09), Qwen2.5-7B (0.38, 0.24, 0.10) and the search domain (0.42, 0.25, 0.12). Dense rewards act as a 1.4–2.1× multiplier on D_τ without changing α_E or α_T.
- §4.4. α_W = 0.44 ± 0.04 vs α_V = 0.28 ± 0.03; content-only variation gives 0.07 ± 0.02. Shifting from 1 world × 64 variants to 8 × 8 raised SWE success from 18.0% to 26.1%.
- Table 3 / §5. Synthesis discounts and collapse ratios: AWM environments κ = 0.71, r* ≈ 9.4 (4.10 USD/env); AutoPlay tasks κ = 0.54, r* ≈ 3.1 (0.18 USD/task); SWiRL trajectories κ = 0.34, r* ≈ 1.4 (0.02 USD/trajectory). The authors call the habit of spending most on trajectories a “synthesis-allocation paradox”.
- §6.2. The fitted recipe scales D_E* ∝ C^0.34, D_T* ∝ C^0.27, D_τ* ∝ C^0.13 and N* ∝ C^0.26. At 32 × C₀ (C₀ ≈ 2.4 × 10¹⁸ FLOPs) it predicts 51.1% held-out success vs 47.3% for a Chinchilla-transferred split and 42.8% for the trajectory-heavy “naive” split.
- §6.3. Fitting on 1–8 × C₀ with 4B and 8B, then predicting Qwen3-14B at 32 × C₀ gave 51.7% ± 1.6% predicted vs 51.3% ± 1.4% measured. That corresponds to about 1.4× compute efficiency over Chinchilla-transfer and 1.7× over naive.
- §6.4. Buying new worlds ranks first per dollar until a world costs about 3.4× the paper’s highest per-environment cost (about 40 USD-equivalent). Trajectory resampling ranks last in both regimes.
Limitations & open questions
Section titled “Limitations & open questions”- The models are sub-frontier (up to 14B), world counts span only 1–8, and the structural inventory caps at 384 signatures. The authors list frontier-scale verification as future work.
- Web evaluation is task-held-out rather than site-held-out, so the environment advantage is tested on held-out worlds in only some domains.
- The cost model is linear and specific to the authors’ stack. Adding latency, verifier cost and failed rollouts shifts exponents by at most 0.06 toward tasks and trajectories. In the SWE worst case, environments no longer dominate.
- Inconsistency to check. With a cost that is linear in each D_i, the cost-share-weighted average of the per-axis C-exponents must be 1. Yet all four reported exponents (0.34, 0.27, 0.13, 0.26) are below 1, and the exact KKT solution with constant coefficients grows the low-α axis fastest. The reported recipe therefore relies on extra structure (ratio-dependent κ, the inventory cap, the bilinear rollout cost, or a finite-range fit) that the main text does not spell out. Trust the ordering more than the exponents.
- Reward density is treated as a control variable rather than a fourth axis. An easy-to-hard curriculum on the naive allocation added only 1.2 points at 32 × C₀ (against the recipe’s 8.3), and how data ordering interacts with allocation is left open.
Connections
Section titled “Connections”- Compute-side counterpart: ScaleRL fits reward against RL compute for a fixed dataset; this paper fits loss against data for a fixed recipe.
- Pre-training analogues: Chinchilla is the baseline allocation this paper beats; data-constrained scaling has the same “repeated data is worth less” idea as κ and r*; Kaplan scaling laws for the original power-law fitting.
- Agentic RL: Long-horizon tool agents and RAGEN study what makes multi-turn agent RL train well; this paper asks which data to buy for it.
- Rewards: the dense-reward multiplier connects to outcome vs process rewards.
- Retrieval angle: treating retrieval backends as environments fits the argument in deep research is a retrieval problem.
- Tooling: the experiments use verl; see the RL infrastructure hub.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
Minimise the sum of K_i·D_i^(−α_i) terms subject to a linear budget in which axis i costs c_i/κ_i per unit. Derive the KKT optimum D_i* as a function of the multiplier λ, then check whether the reported recipe exponents (0.34, 0.27, 0.13 for data and 0.26 for N) can keep a linear budget spent as compute grows 32×.
What a strong answer covers
- Stationarity: α_i·K_i·D_i^(−α_i−1) = λ·c_i/κ_i, so D_i* = (κ_i·α_i·K_i/(c_i·λ))^(1/(α_i+1)). A steeper axis, a better synthesis discount or a cheaper unit all raise D_i* at a given λ.
- Dividing c_i by κ_i prices synthetic data per real-equivalent unit: data that is only κ as useful costs 1/κ times as much per unit of real data.
- As the budget grows, λ falls, and log D_i* grows at rate 1/(1 + α_i) in log(1/λ): about 0.71 for environments, 0.79 for tasks and 0.90 for trajectories. With constant coefficients the low-α axis therefore grows fastest in relative terms, the opposite of the reported ordering.
- With a cost linear in each D_i, the cost-share-weighted average of the C-exponents must equal 1. If every exponent is below 1, a 32× budget raises spending on each axis by at most 32^0.34 ≈ 3.2×, so the budget cannot be spent. Exponents that sum to 1 are the signature of a multiplicative cost such as Chinchilla's C ≈ 6ND.
- Conclusion: the reported exponents must come from extra structure (ratio-dependent κ(r), the 384-signature inventory cap, the bilinear N·D_τ rollout cost or a finite-range fit), so check App. L and M before reusing the numbers. The ordering claim does not depend on this.
- Mechanism
Explain why adding environments helps more than adding tasks, and both more than adding rollouts per task. Use the world-versus-structure split and the interaction term to support your explanation.
What a strong answer covers
- A new environment changes the state and action space, tool behaviour and observation format, so the policy must generalise across interaction grammars. A new task adds a goal inside an interaction grammar the policy already knows. Extra rollouts on the same cells mostly reduce gradient variance.
- Writing D_E = W × V (worlds × structural variants): α_W = 0.44 > α_V = 0.28 ≈ α_T. Moving from (W, V) = (1, 64) to (8, 8) at fixed D_E raised SWE held-out success from 18.0% to 26.1%.
- Varying only content seeds at a fixed signature gives a placebo exponent of 0.07, so cosmetic variation is not environment diversity. Math+code has one world, so its α_E is a pure structure exponent (α_V = 0.41).
- The interaction term I = −γ(D_E·D_T)^(−β) (γ = 0.18, β = 0.21) raises R² from 0.93 to 0.98. At low D_E, extra tasks give almost no gain, so environment diversity gates the value of task diversity.
- What if…
A sceptic argues that α_τ is low only because the trajectory sweep is token-heavy, and that the ordering depends on the held-axis values or on GRPO. Which controls in the paper address each objection, and what did they show?
What a strong answer covers
- The D_E and D_T sweeps use the same 256,000 task-environment cells and 1,000 updates, so rollout tokens drift by under 4%; only D_τ scales tokens (32×). Equalising tokens or FLOPs lowers α_τ to 0.07–0.08 and moves α_E and α_T by at most 0.01, which widens the gap rather than closing it.
- Held axes (256, 10,240, 8) were fixed by a pre-specified calibration rule (doubling changes success by under 2 points; measured 0.3, 0.3 and 0.4). Re-running with held axes at a quarter, a half and double the values preserves the ordering.
- PPO with a critic and GRPO give exponents within 1 SE. The ordering also holds on Llama-3.1-8B, Qwen2.5-7B and a search domain (21 settings in total).
- Dense process-shaped rewards act as a 1.4–2.1× multiplier on D_τ without changing α_E or α_T. Five alternative task-deduplication rules keep α_T within 0.238–0.261.
- Critique
List the main reasons not to treat this paper's exponents and allocation recipe as universal constants for agentic RL, citing where the paper itself limits its claims.
What a strong answer covers
- The authors claim the ordering, not the values: exponents shift by up to 0.05 across settings. Under SWE cost coefficients the environment and task allocation exponents become indistinguishable (0.28 vs 0.29).
- Scale is sub-frontier (4B to 14B), world counts span only 1–8, and the generator inventory caps at 384 structural signatures. The 14B validation needed 116 re-instantiated world–structure pairs to reach the predicted D_E = 500.
- Evaluation differs by domain: SWE and AppWorld are world-held-out, but web is only task-held-out because the test tasks reuse the same five sites.
- The recipe depends on a linear cost model and the authors' stack. World acquisition stays worthwhile only up to about 40 USD-equivalent per world, and a repository with a working harness and verifier may cost more. There is also the exponent-consistency issue from the derive question.
- The held-out validation is a single allocation at one compute point (3 seeds). κ is measured for specific synthesis methods per axis, so a new generator needs its own κ.
- Design
You have a fixed budget to build RL training data for a search agent that must work across BM25, dense retrieval and a paginated web-search API. Using the paper's exponents, discounts and costs, design the allocation and a pilot that checks it transfers to your setup.
What a strong answer covers
- Treat each retrieval backend × snippet format × tool set (with or without page fetch) as an environment. The paper's search domain varies exactly these and still gives (α_E, α_T, α_τ) = (0.42, 0.25, 0.12), so environments come first.
- Buy genuinely new worlds (new corpora or backends) while their loaded cost stays below the break-even. Within an existing world, prefer task synthesis to structural variants: their exponents are similar but tasks were about 23× cheaper per unit.
- Keep the synthetic-to-real trajectory ratio below the collapse point (r* ≈ 1.4 for SWiRL-style trajectories). Treat dense or process rewards as a multiplier on D_τ instead of resampling more rollouts.
- Pilot: run 4-point sweeps per axis with the other axes held fixed, evaluate on a held-out backend as well as held-out queries, deduplicate queries against training tasks, and refit the exponents before committing the full budget.
- Research idea
Propose an experiment to test whether environment diversity wins because it teaches transferable skills or only because evaluation is on held-out worlds, and say what result would change the recommended allocation.
What a strong answer covers
- Train the same D_E and D_T sweeps and evaluate each run twice: on held-out tasks inside the training worlds and on held-out worlds. Fit separate exponents for each evaluation.
- If α_E exceeds α_T only on held-out worlds, the advantage reflects distribution shift. If it also holds in-world, environments teach more general skills.
- The web domain (task-held-out, α_E = 0.46) is partial evidence for the second reading, but it has only five sites.
- Implication: deployment on known worlds would favour tasks, and deployment on unknown worlds (for example a new search backend) would favour environments. The allocation should depend on the deployment distribution.