How does knowledge distillation work?
medium- Train a small 'student' network to match the outputs (usually soft probabilities at high temperature T) of a large pretrained 'teacher'.
- .
- The soft targets carry more information than hard labels (they encode inter-class similarities), so the student often achieves 90-95% of the teacher's accuracy at 5-10x smaller size.
- Foundational for model compression, mobile deployment, MLM speedups (DistilBERT).
#distillationPermalink & quiz →