short · 3 min
Distillation
Training a small model, the student, to copy what a bigger one, the teacher, does on your task.
updated 29 Sept 2026
Suppose we want a small model that reasons well at math. The big reasoning models learned it through reinforcement learning: try a problem, get rewarded when the final answer is right, repeat for a very long time. So the obvious plan is to do the same with our small model, right?
DeepSeek tried exactly that in early 2025. They took a 32-billion-parameter base model and ran over 10,000 steps of that reinforcement learning on it. It reached 47% on a hard math contest benchmark (AIME 2024). Then they took another copy of the same base model and did something much cheaper. They had their big reasoning model, R1, write out about 800,000 worked answers, and trained the small model on those, with plain supervised fine-tuning. No rewards, no long training runs. That one reached 72.6%.
That's distillation: a small model, the student, trained to copy a big one, the teacher. You run the expensive model once to make training data, then ship the cheap one. Even their 1.5B student scored 28.9% on the same test, where GPT-4o from 2024 scored 9.3%.
Where the idea came from
The word goes back to a 2015 paper about image and speech classifiers, and the original version had a nice twist.
Show a trained image classifier a photo of a BMW. It says "car", very sure. But look at the rest of what it outputs. It gives a tiny chance to "garbage truck", and a far tinier one to "carrot". Those small numbers are the model's sense of what looks like what. If we train the student on the bare label "car", all of that is thrown away.
So train the student to match the teacher's whole spread of probabilities instead (they called these soft targets). Each example now carries far more information.
One snag. A confident model puts nearly everything on "car", so "garbage truck" might be 0.0001 and barely moves the training at all. The fix was to turn up the temperature on the final softmax during training, which flattens the spread so the small numbers count. The student goes back to normal temperature when it's used, and the real labels get mixed in as a second target.
It worked well. On handwritten digits, a big network made 67 errors, a small one trained the normal way made 146, and the same small one trained on the big one's soft targets made 74.
The version people use now
With language models it's usually simpler. We don't match probabilities. We let the teacher write answers and train the student on the text. That's what DeepSeek did.
And it works for everyday tasks, not only math. Prompt a big model until it does your task well on your evals. Save its answers on real inputs. Keep only the good ones. Fine-tune a small model on those. OpenAI documented this exact recipe, but it's winding down its fine-tuning service, so these days you'd do it with an open student model.
Notice what got lost, though. Training on the teacher's text only shows the student the answer the teacher picked, never the near misses. "Car", never "garbage truck". It still works, as the 72.6% shows, but it's a cruder signal than the 2015 version.
How far can it go?
A student learns what the teacher shows it. The DeepSeek students were tested mostly on math, code and science, so don't expect them to match R1 on everything. And the DeepSeek team said it themselves: distillation is a cheap way to spread what the best models already do, but getting past that still needs stronger base models and bigger reinforcement learning runs. Whether a student can ever end up better than its teacher is something this recipe doesn't answer.
Further reading
- Distilling the Knowledge in a Neural Network, Geoffrey Hinton, Oriol Vinyals and Jeff Dean, 2015. The BMW and the carrot, and why temperature helps. Short and readable.
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning, DeepSeek-AI, 2025. The distillation versus reinforcement learning comparison is in the distillation section.
- Supervised fine-tuning, OpenAI API docs. The everyday recipe, under "Distilling from a larger model".