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

- Identifier: PTL-0277
- Category: Foundations
- Canonical URL: https://protologue.com/t/on-policy-distillation/
- Also known as: GKD, Generalized Knowledge Distillation, on-policy knowledge distillation
- Introduced: 2023

## Description

Agarwal et al. of Google DeepMind introduced the approach as Generalized Knowledge Distillation (GKD) in 2023 (ICLR 2024). They argued that standard distillation of autoregressive models suffers from a distribution mismatch between the output sequences seen during training and those the student generates at inference, and addressed it by training the student on its self-generated outputs with feedback from the teacher. GKD also allows divergences other than the usual forward KL between student and teacher, and can be combined with reinforcement learning fine-tuning; it was evaluated on summarization, translation, arithmetic reasoning and task-agnostic instruction-tuning distillation. A 2025 Thinking Machines post by Kevin Lu popularized the method for post-training reasoning models, describing it as combining on-policy training with a dense reward signal and using a per-token reverse KL to the teacher. The post cites the Qwen3 technical report, in which on-policy distillation reached 74.4% on AIME'24 in 1,800 GPU hours, against 67.6% in 17,920 GPU hours for reinforcement learning and 55.0% for off-policy distillation alone.

## Broader terms

- [Knowledge Distillation](https://protologue.com/t/knowledge-distillation/)

## Related terms

- [Reinforcement Learning with Verifiable Rewards](https://protologue.com/t/rlvr/)
- [Group Relative Policy Optimization](https://protologue.com/t/group-relative-policy-optimization/)
- [Reasoning Model](https://protologue.com/t/reasoning-model/)
- [Fine-Tuning](https://protologue.com/t/fine-tuning/)
- [Reinforcement Learning from Human Feedback](https://protologue.com/t/rlhf/)

## Comparisons

- [On-Policy Distillation vs Knowledge Distillation](https://protologue.com/compare/on-policy-distillation-vs-knowledge-distillation/)

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

## Cite this entry

Protologue. (2026). On-Policy Distillation. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.2, PTL-0277). https://protologue.com/t/on-policy-distillation/

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