The method of steepest descent, also called gradient descent, is an iterative algorithm for minimizing a differentiable function . At a point
with nonzero gradient, the
directional derivative in a Euclidean unit
direction
is
. By the Cauchy-Schwarz
inequality, it is smallest when
points opposite the gradient, and a sufficiently small positive
step in that direction decreases
.
The update is
where
is the step size. An exact line search chooses
to minimize
over
, when a minimizer exists. A fixed-step version
uses the same positive step size at every iteration. Convergence depends on the function,
starting point, and step-size rule. For a nonconvex function, a convergent iteration
can reach a stationary point that fails to be
a local minimum.
In neural network training, backpropagation computes the loss gradient used to update the network parameters (3Blue1Brown 2017).
For a 1-dimensional function ,
the fixed-step update is
where
is the starting point and
is fixed. The results are illustrated above for
the function
with
and starting points
and 0.01, respectively.
This method has the severe drawback of requiring a great many iterations for functions which have long, narrow valley structures. A conjugate gradient method can improve convergence when applicable.