arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.08267cs.LGcs.AI
收藏

数学LLM的实用两阶段配方:用SFT最大化准确率,用强化学习提升效率

A Practical Two-Stage Recipe for Mathematical LLMs: Maximizing Accuracy with SFT and Efficiency with Reinforcement Learning

Aillis Inc.(Aillis公司);Department of Health Policy(健康政策部门);Public Health, Graduate School of Pharmaceutical Sciences, The University of Tokyo, Tokyo, Japan(公共卫生,药学研究生院,东京大学,东京,日本);Rist Inc.(Rist公司)

Hiroshi Yoshihara, Taiki Yamaguchi, Yuichi Inoue

AI总结:

本文提出一种结合扩展SFT与GRPO强化学习的两阶段训练配方,通过长SFT阶段最大化数学推理准确率,再用GRPO优化解长度提升效率,在AIMO等基准上取得顶级表现。

摘要:

增强大型语言模型(LLMs)的数学推理能力是推进AI能力的一项关键挑战。尽管监督微调(SFT)和强化学习(RL)是主流的训练范式,但将它们结合起来以同时最大化准确率和效率的系统性方法在很大程度上仍未被探索。本文提出了一种实用且有效的训练配方,将扩展的SFT与来自在线推理的RL(GRPO)进行战略性整合。我们认为这些方法起互补而非竞争作用:长时间的SFT阶段首先将模型的准确率推向极限,随后GRPO阶段在保持峰值性能的同时显著提升token效率。我们的实验表明,将SFT扩展至多达10个epoch对性能突破至关重要,且GRPO在此框架中的主要作用是优化解的长度。我们配方的有效性通过在具有挑战性的基准测试上的顶级表现得到严格验证,包括在严格防泄漏的AI数学奥林匹克竞赛(AIMO)中,在超过2,200支队伍中名列前茅。这项工作为开发既极其准确又实用高效的、最先进的数学推理器提供了经过实战检验的蓝图。为确保完全可复现性并推动未来研究,我们将开源整个框架,包括所有代码、模型检查点和训练配置,网址为https://github.com/analokmaus/kaggle-aimo2-fast-math-r1。

英文摘要:

Enhancing the mathematical reasoning of Large Language Models (LLMs) is a pivotal challenge in advancing AI capabilities. While Supervised Fine-Tuning (SFT) and Reinforcement Learning (RL) are the dominant training paradigms, a systematic methodology for combining them to maximize both accuracy and efficiency remains largely unexplored. This paper introduces a practical and effective training recipe that strategically integrates extended SFT with RL from online inference (GRPO). We posit that these methods play complementary, not competing, roles: a prolonged SFT phase first pushes the model's accuracy to its limits, after which a GRPO phase dramatically improves token efficiency while preserving this peak performance. Our experiments reveal that extending SFT for as many as 10 epochs is crucial for performance breakthroughs, and that the primary role of GRPO in this framework is to optimize solution length. The efficacy of our recipe is rigorously validated through top-tier performance on challenging benchmarks, including a high rank among over 2,200 teams in the strictly leak-free AI Mathematical Olympiad (AIMO). This work provides the community with a battle-tested blueprint for developing state-of-the-art mathematical reasoners that are both exceptionally accurate and practically efficient. To ensure full reproducibility and empower future research, we will open-source our entire framework, including all code, model checkpoints, and training configurations at https://github.com/analokmaus/kaggle-aimo2-fast-math-r1.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑