L041 · Under the hood · 2 min

Distillation: a big model teaches a small one

Distillation trains a small, fast model to copy the answers of a big one, so you keep much of the skill at a fraction of the cost.

01 · The idea

Big models are clever but slow and expensive to run. Many everyday tasks do not need all that power, so companies want smaller models that behave almost as well.

In distillation, the big model plays teacher. It answers a huge set of questions, and the small model, the student, is trained to give the same answers. It can even learn from how sure the teacher was about each choice, which carries more information than a plain right or wrong.

The student ends up much smaller and quicker. It usually loses some skill, especially on hard or unusual questions, but for common tasks the gap can be small.

Many of the "mini", "lite" or "fast" versions of popular models are made partly this way. That is why a small model can feel surprisingly capable on simple jobs and then stumble on tricky ones.

02 · Think of it like this

It is like a master chef training a cook for a busy street stall. The cook cannot do the whole fine-dining menu, but learns to make the ten most popular dishes almost as well, and much faster.

03 · Do it now

04 · Quick check

What does the student model learn from in distillation?