Manuscript Offprint
arXiv:2610.24373Spherical-Design Oracles for Zeroth-Order Optimisation: Deterministic, Variance-Free Gradient Estimation
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
In this work, we develop a zeroth-order (ZO) method that estimates the gradient with minimal bias and variance. Instead of the random directions often used in the ZO literature, we consider central differences with directions given by a fixed spherical t-design, a finite point set that integrates every polynomial of degree at most t exactly. The oracle is deterministic and thus does not induce any variance. We also propose a general finite difference method in the higher-order-smoothness regime and show the bias of both finite difference methods. We then show the convergence of the proposed ZO method via the input-to-state stability concept. Numerical experiments show the superiority of our proposed method over the existing random ZO methods.
Keywords: zeroth-order optimisation, spherical designs, cubature, variance reduction
MSC Classification: 90C56, 65K05, 90C30, 93D25
1 Introduction
Consider the optimisation problem
where is times continuously differentiable for some . In this work, we study the setting in which the objective is accessible only through function evaluations, with no analytic gradient available. For example, simulation-based engineering design [1]. This is known as zeroth-order (ZO), or derivative-free, optimisation in the literature.
The literature has proposed different approaches to solve the problem [2, 3]. One approach is to use direct-search methods, which evaluate f along a set of directions that positively spans and accept a step whenever a sufficient decrease is observed [4–6]. Another approach is to use model-based methods that obtain a local interpolation or regression model of f on a sample set and minimise that model within a trust region [7, 8]. Both families remain active, and are supported by convergence and worst-case complexity guarantees.
In this work, we focus on the gradient estimation methods, which approximates the gradients by finite differences. Such a method requires only a few function evaluations for each step and thus has found applications in machine learning and control such as black-box adversarial attacks on trained classifiers [9], policy search in reinforcement learning with non-differentiable simulators [10]. For example, for the memory-efficient fine-tuning of large language models, the memory overhead of backpropagation can be prohibitive and forward-pass-only ZO methods have been shown to be numerically competitive [11, 12]. Apart from the fewer function evaluations per step, the gradient estimation methods have two advantages. First, by approximating the gradient estimates, we can apply it to any first-order algorithms without any further modification. Second, it facilitates parallel computation, making it well-suited for high-dimensional applications.
Among this class of methods, two randomised sampled directions are often used in constructing the finite differences, namely, Gaussian distribution and the uniform distribution over a sphere [13–18]. The expectation of both gradient estimates can be expressed as the gradient of a smoothed function that inherits the convexity and Lipschitzness of f. Moreover, under some standard assumptions, both methods are shown to converge to a neighbourhood of an optimum, whose radius depends on the smoothing bias and the variance of the gradient estimate. Research is ongoing to reduce the cost under additional structural assumptions on f, see, e.g., [10, 19, 20].
Our work aims to develop a gradient estimation method that effectively approximates the true gradient with minimal bias and variance. We use the directions of a spherical design to construct finite differences. Spherical t-designs are finite point sets over which equal-weight averaging integrates all polynomials of degree at most exactly on the sphere and have been often used in approximation theory and combinatorics [21, 22]. It is deterministic and does not involve any variance. In the algorithm, we compute the spherical design once and use it over all iterations. Considering it as a discrete-time dynamical system, our work shows that our method converges at the same rate as other existing randomised method but with a much smaller bias.
Gradient estimation methods
Finite differences has been used to estimate gradients since 1950s [23] and random directions have been studied since 1960s [24]. Until recently, [15] and Nesterov and Spokoiny [13] established theories for ZO methods using directions from uniform distribution over a sphere and Gaussian distribution, respectively. The latter work is particularly influential to the field and inspires stochastic variants in [14] and [16]. These analyses exhibit explicit dependence on the problem dimension d in their convergence guarantees. Jamieson et al. [25] and Duchi et al. [16] establish the information-theoretic lower bounds and dimension-dependent convergence rates for some ZO oracle models in worst-case settings. The randomised ZO method has been analysed for a range of structured problem classes, including quasar-convex objectives [26], Polyak–Lojasiewicz functions [27], submodular minimisation [28], and nonconvex-nonconcave min-max problems [29, 30]. It has also been applied to problems with different structure, such as gradient sparsity and high-dimensional structure [31], weak or effective dimension dependence arising from a fast-decaying Hessian spectrum [32], and variance reduction [33].
Apart from the i.i.d. Gaussian directions and the uniform directions over a sphere, there are works that study other ZO sampling methods. The authors in [19] use orthonormal random directions, whose variance of the gradient estimator is shown to be smaller than i.i.d. Gaussian directions. Other works include evolution-strategy variants [10] and orthogonal Monte Carlo schemes [20]. These methods are randomised and therefore retain sampling variance.
Spherical design
The concept of spherical design was established by [34] to study the problems in algebraic combinatorics and coding theory. They established the cardinality lower bounds that quantify the cost of reproducing the degree-t moments (see [21] for a survey paper). Later, in [35, 36], it is shown that spherical t-design exists for every t and d. Works have also been done to show the construction of spherical designs for different dimensions [37, 38]. Spherical designs have become standard tools in approximation theory and numerical integration [39].
Dynamical-system and input-to-state-stability
Interpreting an optimisation algorithm as a discrete-time dynamical system and analysing its stability is a well-established approach [40–43]. Input-to-state stability (ISS), introduced in [44] and extended to discrete-time systems in [45] and [46]. It characterises the robustness of a stable equilibrium to bounded perturbations and is widely used in nonlinear control [47]. The authors in [48] applied ISS to investigate the ZO and first-order methods (FO) convergence difference gap. They showed that, under suitable conditions, the averaged dynamics of a Gaussian ZO method can be written as a perturbed FO system, where the perturbation contains terms associated with the smoothing bias and the variance. Consequently, the ZO method inherits the FO decay rate and converges to a neighbourhood of the FO fixed point in expectation, whose radius depends on the dimension.
1.2 Contributions
Our contribution is four-fold. First, we propose the ZO spherical design method using central differences for the gradient estimation. The method is deterministic and does not involve any variance. Second, we show the bias of the proposed method with central finite differences. Third, we propose a general finite difference method to exploit the smoothness of , which includes the central finite differences as a special case. Fourth, we develop the convergence of the proposed ZO method via the perspective of ISS. The paper is organised as follows. We start with introducing the central differences over uniform measure over a sphere and existing convergence results in Section 2. Next, we introduce the concept of spherical design in Section 3.1 and derive its bias in Section 3.2. We also propose the general finite difference method and derive its bias in Section 3.3. In Section 4, we show the provable convergence of our algorithm via ISS results. We compare our bounds with the randomised Gaussian and unit sphere oracle in Section 5. Lastly, we demonstrate the superiority of our algorithm in Section 6 and conclude our paper with future directions in Section 7.
Notation
Throughout, denotes the dimension of in (1) and the Euclidean space with inner product and norm . The same symbol denotes the spectral norm of a matrix. For and , is the closed ball of radius about and denotes the closed ball of radius about the origin. For a square-integrable random vector , we use . We write for the identity matrix, for the standard basis, and for the Kronecker delta ( if , else 0). For a tensor of order and indices , we write for the corresponding entry of . The unit sphere is , equipped with the uniform (rotation-invariant) probability measure . The symbol denotes the distribution of vectors uniformly sampled from , and the standard Gaussian. Expectation is denoted by and variance . For a matrix, and are its trace and rank. For a sufficiently smooth , is the gradient, the Hessian, and the Laplacian. More generally is the order- derivative tensor with entries . We denote the tensor (outer) product by . For a vector we write ( factors) and denote by the full contraction
We use the operator norm . The class consists of -times continuously differentiable functions. We denote the class of continuously differentiable functions having Lipschitz gradients with . We write and for the usual asymptotic upper- and lower-bound notation, when and . For nonnegative integers , is the binomial coefficient. For a real , and are the floor and ceiling. For a symmetric matrix , means is positive definite. A continuous function is of class if it is strictly increasing with , and of class if in addition as . A continuous function is of class if is of class for each fixed and is decreasing to as for each fixed . Lastly, we denote the all-ones vector as , whose dimension will be clear from context.
2 Preliminaries
2.1 Unit ball smoothing
Throughout the paper, we make the following assumption on f.
Assumption 1 We assume that the objective function , for some integer , is bounded below, , and has L-Lipschitz gradient.
To minimise with access only to the function evaluations, one may approximate the gradient at via
along some direction for some . Suppose that we sample from a uniform distribution over a unit sphere. For both finite difference methods, its expectation equals the gradient of the uniform smoothed function. Specifically, let be the smoothed function , where is the unit ball on and is the smoothing radius. We have [15]
In this work, we focus on the central differences. For , the gradient estimation error then involves the third derivative of ; i.e., there exists such that
We compute the moments of the uniform measure, which will be used in our analysis. Specifically, let be the -th moment of the uniform measure on . Since is invariant under , every odd moment vanishes, , . The second and fourth moments are given by [49]
2.2 Dynamical systems and input-to-state stability
A ZO method could be viewed as its first-order (FO) counterpart along with an additive gradient estimation error. Employing the notion of input-to-state stability [48], we can address how far the perturbed ZO trajectory deviates from the unperturbed one.
Specifically, consider an FO algorithm that updates an iterate by at the -th iteration. Suppose that there exists an equilibrium satisfying . Its perturbed ZO counterpart can be written as
where is the ZO perturbation sequence. We say that the system (6) is locally input-to-state stable (ISS) about if there exist , , and such that, for every perturbation sequence and every ,
The estimate (7) reduces to asymptotic stability when and, otherwise, guarantees convergence to a neighbourhood of whose radius is governed by the perturbation magnitude . The following result states that an algorithm whose unperturbed dynamics admit a Lyapunov certificate inherits the ISS estimate if the perturbations are uniformly bounded. It is the mechanism by which the convergence guarantees of a FO method are captured in its perturbed, ZO counterpart.
Proposition 1 ([48, Thms. 1–2]) Let , and let be an equilibrium of , i.e., . Suppose there exist a radius , a locally Lipschitz function , and functions such that, for all ,
which means that the equilibrium of is locally asymptotically stable: there exist and such that for all and all . Then the following hold.
(i) Robustness to perturbations: There exist radii and functions such that, for every and every perturbation sequence with , the solution of (6) satisfies (7) with the function as the unperturbed system.
(ii) Exponential case: If, in addition, there exist and such that, for all ,
then (ii) holds with . In particular, the perturbed system decays at the same exponential rate as the unperturbed one.
3 Spherical Design Oracle
Their convergence bounds are in terms of the bias and the variance of the ZO gradient estimator, which do not diminish over iterations. We propose a ZO gradient oracle that uses a spherical t-design to construct the directions of central finite differences.
3.1 Spherical design
Let us start with the definition of spherical design [34].
Definition 1 A finite set is a spherical t-design if
for every polynomial of degree at most .
Spherical designs are finite point sets on the unit sphere whose equal-weight averages reproduce the uniform measure exactly on all polynomials up to a given degree. It is widely used in approximation theory and combinatorics; see, e.g., [21, 22].
It is known that spherical t-designs exist for every t and d [35, 36] and they are not unique: Since is rotation invariant, is a t-design for every orthogonal Q whenever U is. Below are examples of 2- and 3-designs.
Example 1 (Regular simplex, , ) Let have orthonormal columns spanning (for instance, obtained from a QR factorisation). Then
are unit vectors satisfying and . Hence, is a spherical 2-design. Such a design can be computed in operations. In fact, a set of unit vectors is a 2-design if and only if and .
Example 2 (Cross-polytope, , ) The set is a spherical 3-design. Its odd moments vanish by antipodal symmetry, while
Explicit constructions of 4- and 5-designs for every d are given in [50]. Readers can also find more numerically computed designs for moderate d and t in [37, 38].
The average over the spherical design in (9) reproduces the moments of the uniform distribution over a sphere exactly for every order . However, this exactness has a price: The number of directions, and hence of function queries, grow with both the degree and the dimension , as shown in the next proposition.
Proposition 2 ([21, 34]) Let . Every spherical t-design on satisfies for and for .
From Proposition 2, for fixed , a spherical -design requires at least directions. Both Examples 1 and 2 attain the lower bound in Proposition 2. Designs of small size also arise as orbits of finite reflection groups, for example the normalised minimal vectors of the lattice (, , ) from [21], which will be used in Section 6.
3.2 Central difference oracle
Given a spherical t-design , our central difference design oracle is given by
that is, the central finite-difference gradient estimator along the directions of the spherical design U. Each call costs 2N function evaluations. With the cross-polytope of Example 2, the oracle (10) reduces to coordinate-wise central finite differences using 2d distinct evaluations. Given a fixed spherical design U, the oracle (10) is deterministic and hence without estimator variance.
To implement it, we first construct a spherical t-design and store it for every iteration. With an initial guess , at each iteration, we update the iterate by a ZO gradient descent step with size
Next, let us analyse some properties of the oracle (10).
Lemma 3 (Properties of the oracle (10)) Let be a spherical t-design with and be the oracle (10). Then the following hold:
(i) The design satisfies and for every differentiable and every ,
(ii) Consider a polynomial q with . Define the smoothed gradient operator
Then for every and .
Proof (i) Since is a matrix-valued polynomial of degree , the spherical t-design property (9) and (4) gives
Right-multiplying above by and scaling by gives .
(ii) Fix and . Since , the central difference is a polynomial in containing only the odd-degree terms, so its degree is at most the largest odd . Each component of is therefore a polynomial of degree at most , and (9) applied componentwise, multiplied by , gives .
Lemma 3 justifies the use of the spherical design for estimating the gradients. Also, it shows that, for , a 2l-design and a -design both satisfy
for every polynomial with . In fact, raising the degree from to of the spherical design does not reduce the bias of the gradient estimate. This is because the Taylor expansion of only contains odd powers of , so the terms in the oracle (10) is an even polynomial in , which odd-order moments never appear.
Next, we bound the smoothing bias of the oracle (10). To proceed, let denote a point and let
be the higher-order derivatives bounds over , where
for some margin and some radius . We see that is non-decreasing in or .
Assumption 2' defined in (12) is finite for .
If is a coercive function (i.e., ), then Assumption 2 is satisfied for any and finite , with a compact set .
Now, we are ready to bound the smoothing bias of the oracle (10).
Lemma 4 (Bias of the oracle (10)) Suppose that Assumptions 1 and 2' hold. Let U be a spherical t-design and be the oracle (10) with smoothing radius in (10). For any , , let and write .
(i) If and , then .
(ii) If and , then, .
Proof (i) Fix , let , and , and set . Since , using Taylor's theorem and intermediate value theorem gives, for some ,
Using the definition of in (10) and Lemma 3(i) gives
Each probe point lies in and , so the operator-norm bound gives . Averaging over the directions yields .
(ii) Let . When , expanding to fifth order via Taylor's theorem and considering the intermediate value theorem gives, for some ,
Apply . The linear term reproduces by Lemma 3(i). The cubic term has integrand , a polynomial of degree evaluated at the fixed tensor , so by Lemma 3(ii) the 4-design integrates it exactly:
We evaluate this integral componentwise. Its j-th component is
and substituting the fourth-moment identity (5),
Each Kronecker pair collapses two of the three summation indices, leaving
Because is symmetric, the three sums coincide, each equal to
Collecting components,
and multiplying by the Taylor coefficient yields the leading bias term . For any unit vector ,
where the last inequality uses . Taking the supremum over unit gives .
The quintic remainder is bounded as in part (i): each probe point lies in and , so , whence
Consequently,
The lemma shows that a 4-design reduces the leading constant by a factor of d.
Remark 1 ( case) Lemma 4 considers where (or ). For , where the second and the third derivatives may not exist, a weaker bound still follows from the Lipschitz gradient alone. Specifically, the oracle (10) with ZO error : satisfies
which is worse than by an order of (cf. Lemma 4(i)). To see this, fix a direction and set , so that with . Then,
the second identity following from the substitution . Subtracting and dividing by , the two values of cancel, and writing the constant as its own average over gives the exact central-difference error
By the Cauchy–Schwarz inequality, , and the L-Lipschitz gradient, each inner product is bounded in absolute value by , so the integrand is at most 2Ls and
Applying the estimator map , using Lemma 3(i) to reproduce the linear part exactly, and bounding the residuals by yields (14).
Remark 2 (Central versus forward differences) One may use forward difference as the oracle in (10) instead, but the bias would be different from the central-difference oracle. Specifically, consider the Taylor expansion of the forward-difference spherical t-design oracle:
(15)
for some , . With , we have the first term (I) equals the true gradient and leave (II) and (III) as bias terms. For a 2-design oracle, the term (II) is of the third moment of and cannot be cancelled out, yielding a bias of . To achieve bias, we need a 3-design oracle such that (II) vanishes because of the odd symmetry of the uniform distribution (i.e., ). In contrast, the central-difference oracle cancels the even-order terms (corresponding to the term (II) in (15)) by definition and thus only needs a 2-design to attain bias.
3.3 Higher-order oracle
To exploit smoothness beyond second order, we augment the design and give the higher-order oracle
for radial difference stencil of nodes and weights with number of nodes. In particular, if we take the single node pair , , it reduces to the oracle (10), which is also the lowest-order instance of (16). Using the higher-order oracle, we can do the ZO update as (11) but replace with .
Let for . Similar to Assumption 2', we need an assumption that bounds the higher-order derivatives.
Assumption 2 defined in (12) is finite for .
As a special case, for the central differences. Similarly to the oracle (10), the higher-order oracle (16) is deterministic with a fixed spherical design U. The next theorem shows how we can construct a general .
Theorem 5 Suppose that Assumptions 1 and 2 hold. Let be a spherical t-design with and . Let be a symmetric node set with antisymmetric weights ( whenever ) satisfying the order conditions
Then, for any , , and for every , the higher-order oracle (16) at satisfies
Moreover, satisfying (17) always exists and is unique whenever is fixed.
Proof Fix . Let , , and set , so that and for by Assumption 1. Taylor's theorem with Lagrange remainder of order gives, for each , some with
Multiplying by , summing over r, and dividing by ,
Consider the radial moments . By the assumed symmetry, each pair , contributes to , which vanishes for even . In particular , so the singular term and all even-order Taylor terms drop out. For odd , the order conditions (17) give and for . Every term with therefore vanishes except , which contributes , leaving
Applying , the linear part is reproduced exactly by Lemma 3(i), so the residual is the deterministic bias
Each probe point lies in and , so , and bounding term by term,
It remains to verify that the order conditions admit a unique set of antisymmetric weights for any choice of distinct positive nodes. Let , and denote the positive nodes by . By antisymmetry, the weights associated with the negative nodes are determined by those at the positive nodes. Setting , the order conditions reduce to
Thus, the unknowns satisfy a Vandermonde system with nodes . Since the positive nodes are distinct, the squared nodes are also distinct, and hence the Vandermonde matrix is nonsingular. Therefore, the system admits a unique solution, and consequently the antisymmetric weights are uniquely determined.
Theorem 5 shows that the augmented higher-order oracle reduces the bias to (compared with the bias of the oracle (10)), with the cost of per step. For a 2-design ( ) and fixed p, the query cost is . Moreover, Theorem 5 recovers Lemma 4(i) when considering the oracle (10) , , with . To conclude this section, we construct a new set of with , , which will also be illustrated numerically in Section 6.1.
Example 3 Consider and . We can construct the symmetric stencil as . The resulting oracle (16) uses evaluations per step, twice the of the oracle (10), on the same 2-design. In exchange, Theorem 5 gives the bias bound , of order , against the order of Lemma 4(i).
4 Convergence Analysis
In this section, we analyse the inheritance of local convergence guarantees of FO methods by the design oracle ZO framework. Let f belong to a structured class on which GD is known to converge, for instance, a (strongly) convex, (strongly) quasar-convex, or Polyak–Lojasiewicz function, or, more generally, any class for which GD admits a Lyapunov certificate. We show that the design-oracle method (11), driven by either the oracles in (10) or (16), inherits the FO decay behaviour and converges to a neighbourhood of the GD fixed point, whose radius depends on the biases obtained in Lemma 4 or Theorem 5.
The ZO GD iterates (11) can be viewed as the discrete-time system
that is, gradient descent perturbed by the deterministic field .
Let the FO gradient-descent map and its fixed point be
Let and . For , Lemma 3(i) together with Lemma 4(i) or Theorem 5 gives the deterministic decomposition , with
Substituting into (11) expresses the method as the deterministic perturbed system
Theorem 6 Let Assumptions 1 and 2 hold with the order and let be the corresponding bias bound (20). Assume GD map (19) generates iterates and has a fixed point that is locally asymptotically stable and certified by a Lyapunov function on a ball as in Proposition 1, i.e., there exists a class- function where , . Let be the step size used by GD. Then there exist , and a class- function such that, for every and every , the iterates of (11), with , satisfy
i.e., the design oracle method inherits the decay function of GD, and converges to a neighbourhood of of radius , which tends to 0 as . The iteration count matches that of GD, and for each iteration uses queries.
Proof The iteration (11) reduces to the perturbed system (21), with . By hypothesis, the unperturbed map satisfies the assumptions of Proposition 1 on , with Lyapunov function . The perturbation in (21) is bounded by , and as . Choose so that for , where and are the admissible perturbation and initial condition radii of Proposition 1. Then, Proposition 1 yields the estimate (22), with the decay profile of and . The exponential rate follows when the quadratic Lyapunov hypothesis holds. The proposition also provides forward invariance of the relevant sublevel set of . Taking small enough that , the iterates remain in , so (20) is valid for all and the reduction above is justified. Since is inherited unchanged, the iteration count matches that of GD, and the per-iteration cost is that of the chosen oracle, which for is .
Theorem 6 strengthens the ISS reduction of [48] in three respects. First, (21) holds for the trajectory itself, so no averaging is required. Second, The perturbation bound can be controlled through alone. Third, the reduction holds under Assumptions 1 and 2 in general, rather than only on the special cases.
Remark 3 (Momentum methods) Because the reduction (21) does not depend on the particular FO map, the same argument applies to the heavy-ball and Nesterov accelerated methods driven by the design oracle. Replacing the stochastic perturbation in the augmented-state dynamics of [48, Eqs. (22)–(24), Thms. 4–5] by the deterministic field of (21) yields bounded perturbations under Assumptions 1 and 2, and the same ISS conclusion follows.
5 Comparison with randomised oracles
Before going through the numerical results, we present the estimation error of the Gaussian oracle of [13] and the unit-sphere oracle of [15], for our comparison with the spherical design methods.
5.1 Error of the randomised oracle
We compute the bounds of the bias, variance, and the root-mean-square error (RMSE) of the gradient estimation of the Gaussian and unit sphere oracles. The proofs of all results are deferred to Appendix A.
Proposition 7 (Bias and variance of the Gaussian oracle) Let Assumption 1 hold with , let Assumption 2 be satisfied globally (i.e., ), and let
be the central-difference Gaussian oracle based on m i.i.d. directions. Write . Then, for , it holds that
(i) (Bias)
(ii) (Variance)
Proposition 8 (Bias and variance of the unit sphere oracle) Let Assumption 1 hold with , let Assumption 2 be satisfied, and let
be the central-difference spherical oracle based on m i.i.d. directions. Write and let . Then, for , it holds that
(i) (Bias)
(ii) (Variance)
Proposition 9 (RMSE of the Gaussian oracle) Under the setting of Proposition 7, and by using the notation , it holds that
(i)
(ii)
Moreover, if and , then
Proposition 10 (RMSE of the unit sphere oracle) Under the setting of Proposition 8 and by using the notation , it holds that
(i)
(ii)
Moreover, if and , then
The bounds of Propositions 9 and 10 show that, for both the Gaussian and the unit sphere randomised oracles, the estimation error contains a -independent sampling-variance component of order . Consequently, decreasing the smoothing radius can reduce the finite-difference bias but it cannot eliminate the sampling error, which persists even as .
Remark 4 The variance lower bounds in Propositions 9 and 10 are not specific to Gaussian or spherical sampling. More generally, the authors in [51] show that for directions with i.i.d. zero-mean entries of variance and kurtosis , the asymptotic MSE under the unbiased normalisation is
which is a -independent term of order that no choice of distribution removes. Thus, an sampling term persists as , with the minimum attained by the Bernoulli distribution ( ).
Remark 5 The lower bounds in Propositions 9 and 10 both contain the sampling-variance term , so the two randomised oracles are essentially equivalent in their dominant error. The spherical-design oracle removes the sampling-variance term entirely.
5.2 The gradient estimation error
The next result shows that the oracles will behave differently as the target accuracy for the gradient estimation improves. The design oracle attains any prescribed relative gradient accuracy at a query count independent of that accuracy, whereas the Gaussian sample cost grows with .
Theorem 11 Let and . Fix with and a target relative error . Consider the oracles of Propositions 7 and 8, the Gaussian and unit sphere oracle with samples, and the base 2-design oracle (10) with .
(i) (Gaussian and unit sphere oracles) The relative RMSE obeys
Moreover, attaining a relative error of at most requires samples.
(ii) (Design oracle) Any yields a relative RMSE of at most , using directions (independent of ).
Proof By Propositions 9 and 10 with sufficiently small , and by upper bounding the error by , item (i) can be concluded. Considering Lemma 3(i), Lemma 4(i) and imposing gives , i.e., item (ii) follows. We additionally observe that the direction count does not depend on .
Considering Theorem 11, both the design and randomised oracles cost per gradient at a fixed accuracy. When the randomised oracles' cost grows to , whereas the 2-design cost remains . The design oracle is therefore strictly cheaper for every , and the gap widens by the factor as .
6 Numerical Examples
The experiments are implemented in Python and run on a laptop with an Intel Core i7-1265U processor. Unless stated otherwise we work in dimension , where an exact design is available in closed form. For the oracle (10) we use the regular simplex, an exact 2-design of points. For the 4-design oracle we use the lattice set ( ) and the higher-order oracle (16) is taken at , that is, the simplex 2-design augmented with the symmetric radial stencil , obtained from (17), whose bias is . We compare our results with the randomised baselines, including Gaussian [13] and spherical oracles [15], whose directions are sampled from the Gaussian distribution and the uniform distribution over the unit sphere. Both of the ZO oracles are evaluated with central-difference directions, matching the per-step evaluation budget of the base design oracle. Their curves are averaged over independent seeds, with shaded bands indicating standard deviation.
For a differentiable , the estimation error of a finite-difference oracle consists of two terms:
The code is available at https://....
The second term arises from the floating-point cancellation incurred when the nearly equal values are subtracted and divided by . When the oracle reconstructs the gradient exactly, only the roundoff term remains and the error curve would decrease with . Such a phenomenon will be observed in some of the figures below.
6.1 Convergence on a quartic objective
Consider the optimization problem
with . When , it is a quadratic problem with condition number ; and when , it is a quartic problem with non-vanishing at the optimum. We generate the matrix , where is a random orthogonal matrix and logarithmically spaced between 1 and , so that is positive definite with condition number . We use the step size with for the quadratic and for the quartics (which satisfy the step size condition in our theory), a fixed smoothing radius , and run 200 iterations. Randomised curves are averaged over 50 seeds with standard-deviation bands shaded in the figure.
Figure 1 reports the optimality gap against both the iteration count and the number of function evaluations. We see that, when (top row), the optimality gap of the iterates of the 2-design oracle coincides with that of the true gradient descent, verifying our result in Lemma 3. The randomised Gaussian and spherical oracles converge but their trajectories fluctuate by about one standard deviation around the mean. Since their variance is proportional to (see Propositions 9 and 10), it decreases as the iterates get closer to the optimum. Consequently, the randomised oracles still converge but at a slower rate.
When (the middle row), we see that all methods, except the higher-order oracle, converges linearly and then settles at a plateau. This matches our results in Theorem 6, where the iterates are only guaranteed to converge to a neighbourhood of the equilibrium. Among all, the Gaussian oracle gives the largest objective value, as verified by the bound in Propositions 7 and 8. When (the bottom row), the Gaussian and spherical oracles diverge, whereas the design oracles remain stable. The third-order derivative is larger, so is the radius of the converging neighbourhood. For both settings ( and ), the higher-order oracle tracks the true gradient descent to machine precision.
6.2 Gradient-estimation error
Next, we examine the gradient estimation error of each method at a fixed point that is randomly drawn from the normal distribution. We consider the optimisation problem (24) and again, we consider the quadratic objective ( ) and the quartic objective ( ). For the quadratic objective, we set ; and for the quartic objective, we set . We sweep the smoothing radius and record

true gradient (GD) 2-design higher-order (p = 5) Gaussian m = 9 spherical m = 9
Fig. 1 Optimality gap versus iterations (left column) and function evaluations (right column), averaged over 50 seeds with standard-deviation bands. The top row considers the quadratic setting ( ); the middle and the bottom rows consider the quartic setting with and , respectively.
for the deterministic oracles and the RMSE over 50 seeds for the randomised oracles. Figure 2 shows the gradient estimation error against different smoothing radius at the fixed point. Figure 2(a) shows the error for the quadratic objective. From Lemma 3, we know that a 2-design reproduces the gradient of any affine or quadratic function exactly (i.e., no bias), so only the roundoff term in (23) remains in the residual, which decreases as increases. On the contrary, the Gaussian and unit sphere estimators are flat independent of the smoothing radius , matching the variance lower bound in Propositions 9 and 10.
Figure 2(b) shows the error for the quartic objective. The 2-design and the 4-design both demonstrate the bias as proved in Lemma 4. The higher-order
(a) quadratic objective

(b) quartic objective
Fig. 2 Gradient-estimation error versus smoothing radius at a fixed point : (a) a quadratic objective; (b) a quartic objective.
oracle outperforms all other methods. With order p = 5, the bias bound in Theorem 5 vanishes and it can well approximate the gradient of a quartic function.
6.3 Non-differentiable objective
In this experiment, we consider a non-smooth objective, which violates the continuously differentiability assumption in Assumption 1. We consider the convex max-of-quadratics
with dimension and . To generate , we fix a seed, sample independently, and normalise such that . Each matrix is generated as with , where has i.i.d. standard normal entries. Given positive definite matrices () and , we know that
and thus is minimised at with and .
We compare the performance of the oracle (10) with 2-design, the higher-order oracle with , with that of the randomised Gaussian and spherical oracles (), and the classical subgradient method. Consider . Figure 3 reports the optimality gap against the number of iterations when a constant step size with and the smoothing radius are used for all methods.
Non-smooth max-of-quadratics

subgradient method 2-design (det.) higher-order (p=5) Gaussian m=9 spherical m=9
Fig. 3 Non-smooth max-of-quadratics: optimality gap versus iteration under the constant step size , with and .
We see that, in this example, the design oracles remain stable on the non-smooth problem and behaves comparably to the subgradient method. With a larger step size (i.e., ), all methods oscillate in a band around ; and with a smaller step size (i.e., ), every method descends to a common neighbourhood. The smoothing radius does not affect much the performance of all methods, just with a slight improvement of the 2-design and higher-order design when a smaller smoothing radius and smaller step size are used.
Moreover, we see that the higher-order oracle offers no advantage over the base 2-design when is non-smooth. Under this setting, the Taylor terms in Theorem 5 cannot be cancelled and thus the bias of the higher-order oracle does not apply. This shows that the order of continuous differentiability is essential for the higher-order oracle. When the smoothing radius is larger (see the bottom left figure in Figure 3), the iterate crosses more active pieces of the max near , resulting in a larger oscillation of the objective value.
6.4 Neural-network classification
Lastly, we consider a higher-dimensional example, where the per-step cost of an exact design (specifically, evaluations) becomes substantial. The spherical design oracle, exact up to the smoothing bias, can apply a large step , whereas the randomised oracles, whose variance of the estimate is given by in Propositions 9 and 10, can only perform a small step for stability. The question is: Which is the more budget-friendly option with limited function evaluations?
To address this, we train a one-hidden-layer neural network for binary classification. For an input the network computes
with hidden width , ReLU activation applied componentwise, and parameters stacked into a single vector of dimension . The loss is the -regularised binary cross-entropy over the training examples ,
with the regularisation parameter . Each ZO query is one forward pass over the training set, and we report progress against the number of queries, the operative cost in the derivative-free setting.
We use two standard UCI binary-classification datasets, chosen to place the parameter dimension in the target range. The first is the Wisconsin Diagnostic Breast Cancer set (P = 30 features, 569 examples), giving . The second is the Spambase set (P = 57 features), subsampled to 1000 examples, giving . At these dimensions a full simplex 2-design uses directions, so a single design step costs and 7560 evaluations respectively, orders of magnitude more than a randomised step with m = 10 directions. Each dataset is split 75/25 into training and test sets by a seeded permutation and standardised using the training-set statistics. The weights are initialised at - and -scaled random values and the biases at zero.
We compare the base 2-design oracle, using the full simplex design directions, evaluations per step), against the Gaussian and spherical oracles with directions ( evaluations per step). The smoothing radius is throughout. To set the step size, we estimate the gradient Lipschitz constant numerically and use for the design oracle and for the randomised oracles, which is consistent with the variance in Propositions 9 and 10.
Figure 4 reports the training loss and the test and training accuracy against the number of function evaluations on the breast-cancer dataset. We see that all methods reach comparable final accuracy, showing that the smoothed ZO oracles optimise the network effectively. Moreover, even though the per-step cost of a 2-design is higher, it attains a lower training loss than the randomised oracles at equal budget with a larger step size.
Similarly, Figure 5 shows the training loss and the test and training accuracy against the number of function evaluations on the Spambase dataset at a higher dimension . As can be seen, the 2-design obtains a lower training loss and comparable accuracy curves compared with the randomised ZO oracles.
breast cancer (d=2049, , , )

2-design, N=d+1 Gaussian m=10 spherical m=10
Fig. 4 Breast-cancer classifier, c = 1): (a) training loss, (b) test accuracy, and (c) training accuracy versus the number of function evaluations.
spambase (d=3777, , , )

2-design, N=d+1 Gaussian m=10 spherical m=10
spambase (d=3777, , , )
(a) training loss

(b) test accuracy
2-design, N=d+1 Gaussian m=100 spherical m=100
(c) train accuracy
Fig. 5 Spambase classifier: training loss and test/training accuracy versus function evaluations.
7 Conclusion and discussion
In this work, we proposed the ZO spherical design oracle. We introduced the concept of spherical design and showed its bias when applying the central differences. We further proposed a general finite differences method that captures the higher-order smoothness of the objective and showed its bias. We compared our methods with the existing randomised ZO methods by developing the bias, variance and the RMSE of the existing methods. We showed that our proposed method outperformed the existing randomised methods in several settings.
One possible future direction is to study the noisy function evaluation setting. Our current the analysis is noiseless and thus eliminates the sampling variance of the direction set. Thus, it is not clear how the noise of the function evaluation would affect our proposed ZO method. Also, since the ZO spherical design oracle needs of query cost, it would be interesting to study the application of spherical design in high-dimensional settings. Another direction is to analyse the guarantees and performance of the design oracle in solving the non-differentiable optimisation problems.
Appendix A Proofs of Section 5
Here, we present the proofs of propositions in Section 5. To shorten expressions in the following, we define the central-difference quantity . For , Taylor's theorem and the intermediate value theorem give
for some . Here, the even-order terms cancel by antisymmetry. From the definition of in (12) we obtain the bound
used in the following proofs.
Moreover, the proofs for the Gaussian oracle use the following moment identities for . Since has a chi-square distribution with dimension by assumption, \mathbb{E}[\|u\|^2^k] = \prod_{i=0}^{k-1}(d + 2i) [52, Ch. 18, eq (18.8)], and in particular
Similarly, Isserlis’ theorem [53] gives , the Gaussian counterpart of (5), and which allows us to use the qualities
for . For the corresponding identity is (4), which gives .
Proof of Proposition 7 Let and .
(i) Since , (A1) gives . Thus, using (where is defined in (12)) and , which follows from (A3),
(ii) Since are i.i.d., so are , and hence
Using (A1) and , leads to the inequality
Then, the Gaussian moment identities
which follow from (A3) and (A4), yield the result.
Proof of Proposition 8 Let , , and .
(i) From (4) we know that . Hence, by (A1), can be written as . Since , the estimate follows from the definition of in (12).
(ii) Since are i.i.d., so are . As in (A5) we can conclude that and by using (A1) the inequality
follows. Finally, the variance bound follows from the identity (see (4)).
Before we continue with a proof of Proposition 9, for the RMSE, we introduce the following common notation
Additionally, we note that by the reverse triangle inequality for the norm it holds that
and (A2) implies
Proof of Proposition 9 (i) The bias–variance decomposition and Proposition 7, together with , give
which yields the stated estimate.
(ii) From (A4) we have , for the Gaussian distribution and hence is satisfied. Moreover, (A7) and the Gaussian eighth moment give
Thus, by (A6) and the independence of the random variables, the inequality
is satisfied. Finally, the bias–variance decomposition gives , which transfers the bound to the RMS error. The final claim follows immediately from the imposed condition on .
Proof of Proposition 10 (i) The bias–variance decomposition and Proposition 8 give
(ii) For the spherical distribution, we know from (4) that , , and hence holds. Since , (A7) gives . Accordingly, by (A6) and the independence of the random variables,
follows. The bias–variance decomposition transfers this bound to the RMS error, and the final claim follows from the stated restriction on .
References
[1] Conn, A.R., Scheinberg, K., Vicente, L.N.: Introduction to Derivative-Free Optimization. MPS-SIAM Series on Optimization, vol. 8. Society for Industrial and Applied Mathematics, Philadelphia, PA (2009). https://doi.org/10.1137/1.9780898718768
[2] Larson, J., Menickelly, M., Wild, S.M.: Derivative-free optimization methods. Acta Numerica 28, 287–404 (2019)
[3] Audet, C., Hare, W.: Derivative-free and Blackbox Optimization vol. 1. Springer, Cham (2017). https://doi.org/10.1007/978-3-032-00906-7
[4] Torczon, V.: On the convergence of pattern search algorithms. SIAM Journal on optimization 7(1), 1–25 (1997)
[5] Kolda, T.G., Lewis, R.M., Torczon, V.: Optimization by direct search: New perspectives on some classical and modern methods. SIAM review 45(3), 385–482 (2003)
[6] Audet, C., Dennis Jr, J.E.: Mesh adaptive direct search algorithms for constrained optimization. SIAM Journal on Optimization 17(1), 188–217 (2006)
[7] Powell, M.J.D.: The NEWUOA software for unconstrained optimization without derivatives. In: Di Pillo, G., Roma, M. (eds.) Large-Scale Nonlinear Optimization. Nonconvex Optimization and Its Applications, vol. 83, pp. 255–297. Springer, Boston, MA (2006). https://doi.org/10.1007/0-387-30065-1_16
[8] Conn, A.R., Scheinberg, K., Vicente, L.N.: Global convergence of general derivative-free trust-region algorithms to first-and second-order critical points. SIAM Journal on Optimization 20(1), 387–415 (2009)
[9] Chen, P.-Y., Zhang, H., Sharma, Y., Yi, J., Hsieh, C.-J.: Zoo: Zeroth order optimization based black-box attacks to deep neural networks without training substitute models. In: Proceedings of the 10th ACM Workshop on Artificial Intelligence and Security, pp. 15–26 (2017)
[10] Salimans, T., Ho, J., Chen, X., Sidor, S., Sutskever, I.: Evolution strategies as a scalable alternative to reinforcement learning. arXiv preprint arXiv:1703.03864 (2017)
[11] Malladi, S., Gao, T., Nichani, E., Damian, A., Lee, J.D., Chen, D., Arora, S.: Fine-tuning language models with just forward passes. Advances in Neural Information Processing Systems 36, 53038–53075 (2023)
[12] Zhang, Y., Li, P., Hong, J., Li, J., Zhang, Y., Zheng, W., Chen, P.-Y., Lee, J., Yin, W., Hong, M., et al.: Revisiting zeroth-order optimization for memory-efficient llm fine-tuning: A benchmark. In: International Conference on Machine Learning (2024)
[13] Nesterov, Y., Spokoiny, V.: Random gradient-free minimization of convex functions. Foundations of Computational Mathematics 17(2), 527–566 (2017)
[14] Ghadimi, S., Lan, G.: Stochastic first- and zeroth-order methods for nonconvex stochastic programming. SIAM Journal on Optimization 23(4), 2341–2368 (2013)
[15] Flaxman, A.D., Kalai, A.T., McMahan, H.B.: Online convex optimization in the bandit setting: gradient descent without a gradient. arXiv preprint cs/0408007 (2004)
[16] Duchi, J.C., Jordan, M.I., Wainwright, M.J., Wibisono, A.: Optimal rates for zero-order convex optimization: The power of two function evaluations. IEEE Transactions on Information Theory 61(5), 2788–2806 (2015)
[17] Shamir, O.: An optimal algorithm for bandit and zero-order convex optimization with two-point feedback. Journal of Machine Learning Research 18(52), 1–11 (2017)
[18] Berahas, A.S., Cao, L., Choromanski, K., Scheinberg, K.: A theoretical and empirical comparison of gradient approximations in derivative-free optimization.
Foundations of Computational Mathematics 22(2), 507–560 (2022)
[19] Kozak, D., Molinari, C., Rosasco, L., Tenorio, L., Villa, S.: Zeroth order optimization with orthogonal random directions. arXiv preprint arXiv:2107.03941 (2021)
[20] Choromanski, K., Rowland, M., Sindhwani, V., Turner, R., Weller, A.: Structured evolution with compact architectures for scalable policy optimization. In: International Conference on Machine Learning, pp. 970–978 (2018). PMLR
[21] Bannai, E., Bannai, E.: A survey on spherical designs and algebraic combinatorics on spheres. European Journal of Combinatorics 30(6), 1392–1425 (2009)
[22] Xiao, Y., Zhuang, X.: Spherical designs for function approximation and beyond. Sampling Theory, Signal Processing, and Data Analysis 23(2), 9 (2025)
[23] Kiefer, J., Wolfowitz, J.: Stochastic estimation of the maximum of a regression function. The Annals of Mathematical Statistics, 462–466 (1952)
[24] Rastrigin, L.A.: About convergence of random search method in extremal control of multi-parameter systems. Avtomat I Telemekh 24, 1467 (1963)
[25] Jamieson, K.G., Nowak, R., Recht, B.: Query complexity of derivative-free optimization. Advances in neural information processing systems 25 (2012)
[26] Farzin, A.A., Pun, Y.-M., Braun, P., Shames, I.: Minimisation of quasar-convex functions using random zeroth-order oracles. Transactions on Machine Learning Research (2026)
[27] Farzin, A.A., Shames, I.: Minimisation of Polyak-Lojasewicz functions using random zeroth-order oracles. In: 2024 European Control Conference, pp. 3207–3212 (2024)
[28] Farzin, A.A., Pun, Y.-M., Braun, P., Summers, T., Shames, I.: Minimisation of submodular functions using Gaussian zeroth-order random oracles. arXiv preprint arXiv:2510.15257 (2025)
[29] Farzin, A.A., Pun, Y.-M., Braun, P., Lesage-Landry, A., Diouane, Y., Shames, I.: Min-max optimisation for nonconvex-nonconcave functions using a random zeroth-order extragradient algorithm. Transactions on Machine Learning Research (2025)
[30] Farzin, A.A., Pun, Y.-M., Braun, P., Summers, T., Shames, I.: Solving the offline and online min-max problem of non-smooth submodular-concave functions: A zeroth-order approach. In: Forty-third International Conference on Machine Learning (2026). https://openreview.net/forum?id=iHSnH96rKH
[31] Wang, Y., Du, S.S., Balakrishnan, S., Singh, A.: Stochastic zeroth-order optimization in high dimensions. In: International Conference on Artificial Intelligence and Statistics, pp. 1356–1365 (2018). PMLR
[32] Yue, P., Yang, L., Fang, C., Lin, Z.: Zeroth-order optimization with weak dimension dependency. In: The Thirty Sixth Annual Conference on Learning Theory, pp. 4429–4472 (2023). PMLR
[33] Liu, S., Kailkhura, B., Chen, P.-Y., Ting, P., Chang, S., Amini, L.: Zeroth-order stochastic variance reduction for nonconvex optimization. Advances in Neural Information Processing Systems 31 (2018)
[34] Delsarte, P., Goethals, J.M., Seidel, J.J.: Spherical codes and designs. Geometriae Dedicata 6(3), 363–388 (1977) https://doi.org/10.1007/BF03187604
[35] Seymour, P.D., Zaslavsky, T.: Averaging sets: a generalization of mean values and spherical designs. Advances in Mathematics 52(3), 213–240 (1984)
[36] Bondarenko, A., Radchenko, D., Viazovska, M.: Optimal asymptotic bounds for spherical designs. Annals of mathematics, 443–452 (2013)
[37] Hardin, R.H., Sloane, N.J.: Mclaren's improved snub cube and other new spherical designs in three dimensions. Discrete & Computational Geometry 15(4), 429–441 (1996)
[38] Womersley, R.S.: Efficient spherical designs with good geometric properties. In: Dick, J., Kuo, F.Y., Woźniakowski, H. (eds.) Contemporary Computational Mathematics – A Celebration of the 80th Birthday of Ian Sloan, pp. 1243–1285. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-72456-0_57
[39] Hesse, K., Sloan, I.H., Womersley, R.S.: Numerical integration on the sphere. Springer Books, 2671–2710 (2015)
[40] Lessard, L., Recht, B., Packard, A.: Analysis and design of optimization algorithms via integral quadratic constraints. SIAM Journal on Optimization 26(1), 57–95 (2016) https://doi.org/10.1137/15M1009597
[41] Wilson, A.C., Recht, B., Jordan, M.I.: A lyapunov analysis of accelerated methods in optimization. Journal of Machine Learning Research 22(113), 1–34 (2021)
[42] Farzin, A.A., Pun, Y.-M., Braun, P., Shames, I.: Properties of fixed points of generalised extra gradient methods applied to min-max problems. IEEE Control Systems Letters (2025)
[43] Farzin, A.A., Pun, Y.-M., Braun, P., Shames, I.: On the stability connection between discrete-time algorithms and their resolution odes: Applications to min-max optimisation. arXiv preprint arXiv:2603.01430 (2026)
[44] Sontag, E.D.: Smooth stabilization implies coprime factorization. IEEE Transactions on Automatic Control 34(4), 435–443 (1989)
[45] Sontag, E.D., Wang, Y.: New characterizations of input-to-state stability. IEEE transactions on automatic control 41(9), 1283–1294 (1996)
[46] Jiang, Z.-P., Wang, Y.: Input-to-state stability for discrete-time nonlinear systems. Automatica 37(6), 857–869 (2001)
[47] Kellett, C.M., Braun, P.: Introduction to Nonlinear Control: Stability, Control Design, and Estimation. Princeton University Press, Princeton, NJ (2023)
[48] Farzin, A.A., Braun, P., Shames, I.: From cursed to competitive: Closing the zo-fo gap via input-to-state stability. arXiv preprint arXiv:2604.25372 (2026)
[49] Folland, G.B.: How to integrate a polynomial over a sphere. The American Mathematical Monthly 108(5), 446–448 (2001)
[50] Bajnok, B.: Construction of spherical 4-and 5-designs. Graphs and Combinatorics 7(3), 219–233 (1991)
[51] Gao, K., Sener, O.: Generalizing gaussian smoothing for random search. In: International Conference on Machine Learning, pp. 7077–7101 (2022). PMLR
[52] Johnson, N.L., Kotz, S., Balakrishnan, N.: Continuous Univariate Distributions, Volume 1 vol. 1. John Wiley & Sons, New York (1994)
[53] Isserlis, L.: On a formula for the product-moment coefficient of any order of a normal frequency distribution in any number of variables. Biometrika 12(1/2), 134–139 (1918)