NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

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

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 ChenarXiv 2025 · DOI

Abstract

Recent advancements in Large Language Models (LLMs) have demonstrated the power of Chain-of-Thought (CoT) reasoning. However, achieving similar capabilities in Small Language Models (SLMs) remains a significant challenge due to parameter constraints. This paper introduces Phi-4-Mini-Reasoning, a 3.8-billion parameter model that utilizes a specialized four-stage training pipeline to achieve exceptional performance in mathematical reasoning. By integrating large-scale distillation, preference learning, and stabilized Reinforcement Learning (RL), Phi-4-Mini-Reasoning outperforms models with significantly higher parameter counts, such as DeepSeek-R1-Distill-Llama-8B, on benchmarks including AIME24 and MATH-500.

Introduction

While LLMs have become adept at complex problem-solving, SLMs typically lack the foundational capacity to generalize from sparse reasoning data. Naive fine-tuning often results in performance degradation because the model lacks the internal representations to absorb complex logic. This research addresses the systematic training requirements to unlock robust reasoning in resource-constrained models, moving beyond simple distillation to a comprehensive "continual training" approach.

Methodology: The Four-Stage Recipe

The researchers developed a multi-stage pipeline designed to progressively build and refine reasoning capabilities:

  1. Distillation as Mid-Training: The base model is exposed to 10 million reasoning rollouts generated by DeepSeek-R1. This large-scale phase ensures the model absorbs a wide variety of reasoning trajectories before specialized tuning.
  2. Supervised Fine-Tuning (SFT): The model is refined on a curated subset of high-quality, college-level mathematics problems to enhance generalization and precision.
  3. Rollout Preference Learning (DPO): Utilizing both correct and incorrect reasoning steps from the distillation phase, the model undergoes Direct Preference Optimization (DPO). This teaches the model to distinguish subtle logical nuances by learning from its own failures.
  4. RL with Verifiable Reward: The final stage employs Group-based Relative Policy Optimization (GRPO). To stabilize RL in a small model, the authors implemented prompt optimization (filtering for consistent response lengths), reward rebalancing, and temperature annealing to manage exploration.

Key Insights: Quantity and Stability

A primary finding is that SLMs require a different data strategy than their larger counterparts. While massive models can learn reasoning from a few thousand high-quality examples (the "LIMO" approach), SLMs require a massive "mid-training" phase with millions of examples to build internal representations.

Ablation study showing the performance of various Phi-4-Mini configurations, highlighting the necessity of the full training recipe compared to LIMO and S1K approaches.

Furthermore, RL stability is critical. High variance in response lengths can destabilize the learning process in small models. The stabilization techniques introduced—specifically prompt optimization and temperature annealing—are essential for maintaining gradient stability during the GRPO phase.

Results

Phi-4-Mini-Reasoning (3.8B) demonstrates superior performance across several prestigious benchmarks, often beating models twice its size:

Performance comparison of Phi-4-Mini-Reasoning against larger distilled models across AIME24, MATH-500, and GPQA Diamond benchmarks.
  • AIME24: The model achieved a score of 57.5%, significantly outperforming DeepSeek-R1-Distill-Qwen-7B (53.3%) and the DeepSeek-R1-Distill-Llama-8B baseline (43.3%).
  • MATH-500: Accuracy reached 94.6%, surpassing the 8B-parameter Llama-distilled model (86.9%).
  • GPQA Diamond: A score of 52.0% indicates that the model's reasoning capabilities extend beyond arithmetic into graduate-level scientific logic.

Conclusion

Phi-4-Mini-Reasoning proves that with a rigorous, multi-stage training recipe, small models can achieve reasoning capabilities previously reserved for much larger systems. The transition from "quality-only" to "quantity-then-quality" data strategies, combined with RL stabilization, provides a blueprint for future SLM development. Future work will explore the applicability of this recipe to non-mathematical domains such as coding and subjective reasoning.

Summary updated

BibTeX
@misc{xu2025phi,
  author = {Haoran Xu and Baolin Peng and Hany Awadalla and Dongdong Chen and Yen-Chun Chen and Mei Gao and Young Jin Kim and Yunsheng Li and Liliang Ren and Yelong Shen and Shuohang Wang and Weijian Xu and Jianfeng Gao and Weizhu Chen},
  title = {{Phi-4-Mini-Reasoning: Exploring the Limits of Small Reasoning Language Models in Math}},
  year = {2025},
  eprint = {2504.21233},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.21233},
}
Figure