AceReason-Nemotron: Advancing Math and Code Reasoning through Reinforcement Learning
该论文通过大规模强化学习(RL)显著提升了小型和中型数学和代码推理模型的能力,实现了在数学和代码基准测试中超越现有蒸馏模型的性能。
更新于 2025-08-14。作者:Yang Chen、Zhuolin Yang、Zihan Liu、Chankyu Lee、Peng Xu、Mohammad Shoeybi、Bryan Catanzaro、Wei Ping。
中文摘要
尽管在大型强化学习(RL)推理方面取得了近期进展,但构建高性能推理模型的训练方法仍然难以捉摸。前沿模型(如DeepSeek-R1)的关键实现细节,包括数据整理策略和RL训练方法,通常被省略。此外,近期研究表明,对于较小模型而言,蒸馏仍然比RL更有效。在本工作中,我们展示了大规模RL可以显著增强强大、中小型模型的推理能力,实现的结果超过了最先进的基于蒸馏的模型。我们系统地通过广泛的消融研究来研究RL训练过程,并提出了一种简单而有效的方法:首先在纯数学提示上进行训练,然后在进行代码提示的训练。值得注意的是,我们发现仅数学的RL不仅显著提高了强大蒸馏模型在数学基准测试(例如,对于7B/14B模型,AIME 2025上提高+14.6%/+17.2%)上的性能,也提高了代码推理任务(例如,对于7B/14B模型,LiveCodeBench上提高+6.8%/+5.8%)的性能。此外,扩展的仅代码的RL迭代进一步提高了代码基准测试的性能,同时数学结果几乎没有或没有下降。我们开发了一个健壮的数据整理流程,以收集具有高质量、可验证答案和测试用例的具有挑战性的提示,以实现跨两个领域的基于验证的RL。最后,我们确定了关键的实验洞察,包括带有逐步增加的响应长度的课程学习和基于策略参数更新的稳定化效应。我们发现,RL不仅激发了在预训练和监督微调(例如,蒸馏)期间获得的基础推理能力,还推动了模型推理能力的极限,使其能够解决以前无法解决的问题。
英文摘要
Despite recent progress in large-scale reinforcement learning (RL) for reasoning, the training recipe for building high-performing reasoning models remains elusive. Key implementation details of frontier models, such as DeepSeek-R1, including data curation strategies and RL training recipe, are often omitted. Moreover, recent research indicates distillation remains more effective than RL for smaller models. In this work, we demonstrate that large-scale RL can significantly enhance the reasoning capabilities of strong, small- and mid-sized models, achieving results that surpass those of state-of-the-art distillation-based models. We systematically study the RL training process through extensive ablations and propose a simple yet effective approach: first training on math-only prompts, then on code-only prompts. Notably, we find that math-only RL not only significantly enhances the performance of strong distilled models on math benchmarks (e.g., +14.6% / +17.2% on AIME 2025 for the 7B / 14B models), but also code reasoning tasks (e.g., +6.8% / +5.8% on LiveCodeBench for the 7B / 14B models). In addition, extended code-only RL iterations further improve performance on code benchmarks with minimal or no degradation in math results. We develop a robust data curation pipeline to collect challenging prompts with high-quality, verifiable answers and test cases to enable verification-based RL across both domains. Finally, we identify key experimental insights, including curriculum learning with progressively increasing response lengths and the stabilizing effect of on-policy parameter updates. We find that RL not only elicits the foundational reasoning capabilities acquired during pretraining and supervised fine-tuning (e.g., distillation), but also pushes the limits of the model's reasoning ability, enabling it to solve problems that were previously unsolvable.
解读
一句话总结
该论文通过大规模强化学习(RL)显著提升了小型和中型数学和代码推理模型的能力,实现了在数学和代码基准测试中超越现有蒸馏模型的性能。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:尽管在大型强化学习(RL)推理方面取得了进展,但构建高性能推理模型的训练方法仍然难以捉摸。前沿模型的关键实现细节,如数据整理策略和RL训练方法,通常被省略。
- 现有方案不足:现有的推理模型训练方法缺乏关键实现细节,如数据整理策略和具体的RL训练方法,导致模型性能难以提升。
- 研究目标:通过大规模强化学习(RL)显著提升小型和中型数学和代码推理模型的能力,并超越现有蒸馏模型的性能。
问题2:论文的核心创新点是什么?
- 技术创新:提出了一种简单的有效方法,即首先在仅数学提示上进行训练,然后仅在代码提示上进行训练。
- 方法改进:通过大量的消融实验和系统研究RL训练过程,提出了一个新的训练方法。
- 优势:数学仅RL不仅显著提高了强大蒸馏模型在数学基准测试上的性能,还提高了代码推理任务上的性能。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在数学和代码基准测试中进行了实验,包括AIME和LiveCodeBench。
- 性能提升:数学仅RL在AIME 2025上提高了14.6% / 17.2%的准确率,在LiveCodeBench上提高了6.8% / 5.8%的准确率。
- 对比结果:与基于蒸馏的基线模型相比,AceReason-Nemotron-7B/14B在数学和代码基准测试中均表现出更好的性能。
问题4:这个研究的实际应用价值是什么?
- 应用场景:数学和代码推理领域,如教育、编程辅助和智能助手。
- 实施建议:开发鲁棒的数据整理流程,确保数据质量,并采用有效的RL训练方法。
- 局限与展望:尽管取得了显著进展,但该研究仍存在局限性,例如对大型模型的有效性尚未得到充分验证。未来研究可以探索更大规模的模型和更复杂的任务。