# 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.

- Canonical URL: https://protologue.com/compare/on-policy-distillation-vs-knowledge-distillation/

## On-Policy Distillation

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.
Entry: https://protologue.com/t/on-policy-distillation/

## Knowledge Distillation

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.
Entry: https://protologue.com/t/knowledge-distillation/

## Differences

| | On-Policy Distillation | Knowledge Distillation |
|---|---|---|
| Training sequences | Generated by the student itself | Teacher outputs or teacher-written responses |
| Teacher's role | Scores the student's own outputs, typically per token | Supplies the targets to imitate |
| Train-inference mismatch | Addressed by design | Present for autoregressive students |
| Reported result | Qwen3 report, cited by Thinking Machines: 74.4% on AIME'24 in 1,800 GPU hours, vs 55.0% for off-policy distillation alone | Much of the teacher's ability at lower cost (Hinton et al.); used to build several small reasoning models |
| Introduced | Agarwal et al. (2023), as Generalized Knowledge Distillation | Hinton 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

- Agarwal et al. (2023). On-Policy Distillation of Language Models: Learning from Self-Generated Mistakes. https://arxiv.org/abs/2306.13649
- Kevin Lu (Thinking Machines Lab) (2025). On-Policy Distillation. https://www.thinkingmachines.ai/blog/on-policy-distillation/
- Hinton et al. (2015). Distilling the Knowledge in a Neural Network. https://arxiv.org/abs/1503.02531
- DeepSeek-AI et al. (2025). DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning. https://arxiv.org/abs/2501.12948

## 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/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/)
