Glossary termOptimization algorithm

Gradient Descent

Also known as: Steepest descent

Optimization method that repeatedly adjusts parameters in the direction that most reduces a function's value, used to train most machine learning models.

Gradient descent is an iterative way to find a minimum of a function. At each step it computes the gradient, the vector of partial derivatives that points in the direction of steepest increase, and moves the parameters a small distance in the opposite direction. The size of each move is set by the learning rate. In machine learning the function being minimized is a loss that measures a model's errors on training data, and the parameters are the model's weights. A common image is a hiker descending a foggy hillside by always stepping downhill.

The method is usually credited to the French mathematician Augustin-Louis Cauchy, who described it in 1847. Training on large datasets typically uses stochastic gradient descent, which estimates the gradient from a small random batch of examples rather than the whole dataset, trading some noise for a large gain in speed. Variants add momentum or adapt the learning rate for each parameter; Adam, introduced in 2014, is among the most widely used. In neural networks, the gradients themselves are computed with backpropagation.

Choosing the learning rate is a practical art: too large and training diverges, too small and it crawls. Loss surfaces of deep networks are far from simple bowls, yet gradient-based training finds good solutions in practice more reliably than early theory predicted, a puzzle that remains an active research area. Gradient descent is so central that much of the hardware built for AI, including GPUs and specialized accelerators, is designed to perform the necessary floating-point operations as quickly as possible.

Key points

  • Gradient descent moves parameters opposite to the gradient to reduce a loss function step by step.
  • Stochastic gradient descent estimates gradients from small random batches to handle large datasets.
  • Augustin-Louis Cauchy described the method in 1847, long before electronic computers existed.
  • Adaptive variants such as Adam adjust learning rates automatically for each parameter.

Related entries

Glossary term

Algorithm that computes how much each weight in a neural network contributed to an error, enabling efficient training of multi-layer networks.

Glossary term

Machine Learning

AIProgramming

Branch of artificial intelligence in which computer systems improve at tasks by learning patterns from data rather than following explicitly programmed rules.

Glossary term

Computational model made of interconnected units, loosely inspired by biological neurons, whose connection strengths are learned from data.

Glossary term

Failure mode in which a model learns noise and quirks of its training data so closely that it performs poorly on data it has not seen.

Glossary term

Graphics Processing Unit

HardwareAIVideo Games

Highly parallel processor originally designed to render images, now also widely used for scientific computing and for training and running AI models.

Glossary term

Approach to machine learning that trains neural networks with many layers to learn increasingly abstract representations directly from raw data.

Featured in guides

Referenced by

Other entries that discuss or point to Gradient Descent.