On-Policy Distillation
A DeepSeek-V4 post-training routine where the student is refined on trajectories produced under its current policy rather than only on frozen offline traces.
Offline distillation can drift away from the states a student model actually visits. On-policy distillation closes that gap by training on trajectories produced under the current model policy, so the supervision stays closer to the behavior you are trying to shape.
At a glance
Released
January 2024
Authors
Rishabh Agarwal, Nino Vieillard, Yongchao Zhou, et al.
Regime type
Distillation
Related modules
What It Is
This is a distillation routine used in the DeepSeek-V4 report. The important idea is that data is refreshed from the model's own current behavior rather than treated as one fixed offline replay set.Why It Exists
It aims to improve policy consistency and reduce the mismatch between training supervision and the states the student actually enters at inference time.How It Works
A current policy samples trajectories, those trajectories are scored or filtered, and the student is updated on the accepted behavior. The loop then repeats with the new policy.On-Policy Distillation training flow
Current policySample trajectoriesStudent updateCurrent policy to Sample trajectoriesSample trajectories to Student update
Request and weight flow