01The update rule, and why the learning rate is everything
Compute the gradient of the loss with respect to every parameter, then move each parameter a small step in the opposite direction. One line, and it is the entire learning algorithm.
The learning rate η scales that step. It is, by a wide margin, the most consequential hyperparameter in deep learning, and it is the first thing to tune when a model won't train. Too small and training crawls, or stalls on a plateau and looks converged when it isn't. Too large and each step overshoots the minimum, the loss oscillates, and past a threshold it diverges to NaN within a few dozen steps.
The failure signatures are distinguishable and worth memorising. Loss flat from step one: learning rate far too low, or the gradient isn't flowing (dead units, a detached graph, a bug). Loss decreasing then oscillating on a plateau: learning rate slightly too high — decay it. Loss spiking to NaN: far too high, or exploding gradients — lower it and clip.
θ ← θ − η ∇θ L(θ)
The whole of learning. θ is every parameter; ∇θL is backprop's output; η is the learning rate.
Try it
Step downhill — but how far?
Two dials: where you start and how far you step. Every training failure you'll debug lives on them.