Gradient descent is the worked example of a first-order update rule, chosen because few students had seen it analyzed rigorously (58:42, 59:49).
Step 1 — Taylor with explicit remainder
- For
x₀, x₁ ∈ ℝⁿdefinex_t = x₀ + t(x₁ − x₀), sot = 0givesx₀andt = 1givesx₁(1:00:08,1:01:06). - Taylor's theorem with remainder (stated, not proved — any calculus text has it):
f(x₁) = f(x₀) + ∇f(x₀)·(x₁ − x₀) + ∫₀¹∫₀ᵗ (x₁−x₀)ᵀ ∇²f(x_α) (x₁−x₀) dα dt(1:01:06,1:01:44,1:02:02).
Step 2 — Bound the remainder with the Hessian upper bound
- Since
∇²f ⪯ L·I, each quadratic form is at mostL‖x₁ − x₀‖₂²(1:02:55,1:03:22). - Integrating
αfrom0totgivest; integratingtfrom0to1gives1/2. Result — inequality (⋆):f(x₁) ≤ f(x₀) + ∇f(x₀)·(x₁ − x₀) + (L/2)‖x₁ − x₀‖₂²(1:03:48,1:04:14).
Step 3 — The update rule
- Gradient descent = minimize the right-hand side of (⋆); that is the entire derivation, obtained by calculus (
1:04:42,1:17:14,1:17:42). - The move is a scaled step against the gradient from
x₀(a student catches that the gradient must be scaled, not squared, in the update itself) (1:04:42,1:05:53). - Progress bound:
f(x₁) ≤ f(x₀) − (1/2L)·‖∇f(x₀)‖₂²(1:06:26). - The motivation for a lower Hessian bound appears here: without it, the gradient term could be zero or tiny and no progress is guaranteed (
1:07:01).
Step 4 — Lower bound via the strong-convexity side
- Flipping the inequality direction swaps
Lforμ: for allx, y,f(y) ≥ f(x) + ∇f(x)·(y − x) + (μ/2)‖x − y‖₂²(1:08:31,1:08:55,1:09:43). - Minimizing the right-hand side over
y(again pure calculus) givesf(x*) ≥ f(x) − (1/2μ)‖∇f(x)‖²(1:10:24,1:10:50). - Rearranged at
x = x_k:‖∇f(x_k)‖² ≥ 2μ·( f(x_k) − f(x*) )— the gradient cannot be small while the error is large (1:11:36,1:12:29,1:13:08).
Step 5 — Combine
- Subtract
f(x*)from the progress bound:f(x_{k+1}) − f(x*) ≤ f(x_k) − f(x*) − (1/2L)‖∇f(x_k)‖²(1:13:54,1:14:44). - Substituting the gradient lower bound yields the convergence rate:
f(x_{k+1}) − f(x*) ≤ (1 − μ/L)·( f(x_k) − f(x*) ), i.e.α = 1 − μ/L(1:15:22,1:15:53). - The guarantee is governed entirely by the conditioning ratio
μ/L: the largerμ/L, the better the per-step contraction (1:15:53,1:16:22).