TL;DR
Large language models often struggle when fine-tuned for reasoning because standard sequential methods (Supervised Fine-Tuning followed by Reinforcement Learning) lead to overfitting and inefficient exploration. This paper introduces Supervised Reinforcement Fine-Tuning (SRFT), a single-stage method that dynamically blends SFT and RL using entropy-aware weighting. By simultaneously leveraging expert demonstrations and self-exploration, SRFT achieves massive performance gains on complex math and reasoning benchmarks while maintaining stable training dynamics.
What Problem Does This Paper Address?
To teach Large Language Models (LLMs) complex reasoning, researchers typically use a two-stage pipeline: first, Supervised Fine-Tuning (SFT) to teach the model how to format answers based on expert demonstrations, followed by Reinforcement Learning (RL) to help the model explore and optimize for correct answers.
However, this sequential separation creates a fundamental friction. SFT often causes the model to memorize patterns rather than actually reason, leading to overfitting. When RL is subsequently applied, it struggles to explore the vast solution space because the model has already become too rigid. In fact, the authors show that RL often has to spend time "unlearning" the SFT phase—a phenomenon they call a "learning tax." The challenge is figuring out how to optimally balance SFT's knowledge distillation with RL's exploratory power without suffering from mode collapse or overfitting.
Methods
The authors propose Supervised Reinforcement Fine-Tuning (SRFT), a single-stage framework that unifies both paradigms. Instead of doing SFT and then RL, SRFT does both at the same time.
Key features of the method include:
- Dual Data Sources: The model learns simultaneously from offline expert demonstrations (SFT data) and its own online self-exploration rollouts (RL data).
- Entropy-Aware Weighting (The Novelty): A major challenge of combining SFT and RL is deciding how much to trust the demonstrations versus the model's own exploration. SRFT solves this by using the model's policy entropy (a measure of its uncertainty) as a dynamic thermostat. If the model is highly uncertain, the weight of the SFT loss is reduced to prevent the model from blindly mimicking data that doesn't match its current distribution. Similarly, positive RL rewards are scaled based on entropy to prevent the model from prematurely converging on a suboptimal answer.
Datasets
- Training: OpenR1-Math-46k-8192, a subset of the OpenR1-Math-220k dataset containing mathematical problems sourced from NuminaMath 1.5, paired with high-quality reasoning traces generated by DeepSeek-R1.
- In-Distribution Evaluation (Math): AIME24, AMC, MATH500, Minerva, and OlympiadBench.
- Out-of-Distribution Evaluation (Generalization): ARC-C (grade-school science), GPQA-Diamond (graduate-level science), and MMLU-Pro (multidisciplinary).
Key Insights and Ideas
- Sledgehammer vs. Scalpel: Through token-level probability analysis, the authors discovered that SFT acts like a sledgehammer, inducing coarse-grained, global shifts across the entire vocabulary distribution. RL, conversely, acts like a scalpel, making fine-grained, selective optimizations to specific high-entropy tokens while leaving the rest of the distribution largely untouched.
- The "Learning Tax" of Sequential Training: By visualizing the learning dynamics in a 3D probability space, the authors found that in a standard SFT $\rightarrow$ RL pipeline, the RL optimization direction actually opposes the SFT direction. RL has to fight against SFT's overfitting, making the two-stage process highly inefficient.
- Entropy Collapse is the Enemy: Pure RL training typically causes a rapid "entropy collapse," where the model quickly becomes overly confident and stops exploring new reasoning paths. SRFT's dynamic weighting successfully stabilizes entropy throughout training, allowing the model to continuously improve without getting stuck.
Key Results
- Mathematical Reasoning: Using Qwen2.5-Math-7B as the base model, SRFT achieved an average accuracy of 59.1% across the five competition-level math benchmarks. This outperformed zero-RL baselines by 9.0%.
- Superior to Sequential Methods: SRFT beat the traditional sequential SFT $\rightarrow$ RL approach by 3.4 points, and beat a naive simultaneous SFT+RL approach (without entropy weighting) by 7.2 points.
- Generalization: SRFT isn't just memorizing math; it improved out-of-distribution performance by 10.9% on average across ARC-C, GPQA-D, and MMLU-Pro compared to the base model.
- Qualitative Behavior: While pure RL models tended to generate shorter, shortcut-heavy responses when faced with hard problems, SRFT progressively lengthened its responses, indicating the development of more comprehensive and detailed reasoning chains.
Limitations and Future Work
- Long-term Over-reliance on Demonstrations: The authors note that while relying on expert demonstrations is highly effective for the 500-step training horizon tested, over significantly extended RL training runs, this persistent reliance might eventually constrain the model's ability to explore and discover entirely novel solutions that surpass the expert data.
- Imperfect Data: The current study relies on very high-quality demonstrations (from DeepSeek-R1). Future work is needed to investigate how SRFT performs when the demonstration data is noisy or imperfect.
- Agentic Scenarios: The authors suggest extending the SRFT framework beyond pure mathematical reasoning into agentic RL scenarios, where models must interact with environments or use tools over long horizons.
Summary updated