Phi-4-reasoning Technical Report
该论文提出了一种名为Phi-4-reasoning的14亿参数推理模型,通过监督微调和强化学习,在复杂推理任务上取得了优异的性能。
更新于 2025-05-05。作者:Marah Abdin、Sahaj Agarwal、Ahmed Awadallah、Vidhisha Balachandran、Harkirat Behl、Lingjiao Chen、Gustavo de Rosa、Suriya Gunasekar、Mojan Javaheripi、Neel Joshi、Piero Kauffmann、Yash Lara、Caio César Teodoro Mendes、Arindam Mitra、Besmira Nushi、Dimitris Papailiopoulos、Olli Saarikivi、Shital Shah、Vaishnavi Shrivastava、Vibhav Vineet、Yue Wu、Safoora Yousefi、Guoqing Zheng。
中文摘要
我们引入了Phi-4-reasoning,这是一个拥有140亿参数的推理模型,在复杂的推理任务上表现出色。Phi-4-reasoning通过在精心挑选的“可教”提示集上对Phi-4进行监督微调,这些提示集经过精心选择,以适应适当的复杂性和多样性,并使用o3-mini生成推理演示,从而生成详细的推理链,有效地利用推理时的计算能力。我们进一步开发了Phi-4-reasoning-plus,这是一种通过短期的基于结果的强化学习阶段进行增强的变体,通过生成更长的推理轨迹来提供更高的性能。在广泛的推理任务中,这两个模型都显著优于DeepSeek-R1-Distill-Llama-70B等更大的开放权重模型,并且接近全DeepSeek-R1模型的性能水平。我们的全面评估涵盖了数学和科学推理、编码、算法问题解决、规划和空间理解等基准。有趣的是,我们还观察到这些改进对通用基准也有非平凡的迁移。在本报告中,我们提供了关于我们的训练数据、训练方法和评估的见解。我们表明,对于监督微调(SFT)而言,精心数据整理的好处也适用于推理语言模型,并且可以通过强化学习(RL)进一步增强。最后,我们的评估指出了改善我们评估推理模型性能和鲁棒性的机会。
英文摘要
We introduce Phi-4-reasoning, a 14-billion parameter reasoning model that achieves strong performance on complex reasoning tasks. Trained via supervised fine-tuning of Phi-4 on carefully curated set of "teachable" prompts-selected for the right level of complexity and diversity-and reasoning demonstrations generated using o3-mini, Phi-4-reasoning generates detailed reasoning chains that effectively leverage inference-time compute. We further develop Phi-4-reasoning-plus, a variant enhanced through a short phase of outcome-based reinforcement learning that offers higher performance by generating longer reasoning traces. Across a wide range of reasoning tasks, both models outperform significantly larger open-weight models such as DeepSeek-R1-Distill-Llama-70B model and approach the performance levels of full DeepSeek-R1 model. Our comprehensive evaluations span benchmarks in math and scientific reasoning, coding, algorithmic problem solving, planning, and spatial understanding. Interestingly, we observe a non-trivial transfer of improvements to general-purpose benchmarks as well. In this report, we provide insights into our training data, our training methodologies, and our evaluations. We show that the benefit of careful data curation for supervised fine-tuning (SFT) extends to reasoning language models, and can be further amplified by reinforcement learning (RL). Finally, our evaluation points to opportunities for improving how we assess the performance and robustness of reasoning models.
解读
一句话总结
该论文提出了一种名为Phi-4-reasoning的14亿参数推理模型,通过监督微调和强化学习,在复杂推理任务上取得了优异的性能。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:当前推理模型在处理复杂推理任务时存在性能瓶颈,且缺乏有效的训练和评估方法。
- 现有方案不足:现有推理模型在处理复杂任务时表现不佳,且缺乏针对推理能力的有效训练方法。
- 研究目标:开发一种高效的推理模型,通过监督微调和强化学习提高推理能力,并在多个推理任务上取得优异的性能。
问题2:论文的核心创新点是什么?
- 技术创新:提出Phi-4-reasoning模型,通过监督微调和强化学习增强推理能力。
- 方法改进:采用精心设计的训练数据和方法,提高推理模型的性能和泛化能力。
- 优势:Phi-4-reasoning模型在多个推理任务上表现出色,优于现有的开放权重模型。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在数学、科学推理、编码、算法问题解决、规划和空间理解等多个推理任务上进行了实验。
- 性能提升:Phi-4-reasoning模型在多个任务上取得了显著的性能提升,例如在数学基准测试(AIME 2025)上提高了50%的准确率。
- 对比结果:Phi-4-reasoning模型在多个任务上优于DeepSeek-R1-Distill-Llama-70B和OpenAI的o1和o3-mini等模型。
问题4:这个研究的实际应用价值是什么?
- 应用场景:Phi-4-reasoning模型可以应用于需要复杂推理能力的场景,如数学教育、科学研究和代码开发等。
- 实施建议:建议在多个领域进行实验,以进一步验证模型的性能和泛化能力。
- 局限与展望:Phi-4-reasoning模型在处理某些任务时仍存在局限性,未来可以进一步研究如何提高模型的性能和鲁棒性。
来源
机器可读索引:llms.txt