The complexity of global optimization of Lipschitz functions #
The analytical complexity of the global minimization of Lipschitz functions on the box [0, 1]ⁿ
(Nesterov, Section 1.1.3), determined exactly. A zero-order method evaluates f at
query points, each chosen from the values seen so far, and then answers with a point x̂. For the
class of functions that are L-Lipschitz on [0, 1]ⁿ in the sup norm and the goal
f x̂ - min f < ε, the least number of queries that suffices for every function is
(⌊L / (2 ε)⌋₊ + 1)ⁿ, for methods that answer with one of their queries and for methods that
may answer anywhere alike; the only exception is that the latter need no query if n = 0 or
ε > L / 2. The upper bound is the uniform grid method (Nesterov, Theorem 1.1.1 and
Nesterov, Corollary 1.1.1). The lower bound sharpens
Nesterov, Theorem 1.1.2; its proof is a resisting oracle: it answers 0 to every
query, and a function of slope L that vanishes at the queries, but whose value at the answer is
ε above its value somewhere else in the box, is invisible to the method.
In the form of an optimal worst-case error the value is classical: for methods that answer with
the best query it is due to Sukharev ([Suk71], with the covering of the cube in (2.7)),
and for adaptive methods that may answer anywhere to Novak
(Novak, Proposition 1.3.6 (2) and the Example after it; the Example gives the
covering radius 1 / (2 m) of the cube for mⁿ ≤ N < (m + 1)ⁿ points), whose proof uses the
same idea as ConvexAnalysis.ZeroOrder.exists_lipschitzWith_add_le_output. The exact complexity
for the non-strict goal f x̂ - min f ≤ ε (ConvexAnalysis.ZeroOrder.isLeast_ite_ceil_pow) is
equivalent to their results. The strict goal needs one fact more. The optimal error is an
infimum over methods of the worst-case error, a supremum over the class, and Novak proves his
lower bound by contradiction with a slack. A method whose worst-case error is exactly ε fails
the strict goal only if the supremum is attained, by a function on which its error is at least
ε. This matters when L / (2 ε) is an integer, and the resisting oracle here supplies such a
function for every method.
Main definitions #
ConvexAnalysis.ZeroOrder.Method ι: a deterministic adaptive zero-order method onι → ℝ: a rule that chooses the next query point from the history of queried points and returned values, and a rule that chooses the answer from the history.ConvexAnalysis.ZeroOrder.Method.history M f k,ConvexAnalysis.ZeroOrder.Method.query M f k,ConvexAnalysis.ZeroOrder.Method.output M f N: the run ofMonf: the history afterkqueries, thek-th query point, and the answer afterNqueries.ConvexAnalysis.ZeroOrder.bestPoint h: a point of least value in a historyh.ConvexAnalysis.ZeroOrder.gridPoint p α: thepⁿpointsx_α = ((2 α₁ + 1) / (2 p), …, (2 αₙ + 1) / (2 p))of the uniform grid.ConvexAnalysis.ZeroOrder.gridMethod p: the uniform grid methodG(p)of Nesterov, (1.1.6): it queries thepⁿgrid points and answers with one of least value.ConvexAnalysis.ZeroOrder.centerMethod: the method that ignores the values and answers with the centre(1/2, …, 1/2)of the box; with no query it reaches the goal whenever some method does.
Main statements #
ConvexAnalysis.ZeroOrder.Method.history_eq_of_forall_lt: a method seesfonly through the values at its queries: iffandgagree at the queries of the run ong, the runs agree.ConvexAnalysis.ZeroOrder.output_gridMethod_le_add: the uniform grid method Nesterov, Theorem 1.1.1: forp ≥ 1, after thepⁿgrid points the answerx̂ofG(p)satisfiesf x̂ ≤ f y + L / (2 p)for allyin the box, and it lies in the box (ConvexAnalysis.ZeroOrder.output_gridMethod_mem_Icc);ConvexAnalysis.ZeroOrder.output_gridMethod_lt_addis Nesterov, Corollary 1.1.1 for the strict goal:p = ⌊L / (2 ε)⌋₊ + 1givesf x̂ < f y + ε.ConvexAnalysis.ZeroOrder.exists_forall_le_norm_sub_grid: ifN < (p + 1)ⁿ, some point of the grid{0, 2 r, …, 2 p r}ⁿis at distance at leastrfrom allNgiven points (pigeonhole).ConvexAnalysis.ZeroOrder.exists_lipschitzWith_forall_eq_zero: the resisting oracle: for fewer than(⌊L / (2 ε)⌋₊ + 1)ⁿpoints there is anL-Lipschitzf(on all ofι → ℝ, sup norm) that vanishes at them and has minimum-εon[0, 1]ⁿ.ConvexAnalysis.ZeroOrder.exists_lipschitzWith_query_eq_zeroandConvexAnalysis.ZeroOrder.exists_lipschitzWith_output_eq_zeroapply it to the queries of a method, and to the queries and the answer;ConvexAnalysis.ZeroOrder.exists_lipschitzWith_add_le_outputdefeats an answer anywhere without the extra point, for1 ≤ N < (⌊L / (2 ε)⌋₊ + 1)ⁿqueries.ConvexAnalysis.ZeroOrder.pow_le_of_forall_output_eq_query: the lower bound for methods that answer with a query: such a method that is strictlyε-accurate afterNqueries on every function that isL-Lipschitz on all ofι → ℝhas(⌊L / (2 ε)⌋₊ + 1)ⁿ ≤ N; a fortiori if it is strictlyε-accurate on every function that isL-Lipschitz on[0, 1]ⁿ.ConvexAnalysis.ZeroOrder.pow_le_of_forall_output_lt_add_of_two_mul_le: the lower bound for all methods: forn ≥ 1andε ≤ L / 2,(⌊L / (2 ε)⌋₊ + 1)ⁿ ≤ N, a sharper form of Nesterov, Theorem 1.1.2;ConvexAnalysis.ZeroOrder.pow_le_of_forall_output_lt_add_of_ne_zerois the same bound forN ≥ 1and alln,Landε;ConvexAnalysis.ZeroOrder.pow_le_of_forall_output_lt_addis the weaker(⌊L / (2 ε)⌋₊ + 1)ⁿ ≤ N + 1for allN, andConvexAnalysis.ZeroOrder.floor_pow_le_of_forall_output_lt_addNesterov's form⌊L / (2 ε)⌋₊ⁿ ≤ Nforn ≥ 1. Like the first, these bounds assume accuracy only on the functions that areL-Lipschitz on all ofι → ℝ.ConvexAnalysis.ZeroOrder.isLeast_pow_output_eq_query: the exact complexity for methods that answer with a query: the least number of queries with which a method answers with a query and is strictlyε-accurate on every function that isL-Lipschitz on[0, 1]ⁿis(⌊L / (2 ε)⌋₊ + 1)ⁿ.ConvexAnalysis.ZeroOrder.isLeast_pow_of_two_mul_le: the exact complexity for all methods: forn ≥ 1andε ≤ L / 2, the least number of queries with which a method that may answer anywhere is strictlyε-accurate is also(⌊L / (2 ε)⌋₊ + 1)ⁿ;ConvexAnalysis.ZeroOrder.exists_forall_output_zero_lt_add_iff: no query is needed if and only ifn = 0orε > L / 2;ConvexAnalysis.ZeroOrder.isLeast_ite_powcombines both cases.ConvexAnalysis.ZeroOrder.isLeast_ceil_pow_output_eq_queryandConvexAnalysis.ZeroOrder.isLeast_ite_ceil_pow: the exact complexity for the non-strict goalf x̂ - min f ≤ ε(L > 0for the first):⌈L / (2 ε)⌉₊ⁿfor methods that answer with a query, and for methods that may answer anywhere0ifn = 0orε ≥ L / 2and⌈L / (2 ε)⌉₊ⁿotherwise; the uniform grid method with⌈L / (2 ε)⌉₊points per coordinate attains it (ConvexAnalysis.ZeroOrder.output_gridMethod_ceil_le_add).ConvexAnalysis.ZeroOrder.isLeast_pow_output_eq_query_mem_Icc,ConvexAnalysis.ZeroOrder.isLeast_pow_of_two_mul_le_mem_Icc,ConvexAnalysis.ZeroOrder.isLeast_ite_pow_mem_Icc,ConvexAnalysis.ZeroOrder.isLeast_ceil_pow_output_eq_query_mem_IccandConvexAnalysis.ZeroOrder.isLeast_ite_ceil_pow_mem_Icc: the same exact complexities for methods that answer in the box, as the goal of Nesterov, Theorem 1.1.2 and Nesterov, (1.1.7) asks.ConvexAnalysis.ZeroOrder.exists_forall_norm_sub_gridPoint_two_le: the closed boxes in the proof of Nesterov, Theorem 1.1.2 overlap: forp = 2one point meets all2ⁿ.
Implementation notes #
- The model of methods. A method is the general iterative scheme (1.1.3) of
Nesterov, Section 1.1.2 with a zero-order oracle and the local black box concept:
the only information is the list of pairs
(x j, f (x j)), the latest first, and the next query and the answer are functions of it. The method is deterministic, and it may be adaptive. A method that stops after at mostNqueries on every function is covered by padding: it makes further queries, whose values it ignores, untilNqueries are made; so the numberNof queries is a parameter of the run, not of the method. Query points and answers may lie anywhere inι → ℝ, and the functions of the class areL-Lipschitz on[0, 1]ⁿand arbitrary outside. Nesterov's goal, in the classP∞of Nesterov, Theorem 1.1.2 and in Nesterov, (1.1.7), also asks forx̂ ∈ [0, 1]ⁿ. The_mem_Iccvariants of the exact complexities add this condition and have the same values, since the uniform grid method andConvexAnalysis.ZeroOrder.centerMethodquery and answer in the box. The lower bounds need the accuracy only on the functions that areL-Lipschitz on all ofι → ℝ, as the resisting functions are, and the uniform grid method is accurate on the larger class, so the exact complexities are the same for the class of globallyL-Lipschitz functions. The goal is strict,f x̂ - min f < ε, as in Nesterov, Theorem 1.1.2; the goal (1.1.7) of Nesterov, Corollary 1.1.1 isf x̂ - min f ≤ ε. The results for it follow from those for the strict goal with a slightly largerε'(ConvexAnalysis.ZeroOrder.exists_lt_ceil_le_floor_add_one). - Two repairs of Nesterov's proof of the lower bound. With
p = ⌊L / (2 ε)⌋₊, it counts test points in thepⁿclosed boxesX_α = {x : ‖x - x_α‖ ≤ 1 / (2 p)}of the uniform grid and places the tentx ↦ min 0 (L ‖x - x*‖ - ε)at the centrex*of a box without test points. (a) Closed boxes overlap on their faces, so fewer thanpⁿtest points need not leave a box free (ConvexAnalysis.ZeroOrder.exists_forall_norm_sub_gridPoint_two_le: forp = 2the centre of[0, 1]ⁿlies in all of them). The tent is nonzero only in the open box of radiusε / L ≤ 1 / (2 p), and open boxes are disjoint, so counting in open boxes repairs the proof. (b) The proof uses that the answer has the value0of the resisting oracle. If the output is the pair(x̄, f(x̄)), as in (1.1.6), the answer is a test point and this holds; it is a gap only once a method may answer at a pointx̂that it did not query, as in the model here.ConvexAnalysis.ZeroOrder.pow_le_of_forall_output_eq_queryassumes that the answer is a query and avoids the queries only;ConvexAnalysis.ZeroOrder.pow_le_of_forall_output_lt_addavoids theNqueries and the answer with the tent, which costs one point;ConvexAnalysis.ZeroOrder.exists_lipschitzWith_add_le_outputcosts nothing: it replaces the query nearest tox̂byx̂in the count, and a function that rises by up toεfrom the queries towardsx̂and falls towards an avoided grid point makes up the difference. - The sharper count. The tent is centred at a point of the grid
{0, 2 r, 4 r, …}ⁿ,r = ε / L, at distance at leastrfrom the points to avoid; the grid has(⌊L / (2 ε)⌋₊ + 1)ⁿpoints in[0, 1]ⁿ, more than the⌊L / (2 ε)⌋₊ⁿboxes of Nesterov's proof, and exactly as many as the uniform grid method needs. Edge cases: forn = 0the box is one point: a method that answers with a query needs one query, a general method none, so Nesterov's form⌊L / (2 ε)⌋₊ⁿ ≤ Nfails for general methods. Forε > L / 2, which includesL = 0,⌊L / (2 ε)⌋₊ = 0: one query at the centre of the box suffices, and a general method needs none, as it can answer with the centre. These are the only cases in which the two kinds of methods differ. Forn ≥ 1andε = L / 2(soL > 0),⌊L / (2 ε)⌋₊ = 1: every method needs2ⁿqueries (and the grid methodG(2)suffices), where the formula⌊L / (2 ε)⌋₊ⁿof Nesterov's bound gives1(his theorem assumesε < L / 2). - The Lipschitz branch and bound method reaches the non-strict goal
f x̂ - min f ≤ εon[0, 1]ⁿat a stepk < max 1 ((L / ε)ⁿ), counted from0(ConvexAnalysis.BranchAndBound.exists_lt_incumbent_sub_lipschitzBound_le), and it answers with a test point. As(L / ε)ⁿ = 2ⁿ (L / (2 ε))ⁿ, forL > 0its numberk + 1of steps is at most2ⁿtimes the exact complexity⌈L / (2 ε)⌉₊ⁿof the non-strict goal for such methods (ConvexAnalysis.ZeroOrder.isLeast_ceil_pow_output_eq_query). Each step bisects the selected box and evaluatesfat the centres of the two halves, whose bounds need these values, so up to the test at stepkit makes2 k + 1evaluations, less than2ⁿ⁺¹times the exact complexity; this count of evaluations is not formalized. Branch and bound is adaptive and may stop much earlier on easy functions; the lower bound is a statement about the worst case. - Mathlib has no oracle or query complexity of optimization methods (searched on 2026-11-30:
no pull request for "oracle complexity", "lower bound complexity optimization", "resisting
oracle", "zero-order", "uniform grid" or "information-based complexity"; PR #20924 on
oracle-based computation in
Computability/QueryComplexity, upper bounds only, was closed). ReasBook formalizes parts of [Nes18] (tagv4.30.0) but not Section 1.1.3; optlib formalizes upper complexity bounds of first-order methods only.
References #
- Yu. Nesterov, Lectures on Convex Optimization, 2nd ed., Springer, 2018, Section 1.1.2 (the scheme (1.1.3)) and Section 1.1.3 ((1.1.6), (1.1.7), Theorems 1.1.1 and 1.1.2, Corollary 1.1.1).
- A. G. Sukharev, Optimal strategies of the search for an extremum, USSR Comput. Math. Math. Phys. 11(4), 1971.
- E. Novak, Deterministic and Stochastic Error Bounds in Numerical Analysis, Lecture Notes in Mathematics 1349, Springer, 1988, Proposition 1.3.6 and the Example after it.
Tags #
global optimization, Lipschitz function, oracle complexity, lower complexity bound, upper complexity bound, resisting oracle, uniform grid method, zero-order method, black box
A deterministic adaptive zero-order method on ι → ℝ, the iterative scheme (1.1.3) of
Nesterov, Section 1.1.2 with a zero-order oracle: next h is the next query point
and answer h the answer, both chosen from the history h, the list of the queried points with
their values (x j, f (x j)), the latest first.
The next query point, chosen from the history.
The answer, chosen from the history.
Instances For
A point of least value in a history h: the point of the first entry of h with the least
value (in a run, the latest query of least value), and 0 for the empty history. The uniform
grid method ConvexAnalysis.ZeroOrder.gridMethod answers with it.
Equations
Instances For
The history of the run of M on f after k queries: the queried points with the values
of f there, the latest first.
Equations
Instances For
A method that answers with ConvexAnalysis.ZeroOrder.bestPoint answers, after N ≥ 1
queries, with one of its queries, and with one of least value.
A method sees f only through its values at the queries: if f and g agree at the first
N queries of the run of M on g, then the runs on f and g have the same history after
N queries.
The uniform grid method #
The points x_α = ((2 α₁ + 1) / (2 p), …, (2 αₙ + 1) / (2 p)) of the uniform grid of
Nesterov, (1.1.6), for α : ι → Fin p (Nesterov's indices are αᵢ + 1): the
centres of the pⁿ cubes of side 1 / p into which the grid divides [0, 1]ⁿ.
Instances For
The closed cubes of side 1 / p around the grid points cover [0, 1]ⁿ
(the first step of the proof of Nesterov, Theorem 1.1.1): every point of the box is
at distance at most 1 / (2 p) from a grid point, in the sup norm.
The uniform grid method G(p) of Nesterov, (1.1.6): it queries the
pⁿ grid points ConvexAnalysis.ZeroOrder.gridPoint p α in the order of
ConvexAnalysis.ZeroOrder.gridIndex p (and the point 0 if it runs longer), and answers with a
queried point of least value, ConvexAnalysis.ZeroOrder.bestPoint. It is not adaptive: its
queries do not depend on the values.
Equations
- One or more equations did not get rendered due to their size.
Instances For
After N ≥ 1 queries, the uniform grid method answers with one of its queries, and with one
of least value.
The uniform grid method Nesterov, Theorem 1.1.1: for p ≥ 1 and every f
that is L-Lipschitz on [0, 1]ⁿ in the sup norm, the answer x̂ of G(p) after the pⁿ grid
points (or after more queries) is at most L / (2 p) above every value of f on the box. The
answer lies in the box (ConvexAnalysis.ZeroOrder.output_gridMethod_mem_Icc) and is one of the
queries (ConvexAnalysis.ZeroOrder.exists_output_gridMethod_eq_query).
The uniform grid method with p = ⌊L / (2 ε)⌋₊ + 1 points per coordinate is strictly
ε-accurate after (⌊L / (2 ε)⌋₊ + 1)ⁿ queries, for every f that is L-Lipschitz on
[0, 1]ⁿ in the sup norm: Nesterov, Corollary 1.1.1, with the strict goal
f x̂ - min f < ε of Nesterov, Theorem 1.1.2 instead of ≤ ε.
The lower bound #
The closed boxes in Nesterov's proof overlap. The proof of
Nesterov, Theorem 1.1.2 counts test points in the closed boxes
X_α = {x : ‖x - x_α‖ ≤ 1 / (2 p)} around the grid points x_α
(ConvexAnalysis.ZeroOrder.gridPoint) and concludes from N < pⁿ test points that some box
contains none. This fails: for p = 2 the centre (1/2, …, 1/2) of [0, 1]ⁿ lies in all 2ⁿ
boxes, so a single test point meets all of them (in dimension 1 the boxes are [0, 1/2] and
[1/2, 1]). The theorem holds nevertheless: the tent of the proof is nonzero only in the open
box of radius ε / L ≤ 1 / (2 p), and open boxes are disjoint; see
ConvexAnalysis.ZeroOrder.exists_lipschitzWith_forall_eq_zero.
Pigeonhole on a grid. For N < (p + 1)ⁿ points x k in ι → ℝ (n the cardinality of
ι, sup norm) and r > 0, some point y of the grid {0, 2 r, …, 2 p r}ⁿ has distance at
least r from every x k: two grid points have distance at least 2 r, so each x k is at
distance < r from at most one of them.
The grid {0, 2 r, …, 2 p r}ⁿ of the resisting oracle
(ConvexAnalysis.ZeroOrder.exists_forall_le_norm_sub_grid), with r = ε / L and
p = ⌊L / (2 ε)⌋₊, lies in the box [0, 1]ⁿ. It is not the grid of the uniform grid method,
ConvexAnalysis.ZeroOrder.gridPoint_mem_Icc.
The resisting oracle of Nesterov, Theorem 1.1.2, for given points. For
ε > 0 and fewer than (⌊L / (2 ε)⌋₊ + 1)ⁿ points x k of ι → ℝ (n the cardinality of
ι), there is a function f, L-Lipschitz on all of ι → ℝ with the sup norm, that vanishes at
all x k, is at least -ε everywhere, and takes the value -ε at a point y of the box
[0, 1]ⁿ. The function is the tent x ↦ min 0 (L ‖x - y‖ - ε) around a point y of the grid
{0, 2 r, 4 r, …}ⁿ ⊆ [0, 1]ⁿ, r = ε / L, at distance at least r from all x k
(ConvexAnalysis.ZeroOrder.exists_forall_le_norm_sub_grid); it is nonzero only in the open box
of radius r around y. Nesterov centres it in one of ⌊L / (2 ε)⌋₊ⁿ closed boxes, which
overlap (ConvexAnalysis.ZeroOrder.exists_forall_norm_sub_gridPoint_two_le). For L = 0 there
are no points, and f is the constant -ε.
The resisting oracle for the queries of a method. For every zero-order method M, every
ε > 0 and every number N < (⌊L / (2 ε)⌋₊ + 1)ⁿ of queries, there is a function f,
L-Lipschitz on all of ι → ℝ with the sup norm, on which M runs as on the zero function, that
vanishes at all N queries, is at least -ε everywhere, and takes the value -ε at a point of
the box [0, 1]ⁿ. If the answer is one of the queries, it is not better than ε above the
minimum.
The resisting oracle for the queries and the answer of a method. For every zero-order
method M, every ε > 0 and every number N of queries with N + 1 < (⌊L / (2 ε)⌋₊ + 1)ⁿ (n
the cardinality of ι), there is a function f, L-Lipschitz on all of ι → ℝ with the sup
norm, on which M runs as on the zero function, that vanishes at all N queries and at the
answer M.output f N, that is at least -ε everywhere, and that takes the value -ε at a point
y of the box [0, 1]ⁿ. So the answer is not better than ε above the minimum. Nesterov's
proof has N < ⌊L / (2 ε)⌋₊ⁿ, which implies the hypothesis here for n ≥ 1, and assumes that
the answer has the value 0.
The resisting oracle for methods that may answer anywhere, which avoids the answer
without an extra point. For every zero-order method M, every ε > 0 and every number N of
queries with 0 < N < (⌊L / (2 ε)⌋₊ + 1)ⁿ (n the cardinality of ι), there is a function f,
L-Lipschitz on all of ι → ℝ with the sup norm, on which M runs as on the zero function, that
vanishes at the N queries, and whose value at the answer x̂ = M.output f N is at least ε
above its value at a point z of the box [0, 1]ⁿ.
The construction: let x k₀ be a query nearest to x̂, at distance s. The N points x̂
and x k, k ≠ k₀, leave a point z of the grid {0, 2 r, 4 r, …}ⁿ, r = ε / L, at distance
at least r from all of them (ConvexAnalysis.ZeroOrder.exists_forall_le_norm_sub_grid), so
‖z - x k₀‖ ≥ r - s. With a = L min s r and X the set of queries, the function
f w = min (L d(w, X)) (min (a + L ‖w - x̂‖) (L ‖w - z‖ - (ε - a))) vanishes on X, is at least
a at x̂ and at most a - ε at z. The tent of
ConvexAnalysis.ZeroOrder.exists_lipschitzWith_output_eq_zero needs one point more.
The lower complexity bound for methods that answer with a query, a sharper form of
Nesterov, Theorem 1.1.2: if a zero-order method M answers, after N queries, with
one of its queries and finds an answer within less than ε of every value on the box [0, 1]ⁿ,
for every f that is L-Lipschitz on all of ι → ℝ in the sup norm, then
(⌊L / (2 ε)⌋₊ + 1)ⁿ ≤ N. A fortiori this holds if M does so for every f that is
L-Lipschitz on the box. The uniform grid method is such a method with (⌊L / (2 ε)⌋₊ + 1)ⁿ
queries (ConvexAnalysis.ZeroOrder.output_gridMethod_lt_add), so the bound is sharp:
ConvexAnalysis.ZeroOrder.isLeast_pow_output_eq_query.
The lower complexity bound up to one query for methods that may answer anywhere, a
sharper form of Nesterov, Theorem 1.1.2: if a zero-order method M finds, after N
queries, an answer within less than ε of every value on the box [0, 1]ⁿ, for every f that
is L-Lipschitz on all of ι → ℝ in the sup norm (a fortiori, if it does so for every f that
is L-Lipschitz on the box), then (⌊L / (2 ε)⌋₊ + 1)ⁿ ≤ N + 1. The uniform grid method uses
(⌊L / (2 ε)⌋₊ + 1)ⁿ queries for this (ConvexAnalysis.ZeroOrder.output_gridMethod_lt_add, the
strict form of Nesterov, Corollary 1.1.1), so the bound is sharp up to one query;
ConvexAnalysis.ZeroOrder.pow_le_of_forall_output_lt_add_of_ne_zero removes the one query.
Nesterov's lower complexity bound for global optimization in the form of
Nesterov, Theorem 1.1.2: in dimension n ≥ 1, a zero-order method that finds, after
N queries, an answer within less than ε of the minimum on [0, 1]ⁿ for every f that is
L-Lipschitz on all of ι → ℝ in the sup norm needs ⌊L / (2 ε)⌋₊ⁿ ≤ N queries. Nesterov
assumes ε < L / 2, which makes the bound positive; it holds for all ε > 0.
ConvexAnalysis.ZeroOrder.pow_le_of_forall_output_lt_add is sharper.
The sharp lower complexity bound for methods that may answer anywhere, with at least
one query: if a zero-order method M finds, after N ≥ 1 queries, an answer within less than ε
of every value on the box [0, 1]ⁿ, for every f that is L-Lipschitz on all of ι → ℝ in
the sup norm, then (⌊L / (2 ε)⌋₊ + 1)ⁿ ≤ N, as for methods that answer with a query
(ConvexAnalysis.ZeroOrder.pow_le_of_forall_output_eq_query). The resisting oracle is
ConvexAnalysis.ZeroOrder.exists_lipschitzWith_add_le_output.
The sharp lower complexity bound for methods that may answer anywhere: in dimension
n ≥ 1 and for ε ≤ L / 2, a zero-order method that finds, after N queries, an answer within
less than ε of every value on the box [0, 1]ⁿ, for every f that is L-Lipschitz on all of
ι → ℝ in the sup norm, needs (⌊L / (2 ε)⌋₊ + 1)ⁿ ≤ N queries. This sharpens
Nesterov, Theorem 1.1.2, which has ⌊L / (2 ε)⌋₊ⁿ ≤ N for ε < L / 2. For N ≥ 1
it is ConvexAnalysis.ZeroOrder.pow_le_of_forall_output_lt_add_of_ne_zero; for N = 0,
ConvexAnalysis.ZeroOrder.pow_le_of_forall_output_lt_add gives (⌊L / (2 ε)⌋₊ + 1)ⁿ ≤ 1, which
fails here.
The exact complexity #
The exact complexity of global optimization of Lipschitz functions on [0, 1]ⁿ, for
methods that answer with a query: for ε > 0 and L ≥ 0, the least number N of queries such
that some zero-order method answers, after N queries, with one of its queries, and with a point
less than ε above every value on the box, for every f that is L-Lipschitz on the box in the
sup norm, is (⌊L / (2 ε)⌋₊ + 1)ⁿ. The uniform grid method with ⌊L / (2 ε)⌋₊ + 1 points per
coordinate attains it (Nesterov, Corollary 1.1.1), and it answers with a query on
every function. The lower bound sharpens Nesterov, Theorem 1.1.2
(ConvexAnalysis.ZeroOrder.pow_le_of_forall_output_eq_query); it needs both conditions only on
the functions that are L-Lipschitz on all of ι → ℝ, so the exact complexity for that class
is the same. The formula holds without exceptions: for n = 0 (one point) and for ε > L / 2,
including L = 0, it is 1, as a method that answers with a query needs one.
ConvexAnalysis.ZeroOrder.isLeast_pow_output_eq_query_mem_Icc adds the condition that the
answer lies in the box.
The centre (1/2, …, 1/2) of the box [0, 1]ⁿ is at most L / 2 above every value on the box
of a function that is L-Lipschitz on the box in the sup norm.
The centre method: it ignores the values (it queries 0) and answers with the centre
(1/2, …, 1/2) of the box [0, 1]ⁿ. With no query it reaches the goal whenever some method does
(ConvexAnalysis.ZeroOrder.exists_forall_output_zero_lt_add_iff,
ConvexAnalysis.ZeroOrder.exists_forall_output_zero_le_add_iff).
Equations
Instances For
The answer of the centre method is the centre (1/2, …, 1/2) of the box.
The answer of the centre method lies in the box [0, 1]ⁿ.
The centre method is strictly ε-accurate, with any number of queries, on every function
that is L-Lipschitz on the box [0, 1]ⁿ in the sup norm if n = 0 (the box is one point) or
ε > L / 2 (ConvexAnalysis.ZeroOrder.apply_const_half_le_add).
The centre method is ε-accurate, with any number of queries, on every function that is
L-Lipschitz on the box [0, 1]ⁿ in the sup norm if n = 0 (the box is one point) or
ε ≥ L / 2 (ConvexAnalysis.ZeroOrder.apply_const_half_le_add).
No query is needed to find a point less than ε above the minimum on [0, 1]ⁿ of every
function that is L-Lipschitz on the box in the sup norm if and only if n = 0 or ε > L / 2:
then the centre (1/2, …, 1/2) of the box is such a point
(ConvexAnalysis.ZeroOrder.centerMethod), and otherwise
ConvexAnalysis.ZeroOrder.pow_le_of_forall_output_lt_add gives (⌊L / (2 ε)⌋₊ + 1)ⁿ ≤ 1, which
forces n = 0 or L / (2 ε) < 1. A method that answers with a query needs one query.
The exact complexity of global optimization of Lipschitz functions on [0, 1]ⁿ, for
methods that may answer anywhere: in dimension n ≥ 1 and for 0 < ε ≤ L / 2, the least number
N of queries such that some zero-order method finds, after N queries, a point less than ε
above every value on the box, for every f that is L-Lipschitz on the box in the sup norm, is
(⌊L / (2 ε)⌋₊ + 1)ⁿ. This is the same number as for methods that answer with a query
(ConvexAnalysis.ZeroOrder.isLeast_pow_output_eq_query): an answer at a point that was not
queried saves nothing. The lower bound
(ConvexAnalysis.ZeroOrder.pow_le_of_forall_output_lt_add_of_two_mul_le) needs the accuracy
only on the functions that are L-Lipschitz on all of ι → ℝ, so the exact complexity for that
class is the same. In the other cases, n = 0 or ε > L / 2, no query is needed
(ConvexAnalysis.ZeroOrder.exists_forall_output_zero_lt_add_iff);
ConvexAnalysis.ZeroOrder.isLeast_ite_pow states both cases in one formula, and
ConvexAnalysis.ZeroOrder.isLeast_pow_of_two_mul_le_mem_Icc adds the condition that the answer
lies in the box.
The exact complexity of global optimization of Lipschitz functions on [0, 1]ⁿ, for
methods that may answer anywhere, in all cases: for ε > 0 and L ≥ 0, the least number N of
queries such that some zero-order method finds, after N queries, a point less than ε above
every value on the box, for every f that is L-Lipschitz on the box in the sup norm, is 0 if
n = 0 or ε > L / 2 (the answer is the centre of the box), and (⌊L / (2 ε)⌋₊ + 1)ⁿ
otherwise (ConvexAnalysis.ZeroOrder.isLeast_pow_of_two_mul_le). The same holds for the class of
functions that are L-Lipschitz on all of ι → ℝ, and
ConvexAnalysis.ZeroOrder.isLeast_ite_pow_mem_Icc adds the condition that the answer lies in
the box.
The non-strict goal #
For ε > 0 there is ε' > ε with ⌈L / (2 ε)⌉₊ ≤ ⌊L / (2 ε')⌋₊ + 1. A method that finds a
point at most ε above the minimum finds one less than ε' above it, so the lower bounds for the
strict goal with ε' give lower bounds for the non-strict goal with ε.
The uniform grid method for the non-strict goal: for ε > 0, the uniform grid method
with ⌈L / (2 ε)⌉₊ points per coordinate finds, after ⌈L / (2 ε)⌉₊ⁿ queries, a point at most
ε above every value on the box [0, 1]ⁿ of every f that is L-Lipschitz on the box in the
sup norm. This sharpens Nesterov, Corollary 1.1.1, which uses ⌊L / (2 ε)⌋₊ + 1
points per coordinate, one more if L / (2 ε) is an integer. For L = 0 (no point per
coordinate) f is constant on the box, and the answer lies in the box.
The lower complexity bound for the non-strict goal, for methods that answer with a query:
if a zero-order method M answers, after N queries, with one of its queries and finds a point
at most ε above every value on the box [0, 1]ⁿ, for every f that is L-Lipschitz on all of
ι → ℝ in the sup norm, then ⌈L / (2 ε)⌉₊ⁿ ≤ N.
The lower complexity bound for the non-strict goal, for methods that may answer anywhere,
with at least one query: if a zero-order method M finds, after N ≥ 1 queries, a point at most
ε above every value on the box [0, 1]ⁿ, for every f that is L-Lipschitz on all of
ι → ℝ in the sup norm, then ⌈L / (2 ε)⌉₊ⁿ ≤ N.
No query is needed for the non-strict goal of finding a point at most ε above the minimum
on [0, 1]ⁿ of every function that is L-Lipschitz on the box in the sup norm if and only if
n = 0 or ε ≥ L / 2: then the centre (1/2, …, 1/2) of the box is such a point
(ConvexAnalysis.ZeroOrder.centerMethod). Compare
ConvexAnalysis.ZeroOrder.exists_forall_output_zero_lt_add_iff, where ε = L / 2 needs 2ⁿ
queries.
The exact complexity for the non-strict goal, for methods that answer with a query: for
L > 0 and ε > 0, the least number N of queries such that some zero-order method answers,
after N queries, with one of its queries, and with a point at most ε above every value on the
box [0, 1]ⁿ, for every f that is L-Lipschitz on the box in the sup norm, is
⌈L / (2 ε)⌉₊ⁿ. It differs from the strict goal
(ConvexAnalysis.ZeroOrder.isLeast_pow_output_eq_query) only if L / (2 ε) is an integer, and
then it is Nesterov's lower bound ⌊L / (2 ε)⌋₊ⁿ (Nesterov, Theorem 1.1.2). The
condition L > 0 is needed: for L = 0 and n ≥ 1 the least number is 1, as a method that
answers with a query needs one, not ⌈0⌉₊ⁿ = 0. The lower bound
(ConvexAnalysis.ZeroOrder.ceil_pow_le_of_forall_output_eq_query) needs both conditions only on
the functions that are L-Lipschitz on all of ι → ℝ, so the exact complexity for that class
is the same; ConvexAnalysis.ZeroOrder.isLeast_ceil_pow_output_eq_query_mem_Icc adds the
condition that the answer lies in the box.
The exact complexity for the non-strict goal, for methods that may answer anywhere: for
ε > 0 and L ≥ 0, the least number N of queries such that some zero-order method finds,
after N queries, a point at most ε above every value on the box [0, 1]ⁿ, for every f that
is L-Lipschitz on the box in the sup norm, is 0 if n = 0 or ε ≥ L / 2, and
⌈L / (2 ε)⌉₊ⁿ otherwise. If L / (2 ε) is an integer and ε < L / 2, this is Nesterov's lower
bound ⌊L / (2 ε)⌋₊ⁿ (Nesterov, Theorem 1.1.2); for ε = L / 2 the formula
⌊L / (2 ε)⌋₊ⁿ of his bound gives 1 (his theorem assumes ε < L / 2), but no query is needed.
The same holds for the class of functions that are L-Lipschitz on all of ι → ℝ, and
ConvexAnalysis.ZeroOrder.isLeast_ite_ceil_pow_mem_Icc adds the condition that the answer lies
in the box.
Methods that answer in the box #
The goal of Nesterov, Theorem 1.1.2 (the class P∞) and the goal (1.1.7) of
Nesterov, Corollary 1.1.1 ask for an answer x̂ in the box [0, 1]ⁿ. The exact
complexities do not change under this condition: the uniform grid method and the centre method
query and answer in the box.
The exact complexity for methods that answer with a query, in the box:
ConvexAnalysis.ZeroOrder.isLeast_pow_output_eq_query with the condition x̂ ∈ [0, 1]ⁿ of the
goal of Nesterov, Theorem 1.1.2; the value is again (⌊L / (2 ε)⌋₊ + 1)ⁿ.
The exact complexity for all methods, in the box:
ConvexAnalysis.ZeroOrder.isLeast_pow_of_two_mul_le (n ≥ 1, 0 < ε ≤ L / 2) with the
condition x̂ ∈ [0, 1]ⁿ of the goal of Nesterov, Theorem 1.1.2; the value is again
(⌊L / (2 ε)⌋₊ + 1)ⁿ.
The exact complexity for all methods, in the box, in all cases:
ConvexAnalysis.ZeroOrder.isLeast_ite_pow with the condition x̂ ∈ [0, 1]ⁿ of the goal of
Nesterov, Theorem 1.1.2: 0 if n = 0 or ε > L / 2, and (⌊L / (2 ε)⌋₊ + 1)ⁿ
otherwise.
The exact complexity for the non-strict goal, for methods that answer with a query in the
box: ConvexAnalysis.ZeroOrder.isLeast_ceil_pow_output_eq_query (L > 0) with the goal (1.1.7)
of Nesterov, Corollary 1.1.1, which asks for x̂ ∈ [0, 1]ⁿ; the value is again
⌈L / (2 ε)⌉₊ⁿ.
The exact complexity for the non-strict goal, for methods that answer in the box:
ConvexAnalysis.ZeroOrder.isLeast_ite_ceil_pow with the goal (1.1.7) of
Nesterov, Corollary 1.1.1: find x̂ ∈ [0, 1]ⁿ with f x̂ - min f ≤ ε. The value is
0 if n = 0 or ε ≥ L / 2, and ⌈L / (2 ε)⌉₊ⁿ otherwise.