Gradient descent minimises a loss by repeatedly stepping against its gradient:
where is the learning rate.
- Too large diverges; too small is slow.
- Stochastic variants estimate on a mini-batch, which is noisy but cheap.
- The 1-D intuition is the sign of the derivative: positive slope means move left.
Example
For , , so . It converges iff .
In deep nets the gradient is computed by backpropagation, which relies on the chain-rule. Curvature (see eigenvalues of the Hessian) limits the usable .