AdamW and weight decay
Watch Adam + L2 and AdamW shrink the same two weights differently.
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/moExplain it simply
Training moves two weights, w₁ and w₂, to lower the loss. The shaded map shows the loss, and a stronger shade is higher. The start sits high on the steep wall of a long ravine. Across the wall, along w₂, the slope is huge. Along the ravine floor, along w₁, it's almost flat.
A contour map of the loss over w₁ from −0.5 to 2.5 and w₂ from −0.5 to 1.5. A saddle point sits at (0, 0) and the lowest point at (2, 0). The start w₀ = (0.02, 1.2) has gradient (−0.02, 24): 1200 times larger along w₂.
The loss is steep across the ravine and nearly flat along it.
- 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.