Part 11 / Topic 3 of 6
Regularizing networks
Networks have enough capacity to memorise; regularization pushes them toward patterns that generalise.
- Weight decay — L2 shrinkage, as in Part 6 (
weight_decay=in the optimizer; AdamW applies it correctly). - Dropout — randomly zero activations during training so neurons cannot co-adapt. Measured on a 200-sample digits run: train 1.000 both ways, validation 0.930 without dropout vs 0.937 with. A nudge, not a miracle — on this small, clean dataset. Its value grows with network size and data noise.
- Data augmentation — the strongest regularizer when applicable: train on shifted/rotated/recolored copies, and the invariance is learned rather than memorised.
🧪 Quick quiz
- Dropout is a form of…
Show the answer
Regularization — randomly zeroing activations during training discourages co-adaptation and reduces overfitting. (In eval mode it switches off: Part 10.)
Done here? The practice set for Part 11 — 4 exercises with solutions — is on the part page.