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

Unmasking On-Policy Distillation: Where It Helps, Where It Hurts, and Why

Mohammadreza Armandpour, Fatih Ilhan, David Harrison, Ajay Jaiswal, Duc N. M Hoang, Fartash Faghri, Yizhe Zhang, Minsik Cho, Mehrdad FarajtabararXiv 2026

TL;DR

On-policy distillation (OPD) is a cornerstone for training LLM reasoning models, yet its token-level dynamics have remained a black box. This paper introduces a training-free diagnostic framework that evaluates teacher guidance at the highest resolution: per token, per question, and per teacher. By measuring how well a teacher's signal aligns with an "ideal" success-maximizing gradient, the authors reveal that distillation is highly effective on incorrect student rollouts but becomes noisy on correct ones, and that a teacher's usefulness depends entirely on whether the student is capable of comprehending its reasoning style.

What Problem Does This Paper Address?

To train models to think step-by-step, researchers often use on-policy distillation. The student model generates a reasoning trace (on-policy), and a teacher model (either a larger external model or the student itself equipped with privileged context) provides dense, token-by-token feedback to guide the student's probability distribution.

However, practitioners face a blind spot: we don't truly know when or where a teacher's guidance helps or hurts. Does a disagreement between a teacher and a student signify a critical logical correction, or is it just a trivial difference in style (e.g., writing "four" instead of "4")?

Not all teacher guidance points toward success. Disagreements can be purely stylistic or critically logical.

Currently, evaluating teacher configurations requires running expensive, full training pipelines. The resulting aggregate metrics (like final accuracy) completely obscure token-level dynamics, making context and teacher selection a game of expensive trial-and-error.

Methods

The authors propose a training-free, offline diagnostic framework to measure teacher quality at individual tokens using three core components:

  1. The Ideal Reference Gradient: The authors mathematically derive an "ideal" gradient based on empirical success probabilities ($P_{succ}$). This represents the exact direction the student's parameters should update to maximally increase its chances of reaching a correct answer from that specific token.
  2. Targeted-Rollout Algorithm: Estimating $P_{succ}$ across long reasoning chains is computationally brutal. To solve this, the authors develop a scalable algorithm that uses exponential depth windows. Instead of sampling uniformly, it launches targeted rollouts at critical branching points where the teacher and student diverge most, allowing compute to scale with a user-defined budget rather than sequence length.
  3. Gradient Alignment Score: This is the core metric—defined as the cosine similarity between the ideal gradient and the actual distillation gradient (e.g., from Generalized Knowledge Distillation (GKD) or MiniLLM). A score $> 0$ means the teacher pushes the student toward success; $\approx 0$ means the signal is wasted on stylistic noise; $< 0$ means the teacher is actively harmful.
The three-step pipeline to compute the gradient alignment score at a branching node.

Crucially, the generation tree depends only on the student. This allows Teacher-Independent Tree Sharing: you build the tree once using the student, and then evaluate multiple different teachers with a single forward pass each, cutting compute costs by ~7x.

Datasets

The framework was evaluated using the Qwen3 model family on three distinct benchmarks:

  • BoolQ: A reading comprehension dataset featuring short reasoning chains and True/False answers.
  • MMLU: A multiple-choice knowledge benchmark requiring medium-length reasoning chains.
  • AIME 2025: A highly challenging mathematical competition dataset featuring exceptionally long reasoning traces (~5K–30K tokens).

Key Insights and Ideas

  • Distillation is a rescue mission, not a victory lap: Across all datasets, teacher alignment was significantly higher on incorrect student paths than on correct ones. When a student is already on the right track, the teacher's signal often introduces noise. When the student fails, the teacher reliably steers it back toward success.
  • The "Comprehensibility" Hypothesis: Bigger isn't always better. A small student model (0.6B) struggles to learn from a massive external teacher because the teacher's reasoning patterns are too foreign. Instead, the 0.6B model achieves 2–3x higher gradient alignment via self-distillation (using a correct trace written in its own "dialect"). Conversely, a larger student (1.7B) has the capacity to comprehend and exploit the advanced knowledge of an external teacher.
  • No Universal Recipe Exists: The optimal distillation setup shifts with task difficulty. For example, providing contrastive examples (showing both a correct and a wrong solution) hurts performance on simple tasks like BoolQ but provides a powerful "what to avoid" signal that yields the highest alignment on hard math problems (AIME).

Key Results

  • Path-Dependent Alignment: On BoolQ, Qwen3-0.6B showed a mean cosine alignment of 0.044 on incorrect paths versus just 0.011 on correct paths. This disparity held true across both model scales and all benchmarks.
Gradient alignment distributions on correct vs. incorrect paths, showing consistently higher alignment on failing rollouts.
  • The Power of Filtering (Oracle Analysis): The authors showed that if you could perfectly filter out the noise and apply the teacher's gradient only at tokens with positive alignment ($t=0$), you would achieve a 10–15x improvement in the mean training signal while utilizing only ~52% of the tokens.
  • Summarization Effects: Summarizing the teacher's context (Self-Sum-1C) nearly doubled the gradient alignment for the 1.7B model on BoolQ (0.050 vs 0.028) but degraded alignment for the 0.6B model on hard math, proving that smaller models need full, verbose step-by-step traces to understand complex arguments.

Limitations and Future Work

While powerful, the framework has a few notable limitations:

  • Sparsity Constraints: The alignment score can only evaluate tokens that the student actually samples during its rollouts ($S_u$). Tokens with zero visit counts remain unrateable.
  • Compute Overhead: Although optimized via targeted rollouts, the method requires tens of thousands of rollouts per question, making it an excellent offline diagnostic tool rather than a real-time training signal.

Future Directions: The authors suggest leveraging these insights to build smarter training algorithms, such as rollout-weighted distillation (dynamically up-weighting loss on incorrect paths) and divergence-based filters to automatically drop noisy, low-alignment teacher tokens during training.

Summary updated

BibTeX
@misc{armandpour2026unmasking,
  author = {Mohammadreza Armandpour and Fatih Ilhan and David Harrison and Ajay Jaiswal and Duc N. M Hoang and Fartash Faghri and Yizhe Zhang and Minsik Cho and Mehrdad Farajtabar},
  title = {{Unmasking On-Policy Distillation: Where It Helps, Where It Hurts, and Why}},
  year = {2026},
  eprint = {2605.10889},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.10889},
}
Figure