freecoding.school100% FREE · NO SIGNUP
Tensor TownISSUE #25 of 120

learning rate · the most important knob

NeuraVSThe Overfit Ogre
Neura saysThe learning rate sets step size — the single most important hyperparameter.

The learning rate scales each gradient step. Too high and training overshoots or diverges; too low and it crawls or gets stuck. There's a sweet spot, and it changes during training — hence schedules (warmup, decay) and adaptive optimizers. If a model won't train, the learning rate is the first dial to check. Get it wrong and nothing else matters.

Power-ups you unlock

The Overfit Ogre attacks — common mistakes

Boss battleDescribe the symptoms of a learning rate that’s too high vs too low.

Example code

<!doctype html><html><head><meta charset="utf-8"></head>
<body style="background:#06040d;color:#e6e0ff;font-family:monospace;padding:20px"><pre>too high → loss explodes / bounces
too low  → loss barely moves
just right → smooth, steady descent</pre></body></html>
▶ Open the interactive comic issue
‹ Backpropagation · How Gradients FlowOptimizers · Sgd · Adam · Adamw ›