LESSON 36.01 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Knowledge distillation with soft targets
A small net learns from a large net's softened guesses, not only from labels.
Pro lesson. Stage 1 is free to watch. Pro opens all 5 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 36.01 · DISTILLATION BAYTEACHER · 99 PARAMS · 94% RIGHT
01
Stage 1 of 5 · The teacher
The teacher model is a trained net with 16 hidden units. Its guesses on 169 test points are 94% right.
Explain it simply
On the left you see 72 points in three classes: circles, squares and triangles. The teacher is a big net with 99 parameters. The small blue marks are its guesses on a grid of test points. Only 10 of them are wrong, in red.
A plane with 72 training points in 3 classes and a grid of 169 test guesses. The teacher net, 16 hidden units and 99 parameters, gets 159 of 169 right.
points x (circle 0, square 1, triangle 2)weights, temperature Tlogits, probabilities, guessesloss, wrong guessestrue class borders, the target (hard label or soft target)
Toy: 72 points in 3 classes; teacher 2-16-3; the 2-4-3 student trains in the browser on 9 points
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The net turns a point into three scores, one per class.
PRO LESSON · YOU WATCHED STAGE 1 OF 5
Unlock the full explainer
- 4 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.