TL;DR
On-policy distillation (OPD) is a powerful technique for improving large language models, but its success is surprisingly nuanced. This paper reveals that effective OPD hinges not just on teacher performance, but crucially on compatible "thinking patterns" between student and teacher, and the teacher imparting genuinely new knowledge. The authors propose a recipe for successful OPD, emphasizing progressive alignment on high-probability tokens.
What Problem Does This Paper Address?
On-policy distillation (OPD) has become a go-to method for enhancing large language models (LLMs) after initial training. It works by having the student model generate its own text (rollouts) and then using the teacher model's per-token predictions as a dense reward signal to guide the student's learning. This approach avoids the "exposure bias" of traditional methods where students are trained on fixed data. However, despite its widespread adoption and reported gains, the underlying mechanisms and failure modes of OPD remain poorly understood. Researchers have observed that sometimes a stronger teacher model can fail to improve a student, or even make it worse, while a weaker teacher might succeed. This paper aims to systematically investigate why OPD works, when it fails, and how to make it more reliable.
Methods
The authors conduct a multi-faceted investigation into OPD:
- Phenomenology: They identify two key conditions for successful OPD:
- Thinking-pattern consistency: The student and teacher should exhibit similar ways of processing information and generating text (measured by overlap in their top-k token distributions).
- New knowledge: The teacher must offer knowledge or capabilities that the student hasn't already acquired. Simply being a larger or higher-scoring model isn't enough if it doesn't teach the student something new.
- Token-level Mechanism: They probe the fine-grained dynamics of OPD, showing that successful distillation is characterized by a progressive alignment of the student's and teacher's probability distributions on high-probability tokens within the student's generated sequences. This alignment primarily occurs within a small, shared set of tokens that carry most of the probability mass.
- Reverse Distillation: To validate their findings, they use reverse distillation experiments. This involves training a student model to mimic a teacher that is essentially its own earlier version or a slightly different variant, allowing them to isolate the effects of thinking patterns and new knowledge.
- Practical Recipe: Based on their findings, they propose strategies like "off-policy cold start" (pre-training the student on teacher rollouts) and using "teacher-aligned prompts" to improve OPD, especially in challenging scenarios.
Datasets
The paper utilizes several datasets for training and evaluation, primarily focusing on mathematical reasoning tasks:
- DAPO-Math-17K: Used for training and evaluating models.
- DeepMath: A subset of this dataset is used for specific experiments.
- OpenThoughts-1.2M: Used for generating teacher rollouts in the cold-start experiments.
The authors also mention using standard benchmarks like AIME 2024, AIME 2025, and AMC 2023 for evaluation.
Key Insights and Ideas
- Thinking Patterns Matter More Than Raw Score: A teacher model's performance on benchmarks is a poor predictor of its effectiveness in OPD. What truly matters is how closely its "thinking process" aligns with the student's. Mismatched thinking patterns can lead to failed distillation, even with a stronger teacher.
- OPD is About Learning New Skills, Not Just Reinforcing Existing Ones: For OPD to be effective, the teacher must provide knowledge or capabilities that the student hasn't already learned. If the teacher and student are too similar in their learned knowledge, there's little for the student to gain.
- Alignment on High-Probability Tokens is Key: Successful OPD isn't about aligning on every possible token. Instead, it's a progressive alignment on a small set of high-probability tokens that the student and teacher both favor. This focused alignment drives the learning process.
- OPD's "Free Lunch" Has a Catch: While OPD offers dense supervision, its effectiveness can degrade with longer sequences. The teacher's reward signal becomes less reliable as the student's generated prefixes drift further from what the teacher has seen, raising questions about its scalability to very long-horizon tasks.
Key Results
- Thinking-Pattern Consistency: Experiments show that when student and teacher have compatible thinking patterns (higher overlap ratio), OPD yields significantly better results. For instance, distilling from a GRPO-trained teacher (which has a similar thinking pattern) led to better performance than distilling from a non-thinking teacher, even if the latter had a higher initial overlap.
- New Knowledge: In experiments comparing same-family teachers (e.g., a base model vs. an RL-tuned version), the RL-tuned teacher, which acquired new capabilities, consistently led to much larger performance gains.
- Token-Level Mechanism: Successful OPD runs showed a steady increase in overlap ratio (from ~72% to ~91%) and a concentration of probability mass (97%-99%) on the shared top-k tokens. Failing runs showed stagnant overlap.
- Practical Strategies:
- Off-policy cold start (pre-training with teacher rollouts) improved initial overlap and final performance, mitigating initial thinking-pattern mismatches.
- Teacher-aligned prompts also boosted performance by sharpening alignment on high-probability tokens, though they need to be used carefully to avoid overly suppressing student entropy.
Limitations and Future Work
- Long-Horizon Distillation: The paper raises concerns about OPD's scalability to long-horizon tasks (e.g., extended chain-of-thought or agentic multi-turn interactions). They observed that reward quality degrades with trajectory depth, and the teacher's advantage diminishes with longer prefixes. This suggests that OPD might not extend cleanly to such scenarios.
- Reward Landscape Geometry: The authors acknowledge that understanding the geometry of OPD's reward landscape and developing objectives that can exploit anisotropic reward structures remains an open question.
- Anisotropy Hypothesis: While they propose an "anisotropy hypothesis" to explain why a globally informative reward might not lead to local exploitability in failing OPD configurations (suggesting heterogeneous per-token advantages might cancel out), they state this has not been directly verified and leaves it for future work.
- Capacity Gap: The paper touches upon the "capacity gap" issue in distillation, noting that large teacher-student capacity differences can be detrimental. While they explore this in the context of OPD, they suggest that the issues of capacity gap and distillability in OPD remain underexplored.
Summary updated