Agent RL Scaling Law: Agent RL with Spontaneous Code Execution for Mathematical Problem Solving
FreeAgent RL with Spontaneous Code Execution for Mathematical Problem Solving
About Agent RL Scaling Law: Agent RL with Spontaneous Code Execution for Mathematical Problem Solving
ZeroTIR (Zero-shot Tool-Integrated Reasoning) is a reinforcement learning framework that trains base large language models to autonomously generate and execute Python code for mathematical problem solving, without requiring any supervised tool-use examples. The core finding is that as RL training progresses, key metrics scale predictably: spontaneous code execution frequency, average response length, and final task accuracy all increase with training steps, revealing a quantifiable relationship between computational effort and emergent tool-augmented reasoning. The framework uses a decoupled code execution environment for safety and reproducibility. Experiments on challenging math benchmarks show ZeroTIR significantly outperforms non-tool ZeroRL baselines. The project is open source, with code released for reproducibility.
Key Features
Pros & Cons
- Significantly outperforms non-tool RL baselines on math benchmarks
- Demonstrates quantifiable scaling laws for emergent tool use
- No supervised tool-use examples required, enabling zero-shot generalization
- Reproducible open source implementation
- Free to use and modify
- Requires substantial RL training compute resources
- Currently evaluated primarily on mathematical reasoning tasks
- Still a research method, not a production-ready tool
- May struggle with tasks outside verifiable computation