Why does gradient descent step in the direction ?
Linear algebra and optimisation, Gradient methods
Level L1 Beginner. Length One-liner. Nature Th Theoretical.
What's being asked
Whether you understand the geometric meaning of the gradient as the direction of steepest ascent.
Key idea
The gradient (the vector of slopes along each coordinate) points straight uphill in the direction where increases fastest, like pointing straight up a hillside. Stepping in the opposite direction, , therefore goes straight downhill as fast as possible for a small step.
Steps
- Explain what the gradient is: it collects the rate of change (slope) of along each coordinate and points in the direction of steepest climb.
- Conclude why we negate it: reversing that arrow gives , the local direction of steepest descent, perpendicular to the contour lines of (the lines of equal height on a map).
- Note what comes next: proving this formally using a first-order Taylor approximation and the Cauchy–Schwarz inequality is covered at the next level.
Common mistakes
- Saying points straight toward the minimum; it only points downhill locally, and in a narrow valley it can point mostly across the valley walls.
- Taking too large a step along ; steepest descent holds only for small steps, and huge steps can overshoot.
How long your answer should be
One or two sentences.
Read this
Previous in Linear algebra and optimisation: What is the gradient of a function of two variables, and what does it tell you? What is the gradient of at the point ?
Next in Linear algebra and optimisation: How do full-batch gradient descent, stochastic gradient descent (SGD) and mini-batch gradient descent differ in how they compute each parameter update, and why is mini-batch SGD the standard choice in machine learning (ML)?