Model distillation
Training a small, cheap model to imitate a big, expensive one.
Model distillation, or knowledge distillation, is a way to squeeze much of what a large model knows into a smaller one. You take a big, capable teacher model, run it on lots of inputs, and train a small student model to reproduce the teacher's outputs instead of learning only from the original labeled data.
The trick, described in a 2015 paper by Geoffrey Hinton, Oriol Vinyals and Jeff Dean, is that the teacher's full probabilities carry more information than a single right answer. A photo classifier that says "cat 90%, fox 8%, car 0.01%" is also telling the student which mistakes are reasonable. With today's LLMs the same idea often takes a simpler form: the teacher generates many answers, or full step-by-step reasoning, and that text becomes training data for the student. In early 2025, for example, DeepSeek published several small open models distilled from its R1 reasoning model.
The payoff is at inference time. A distilled model has far fewer parameters, so it answers faster, costs less per request and can run on a laptop or a phone. The limits: the student rarely surpasses its teacher, it tends to lose the most when tasks drift away from what it was distilled on, and many commercial providers forbid in their terms using their models' outputs to train competing models.
Keep in mind
- A small student model learns to imitate a large teacher model.
- The teacher's probabilities or generated text become training data.
- Result: faster, cheaper inference that can run on small devices.
- Students rarely beat teachers, and some providers forbid distilling their outputs.
Go deeper
- Knowledge distillation on Wikipedia
- Distilling the Knowledge in a Neural Network (Hinton et al., 2015)