SGD and mini-batches
Watch noisy small batches race the full gradient down the same ravine.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moExplain it simply
The map shows the loss L over two weights. It has a narrow ravine along w₁, a saddle in the middle, and two lowest points. Each of the 8 examples sees the same surface, tipped a little by its own arrow in the panel. The arrows cancel out, so the average loss of the 8 examples is exactly L.
A contour map of L over w₁ from −3 to 3 and w₂ from −1.5 to 1.5. A narrow ravine runs along w₁. It has a saddle at (0, 0), where L = 1. The minima at (−2, 0) and (2, 0) have L = 0. The start w₀ = (0.02, 1.2) has L = 15.4. The panel shows 8 teal arrows, the tilts of the 8 examples. They add to (0, 0).
Each example's loss is L, tipped by its own tilt.
- 5 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.