advanced26 min studyLesson 42 in Mathematics

Smoothness and strong convexity

Bracket curvature from above and below to predict stable step sizes, conditioning, and convergence rates.

On this page

What you’ll understand

  • Interpret Lipschitz gradients as an upper curvature bound.
  • Use strong convexity to bound distance from an optimizer.
  • Relate the condition number to different directional convergence rates.

Convexity tells us which answers can be certified. Quantitative curvature tells us how expensive finding those answers may be. A direction that is almost flat tolerates large movements but supplies little restoring force; a steep direction demands caution. Smoothness and strong convexity put numerical bounds on these effects. Their ratio explains why one coordinate of a perfectly convex problem can settle quickly while another continues making painfully small progress.

Smooth means a controlled gradient

In Euclidean geometry, an LL-smooth differentiable function has a gradient whose change is at most LL times the change in position. This is stronger than having derivatives everywhere and stronger than simply having a continuous gradient. The bound must hold on the region under discussion. A polynomial can be smooth on every bounded interval without admitting one finite global gradient-Lipschitz constant on the whole real line.

Integrating the gradient along a segment gives the descent lemma: the tangent approximation can underestimate the function by at most a quadratic correction. This upper model explains a safe gradient step. If curvature is bounded above by LL, choosing a step no larger than 1/L1/L makes the model decrease. The statement uses an exact gradient and assumes the segment remains in the domain; noisy estimates and constraints require additional treatment.

∥∇f(y)−∇f(x)∥≤L∥y−x∥,f(y)≤f(x)+∇f(x)T(y−x)+L2∥y−x∥2\|\nabla f(y)-\nabla f(x)\|\leq L\|y-x\|,\qquad f(y)\leq f(x)+\nabla f(x)^{\mathsf T}(y-x)+\frac L2\|y-x\|^2
The second inequality follows from the first along segments in a convex domain. The norm is Euclidean and L is an upper bound, not necessarily the smallest possible constant.↔ Scroll wide equations horizontally.

Strong convexity supplies a lower bowl

A differentiable function is μ\mu-strongly convex when every tangent plane can be raised by a quadratic bowl of curvature μ>0\mu>0 and still remain below the function. At an unconstrained minimizer the gradient vanishes, so the objective gap bounds squared distance. This is a quantitative version of uniqueness: a point far away must pay at least a specified increase in value. Strict convexity alone supplies no such uniform quadratic constant.

For twice continuously differentiable functions on an open convex domain, Hessian eigenvalues between μ\mu and LL imply these lower and upper bounds. The ratio κ=L/μ\kappa=L/\mu is a condition number for this geometry. Rescaling coordinates can change it, which is why feature scaling and preconditioning affect optimization. A small objective value is not automatically a small parameter error when the smallest curvature is tiny.

f(y)≥f(x)+∇f(x)T(y−x)+μ2∥y−x∥2,f(x)−f∗≥μ2∥x−x∗∥2f(y)\geq f(x)+\nabla f(x)^{\mathsf T}(y-x)+\frac\mu2\|y-x\|^2,\qquad f(x)-f_*\geq\frac\mu2\|x-x_*\|^2
The second inequality assumes x* is an unconstrained minimizer, so its gradient is zero. Positive μ gives a unique minimizer whenever one exists.↔ Scroll wide equations horizontally.

Translate bounds into an iteration

For a quadratic with positive definite Hessian, resolve the error into orthonormal eigenvectors. A gradient step multiplies each component by one minus the step size times that eigenvalue. A single shared step must accommodate the steepest direction, leaving flat directions to contract slowly. For globally LL-smooth, μ\mu-strongly convex functions, the step 1/L1/L gives the familiar objective-gap bound with factor 1−μ/L1-\mu/L per iteration.

The lab has only unit curvature, so both constants equal one. Use it to verify the multiplier in a single direction: with step 0.25, predict a factor 0.75 in position and 0.5625 in objective value each update. It cannot vary a Hessian spectrum or demonstrate ill-conditioning directly. The two-dimensional calculation below supplies that missing comparison and shows why a successful one-dimensional experiment does not establish a general iteration count.

Two curvatures, one step

For f(x,y)=(x2+9y2)/2f(x,y)=(x^2+9y^2)/2, take one gradient step with η=1/9\eta=1/9 from (9,1)(9,1). Compare the two coordinate errors.

  1. The Hessian is diagonal with eigenvalues one and nine. Hence μ=1\mu=1, L=9L=9, and κ=9\kappa=9. The unique minimizer is (0,0)(0,0) and the initial value is (81+9)/2=45(81+9)/2=45.

  2. The gradient at (9,1)(9,1) is (9,9)(9,9). Subtracting one ninth of it gives (8,0)(8,0). Equivalently, the x component contracts by 8/98/9 while the y component is multiplied by zero.

  3. The new value is 82/2=328^2/2=32. The general gap bound gives at most (1−1/9)45=40(1-1/9)45=40, which is valid but conservative. The steep coordinate disappears immediately, while the flat coordinate still needs repeated steps.

The result

Curvature bounds predict unequal coordinate progress. A rate bound need not equal the observed objective ratio on a particular starting point.

Explore the model

Interactive lab

Interactive lab · optimization

Measure the unit-curvature contraction

Set initial position to 4 and step size to 0.25. Predict x after two steps, then Step twice and inspect f(x). The fixed lab uses x²/2 and therefore L=μ=1; it cannot change condition number or display a two-dimensional Hessian.

Measure the unit-curvature contractionGradient descent on f(x) = x²/2: xₙ = (1 − η)ⁿx₀. Playback advances two discrete iterations per second. Values outside |x| ≤ 4 are explicitly reported. Current readings: Position x0: 2; Objective x²/2: 2; Iteration behavior: Stable step. All parameters are adjustable with the labeled controls below.−4−202402.174.356.528.7Parameter xf(x) = x²/2n = 0
ObjectiveDiscrete iterate
Position x0
2
Objective x²/2
2
Iteration behavior
Stable step
n = 0 · t = 0 s

Gradient descent on f(x) = x²/2: xₙ = (1 − η)ⁿx₀. Playback advances two discrete iterations per second. Values outside |x| ≤ 4 are explicitly reported. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.

Look forFor the unit quadratic, position contracts by 1−η and objective value by (1−η)² at every update.

Check your understanding

For a quadratic Hessian with eigenvalues 2 and 20, which Euclidean condition number follows from the tight curvature bounds?

Try it yourself

For f(x)=2x2f(x)=2x^2, identify tight LL and μ\mu. Starting at x=3x=3, compute a step of size 1/L1/L.

Take a moment to make a prediction or work it out on paper. Open a hint when you need one.

Give me a hint

The derivative is 4x and its derivative is the constant four. Use that same constant for both curvature bounds.

Compare with the solution

Both tight constants equal four, so the condition number is one. The gradient at three is twelve; a step of size 1/41/4 gives 3−12/4=03-12/4=0. The exact quadratic reaches its minimizer in one step because its only curvature equals L. This special equality is stronger than a generic convergence guarantee.

Take it with you

  • L-smoothness limits how badly a linear prediction can underestimate the objective.
  • Strong convexity supplies a quadratic error bound and a positive lower curvature scale.
  • The ratio L/μ explains why steep and flat directions compete for one step size.

Read further

Original sources and deeper explanations to follow at your own pace.

Optional progress, saved in this browser when available. Revisit any lesson at any time.

Lesson not marked complete.