protologue

On-Policy Distillation vs Knowledge Distillation

Both train a smaller student model to match a teacher, but they differ in whose outputs the student learns from. Standard knowledge distillation trains the student on the teacher's output probabilities or on responses the teacher generated, while on-policy distillation has the student generate its own sequences and uses the teacher's feedback on those, which removes the mismatch between training data and what the student produces at inference.

Definitions

On-Policy Distillation PTL-0277
On-policy distillation is a form of knowledge distillation in which the student model is trained on sequences it generates itself, with a teacher model providing feedback on each of those sequences, typically token by token, instead of the student imitating fixed teacher-written outputs.
Knowledge Distillation PTL-0183
Knowledge distillation is training a smaller student model to imitate a larger teacher model, using the teacher's output probabilities or generated responses as training targets, so that the student keeps much of the teacher's ability at lower cost.

Differences

On-Policy DistillationKnowledge Distillation
Training sequencesGenerated by the student itselfTeacher outputs or teacher-written responses
Teacher's roleScores the student's own outputs, typically per tokenSupplies the targets to imitate
Train-inference mismatchAddressed by designPresent for autoregressive students
Reported resultQwen3 report, cited by Thinking Machines: 74.4% on AIME'24 in 1,800 GPU hours, vs 55.0% for off-policy distillation aloneMuch of the teacher's ability at lower cost (Hinton et al.); used to build several small reasoning models
IntroducedAgarwal et al. (2023), as Generalized Knowledge DistillationHinton et al. (2015)

Which to use

  • On-policy distillation suits post-training a student that will generate long outputs, where errors compound and the teacher can be queried during training.
  • Standard distillation is simpler and works from a fixed dataset of teacher outputs, without querying the teacher during training.

Sources

  1. Agarwal et al. (2023). On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes.
  2. Kevin Lu (Thinking Machines Lab) (2025). On-Policy Distillation.
  3. Hinton et al. (2015). Distilling the Knowledge in a Neural Network.
  4. DeepSeek-AI et al. (2025). DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning.

Cite this page

Protologue. (2026). On-Policy Distillation vs Knowledge Distillation. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.2). https://protologue.com/compare/on-policy-distillation-vs-knowledge-distillation/

Markdown