On-policy distillation
×Stage · GLM-5
The final stage recovers what earlier stages taught: the final checkpoints of SFT, Reasoning RL and General RL are teachers, and the model learns from their gap to its own tokens.
On-policy distillation
The model being trained writes its own response and a teacher scores each of its tokens: a token the teacher finds more probable than the student does is rewarded, one it finds less probable is penalized.
Kimi K3 report, eq. 15, in the atlas’s letters
What the letters mean
, : the teacher’s and the student’s probability of token of the student’s response; : no gradient flows through it; : a clipping bound. A per-token reward, not a loss: it enters a reinforcement-learning update.
The GLM-5 report writes it as eq. 1 with the advantage replaced by per token (eq. 2), with no clip on it.
On-policy distillation as drawn for Kimi K3 →That plate draws it with Kimi K3’s nine teachers.
- Hyper-parameters
- group 1, batch 1,024
Undisclosed settings 3
Not disclosed Steps · Learning rate · Trainable
Why
Optimizing distinct objectives one after another erodes what earlier stages taught; a final distillation from the checkpoints of SFT, Reasoning RL and General RL recovers those skills. GLM-5 report §3.5, p. 13
Architecture at this stageThe model as drawn, the published GLM-5.
What the terms meanSFT
- SFT
- The model is trained on examples of the answers wanted, prompts with their responses, by the cross-entropy of next-token prediction on the responses.
All settings3
- Teachers
- The final checkpoints of the preceding stages, SFT, Reasoning RL and General RL; the prompts sampled from the teachers’ RL training sets
- Objective
- Eq. 1 with the advantage replaced by the stopped log-ratio of the teacher’s to the student’s probability of each token (eq. 2)
- Hyper-parameters
- A group size of 1 and a batch size of 1,024
Sources3
- GLM5-2602.15763v2.pdf, p. 13Teachers
- GLM5-2602.15763v2.pdf, p. 14Teachers, Objective, Hyper-parameters
- GLM5-2602.15763v2.pdf, p. 4Teachers