Model Distillation
In this article
- Explain how a large model's labels become the training data of a smaller model, and what travels with them.
- Say what a score per label teaches that a single label cannot, and why a small model usually stays below the large one.
- Compare a trained small model, the large model and a prompted small model on overall and hard-case accuracy against a target.
- Work out when a smaller model pays back its labelling and training cost, and what restarts that count.
- Terms defined here: teacher model, student model, distillation.
Overview
A large AI model sorts your customer messages well, but it reads two million a month, so you pay for every one and wait almost a second for each answer. The task is narrow: four labels, always the same. A much smaller model could do it, if it knew what the large model knows about this one job.
You will see how a large model teaches a small one (distillation), what the small one loses on tricky messages such as sarcasm, and how a held-out test and a monthly bill tell you whether to switch.
This article is part of Pro
Pro includes the staff-level and expert articles in every path. It opens after the four core paths are complete.
Still to read in this article
- One job, a big bill
- Teacher and student
- Hard and soft targets
- The quality ceiling
- Three options against one target
- Does the student pay for itself?
- When the clock restarts
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions