GlossaryEntry 7 of 30

Distillation

Training a small model to imitate a larger one, to get a lighter AI.

Read the transcript

How do you fit what a huge AI knows… into a tiny one? AI glossary, entry seven: distillation. It's training a small model to imitate a larger one, to get a lighter AI. First, the teacher. You take a large, capable model and ask it a huge number of questions. All its answers are kept: they become the lesson. Then, the student. A much smaller model trains to reproduce those answers. Like an apprentice watching a head chef: no need to relive the years of experience, just copy the moves. Why does it matter? The student is faster and cheaper to run: small enough for a laptop, or even a phone. In return, it usually loses a little quality. Remember: a big model acts as teacher to a smaller one; the student is faster and cheaper to run; and it usually loses a little quality along the way. Distillation is the big model's know-how… in a small model's size. Next entry: embedding.

How it works

You start with a large, capable model, the teacher, and a smaller one, the student. The teacher answers lots of questions, and the student is trained to reproduce those answers. It's like an apprentice watching a head chef: they don't relive all those years of experience, but they learn to copy the moves.

Why it matters to you

Pocket-sized AI

Distillation helps make models small enough to run on a laptop, or even a phone.

Cheaper answers

A small model costs less to run, which makes faster or more affordable versions possible.

Common myth

False: “A distilled model is just the big model, compressed.”

No, it's a separate, smaller model trained to imitate the big one. Shrinking the same model is what quantization does.

In the news