Jargonautica
How the Machinery Works

Gradient Descent

The actual nudging, done alongside backpropagation. Picture walking down a hill in thick fog. You cannot see the bottom, but you can feel which way is downhill from where you stand, so you take a small step in that direction and repeat. The landscape here is error, and the model is looking for the lowest point it can reach.

Technical view

Parameters are updated in the direction opposite the gradient, scaled by a learning rate. Too large a learning rate and training diverges; too small and it takes forever or stalls. Modern practice uses stochastic gradient descent, computing gradients on small random batches rather than the whole dataset, which is both faster and adds helpful noise. Optimisers such as Adam adapt the step size per parameter. The loss surface of a large network is wildly non-convex, so there is no guarantee of finding the global minimum, but in high dimensions good local minima turn out to be plentiful and usually good enough.


Part of AI Terminology Index, section: How the Machinery Works.

How it connects

Gradient Descent links to 13 other terms, and the 12 closest are drawn here. The faint lines are links between those terms. See it in the full graph.

Loss FunctionLoss FunctionTrainingTrainingOverfittingOverfittingBackpropagationBackpropagationEpoch, Batch and Learning RateEpoch, Batch and Le…Loss LandscapeLoss LandscapeConvexityConvexityGradientGradientWeights, Parameters and BiasesWeights, Parameters…Search and OptimisationSearch and Optimisa…Mesa-optimisationMesa-optimisationOptimiserOptimiserGradient Descent