OctoThinker:中期训练激励强化学习扩展
OctoThinker: Mid-training Incentivizes Reinforcement Learning Scaling
AI总结:
本研究探讨了中期训练策略如何影响基座模型的强化学习(RL)表现,发现高质量数学语料和长思维链数据能显著提升RL性能,并提出两阶段策略Stable-then-Decay训练出OctoThinker模型,有效缩小了不同模型家族间的RL性能差距。
摘要:
不同的基座语言模型家族(如 Llama 和 Qwen)在使用强化学习(RL)进行后训练时表现出不同的行为,尤其是在推理密集型任务上。是什么使得一个基座语言模型适合强化学习?深入了解这一问题对于开发下一代具备 RL 可扩展性的基础模型至关重要。在本研究中,我们探讨了中期训练策略如何塑造 RL 动态,重点关注两个代表性模型家族:Qwen 和 Llama。我们的研究揭示:(1) 高质量的数学语料库(如 MegaMath-Web-Pro)能显著提升基座模型和 RL 的性能,而现有的替代方案(如 FineMath-4plus)则无法做到这一点;(2) 进一步添加 QA 风格的数据,特别是长思维链(CoT)推理示例,能增强 RL 效果,而指令数据则进一步释放了这一作用;(3) 尽管长 CoT 提高了推理深度,但它也可能导致模型响应的冗长和 RL 训练的不稳定,这凸显了数据格式化的重要性;(4) 扩展中期训练能持续带来更强的下游 RL 性能。基于这些见解,我们引入了一种两阶段中期训练策略 Stable-then-Decay,其中基座模型首先使用恒定学习率在 200B tokens 上进行训练,随后在三个专注于 CoT 的分支上使用学习率衰减训练 20B tokens。这产生了 OctoThinker,这是一系列模型,展现出强大的 RL 兼容性,并缩小了与更具 RL 友好性的模型家族(即 Qwen)之间的性能差距。我们希望这项工作能帮助塑造 RL 时代基础模型的预训练策略。为了支持进一步的研究,我们发布了开源模型以及一个包含超过 700 亿 tokens 的精选数学推理密集型语料库(即 MegaMath-Web-Pro-Max)。
英文摘要:
Different base language model families, such as Llama and Qwen, exhibit divergent behaviors during post-training with reinforcement learning (RL), especially on reasoning-intensive tasks. What makes a base language model suitable for reinforcement learning? Gaining deeper insight into this question is essential for developing RL-scalable foundation models of the next generation. In this work, we investigate how mid-training strategies shape RL dynamics, focusing on two representative model families: Qwen and Llama. Our study reveals that (1) high-quality mathematical corpora, such as MegaMath-Web-Pro, significantly improve both base model and RL performance, while existing alternatives (e.g., FineMath-4plus) fail to do so; (2) further adding QA-style data, particularly long chain-of-thought (CoT) reasoning examples, enhances RL outcomes, and instruction data further unlocks this effect; (3) while long-CoT improves reasoning depth, it can also induce verbosity of model responses and unstability of RL training, underscoring the importance of data formatting; (4) scaling mid-training consistently leads to stronger downstream RL performance. Building on these insights, we introduce a two-stage mid-training strategy, Stable-then-Decay, in which base models are first trained on 200B tokens with a constant learning rate, followed by 20B tokens across three CoT-focused branches with learning rate decay. This yields OctoThinker, a family of models demonstrating strong RL compatibility and closing the performance gap with more RL-friendly model families, i.e., Qwen. We hope our work will help shape pre-training strategies for foundation models in the RL era. To support further research, we release our open-source models along with a curated math reasoning-intensive corpus of over 70 billion tokens (i.e., MegaMath-Web-Pro-Max).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。