AceReason-Nemotron: Advancing Math and Code Reasoning through Reinforcement Learning

Yang Chen, Zhuolin Yang, Zihan Liu, Chankyu Lee, Peng Xu, Mohammad Shoeybi, Bryan Catanzaro, Wei Ping

Abstract

Recent advancements in large language models (LLMs) have highlighted the power of Reinforcement Learning (RL) in enhancing complex reasoning capabilities. However, a prevailing belief in the research community suggested that smaller-scale models (under 32B parameters) benefit more from distillation—imitating larger "teacher" models—than from independent RL. This paper introduces AceReason-Nemotron-7B and 14B, demonstrating that a structured, sequential RL recipe can push small models beyond the "distillation ceiling." By employing Group Relative Policy Optimization (GRPO) and a curriculum that prioritizes mathematical reasoning before coding tasks, these models achieve state-of-the-art performance on competitive benchmarks, including AIME 2025 and LiveCodeBench.

1. Introduction

The emergence of "slow-thinking" models, such as OpenAI’s o1 and DeepSeek-R1, has shifted the focus of LLM development toward Reinforcement Learning as a primary driver of reasoning performance. Despite these successes, the specific training methodologies remain largely proprietary. Furthermore, training stability and the perceived limitations of small-parameter models have hindered the adoption of RL for models in the 7B to 14B range.

Researchers often encounter two primary obstacles: the "Distillation Ceiling," where a model's performance is capped by the quality of its teacher's outputs, and "Training Instability," characterized by entropy collapse or catastrophic forgetting when transitioning between domains like mathematics and computer programming. This work addresses these challenges by providing a reproducible recipe for high-performance reasoning via RL.

2. Methodology

The AceReason-Nemotron models utilize Group Relative Policy Optimization (GRPO), a memory-efficient alternative to standard PPO that removes the requirement for a separate value model. The training framework is built upon four strategic pillars:

2.1 Sequential Curriculum

Rather than training on mathematics and code simultaneously, the researchers implemented a sequential approach. The model undergoes math-only RL first, establishing a foundational logical structure, followed by code-only RL. This sequence was found to be more effective than multi-task learning, as it allows the model to stabilize its reasoning patterns before applying them to syntax-heavy coding tasks.

2.2 Stage-wise Length Extension

To manage the complexity of reasoning chains, the training employed a length-based curriculum. Initial training phases restricted response lengths to 8K tokens, gradually expanding to 32K tokens. This allows the model to first master concise logic before attempting the multi-step, "long-thought" reasoning required for complex competitive programming and advanced mathematics.

2.3 Strict On-Policy Updates

To combat "entropy collapse"—where a model becomes overly repetitive and stops exploring new solution paths—the team enforced strict on-policy updates. By performing exactly one gradient update per rollout group, the model is forced to learn continuously from its most recent and diverse attempts, maintaining high creativity throughout the training process.

2.4 Rule-Based Verification

To avoid the pitfalls of reward models, which can be susceptible to "reward hacking," the researchers utilized objective verifiers. Mathematical solutions were checked using Python-based symbolic math checkers, while code was validated through sandboxed execution against rigorous test cases.

3. Experimental Setup and Datasets

The models were trained on two primary datasets:

  • Math-RL: Approximately 49,000 high-quality problems curated from DeepScaler and NuminaMath, filtered for verifiable answers and high difficulty.
  • Code-RL: Approximately 8,520 competitive programming problems from platforms such as AtCoder and LeetCode, each equipped with extensive test cases to prevent false positives.

Evaluation was conducted on industry-standard benchmarks, including AIME 2024/2025, MATH500, and LiveCodeBench (v5/v6).

4. Results and Discussion

The resulting AceReason-Nemotron-7B and 14B models established new performance benchmarks for their respective size classes.

4.1 Benchmark Performance

The 14B model achieved a score of 67.4% (avg@64) on AIME 2025, a significant improvement over the 50.2% achieved by its base distilled version. In coding, the 14B model reached 61.1% on LiveCodeBench v5, outperforming several larger, specialized code-generation models.

4.2 Cross-Domain Generalization

A key insight from the study is that mathematical RL serves as a "universal reasoning engine." Training on math alone resulted in a 6.8% performance boost on coding benchmarks for the 7B model, even before any code-specific RL was applied. This suggests that RL elicits foundational logical structures that generalize across different technical domains.

4.3 RL vs. Distillation

The study confirms that RL allows models to solve "previously unsolvable" problems that were absent from the initial supervised fine-tuning (SFT) data. While distillation teaches imitation, RL teaches search and verification, enabling the model to discover novel reasoning paths that its "teacher" might not have explored.

5. Conclusion and Future Work

AceReason-Nemotron demonstrates that large-scale RL is a viable and powerful tool for small-scale models. By utilizing a sequential curriculum and rule-based verification, researchers can overcome the distillation ceiling and achieve frontier-level reasoning performance.

Future work will focus on expanding these techniques to non-verifiable domains where rule-based checkers are unavailable, such as creative writing and legal reasoning. Additionally, the team aims to explore even longer reasoning chains and further optimize the compute efficiency of the rollout generation process, which currently accounts for 80% of the training time.

Summary updated

BibTeX
@inproceedings{chen2025acereason,
  author = {Yang Chen and Zhuolin Yang and Zihan Liu and Chankyu Lee and Peng Xu and Mohammad Shoeybi and Bryan Catanzaro and Wei Ping},
  title = {{AceReason-Nemotron: Advancing Math and Code Reasoning through Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=EgArbnS0BA},
}
Figure