Knowledge Distillation
Knowledge distillation is a training paradigm in which a compact “student” model is taught to reproduce the output behavior of a larger, usually more accurate “teacher” model. Rather than learning directly from raw labels, the student receives softened predictions—probability vectors or intermediate feature representations—that convey richer information about how the teacher generalizes across classes. By aligning its own outputs with those of the teacher, the student can capture much of the teacher’s performance while using far fewer parameters and less computational budget.
The approach matters because it offers a systematic way to compress high‑capacity models for deployment on resource‑constrained devices such as smartphones, embedded systems, or edge sensors. It also serves as a regularizer: the distilled knowledge can smooth decision boundaries and improve robustness against overfitting, sometimes even boosting accuracy beyond that achieved by training the student from scratch. Consequently, knowledge distillation bridges the gap between state‑of‑the‑art research models and practical, real‑world applications.
You will encounter knowledge distillation in any workflow where model size, latency, or power consumption is a limiting factor—e.g., compressing vision transformers for on‑device image recognition, shrinking language models for fast inference in chat interfaces, or transferring expertise from an ensemble of specialists into a single deployable model. The concept has also been extended beyond supervised learning to settings such as self‑supervised pretraining and reinforcement learning, where the “teacher” can be any source of richer supervisory signals that the student seeks to emulate.