LESSON 2.31 · 5 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Learning-rate schedules and warmup
Watch one weight blow up, warm up, then settle as its learning rate changes.
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 · 2.31 · SCHEDULE BAYRATE 0.50 · GRADIENT 8.88 · STEP −4.44
01
Stage 1 of 5 · Take a step
A mini-batch of 4 examples gives the gradient ĝ = 8.88. The learning rate η = 0.5 scales it: w moves by −4.44.
Explain it simply
You see one weight, w, on its loss curve. The four bright bars below are this step's batch of examples, and they give a slope, the gradient. The learning rate sets how far each step goes: here 0.5 times 8.88. So w jumps 4.44, right past the bottom.
The weight w starts at 2.00. The batch gradient is 8.88. With the learning rate 0.5, the step moves w to −2.44.
example, batchweight w, learning rate ηgradient, overshoot, noiselosssafe limit 2 / L″
Toy: 1 weight w · loss ¼w⁴ + 0.1w² · 32 examples · batches of 4 · 60 steps of SGD
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
The new weight is the old weight minus the rate times the batch gradient.
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.