4.10.20 · D1Advanced Topics (Elite Level)

Foundations — Gradient descent and variants — convergence analysis

3,178 words14 min readBack to topic

This page is the toolbox. The parent note fires off a barrage of symbols at speed. Here we earn every single one from zero — plain words, then a picture, then why the topic can't live without it. Nothing is used before it is built. Read top to bottom; each item leans only on the ones above it.


0. The scene: a function and its landscape

Before any symbol, fix the mental picture.

The picture (figure s01): for , imagine a hilly landscape. The floor is the plane; the height above each floor-point is . Our goal is to find the floor-point sitting under the lowest part of the surface.

Figure — Gradient descent and variants — convergence analysis

Why the topic needs it: every later symbol describes this landscape — its slope, its curvature, its lowest point. If you don't see the landscape, the algebra is noise.

Why needed: every convergence bound is measured as a distance from or a height gap above . They are the finish line.


1. Vectors and their length

A location is a vector: an arrow from the origin to that floor-point.

The picture: in 2D, — the hypotenuse of a 3-by-4 right triangle.

Why needed: convergence means "the gap shrinks". To say something shrinks we must measure it — and (distance from current point to the goal) is exactly that measuring stick.


2. The dot product

The picture (figure s02): , where is the angle between the arrows. So it measures how much two arrows point the same way: maximal when aligned, zero when perpendicular, negative when opposed.

Figure — Gradient descent and variants — convergence analysis

Why the topic needs it: the slope-in-a-direction is a dot product (, next section), and the whole "steepest descent" argument is "which direction makes this dot product most negative?"

Why needed: this is the one line that proves is the steepest direction, and it also appears bounding the descent-lemma integral (Section 9). It caps how big a dot product can be.


3. The gradient

Here is the star of the show.

The picture (figure s03): at any floor-point, is an arrow lying in the floor plane pointing in the direction of steepest uphill, and its length is how steep that climb is. So points steepest downhill — the direction we step.

Figure — Gradient descent and variants — convergence analysis

Why needed: the entire update rule is built from this arrow. No gradient, no descent.


4. The step size and the iteration index

Why needed: "how big a step () and how fast ()" is the topic's central question. Both symbols live in every bound.


5. Curvature: the Hessian , positive semidefiniteness, and the ordering

Slope tells you which way is down; curvature tells you how the slope itself changes — and curvature is what decides how hard the problem is.

The picture (figure s04): trap the true curved surface between two parabolas — a flatter one of curvature below and a steeper one of curvature above.

Figure — Gradient descent and variants — convergence analysis

Why needed: these two sandwiching bounds ( below, above) are the only facts the convergence proofs use. Everything — safe step size, speed — is squeezed out of this sandwich. See Convex Functions and Optimization for the convexity () that guarantees a single valley.


6. The two named constants: and

Why needed: sets the safe step size (derived in Section 7). Because curvature , a step of is guaranteed not to overshoot.

Why needed: gives the valley a definite pull toward the bottom, which is what upgrades convergence from slow to fast geometric (Section 8).


7. Why steps bigger than blow up

We can now derive the danger line the parent note keeps citing, using only and the picture of a bowl.

Why needed: this is the precise reason (not ) controls the safe step size, and it is the seed of the full convergence rates in the parent note.


8. The condition number , eigenvalues, and rate

The picture: round bowl → straight shot to the bottom. Long ravine → zig-zag across the narrow direction while barely moving down the long axis.

Why needed: is the single number that says whether GD flies or crawls, and is the literal speed. The headline "momentum turns into " lives here — see Nesterov Acceleration.


9. The Descent Lemma, and two borrowed tools


How it all feeds the topic

Function f maps R^n to a height

Vector length norm measures the gap

Gradient grad f = steepest uphill arrow

Dot product and Cauchy-Schwarz

Update rule step of size eta

Hessian = curvature

Positive semidefinite = curves up everywhere

L smoothness upper curvature

mu strong convexity lower curvature

Step below two over L stays stable

Descent Lemma via integral

Condition number kappa = L over mu

Eigenvalues = curvatures on perpendicular axes

Convergence rate rho

Gradient Descent convergence analysis


Equipment checklist

Cover the right side and recall each before moving on.

What does mean in words?
Takes a location (list of numbers), returns one height number.
What are and ?
The location of the lowest point, and the height there.
How do you compute and what does it picture?
; the straight-line length of the arrow.
Why does the topic need ?
To measure the shrinking gap .
What does measure geometrically?
How much two arrows point the same way: .
State Cauchy–Schwarz.
, equality when aligned.
What is and where does it point?
The vector of partials; the steepest-uphill arrow in the floor plane.
Why do we step along ?
The directional slope is most negative when opposes (Cauchy–Schwarz).
What is , and what happens when ?
The step size; the factor , so distance-to-bottom grows and GD diverges.
Why is special on the bowl?
The factor becomes — it reaches the bottom in one step.
What is the Hessian ?
The matrix of second derivatives — the curvature/bendiness of the landscape.
What does "positive semidefinite" () mean?
for every — curves up (never down) in every direction.
What does mean in words?
; curvature never exceeds in any direction.
Define -smoothness.
— the gradient is -Lipschitz.
Define -strong convexity.
with ; curves up at least like a -parabola.
What is an eigenvalue of a Hessian, geometrically?
The curvature along one of its perpendicular eigenvector axes.
What is and what does it picture?
; how stretched the valley is (round bowl vs thin ravine).
State the Descent Lemma and its job.
; GD minimizes this upper bowl each step.
What is the rate ?
The fraction of error kept per step; smaller is faster ().
What does say?
The noisy SGD gradient is on average the true gradient.