Vibeleaderboard
← All Intel
Intel / article

On-Policy Distillation: Dense Teacher Rewards on Student Rollouts

Source
thinkingmachines.ai
Author
Thinking Machines
Date

Context

On-policy trains a small model on its own attempts rather than on someone else's. The student model writes an answer, then a larger teacher model scores every token of that answer, judging how likely the teacher would have been to write the same thing at that point. In its write-up, Thinking Machines presents this as a way to combine the strengths of the two usual post- methods while avoiding their main weaknesses.

Those two methods fail in opposite ways. on teacher-written examples gives feedback on every token, but only in situations the teacher reaches; once the student makes an early mistake the teacher never makes, it drifts into territory it never saw in training. Reinforcement learning trains on the student's own attempts, but a pass/fail grade says only that an answer was wrong, not where the reasoning went off course. Grading each of the student's own tokens gives both: feedback tied to the student's real mistakes, and many signals per attempt. It is also cheap to run, because the student generates the text and the teacher only needs a single pass to score it, and partial answers can be scored without waiting for them to finish.

The lab reports the payoff in a math-reasoning test on a Qwen3 8B base model. Starting from a checkpoint fine-tuned on 400,000 teacher examples that scored 60% on the AIME'24 math benchmark, on-policy distillation reached 70% in about 150 training steps. The lab estimates plain fine-tuning would need about 2 million examples to get there, an extrapolation it notes depends on the scaling trend continuing. On that basis it puts the saving at about 9x in compute when a teacher dataset already exists, closer to 18x in GPU hours, and about 30x when the teacher's examples would also have to be generated.

A second experiment shows a different use. After a model was trained on a 70-30 mix of internal company documents and chat data, its -following score fell from 85% to 79%. Distilling from the original version of the same model, on prompts unrelated to those documents, brought that score back to 83% while its score on questions about the documents rose from 36% to 41%. The lab calls this very promising for continual learning: alternating between training on new material and distilling from an earlier version could let a model stay current without losing behavior it already had.

Terms in this piece · Glossary
  • distillation — Training a small, cheap model to imitate a big one's outputs, keeping much of the capability at a fraction of the cost.
  • Training — The process that adjusts a model using examples and a measure of how well it performs.
  • fine-tuning — Taking a trained model and training it a bit more on your own examples so it gets better at one specific job.
  • Instruction — A statement in the context that tells the model how to behave or what to do; module 3's first layer.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

Read the source thinkingmachines.ai
More from Thinking Machines
Recommended reads