Gradient Descent
An iterative optimisation algorithm that repeatedly moves in the direction of the negative gradient to find a local minimum of a loss function.
Gradient descent is an algorithm for finding the minimum of a function by repeatedly stepping in the direction of steepest decrease.
Starting at a point , the update rule is:
where is the learning rate (step size). We subtract the gradient because the gradient points uphill â we want to go downhill.
The algorithm terminates when is near zero (a stationary point), or after a fixed number of steps.
- Each step moves in the direction that locally decreases the fastest, but only locally â it has no view of the global landscape
- A fixed point of the update () is a critical point, not necessarily a minimum
- Convergence speed and stability both depend heavily on the learning rate
- For convex functions, gradient descent (with a suitable step size) is guaranteed to converge to the global minimum
- Setting the learning rate too high: the algorithm can overshoot and diverge instead of converging
- Assuming convergence means reaching a global minimum: on non-convex functions, gradient descent only guarantees reaching a stationary point â which could be a local minimum or, in high dimensions, a saddle point
, so . Starting at , :
Each step is 80% of the previous value â the algorithm converges geometrically to 0.
For , find the update rule and verify that the minimum is reached in one step if .
Solution
. Starting at :
.
With on a perfect quadratic, gradient descent reaches the exact minimum in one step. This is a special property of quadratics; it doesn't hold for other functions.