TOPICS
Search

Method of Steepest Descent


The method of steepest descent, also called gradient descent, is an iterative algorithm for minimizing a differentiable function f. At a point x_k with nonzero gradient, the directional derivative in a Euclidean unit direction u is del f(x_k)·u. By the Cauchy-Schwarz inequality, it is smallest when u points opposite the gradient, and a sufficiently small positive step in that direction decreases f.

The update is

 x_(k+1)=x_k-alpha_kdel f(x_k),

where alpha_k>0 is the step size. An exact line search chooses alpha_k to minimize f(x_k-alphadel f(x_k)) over alpha>=0, 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).

MethodofSteepestDescent

For a 1-dimensional function f(x), the fixed-step update is

 x_i=x_(i-1)-epsilonf^'(x_(i-1)),

where x_0 is the starting point and epsilon>0 is fixed. The results are illustrated above for the function f(x)=x^3-2x^2+2 with epsilon=0.1 and starting points x_0=2 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.


See also

Conjugate Gradient Method, Gradient, Local Minimum, Minimum

Explore with Wolfram|Alpha

References

3Blue1Brown. "Gradient Descent, How Neural Networks Learn." Oct. 16, 2017. https://www.3blue1brown.com/lessons/gradient-descent/.Arfken, G. "The Method of Steepest Descents." §7.4 in Mathematical Methods for Physicists, 3rd ed. Orlando, FL: Academic Press, pp. 428-436, 1985.Menzel, D. (Ed.). Fundamental Formulas of Physics, Vol. 2, 2nd ed. New York: Dover, p. 80, 1960.Morse, P. M. and Feshbach, H. "Asymptotic Series; Method of Steepest Descent." §4.6 in Methods of Theoretical Physics, Part I. New York: McGraw-Hill, pp. 434-443, 1953.Press, W. H.; Flannery, B. P.; Teukolsky, S. A.; and Vetterling, W. T. Numerical Recipes in FORTRAN: The Art of Scientific Computing, 2nd ed. Cambridge, England: Cambridge University Press, p. 414, 1992.Wolfram, S. A New Kind of Science. Champaign, IL: Wolfram Media, p. 985, 2002.

Referenced on Wolfram|Alpha

Method of Steepest Descent

Cite this as:

Weisstein, Eric W. "Method of Steepest Descent." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/MethodofSteepestDescent.html

Subject classifications