Lesson 11 of 12 8 min · 135 words
The learning rate
Step size: too small is slow, too large diverges.
The learning rate is the most important hyperparameter of gradient methods. Too small: training is painfully slow and may stall. Too large: steps overshoot the minimum, the loss oscillates or diverges to infinity.
For the simple quadratic , gradient descent converges only if . Steeper problems need smaller steps.
In practice: try values on a log scale (0.1, 0.01, 0.001…), watch the loss curve, and use a schedule — warm up, then decay (step, exponential or cosine). Adaptive optimisers like Adam are less sensitive but still need a sensible (0.001 is a common default).
Formula to remember
Expected risk
Average loss over the true (unknown) data distribution.
Quick check · +5 XP