arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.21233cs.CL
收藏

Phi-4-Mini-Reasoning:探索小型推理语言模型在数学中的极限

Phi-4-Mini-Reasoning: Exploring the Limits of Small Reasoning Language Models in Math

Microsoft(微软)
Haoran Xu, Baolin Peng, Hany Awadalla, Dongdong Chen, Yen-Chun Chen, Mei Gao, Young Jin Kim, Yunsheng Li, Liliang Ren, Yelong Shen, Shuohang Wang, Weijian Xu, J… 展开作者

Haoran Xu, Baolin Peng, Hany Awadalla, Dongdong Chen, Yen-Chun Chen, Mei Gao, Young Jin Kim, Yunsheng Li, Liliang Ren, Yelong Shen, Shuohang Wang, Weijian Xu, Jianfeng Gao, Weizhu Chen

AI总结:

本文提出针对小语言模型的四步系统训练方案(中期训练、监督微调、Rollout DPO和可验证奖励强化学习),构建的Phi-4-Mini-Reasoning模型在数学推理任务上超越了多个更大的推理模型。

摘要:

思维链(CoT)通过训练大语言模型(LLM)显式生成中间推理步骤,显著增强了其形式推理能力。尽管 LLM 能轻易从这些技术中获益,但由于模型容量有限,提升小语言模型(SLM)的推理能力仍具挑战。Deepseek-R1 的近期工作表明,利用 LLM 生成的合成数据进行蒸馏可以大幅提升 SLM 的推理能力。然而,详细的建模方案并未公开。在这项工作中,我们提出了一种包含四个步骤的 SLM 系统训练方案:(1)在多样化的蒸馏长 CoT 数据上进行大规模中期训练;(2)在高质量长 CoT 数据上进行监督微调;(3)利用精心整理的偏好数据集进行 Rollout DPO;(4)使用可验证奖励的强化学习(RL)。我们将该方法应用于 Phi-4-Mini,一个紧凑的 3.8B 参数模型。由此产生的 Phi-4-Mini-Reasoning 模型在数学推理任务上超越了更大的推理模型,例如在 Math-500 上比 DeepSeek-R1-Distill-Qwen-7B 高出 3.2 分,比 DeepSeek-R1-Distill-Llama-8B 高出 7.7 分。我们的结果验证了,即使是资源受限的小模型,精心设计的训练方案结合大规模高质量 CoT 数据也能有效解锁强大的推理能力。

英文摘要:

Chain-of-Thought (CoT) significantly enhances formal reasoning capabilities in Large Language Models (LLMs) by training them to explicitly generate intermediate reasoning steps. While LLMs readily benefit from such techniques, improving reasoning in Small Language Models (SLMs) remains challenging due to their limited model capacity. Recent work by Deepseek-R1 demonstrates that distillation from LLM-generated synthetic data can substantially improve the reasoning ability of SLM. However, the detailed modeling recipe is not disclosed. In this work, we present a systematic training recipe for SLMs that consists of four steps: (1) large-scale mid-training on diverse distilled long-CoT data, (2) supervised fine-tuning on high-quality long-CoT data, (3) Rollout DPO leveraging a carefully curated preference dataset, and (4) Reinforcement Learning (RL) with Verifiable Reward. We apply our method on Phi-4-Mini, a compact 3.8B-parameter model. The resulting Phi-4-Mini-Reasoning model exceeds, on math reasoning tasks, much larger reasoning models, e.g., outperforming DeepSeek-R1-Distill-Qwen-7B by 3.2 points and DeepSeek-R1-Distill-Llama-8B by 7.7 points on Math-500. Our results validate that a carefully designed training recipe, with large-scale high-quality CoT data, is effective to unlock strong reasoning capabilities even in resource-constrained small models.

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

↑