![]() |
|
|||||||||||||||||
Gradient descentGradient descent is an optimization algorithm that approaches a local maximum of a function by taking steps proportional to the gradient (or the approximate gradient) of the function at the current point. If instead one takes steps proportional to the negative of the gradient, one approaches a local minimum of that function. This algorithm is also known as steepest descent, or the method of steepest descent, not to be confused with the method for approximating integrals with the same name, see method of steepest descent. Description of the methodGradient descent is based on the observation that if the real-valued function for γ > 0 a small enough number, then
We have Let us illustrate this process in the picture below. Here F is assumed to be defined on the plane, and that its graph looks like a hill. The blue curves are the contour lines, that is, the regions on which the value of F is constant. A red arrow originating at a point shows the direction of the gradient at that point. Note that the gradient at a point is perpendicular to the contour line going through that point. We see that gradient descent leads us to the top of the hill, that is, to the point where the value of the function F is largest. To have gradient descent go towards a local minimum, one needs to replace γ with - γ. CommentsNote that gradient descent works in spaces of any number of dimensions, even in infinite-dimensional ones. Two weaknesses of gradient descent are:
A more powerful algorithm is given by the BFGS method which consists in calculating on every step a matrix by which is multiplied the gradient vector to go into a "better" direction, combined with a more sophisticated linear search algorithm, to find the "best" value of γ. See alsoThe contents of this article are licensed from Wikipedia.org under the GNU Free Documentation License.
How to see transparent copy 01-04-2007 01:21:04 |
|






is defined and differentiable in a neighborhood of a point
, then
. It follows that, if
.
With this observation in mind, one starts
with a guess
for a local maximum of
such that
so hopefully the sequence
converges to the desired local maximum. Note that the value of the step size