Phi-4-reasoning 技术报告

Phi-4-reasoning Technical Report

Sebastien Bubeck Sebastien Bubeck · · 2025-04-30 · arXiv:2504.21318 ↗ · 被引 109

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

我们推出了 Phi-4-reasoning,一个 140 亿参数的推理模型,在复杂推理任务上表现出色。该模型通过对 Phi-4 进行监督微调训练而成,训练数据是精心挑选的“可教学”提示集——这些提示具有适当的复杂性和多样性——以及使用 o3-mini 生成的推理示例。Phi-4-reasoning 能够生成详细的推理链,有效利用推理时的计算资源。我们还进一步开发了 Phi-4-reasoning-plus,这是一个通过短期基于结果的强化学习增强的变体,通过生成更长的推理轨迹来提供更高的性能。在广泛的推理任务中,这两个模型都显著优于更大的开源模型,如 DeepSeek-R1-Distill-Llama-70B,并接近完整版 DeepSeek-R1 的性能水平。我们的全面评估涵盖了数学和科学推理、编程、算法问题解决、规划和空间理解等基准。有趣的是,我们还观察到对通用基准测试的非平凡性能迁移。在本报告中,我们提供了关于训练数据、训练方法和评估的见解。我们展示了监督微调中精心筛选数据的好处同样适用于推理语言模型,并且可以通过强化学习进一步增强。最后,我们的评估指出了改进推理模型性能和鲁棒性评估方法的机会。

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.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 3)

阅读逐段中英对照全文 →