Lower Bounds & Oracle Complexity
What no first-order method can beat, and why.
Gradient descent needs about steps to get within of the optimum of a smooth convex function, and Nesterov's method about . Could a cleverer algorithm do better still? Oracle complexity says no: there are functions so adversarial that every method that learns about them only through gradients must take that long. This lesson builds those functions, and with them the yardsticks against which every optimizer in this topic is measured.
What you’ll learn
- Define the first-order oracle model and the span assumption, and explain what a lower bound in this model does and does not say.
- Prove Nesterov's bound for smooth convex functions with the chain quadratic, and state its strongly convex analogue.
- Prove the bound for nonsmooth Lipschitz functions, and the bound for stochastic gradients by a two-point testing argument.
- Describe the zero-chain bound for finding stationary points of nonconvex functions, and the gaps that remain open.
Complexity in the oracle model
An optimization algorithm learns about only by asking questions. In the first-order oracle model it chooses a query point and receives and a (sub)gradient , possibly corrupted by noise in the stochastic version. The oracle complexity of a class is the number of queries needed to guarantee for every . Lower bounds in this model are statements about information, not computation: they hold even for an algorithm with unlimited computing power between queries.
Many proofs use a simplifying span assumption, satisfied by gradient descent, heavy-ball and Nesterov momentum, conjugate gradients and their relatives:
Nemirovski & Yudin's resisting-oracle arguments remove the assumption for arbitrary deterministic methods, at the cost of a larger dimension. The dimension matters throughout: each bound below needs at least of the order of the number of queries. In low dimension, cutting-plane methods need a number of queries polynomial in and logarithmic in (about for the center-of-gravity method), so the bounds describe the regime in which machine learning operates.
| Class | Optimal method | Queries for accuracy | Lower bound |
|---|---|---|---|
| Convex, -smooth, | Nesterov's accelerated method | ||
| -strongly convex, -smooth | accelerated method | ||
| Convex, -Lipschitz, nonsmooth | subgradient method | ||
| Convex, stochastic subgradients bounded by | SGD with averaging | , already in one dimension | |
| Nonconvex, -smooth, ; find | gradient descent | ||
| Same, with stochastic gradients of variance | SGD | for small |
The worst function in the world for gradient methods
Nesterov's construction is a quadratic whose Hessian is a chain: each coordinate interacts only with its neighbors. For and define
where is the matrix carrying the tridiagonal block in its top-left corner and zeros elsewhere.
Convex and -smooth. , and since each coordinate is counted at most four times, so . Hence:
One coordinate per query. The gradient is . If is supported on the first coordinates, then is supported on the first , because the matrix couples only neighbors. Starting from , the first gradient is a multiple of , and by induction the span assumption confines the iterates:
The optimum. Setting the gradient to zero gives , solved by a linear ramp; then gives the value, and summing squares gives the norm:
The gap. On vectors supported on the first coordinates the extra terms of vanish, so it coincides with there and . Subtract the optimum of :
Normalize. With (the source of the dimension requirement), . Substituting:
Two consequences. Gradient descent's guarantee is far from optimal, while Nesterov's matches the lower bound up to a factor of about : acceleration is optimal. Even the constant is settled: Kim & Fessler (2016) found an optimized gradient method whose bound is half of Nesterov's, and Drori (2017) proved a matching lower bound, so that method is exactly optimal among first-order methods in high dimension. For -strongly convex functions, an infinite-dimensional version of the chain (in ) gives
so queries are necessary, matching the accelerated method's up to constants.
Let , a target accuracy , and a high dimension. Gradient descent's guarantee needs steps. At least how many steps does the lower bound force on every span method?
Show the answer
306
requires , so and . Nesterov's guarantee is met at , within a factor of about of the lower bound; gradient descent's is off by a factor of more than .
Nonsmooth and stochastic lower bounds
Use the first coordinates and a small quadratic, with and . The subgradients , for an index attaining the maximum, have norm at most on the ball:
A resisting oracle. Answer each query with the subgradient whose index is the first coordinate attaining the maximum. From , induction gives ; in particular coordinate of every query with is still , so the maximum is at least :
The optimum. By symmetry and convexity the minimizer spreads equally over the first coordinates, , which for these has norm exactly . Its value gives the bound:
Stochastic gradients. When the oracle returns an unbiased but noisy subgradient, a different obstacle appears: the noise must be averaged away, which takes samples however cleverly the queries are chosen. The resulting bound holds already in one dimension.
On take two linear functions , , with . The oracle returns with independent signs, : unbiased, since , and bounded by . The minimizer is , and an output on the wrong side is costly:
The answers do not depend on the queries, so after queries any algorithm has seen just independent signs. The two possible transcripts are close in KL divergence (using for ):
By Pinsker's inequality the total variation distance is at most , and by Le Cam's two-point argument any rule for guessing has error probabilities summing to at least . With , , so for at least one the output lands on the wrong side with probability at least :
SGD with averaging achieves (Convergence of SGD), so it is optimal up to constants in every dimension. The same reduction from optimization to statistical testing gives for -strongly convex functions with gradient noise of variance , matched by SGD with steps proportional to and suitable averaging. Agarwal, Bartlett, Ravikumar & Wainwright (2012) developed these information-theoretic bounds systematically.
The deterministic smooth lower bound needs dimension , yet the stochastic bound holds in one dimension. Why the difference?
- The stochastic construction uses nonconvex functions
- The deterministic bound hides the solution in directions not yet explored; the stochastic one is a statistical limit on averaging noise, which needs no extra directions
- One-dimensional problems are intrinsically harder than high-dimensional ones
- The deterministic bound is a weaker version of the stochastic one
Show the answer
B. The deterministic bound hides the solution in directions not yet explored; the stochastic one is a statistical limit on averaging noise, which needs no extra directions
Nesterov's chain uncovers one coordinate per query, so its difficulty needs many coordinates. With noise, even a one-dimensional problem is slow, because telling a slope of from one of takes about noisy samples.
Nonconvex problems: the price of a stationary point
For nonconvex , finding a global minimum is intractable in general, so the standard target is an -stationary point, . For -smooth with , gradient descent with step finds one within iterations, because (Convergence Rates of Gradient Descent). Nesterov's chain cannot show that this is optimal, since it is convex and convex problems are easier. Carmon, Duchi, Hinder & Sidford (2020) built a nonconvex chain that can.
A nonconvex chain. Glue smooth one-dimensional pieces into a chain, , where is a smooth switch that vanishes for arguments at most and is a smooth increasing ramp. Like Nesterov's function it is a zero-chain: gradients reveal at most one new coordinate.
Large gradients until the end of the chain. The key properties: the gradient stays large while any of the first coordinates is small, the value drops by at most a constant per link, and is -Lipschitz for a numerical constant independent of :
Rescale into the class. Set with . Then is -smooth, wherever , and , which stays at most for a chain of length
Count queries. A method that moves only into coordinates its gradients have revealed (gradient descent, momentum and most first-order methods started at ) uncovers at most one coordinate per query. Before queries the last link is still , so every query point has , and at least queries are needed. Arbitrary deterministic and randomized methods are handled by hiding the chain in a random rotation of a much higher-dimensional space.
The chain technique settles other classes too. For methods that may query derivatives up to order , on functions whose -th derivative is Lipschitz, the bound is of order ; for this is , attained by cubic-regularized Newton (Carmon et al., 2020). With stochastic gradients of variance , Arjevani, Carmon, Duchi, Foster, Srebro & Woodworth (2023) proved an lower bound, so SGD is minimax optimal; under the stronger assumption of mean-squared smoothness the bound becomes , matched by variance-reduced methods.
Key takeaways
- Oracle complexity counts the queries needed to reach accuracy on every function of a class. Lower bounds hold even for unlimited computation between queries, but need a dimension at least of the order of the number of queries.
- Nesterov's chain quadratic reveals one coordinate per gradient and forces , so acceleration is optimal up to a constant and the optimized gradient method is exactly optimal; strongly convex problems need queries.
- Nonsmooth Lipschitz functions force , so the subgradient method is optimal; stochastic gradients force even in one dimension, so averaged SGD is optimal.
- Zero-chains force queries to find an -stationary point of a smooth nonconvex function, so gradient descent is optimal, and with stochastic gradients, so SGD is optimal.
Check yourself
In the interactive lesson these are scored with your confidence, and what you miss comes back for review.
Nesterov's lower bound requires . You must minimize a smooth convex function in dimension to accuracy . What does oracle complexity say?
- At least of order queries are needed, by the lower bound
- No method can reach in finitely many queries
- The bound constrains only the first few steps; cutting-plane methods need only about queries here
- Gradient descent is optimal in low dimension
Show the answer
C. The bound constrains only the first few steps; cutting-plane methods need only about queries here
The chain needs coordinates to hide the solution, so in dimension it constrains only the first steps. Center-of-gravity-type cutting-plane methods shrink the region containing the minimizer geometrically, using about queries here, though each step costs far more computation than a gradient step.
Which method is worst-case optimal, among first-order methods, for finding -stationary points of -smooth nonconvex functions with ?
- Nesterov's accelerated gradient method
- Adam, because it adapts to the geometry
- Newton's method
- Plain gradient descent
Show the answer
D. Plain gradient descent
Gradient descent reaches within steps, and the zero-chain lower bound shows that every first-order method needs queries on some function of the class.
Why can momentum not accelerate the subgradient method on general Lipschitz convex functions, the way it accelerates gradient descent on smooth ones?
- The lower bound covers every method whose iterates stay in the span of past subgradients, momentum methods included
- Momentum is defined only for differentiable functions
- Momentum makes the subgradient method diverge
- It can: Nesterov's method attains on nonsmooth functions too
Show the answer
A. The lower bound covers every method whose iterates stay in the span of past subgradients, momentum methods included
Heavy-ball and Nesterov iterates are combinations of past subgradients, so the resisting oracle defeats them too. Acceleration exploits smoothness, which this class lacks; structure such as a simple nonsmooth term with a cheap prox, or smoothing the function first, is what brings faster rates back.
For stochastic convex optimization with bounded subgradients, halving the target accuracy multiplies the number of oracle calls needed, in the worst case, by about…
Show the answer
D.
The minimax rate is , so , and halving quadruples : the statistical price of noise, the same as estimating a mean to accuracy .
Further reading
- A. S. Nemirovski & D. B. Yudin, Problem Complexity and Method Efficiency in Optimization (Wiley, 1983).
- Yu. Nesterov, Lectures on Convex Optimization, 2nd ed. (Springer, 2018), chapters 2 and 3.
- S. Bubeck, Convex Optimization: Algorithms and Complexity (Foundations and Trends in Machine Learning, 2015), section 3.5.
- Y. Carmon, J. C. Duchi, O. Hinder & A. Sidford, "Lower bounds for finding stationary points I," Mathematical Programming 184, 71–120 (2020).
- A. Agarwal, P. L. Bartlett, P. Ravikumar & M. J. Wainwright, "Information-theoretic lower bounds on the oracle complexity of stochastic convex optimization," IEEE Transactions on Information Theory 58(5), 3235–3249 (2012).