Agentic RL Scaling Law: Spontaneous Code Execution for Mathematical Problem Solving

Xin-Ji Mai, Haotian Xu, W. Xing, Wei-Nong Wang, Ying-Ying Zhang +1 more
1/1/2025
rl

No confident code implementation found for this paper.

Abstract

Large Language Models (LLMs) often struggle with mathematical reasoning tasks requiring precise, verifiable computation. While Reinforcement Learning (RL) from outcome-based rewards enhances text-based reasoning, understanding how agents autonomously learn to leverage external tools like code execution remains crucial.

Show full abstract

We investigate RL from outcome-based rewards for Tool-Integrated Reasoning, ZeroTIR, training base LLMs to spontaneously generate and execute Python code for mathematical problems without supervised tool-use examples. Our central contribution is we demonstrate that as RL training progresses, key metrics scale pre-dictably. Specifically, we observe strong positive correlations where increased training steps lead to increases in the spontaneous code execution frequency, the average response length, and, critically, the final task accuracy. This suggests a quantifiable relationship between computational effort invested in training and the emergence of effective, tool-augmented reasoning strategies. We implement a robust framework featuring a decoupled code execution environment and validate our findings across standard RL algorithms and frameworks. Experiments show ZeroTIR significantly surpasses non-tool ZeroRL baselines on challenging math benchmarks. Our findings provide a foundational understanding of how autonomous tool use is acquired and scales within Agent RL, offering a reproducible benchmark for future studies. Code is released at https://github.com/yyht/openrlhf_async_pipline.

DOISemantic Scholar

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mai2025agentic,
  title  = {Agentic RL Scaling Law: Spontaneous Code Execution for Mathematical Problem Solving},
  author = {Xin-Ji Mai and Haotian Xu and W. Xing and Wei-Nong Wang and Ying-Ying Zhang and Wen-Qiang Zhang},
  year   = {2025},
  doi    = {10.52202/085713-0251},
  url    = {https://doi.org/10.52202/085713-0251},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1a3d81ad66260ccfd69b1d8e2c2bb8a98e796ca1.svg)](https://codeofpaper.com/paper/1a3d81ad66260ccfd69b1d8e2c2bb8a98e796ca1)

Discussion