Imagine spending months training a billion-parameter neural network to recognize images. It is brilliant â and completely unusable on a phone. Now imagine training a tiny fifty-parameter model directly on the same images. It learns well, but it misses something the giant had.
The giant does not just output a label. It outputs a probability distribution: "I'm 91 % sure this is a cat, 7 % sure it's a fox, and 1 % sure it's a dog." Those small, non-zero numbers on the wrong classes â the soft targets â carry an enormous amount of structural information about how the world is organized. A hard label like cat throws all of that away.
Knowledge distillation, introduced by Geoffrey Hinton, Oriol Vinyals, and Jeff Dean in 2015, exploits this insight. Instead of training the small student model on hard labels, you train it to mimic the full distribution produced by the large teacher. The student learns not just the right answer, but the teacher's entire sense of how close the alternatives are.
The result is striking: a student trained on soft targets routinely outperforms the same architecture trained directly on the data â sometimes matching a teacher ten times its size.
Comments
Loading comments...