advanced34 min studyLesson 300 in Mathematics

Nonconvex complexity and stationarity certificates

Derive a first-order iteration bound and state exactly what a small-gradient or approximate-curvature certificate proves.

On this page

What you’ll understand

  • Derive the O(ε⁻²) gradient-descent bound with its constants.
  • Distinguish iteration, evaluation, arithmetic, and elapsed-time complexity.
  • Interpret first- and second-order approximate stationarity without claiming global optimality.

A complexity statement is incomplete until it names the target and the counted resource. Finding a point with small gradient is different from finding a global minimum, and counting gradient evaluations is different from counting floating-point operations or seconds on a cluster. Nonconvex optimization can provide useful finite guarantees for stationarity even when global optimization is intractable. This final lesson derives one such guarantee directly, then explains how stronger derivative assumptions and more expensive local models change the tradeoff rather than magically remove nonconvexity.

Name the certificate before counting work

For a differentiable unconstrained objective, an epsilon-first-order stationary point has gradient norm at most epsilon in a specified norm. This condition rules out large first-order descent but can hold at a saddle or maximum. A common approximate second-order certificate also bounds the smallest Hessian eigenvalue below by minus a tolerance. It excludes sufficiently strong negative curvature, yet weak or higher-order saddles can remain. Neither certificate is a global objective-value guarantee without extra structural assumptions such as convexity or an appropriate error bound.

The tolerances carry scale. Multiplying an objective by a constant multiplies both gradient and Hessian, so the same numeric epsilon can represent a different demand after rescaling. In constrained problems, replace these unconstrained tests with feasibility, complementarity, and an appropriate Lagrangian or projected residual. A certificate computed using inaccurate derivatives should include that uncertainty. A solver stopping because it exhausted a wall-clock budget has supplied a budget outcome, not necessarily the promised mathematical certificate.

∥∇f(x)∥2≤εg,λmin⁡(∇2f(x))≥−εH\|\nabla f(x)\|_2\leq\varepsilon_g,\qquad \lambda_{\min}(\nabla^2f(x))\geq-\varepsilon_H
These are approximate unconstrained first- and second-order stationarity tests. They do not assert local or global minimality in a general nonconvex problem.↔ Scroll wide equations horizontally.

Sum a one-step decrease into a bound

Assume the objective is differentiable on all Euclidean space, bounded below by a finite f_low, and has a globally L-Lipschitz gradient for some positive L. Exact gradient descent with step 1/L satisfies the descent lemma. Each update reduces the objective by at least the squared gradient norm divided by 2L. Summing over N updates telescopes the function values, leaving a finite initial objective budget that must pay for every large-gradient iteration. Convexity is not needed for this calculation.

The smallest squared gradient among the N starting iterates is at most their average. Consequently it is bounded by 2L times the initial objective gap divided by N. Taking N at least that numerator divided by epsilon squared ensures that one tested iterate meets the first-order target. This is an upper bound on updates and exact gradient evaluations in the stated model. If f_low or L is unknown, the theorem remains a valid analysis but does not by itself supply a computable stopping counter.

f(xk+1)≤f(xk)−∥∇f(xk)∥22L,min⁡0≤k<N∥∇f(xk)∥2≤2L(f(x0)−flow)Nf(x_{k+1})\leq f(x_k)-\frac{\|\nabla f(x_k)\|^2}{2L},\qquad \min_{0\leq k<N}\|\nabla f(x_k)\|^2\leq\frac{2L(f(x_0)-f_{\rm low})}{N}
This bound uses exact full gradients, step 1/L, a valid global Lipschitz constant, and a finite lower bound. It gives O(ε⁻²) updates for first-order stationarity, not an objective-gap rate for arbitrary nonconvex functions.↔ Scroll wide equations horizontally.

A stronger oracle buys a different problem

Second-order methods can exploit negative curvature and regularized quadratic models. With a Lipschitz Hessian and bounded-below objective, suitably solved cubic-regularization methods admit an O(ε−3/2)O(\varepsilon^{-3/2}) evaluation bound for a first-order gradient target. A representative simultaneous second-order target scales the allowable negative curvature with the square root of the gradient tolerance, with constants depending on Hessian regularity. Such results require specified subproblem accuracy and oracle assumptions; they are not a blanket rate for every Newton method.

Comparing exponents alone hides costs. Forming a dense Hessian, solving a cubic subproblem, or estimating an extreme eigenvalue may be far more expensive than one gradient. Direct search uses objective calls and dimension-dependent directional coverage, while stochastic methods must account for variance and failure probability. State dimension, derivative access, smoothness class, target tolerances, and the operation being counted before comparing algorithms. The most honest final report combines a measured certificate with measured cost and separately lists any unverified global or feasibility claims.

Budget a first-order guarantee

Suppose a smooth objective has L=5 and f(x₀)−f_low≤12. Using exact gradient descent with step 1/5, how many updates suffice in the worst-case bound to ensure a tested starting iterate has gradient norm at most 0.1?

  1. The initial decrease budget gives 2L(f(x0)−flow)≤2(5)(12)=1202L(f(x_0)-f_{\rm low})\leq2(5)(12)=120. After N updates the smallest squared gradient among x₀ through x_{N−1} is at most 120/N.

  2. The target squared norm is 0.01. Requiring 120/N≤0.01 yields N≥12,000. With that many updates, all N starting gradients used to construct the steps have been evaluated, so at least one of those evaluated points meets the target.

  3. This is a conservative guarantee, not a prediction that the algorithm takes exactly 12,000 steps. It does not bound parameter distance to a global minimizer or certify absence of negative curvature. Those are different targets requiring additional information.

The result

Twelve thousand exact-gradient updates suffice for this particular worst-case first-order bound, with the objective and regularity assumptions explicitly included.

Explore the model

Interactive lab

Interactive lab · optimization

Compare a worst-case bound with an exact recurrence

Pause, Reset, and set η=0.5 and x₀=2. Predict xₙ=2·2⁻ⁿ for the fixed objective x²/2, then Step until |x|≤0.1. The fifth update gives 0.0625. This convex unit quadratic illustrates a favorable exact sequence; it neither realizes a general nonconvex worst case nor estimates a Hessian certificate for another function.

Compare a worst-case bound with an exact recurrenceGradient 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 forA worst-case upper bound and the measured work on one structured objective answer different questions.

Check your understanding

A general C² nonconvex objective has zero gradient and a positive-semidefinite Hessian at a point. Which conclusion is justified without more information?

Try it yourself

For L=2 and f(x₀)−f_low≤3, compute the same worst-case update bound for gradient tolerance 0.2 and then 0.1. Explain the change and name the resource counted.

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 numerator is 2L times the objective budget. Halving a norm tolerance quarters its square.

Compare with the solution

The numerator is 2(2)(3)=122(2)(3)=12. At tolerance 0.2, require N≥12/0.04=300. At tolerance 0.1, require N≥12/0.01=1,200. Halving the tolerance multiplies this bound by four because it depends on its inverse square. The count is exact-gradient updates, with a full gradient evaluation at each starting iterate. It does not include the internal arithmetic cost of a gradient, function monitoring, data movement, or elapsed time.

Take it with you

  • A stationarity target is weaker than a general nonconvex optimum guarantee.
  • The O(ε⁻²) descent bound follows by spending a finite objective-decrease budget.
  • Compare rates only after specifying smoothness, oracle access, tolerances, and counted resources.

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.