Distillation
Training a student model from teacher-provided signals
What is Distillation?
Model distillation trains a student using signals from a teacher model, such as outputs or probability distributions. The aim may be a smaller or cheaper model for a defined task. Retained quality must be measured; broad teacher capability does not automatically transfer.
How it works
Read the diagram
- Teacher
- Training signals
- Student
- Evaluation
Key takeaways
-
Evaluate the specific task and held-out failure cases.
-
Account for training costs as well as inference savings.
Illustrative example
In a hypothetical summarization project, train the student on permitted teacher examples, then compare both against human-reviewed held-out summaries. Record factual errors, format compliance, latency, and cost before choosing the student.
Distillation and fine-tuning describe different aspects
Fine-tuning describes additional training of an existing model; distillation describes the teacher-to-student source of training signals. A project can use both. Curate examples, check permitted use, and evaluate difficult cases where the student may lose capability. Lower per-request cost needs to cover dataset preparation, training, and maintenance before it produces net savings.