INQUIRING LINE

Giving an AI model code or search tools can cut total training cost even though each learning step gets more expensive to run.

What is the total compute cost of tool-integrated RL per training step?

This explores how much compute it takes to train a model with reinforcement learning when it can call tools such as code interpreters or search engines, and where that cost comes from.


This explores how much compute it takes to train a model with reinforcement learning when it can call tools such as code interpreters or search engines. The short answer is that the corpus has no per-step compute figure. None of these notes gives GPU-hours, FLOPs or dollar costs for a single training step. What the corpus does show is that per-step cost is the wrong number to focus on. The total bill depends on how many steps you need, how long the GPUs sit idle waiting for tools, and how much you pay external services during training. Tool use shifts all three.

The biggest surprise is that tools can make the total cost lower even if each step costs more. In ReTool, a model with code-interpreter access reached 67% accuracy in 400 RL steps. Text-only RL on the same model needed 1,080 steps and reached only 40% Can tool use make reinforcement learning more sample efficient?. Running code adds work to every step, but the model finds correct answers much faster because the tool removes guesswork. Measured by total cost to reach a target accuracy, tool use can come out ahead.

The hidden cost is waiting. When a model calls a tool across several turns, GPUs sit idle while the sandbox runs code or the environment responds. AReaL addresses this by separating generation from training: workers keep producing rollouts while training runs on slightly stale samples, with a modified PPO to handle them, and GPU utilization stays high Can RL training run while generation continues without waiting?. Long-horizon setups such as multi-turn software engineering Can reinforcement learning scale beyond single-turn language tasks? and GUI-plus-terminal sandboxes Can combining data flywheels and multi-turn RL beat frontier agents? are where this waiting dominates, so much of the engineering effort goes into keeping the environment busy.

Some costs aren't GPU costs at all. Training a search agent against a real search engine means paying for an API call on every rollout. ZeroSearch and SSRL avoid that by having an LLM simulate the search engine from its own knowledge, and a 14B simulator matched or beat real search Can LLMs replace search engines during agent training?. Other notes describe ways to cut compute that are not specific to tools. DRO uses one statistic to filter out unhelpful training queries and trains 2–3× faster Can one statistical measure serve dual purposes in RL training?. Another study found that resampling training data once per epoch instead of every step gets most of RL's protection against forgetting for much less generation compute Can cheaper data resampling match reinforcement learning's forgetting resistance?.

If you want an actual per-step budget, this collection can't give you one. You would need the system or infrastructure sections of papers like these. The useful takeaway is that compute for tool-using RL breaks into steps needed, idle GPU time and external service calls. The notes above show that each of these can be reduced separately.


Sources 7 notes

Can tool use make reinforcement learning more sample efficient?

ReTool achieves 67% accuracy in 400 RL steps with code-interpreter access, while text-only RL needs 1080 steps for 40% on the same model. The gap arises because tools reduce ambiguity and enable programmable search, letting RL find correct solutions faster.

Can RL training run while generation continues without waiting?

AReaL enables continuous generation across workers while training runs on mixed model versions using modified PPO. The system achieves high GPU utilization and handles stale samples effectively, making multi-turn RL practical.

Can reinforcement learning scale beyond single-turn language tasks?

Modified DAPO training doubled SWE-bench Verified performance from 20% to 39% on Qwen2.5-72B, matching larger models. This demonstrates RL works in stateful multi-step environments with delayed rewards and complex feedback, beyond theoretical single-turn MDPs.

Can combining data flywheels and multi-turn RL beat frontier agents?

UI-TARS-2 combines a data flywheel, stabilized multi-turn RL, and hybrid GUI-terminal sandbox to score higher than Claude and OpenAI agents on multiple GUI and game benchmarks, achieving roughly 60% of human-level performance on games.

Can LLMs replace search engines during agent training?

ZeroSearch and SSRL demonstrate that LLMs can generate relevant documents and search results from internal knowledge, with 14B simulators matching or exceeding real search engines. Curriculum degradation and test-time scaling optimize this approach for training without API costs.

Show all 7 sources
Can one statistical measure serve dual purposes in RL training?

DRO reuses a single self-supervised statistic at two aggregation levels: token-level weighting in dense rewards and query-level filtering to discard degenerate comparisons. This dual use achieves 2–3× faster training with better stability on unverifiable tasks.

Can cheaper data resampling match reinforcement learning's forgetting resistance?

Iterative-SFT, which resamples data once per epoch rather than per training step, reaches comparable forgetting resistance to full on-policy RL while requiring substantially less computation. The benefit of on-policy data saturates before reaching maximum per-step generation cost.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.