Random Gradient-Free Minimization of Convex Functions I: Random Search for Nonsmooth Convex ProblemsResearch Paper
Motivation
Many optimization problems in engineering, simulation-based design and machine learning give access to the values of an objective function but not to its gradient: the function is computed by a black-box program, by a simulator, or by a model whose derivatives are unavailable or too expensive. Zeroth-order (or derivative-free) methods use only function values. Classical direct-search methods of this kind usually come without complexity bounds.
Nesterov and Spokoiny (Found. Comput. Math. 17 (2017) 527–566) showed that a very simple randomized scheme has explicit, dimension-dependent worst-case complexity bounds. The idea is to replace the gradient by a finite difference of along a random Gaussian direction. The resulting oracle is an unbiased estimate of the gradient of a smoothed version of . Their analysis is the reference point for the later literature on zeroth-order stochastic optimization, bandit convex optimization and gradient-free training.
This mission covers the paper's result for nonsmooth convex problems over a closed convex set: the projected random search method and its convergence bound, Theorem 6.
Setting
Let be a real inner product space of finite dimension , with norm . (The paper works with a space carrying a positive definite operator and the norm . This is the same thing as an arbitrary finite-dimensional inner product space, with encoding the inner product, and the development is written in that generality.)
A function is Lipschitz continuous with constant if for all . The paper calls this class and writes for the constant.
Let be a standard Gaussian vector in : its coordinates in any orthonormal basis are independent variables. For the Gaussian smoothing of is
and the Gaussian moments are .
For the random gradient-free oracle at draws and returns the vector
It costs two function values.
The problem is
where is closed and convex, is convex and Lipschitz, and is a minimizer. With the Euclidean projection onto , positive steps and a starting point , the random search method iterates
drawing a fresh independent Gaussian direction at every iteration. The iterates are random. Write and .
Formalization targets
Goal: Theorem 6
For every ,
The step sizes, the smoothing parameter and the horizon are left free, so every step-size rule in the paper follows from this one inequality. The constants are the paper's.
Milestones
The facts about smoothing and the oracle on which the goal rests, in the paper's order:
- Lemma 1: for and for .
- Theorem 1 (18): .
- Convexity of for convex .
- Eq. (11): for convex .
- Eq. (21): for .
- Theorem 4.1 (34): .
- Theorem 2 (): for all , where at the vector is the limiting of Eq. (24).
Significance
Theorem 6 shows that a method using only function values, with no subgradient, solves nonsmooth convex problems with the classical projected-subgradient guarantee. Two things change: is multiplied by , and a bias appears, which can be made as small as desired. With suitable , and an -accurate expected value is reached in oracle calls. The factor quantifies the cost of not having gradients. The same analysis carries over to stochastic objectives (the paper's Theorem 7).
The results are proved in the paper. As far as is known, none of them has a machine-checked proof. The mission produces a Lean development of Gaussian smoothing on an arbitrary finite-dimensional inner product space: the moment bounds, the approximation, convexity and gradient identities, and the oracle variance bound. On top of it sits the full convergence theorem for a randomized projected method, stated for the actual random process rather than for an idealized expectation recursion. The smoothing layer is reusable: the same facts underlie the smooth and accelerated random methods of the same paper and most Gaussian-smoothing analyses in zeroth-order optimization.
Difficulty
A plain subgradient analysis does not apply. The vector is not a subgradient of , nor an unbiased estimate of one. It is an unbiased estimate of the gradient of a different function, , and its second moment grows with the dimension. The argument therefore has to move between and at exactly the right places, using properties of that hold for every nonsmooth Lipschitz .
Those properties are genuinely analytic. Differentiating requires differentiating a Gaussian integral of a function that need not be differentiable. The moment bounds need estimates of for real . In the probabilistic part, depends on , and each one-step estimate has to be integrated using the independence of from the past. Mathlib provides the standard Gaussian measure and independence, but no Gaussian smoothing, no projection onto convex sets and no conditional-expectation argument for this kind of recursion.
Formalization scope
The space is E with [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E], and is Module.finrank ℝ E. No lower bound on is assumed. The Gaussian is ProbabilityTheory.stdGaussian E, and expectations are Bochner integrals against it. is the definition smoothing, is moment (with real exponent Real.rpow), and is oracle.
The projection is the relation IsMetricProjection Q y z ( and is a nearest point of to ). The run is the predicate IsRandomSearchRun: directions on a probability space , measurable, mutually independent (iIndepFun) and each with law stdGaussian E; a deterministic ; and the update above for every and every outcome.
is . The Lipschitz constant is any constant satisfying the Lipschitz inequality. It is an explicit hypothesis, because the paper's bound uses , which presupposes . The smoothing parameter satisfies and every step satisfies .
Two trivializing formalizations are ruled out. First, an expectation of a non-integrable function would be as a Bochner integral; Lipschitz continuity of makes every expectation in the mission integrable, and no statement relies on the junk value. Second, a run whose directions are not independent standard Gaussians, or whose update uses a subgradient instead of the finite difference, is a different theorem (the projected subgradient method). The run predicate fixes the paper's process exactly. A run exists for every closed containing (on the countable product of Gaussians), so the goal is not vacuous.
A complete development needs:
- Gaussian integration by parts, or differentiation under the integral, for Lipschitz integrands;
- moment estimates for the standard Gaussian norm;
- existence and nonexpansiveness of projections onto closed convex sets;
- an expectation argument for the random recursion.
The smoothing lemmas, the moment bounds and the projection facts are reusable beyond this mission. Contributions are welcome at every level: proofs of the milestones, general lemmas about stdGaussian and projections, and alternative proofs of Lemma 1 (for example through the chi distribution).
Selected references
- Yu. Nesterov, V. Spokoiny, Random Gradient-Free Minimization of Convex Functions, Foundations of Computational Mathematics 17(2):527–566, 2017. https://doi.org/10.1007/s10208-015-9296-2
- Yu. Nesterov, Introductory Lectures on Convex Optimization: A Basic Course, Kluwer, 2004. https://doi.org/10.1007/978-1-4419-8853-9
- A. D. Flaxman, A. T. Kalai, H. B. McMahan, Online convex optimization in the bandit setting: gradient descent without a gradient, SODA 2005. https://arxiv.org/abs/cs/0408007
- J. C. Duchi, M. I. Jordan, M. J. Wainwright, A. Wibisono, Optimal rates for zero-order convex optimization: the power of two function evaluations, IEEE Trans. Inf. Theory 61(5):2788–2806, 2015. https://arxiv.org/abs/1312.2139