Abstract
Microsoft Research introduces rStar2-Agent, a 14B parameter model designed to optimize mathematical reasoning through agentic reinforcement learning (RL). By integrating a novel "Resampling on Correct" strategy and a high-efficiency tool-use infrastructure, rStar2-Agent achieves state-of-the-art performance on competitive math benchmarks, rivaling models nearly 50 times its size. This report details the methodology, training efficiency, and cross-domain generalization of the model.
Introduction
The prevailing paradigm in large language model (LLM) reasoning centers on "test-time scaling," where models are encouraged to generate extensive Chain-of-Thought (CoT) sequences. However, increased length does not inherently equate to increased logic. Pure CoT models frequently suffer from intermediate logical fallacies and lack grounding. While tool integration (e.g., Python interpreters) offers a solution, training models to use these tools via Reinforcement Learning is often hampered by "environment noise"—where models are rewarded for correct answers reached through flawed code or logic.
Methodology
To address these challenges, rStar2-Agent utilizes three primary innovations:
1. GRPO-RoC (Group Relative Policy Optimization with Resampling on Correct)
This algorithmic approach oversamples trajectories and applies an asymmetric filter. For successful rollouts, the system prioritizes those with the cleanest code and minimal formatting errors. For failures, it samples uniformly to ensure a diverse learning signal from mistakes. This encourages the model to favor concise, logically sound tool interactions over "noisy" successes.
2. Efficient Agentic Infrastructure
To support the computational demands of multi-turn RL, the researchers developed an isolated Python environment capable of 45,000 concurrent tool calls with sub-second latency. A Load-Balanced Rollout Scheduler dynamically manages GPU KV cache to maximize throughput during complex reasoning tasks.
3. Multi-Stage Training Recipe
The model undergoes a "non-reasoning" Supervised Fine-Tuning (SFT) phase to learn basic tool syntax without biasing its logic. This is followed by three RL stages that gradually increase task difficulty and response length limits (from 8K to 12K tokens), allowing the model to autonomously discover optimal reasoning patterns.
Experimental Setup
- Training Data: The RL phase utilized 42K high-quality math problems (AoPS, Project Euler) filtered for integer-only answers to ensure verifiable feedback.
- SFT Data: 165K function-calling examples and 57K general instruction/chat samples.
- Evaluation: Benchmarks included AIME24/25, MATH-500, GPQA-Diamond, and the Berkeley Function Calling Leaderboard (BFCL v3).
Results and Performance
rStar2-Agent-14B demonstrates exceptional efficiency and performance. It achieved 80.6% on AIME24, surpassing DeepSeek-R1 (79.8%) and OpenAI o3-mini (medium) (79.6%). Notably, it reached this frontier performance in just 510 RL steps over one week using 64 MI300X GPUs.
Beyond mathematics, the model showed significant gains in tool proficiency, scoring 60.8% on BFCL v3 (up from 42.1% post-SFT). It also demonstrated strong generalization in scientific reasoning (GPQA) and general alignment (Arena-Hard), suggesting that agentic tool-use is a transferable meta-skill.
Discussion and Limitations
The success of rStar2-Agent proves that a 14B model can rival 600B+ parameter giants if the training process emphasizes high-quality, verified feedback. However, researchers noted a performance plateau after 510 steps, suggesting a "reasoning ceiling" inherent to the 14B parameter size. Additionally, the current RL training is optimized for integer-based verification; future work will expand this to symbolic mathematics and open-ended code generation environments.
Summary updated