May 29, 2026
Accurate Zeroth-Order (ZO) Hessian estimation is a cornerstone of derivative-free methods, essential for tasks such as bilevel optimization, Bayesian inference, and uncertainty quantification. However, obtaining a complete suite of low-variance estimators for the Hessian and its inverse in high-dimensional settings remains a significant challenge. To address this, we propose a unified framework that reinterprets ZO Hessian approximation through the lens of single-step Policy Optimization (PO). This perspective establishes a theoretical equivalence between general ZO Hessian estimators and the Hessian of a smoothed PO objective, unifying distinct classical randomized estimators as specific instances of baseline selection. Building on this foundation, we introduce ZoVH, a comprehensive suite of variance-reduced estimators for the full Hessian matrix, its regularized inverse, and the bias-corrected inverse Hessian-gradient product. ZoVH leverages two key techniques: (1) a unique optimal baseline derived to provably minimize variance, and (2) a query reuse strategy that incorporates historical function queries to enhance sample efficiency without inflating costs. Our rigorous theoretical analysis confirms the unbiasedness of the Hessian estimator, validates the variance optimality of our baseline, provides error bounds for the entire ZoVH suite, and establishes convergence guarantees for the resulting curvature-aware ZO algorithm. Extensive empirical results validate our theoretical findings, demonstrating that ZoVH achieves superior estimation accuracy and convergence performance in real-world applications. Code is available at https://github.com/Qjbtiger/ZoVH.
Zeroth-Order (ZO) Hessian approximation for black-box objectives \(F({\boldsymbol{\theta}})\triangleq \mathbb{E}_{\xi}[f({\boldsymbol{\theta}};\xi)]\), which are accessible solely through noisy function evaluations, represents a fundamental challenge in derivative-free optimization [@coope2020; @balasubramanian2022; @roy2022; @feng2023]. Estimating accurate curvature information is crucial for various applications, including derivative-free bilevel optimization [@aghasi2025; @lancbio], uncertainty quantification [@kalmikov2014], and curvature-aware fine-tuning of Large Language Models (LLMs) [@hizoo]. While naive finite-difference methods typically necessitate \(\mathcal{O}(d^2)\) function queries [@fabian1971], randomized rank-one estimators can reduce the query complexity to a constant number of evaluations, independent of the dimension \(d\) (e.g., \(4\) queries for 2SPSA [@2-spsa] and \(3\) for RDSA [@rdsa]). We provide a discussion of related work about ZO Hessian approximation in Appx. 8.
Despite its practical significance, ZO Hessian approximation suffers from high variance, particularly in noisy, high-dimensional regimes [@zhu2022; @feng2023]. While a recent study by [@zoar] bridged ZO gradient estimation with single-step Policy Optimization (PO) methods to establish a rigorous theoretical foundation and variance reduction techniques, such connections remain unexplored for ZO Hessian approximation. Moreover, prior studies have primarily focused on estimating the Hessian \(\nabla^2 F({\boldsymbol{\theta}})\) itself. In contrast, the estimation of regularized inverse Hessian \((\nabla^2 F({\boldsymbol{\theta}})+\lambda {\mathbf{I}}_d)^{-1}\) and its product with the gradient \((\nabla^2 F({\boldsymbol{\theta}})+\lambda {\mathbf{I}}_d)^{-1}\nabla F({\boldsymbol{\theta}})\) are essential for curvature-aware zeroth-order optimization [@zhu2022; @hizoo], but have received limited attention.
Our first contribution is to demonstrate a unified framework for ZO Hessian approximation from the PO perspective. Within this framework, ZO Hessian approximation is reinterpreted as the Hessian of a smoothed objective \(\nabla^2 F_{\mu}({\boldsymbol{\theta}})\) under a parameterized sampling policy (Sec. 3.1). Specifically, for Gaussian sampling, this perspective leads to explicit Hessian identities (Props. 1 and 2) incorporating baseline terms. By selecting different baselines, these identities recover classical Hessian estimators from [@balasubramanian2022] as special cases (Sec. 3.2). Furthermore, this framework extends naturally to general sampling distributions via importance sampling (Sec. 3.3).
Building on this foundation, our second contribution is ZoVH, a novel Zeroth-Order Variance-reduced Hessian approximation that minimizes estimator variance through optimal baseline selection and query reuse (Sec. 4). ZoVH constructs a Hessian estimator leveraging two techniques: (a) an averaged baseline that provably minimizes variance among all constant baselines (Thm. 5); and (b) a query reuse strategy that estimates the Hessian from a history buffer of past function queries, increasing the sample size without incurring additional query costs, thereby further reducing variance (Sec. 4.1). To assess the efficacy of ZoVH, we provide a comprehensive theoretical analysis in Sec. 4.2, covering its unbiasedness (Thm. 4) and bias-variance trade-off (Thm. 6). We then present an empirical error analysis in Sec. 6.1, demonstrating that ZoVH achieves significantly lower estimation error compared to classical Hessian estimators across various synthetic functions and neural networks.
Our third contribution lies in the development of a practical framework that extends ZoVH to an efficient curvature-aware Zeroth-Order Optimization (ZOO) algorithm. Specifically, we develop a stable ZO inverse Hessian approximation by incorporating ridge regularization into the ZoVH estimator (Sec. 5.1), and a bias-corrected inverse Hessian-gradient product that mitigates the bias introduced by reusing function queries for both Hessian and gradient estimation (Sec. 5.2). These approximations form the basis of a curvature-aware ZOO algorithm (Alg. 1) that efficiently computes second-order updates using minimal function queries. Theoretically, we prove the convergence guarantee of this approach (Thm. 9), and empirically, we validate its effectiveness on three representative applications (Sec. 6.2), showing substantial improvements over existing ZO methods.
We study ZO approximation of the Hessian \(\nabla^2 F({\boldsymbol{\theta}})\in{\mathbb{R}}^{d\times d}\) for the stochastic objective: \[\label{eq:obj} F({\boldsymbol{\theta}})\triangleq \mathbb{E}_{\xi}\!\left[f({\boldsymbol{\theta}};\xi)\right],\tag{1}\] where \(F\) is accessible only through noisy function evaluations of \(f({\boldsymbol{\theta}};\xi)\), and \(\xi\) represents the inherent stochasticity in the function evaluation. Our goal is to construct a Hessian estimator \(\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})\) using a small number of function queries, thereby avoiding the prohibitive \(\mathcal{O}(d^2)\) complexity of full finite-difference schemes [@fabian1971], while maintaining low estimation variance.
We adopt a unified perspective in which Hessian information is recovered from finite differences of noisy function evaluations along random probing directions. Several classical ZO Hessian estimators [@balasubramanian2022; @zhu2022] can be expressed using a common template. Let \(\{{\mathbf{u}}_k\}_{k=1}^K \stackrel{\text{i.i.d.}}{\sim} {\mathcal{N}}({\boldsymbol{0}},{\mathbf{I}}_d)\) be standard Gaussian probing directions and \(\mu>0\) be a smoothing parameter. The One-Point Stein estimator combines a rank-one term with an identity correction derived from Stein’s identity [@stein1972]: \[\label{eq:hess-est-stein-1} \widehat{{\mathbf{H}}}_{\text{\normalfont S}_1} \triangleq \frac{1}{K}\sum_{k=1}^K \frac{f({\boldsymbol{\theta}}+\mu{\mathbf{u}}_k;\xi)}{\mu^2}\left({\mathbf{u}}_k{\mathbf{u}}_k^\top-{\mathbf{I}}_d\right) \;.\tag{2}\] Following the same principle, the Two-Point Stein estimator replaces the one-point measurement with a one-sided finite difference: \[\label{eq:hess-est-stein-2} \widehat{{\mathbf{H}}}_{\text{\normalfont S}_2} \triangleq \frac{1}{K}\sum_{k=1}^K \frac{f({\boldsymbol{\theta}}+\mu{\mathbf{u}}_k;\xi)-f({\boldsymbol{\theta}};\xi)}{\mu^2}\left({\mathbf{u}}_k{\mathbf{u}}_k^\top-{\mathbf{I}}_d\right) \;,\tag{3}\] and the Three-Point Stein estimator further adopts a symmetric central difference, which typically improves numerical stability: \[\label{eq:hess-est-stein-3} \begin{align} \widehat{{\mathbf{H}}}_{\text{\normalfont S}_3} \triangleq \frac{1}{2K}\sum_{k=1}^K &\frac{f({\boldsymbol{\theta}}_k^{+};\xi)-2f({\boldsymbol{\theta}};\xi)+f({\boldsymbol{\theta}}_k^{-};\xi)}{\mu^2} \\ &\qquad\qquad\qquad \times \left({\mathbf{u}}_k{\mathbf{u}}_k^\top-{\mathbf{I}}_d\right) \;. \end{align}\tag{4}\] where \({\boldsymbol{\theta}}_k^{\pm}\triangleq {\boldsymbol{\theta}}\pm \mu{\mathbf{u}}_k\).
In contrast to the Stein-type estimators, [@balasubramanian2022; @hizoo] consider a randomized Central-Difference (CD) estimator that employs a rank-one weighted average without the identity correction: \[\label{eq:hess-est-cd} \widehat{{\mathbf{H}}}_{\text{\normalfont CD}}({\boldsymbol{\theta}}) \triangleq \frac{1}{2K}\sum_{k=1}^K \frac{f({\boldsymbol{\theta}}_k^{+};\xi)-2f({\boldsymbol{\theta}};\xi)+f({\boldsymbol{\theta}}_k^{-};\xi)}{\mu^2}\, {\mathbf{u}}_k{\mathbf{u}}_k^\top \;.\tag{5}\]
In Sec. 3, we reinterpret these estimators through the lens of PO, demonstrating that they emerge as special cases of our generalized Hessian estimation framework.
In practical ZOO algorithms, Hessian approximation is typically paired with a ZO gradient estimator to enable second-order updates [@zhu2022; @hizoo]. We adopt the Gaussian-smoothed gradient estimator from [@zoar], which approximates \(\nabla F({\boldsymbol{\theta}})\) via finite differences along Gaussian probing directions \(\{{\mathbf{u}}_k\}_{k=1}^K \stackrel{\text{i.i.d.}}{\sim} {\mathcal{N}}({\boldsymbol{0}},{\mathbf{I}}_d)\): \[\label{eq:grad-est} \hat{\nabla} F({\boldsymbol{\theta}}) \triangleq \frac{1}{K-1}\sum_{k=1}^K \frac{f({\boldsymbol{\theta}}+\mu {\mathbf{u}}_k;\xi)- b}{\mu}\,{\mathbf{u}}_k \;,\tag{6}\] where the averaged baseline \(b \triangleq \frac{1}{K}\sum_{k=1}^K f({\boldsymbol{\theta}}+\mu {\mathbf{u}}_k;\xi)\) is used to reduce the estimator variance.
Throughout this paper, we denote \(\require{physics} \mathbb{E}_{\mathbf{u}}[\cdot] \triangleq \mathbb{E}_{{\mathbf{u}}\sim {\mathcal{N}}(0, {\mathbf{I}}_d)} \qty[\cdot]\), and \(\require{physics} \mathbb{E}\qty[\cdot] \triangleq \mathbb{E}_{\xi} \;\mathbb{E}_{\mathbf{u}}\qty[\cdot]\) as the full expectation over both the stochasticity \(\xi\) and the standard Gaussian distribution. Furthermore, for a matrix \({\mathbf{A}}\), we use \(\norm{{\mathbf{A}}}\) and \(\norm{{\mathbf{A}}}_F\) to denote its spectral norm and Frobenius norm.
In this section, we reframe Zeroth-Order (ZO) Hessian approximation through the lens of Policy Optimization (PO). By interpreting the smoothed objective as an expectation over a sampling policy, we derive a unified Hessian estimator that generalizes classical finite-difference methods (Sec. 3.1). This perspective offers a rigorous derivation of existing estimators (Sec. 3.2), extends naturally to importance sampling (Sec. 3.3), and highlights a potential pathway for developing improved approximation schemes.
Following [@zoar], we adopt the smoothed objective function \(F_\mu({\boldsymbol{\theta}})\) defined over a smoothing policy \(\pi_{{\boldsymbol{\theta}}}({\mathbf{x}})\). We reformulate this objective within a single-step policy optimization framework by treating \(\pi_{{\boldsymbol{\theta}}}({\mathbf{x}})\) as a parameterized policy (where \({\mathbf{x}}= {\boldsymbol{\theta}}+ \mu{\mathbf{u}}\)): \[\require{physics} \label{eq:obj-rein} F_\mu({\boldsymbol{\theta}}) = \mathbb{E}_{{\mathbf{x}}\sim \pi_{{\boldsymbol{\theta}}}({\mathbf{x}})}\qty[\mathbb{E}_{\xi}[f({\mathbf{x}}; \xi)]] \;.\tag{7}\]
The Hessian of the PO objective \(F_{\mu}({\boldsymbol{\theta}})\) is derived by differentiating the policy gradient:
Lemma 1 (Hessian of PO objective 7 ). The Hessian of the smoothed objective \(F_{\mu}\) in 7 is given by: \[\nabla^2 F_{\mu}({\boldsymbol{\theta}}) = \mathbb{E}_{{\mathbf{x}}\sim \pi_{{\boldsymbol{\theta}}}({\mathbf{x}})}\left[ {\mathbf{H}}_{\pi_{{\boldsymbol{\theta}}}} \cdot \mathbb{E}_{\xi}[f({\mathbf{x}}; \xi)] \right] \;,\] where \({\mathbf{H}}_{\pi_{{\boldsymbol{\theta}}}} \triangleq \left(\nabla \ln \pi_{{\boldsymbol{\theta}}}({\mathbf{x}})\right)\left(\nabla \ln \pi_{{\boldsymbol{\theta}}}({\mathbf{x}})\right)^{\top} + \nabla^2 \ln \pi_{{\boldsymbol{\theta}}}({\mathbf{x}})\) denotes the Hessian of the policy \(\pi_{{\boldsymbol{\theta}}}\).
Remark. The proof is provided in Appx. 10.2. Lem. 1 yields a Hessian estimator for the PO objective 7 applicable to any differentiable smoothing policy \(\pi_{{\boldsymbol{\theta}}}\). This generality facilitates the derivation of Hessian estimators for diverse smoothing distributions, provided their explicit forms are known.
We now consider the canonical case of Gaussian policy, which yields a general Gaussian smoothed Hessian estimators:
Proposition 1 (Gaussian Smoothed Hessian Estimators). Let the smoothing policy be Gaussian, i.e., \(\pi_{{\boldsymbol{\theta}}}({\mathbf{x}}) = {\mathcal{N}}({\boldsymbol{\theta}}, \mu^2 \rm{\mathbf{I}}_d)\). The Hessian of the smoothed objective \(F_{\mu}\) in 7 reduces to: \[\require{physics} \nabla^2 F_{\mu}({\boldsymbol{\theta}}) = \mathbb{E}_{\mathbf{u}}\left[\frac{\mathbb{E}_{\xi}[f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi)] - b}{\mu^2} \qty({\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d)\right] \;,\] where the constant baseline \(b\) is an arbitrary term independent of the standard Gaussian random direction \({\mathbf{u}}\sim {\mathcal{N}}({\boldsymbol{0}}, {\mathbf{I}}_d)\).
Remark. The proof is provided in Appx. 10.3. Prop. 1 is derived by substituting the Gaussian policy \(\pi_{{\boldsymbol{\theta}}}({\mathbf{x}}) = {\mathcal{N}}({\boldsymbol{\theta}}, \mu^2 {\mathbf{I}}_d)\) into Lem. 1. This derivation does not require explicit invocation of Stein’s identity, as the identity matrix \({\mathbf{I}}_d\) naturally arises from the term \(\nabla^2 \ln \pi_{{\boldsymbol{\theta}}}({\mathbf{x}}) = -\frac{1}{\mu^2}{\mathbf{I}}_d\). Furthermore, since \(\mathbb{E}_{\mathbf{u}}[{\mathbf{u}}{\mathbf{u}}^\top - {\mathbf{I}}_d] = 0\), the choice of baseline \(b\) is flexible and does not introduce bias. In Sec. 3.2, we demonstrate that specific choices of \(b\) recover various classical Stein-type Hessian estimators introduced in Sec. 2.
Since \(\mathbb{E}_{\mathbf{u}}[{\mathbf{u}}{\mathbf{u}}^\top - {\mathbf{I}}_d] = 0\), the identity matrix in Prop. 1 can be effectively eliminated by absorbing it into the expectation via baseline subtraction. This observation leads to the following statistically equivalent Hessian estimator:
Proposition 2 (Rank-One Hessian Estimator). Let the smoothing policy be Gaussian, i.e., \(\pi_{{\boldsymbol{\theta}}}({\mathbf{x}}) = {\mathcal{N}}({\boldsymbol{\theta}}, \mu^2 \rm{\mathbf{I}}_d)\). The Hessian of the smoothed objective \(F_{\mu}\) in 7 reduces to: \[\begin{align} \nabla^2 F_{\mu}({\boldsymbol{\theta}}) &= \mathbb{E}_{\mathbf{u}}\left[ \frac{\mathbb{E}_{\xi}[f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi)] - b}{\mu^2} {\mathbf{u}}{\mathbf{u}}^{\top}\right] \\ \end{align}\] with the averaged baseline: \[\label{eq:baseline-avg} b \triangleq \mathbb{E}_{\mathbf{u}}\left[\mathbb{E}_{\xi}\left[f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}; \xi)\right]\right] \;,\qquad{(1)}\] where \({\mathbf{u}}\triangleq ({\mathbf{x}}- {\boldsymbol{\theta}})/\mu\) is a standard Gaussian random direction.
Remark. The proof is provided in Appx. 10.4. Unlike the baseline in the gradient estimator 6 , which is often manually introduced for gradient variance reduction, the averaged baseline in Prop. 2 emerges naturally from the Hessian derivation. Specifically, the identity term \({\mathbf{I}}_d\) is absorbed into the expectation using the identity \(\mathbb{E}[{\mathbf{u}}{\mathbf{u}}^\top] = {\mathbf{I}}_d\), yielding an estimator structured as an average of rank-one matrices. In contrast to the flexibility of the baseline choice in Prop. 1, the averaged baseline in Prop. 2 is the unique choice that preserves unbiasedness (see Lem. 2).
The choice of the baseline \(b\) in Prop. 1 plays a pivotal role in determining the structure of the Hessian estimator. By selecting distinct baselines such as the zero baseline (\(b = 0\)) or the anchor baseline (\(b = f({\boldsymbol{\theta}}; \xi)\)), we can derive the classical Hessian estimators described in Sec. 2:
Corollary 1 (Recovery of Stein-Type Estimators). The general estimator in Prop. 1 recovers the following classical unbiased ZO Hessian estimators as special cases:
One-Point Stein Estimator: Setting zero baseline \(b = 0\) yields the estimator defined in 2 .
Two-Point Stein Estimator: Setting anchor baseline \(b = f({\boldsymbol{\theta}}; \xi)\) yields the estimator defined in 3 .
Three-Point Stein Estimator: Applying antithetic sampling \(\{{\mathbf{u}}, -{\mathbf{u}}\}\) with the anchor baseline \(b = f({\boldsymbol{\theta}}; \xi)\) yields the estimator defined in 4 .
Remark. Since Prop. 1 holds for any baseline \(b\) independent of \({\mathbf{u}}\), all Stein-type Hessian estimators recovered above are unbiased estimators of \(\nabla^2 F_{\mu}({\boldsymbol{\theta}})\). While the averaged baseline ?? can also be applied within the framework of Prop. 1, the resulting estimator is mathematically equivalent to the formulation in Def. 1 (derived from Prop. 2). We therefore omit a separate derivation here for brevity (see Appx. 11.1 for further discussion).
In contrast to the flexibility of Prop. 1, the estimator in Prop. 2 imposes stricter constraints on the baseline to maintain validity. Specifically, to preserve unbiasedness, the averaged baseline ?? is the unique admissible choice:
Lemma 2 (Uniqueness of Averaged Baseline). For the Hessian estimator in Prop. 2, the averaged baseline in ?? is the unique choice that preserves unbiasedness, i.e., \(\mathbb{E}[\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})] = \nabla^2 F_{\mu}({\boldsymbol{\theta}})\).
Remark. The proof is provided in Appx. 10.5. This result highlights the critical role of the averaged baseline in ensuring the unbiasedness of the estimator in Prop. 2. Furthermore, in Thm. 5, we show that the averaged baseline is also optimal for variance minimization.
It is natural to inquire whether antithetic sampling can be applied to Prop. 2 to construct an unbiased central-difference estimator using the averaged baseline. We find that this is not feasible. Consider one finite sample of the averaged baseline using an antithetic pair \(\{{\mathbf{u}}, -{\mathbf{u}}\}\), given by \(b = \frac{1}{2}(f({\boldsymbol{\theta}}^+; \xi) + f({\boldsymbol{\theta}}^-; \xi))\). Substituting this into the estimator yields a zero coefficient, \(f({\boldsymbol{\theta}}^+; \xi) + f({\boldsymbol{\theta}}^-; \xi) - 2b = 0\), causing the estimator to degenerate.
However, if we relax the requirement for unbiasedness with respect to \(\nabla^2 F_\mu({\boldsymbol{\theta}})\) and instead employ the anchor baseline \(b = f({\boldsymbol{\theta}}; \xi)\) with antithetic sampling, we recover the classical central-difference estimator:
Corollary 2 (Recovery of Randomized Central-Difference Estimator 5 ). By applying antithetic sampling \(\{{\mathbf{u}},-{\mathbf{u}}\}\) with the anchor baseline \(b = f({\boldsymbol{\theta}}; \xi)\), Prop. 2 reduces to the classical central difference Hessian estimator 5 .
While Gaussian smoothing offers analytical tractability, optimal performance in ZOO often relies on the geometry of the smoothing distribution, such as uniform distributions on the sphere for gradient bounding. To extend our framework to arbitrary sampling distributions, we leverage Importance Sampling (IS). This approach facilitates the estimation of the Hessian for a target smoothed objective \(F_{\mu}\) defined by a target distribution \(\pi_{{\boldsymbol{\theta}}}\), while drawing samples from a distinct proposal distribution \(\rho\).
Proposition 3 (General Hessian Estimator via Importance Sampling). Let \(\pi_{{\boldsymbol{\theta}}}= {\mathcal{N}}({\boldsymbol{\theta}}, \mu^2 \rm{\mathbf{I}}_d)\) be the target smoothing distribution, \(\rho\) be a fixed sampling distribution, and \(b\) be the averaged baseline in ?? . Assume \(\text{supp}(\pi_{{\boldsymbol{\theta}}}) \subseteq \text{supp}(\rho)\). The Hessian of the smoothed objective \(F_{\mu}({\boldsymbol{\theta}})\) in 7 can be evaluated by sampling \({\mathbf{u}}\sim \rho\) via: \[\nabla^2 F_{\mu}({\boldsymbol{\theta}}) = \mathbb{E}_{{\mathbf{u}}\sim \rho}\left[ \frac{\mathbb{E}_{\xi}[f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi)] - b}{\mu^2} {\mathbf{u}}{\mathbf{u}}^{\top} \cdot \mathcal{W}_{\pi/\rho}({\mathbf{u}}) \right] \;,\] with the averaged baseline via IS: \[b \triangleq \mathbb{E}_{{\mathbf{u}}\sim \rho}\left[\mathbb{E}_{\xi}\left[f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi)\right] \cdot \mathcal{W}_{\pi/\rho}({\mathbf{u}})\right] \;,\] where the IS ratio \(\mathcal{W}_{\pi/\rho}({\mathbf{u}}) \triangleq \frac{\pi_{{\boldsymbol{\theta}}}({\boldsymbol{\theta}}+ \mu {\mathbf{u}})}{\rho({\mathbf{u}})}\).
Remark. The proof is in Appx. 10.6. This result generalizes Prop. 2 to arbitrary proposal distributions \(\rho\). By incorporating the IS ratio \(\mathcal{W}_{\pi/\rho}({\mathbf{u}})\), we can correct for the discrepancy between the target smoothing distribution \(\pi_{{\boldsymbol{\theta}}}\) and the sampling distribution \(\rho\). This flexibility allows us to select proposal distributions that align better with the problem geometry, potentially improving estimator efficiency and reducing variance.
Building on the foundation in Sec. 3, we introduce ZoVH, a practical framework for variance-reduced ZO Hessian approximation. This method integrates the Averaged Baseline ?? with a Query Reuse mechanism to enhance estimation efficiency (Sec. 4.1). We then provide a theoretical analysis of its bias and variance properties in Sec. 4.2.
While Prop. 2 characterizes the Hessian as an expectation over Gaussian perturbations, a practical implementation necessitates a finite-sample Monte Carlo approximation. Moreover, we incorporate the averaged baseline and query reuse techniques to reduce variance, as detailed below.
As established in Lem. 2 and Thm. 4, the averaged baseline defined in ?? is the unique choice that ensures the Hessian estimator remains unbiased. Consequently, we employ the following estimator, constructed from a finite batch of queries using the averaged baseline:
Definition 1 (Hessian Approximation). We propose a Hessian approximation \(\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})\) to approximate \(\nabla^2 F_\mu({\boldsymbol{\theta}})\) in Prop. 2 by aggregating a set of \(K\) queries \(\{f({\mathbf{x}}_k; \xi)\}_{k=1}^{K}\) with Gaussian perturbations \({\mathbf{x}}_k = {\boldsymbol{\theta}}+ \mu {\mathbf{u}}_k\) and \({\mathbf{u}}_k \sim {\mathcal{N}}({\boldsymbol{0}}, \rm{\mathbf{I}}_d)\) via importance sampling: \[\label{eq:hess-est} \widehat{{\mathbf{H}}}({\boldsymbol{\theta}}) \triangleq \frac{1}{K - 1} \sum_{k=1}^{K}\frac{f({\mathbf{x}}_k; \xi) - \hat{b}}{\mu^2} {\mathbf{u}}_k {\mathbf{u}}_k^{\top} \cdot \mathcal{W}({\mathbf{x}}_k),\tag{8}\] where the baseline is \(\hat{b} \triangleq \frac{1}{K} \sum_{k=1}^K \mathcal{W}({\mathbf{x}}_k) f({\mathbf{x}}_{k}; \xi)\), and the importance sampling ratio is \(\mathcal{W}({\mathbf{x}}_k) \triangleq \frac{\pi_{{\boldsymbol{\theta}}}({\mathbf{x}}_k)}{\rho({\mathbf{u}}_k)}\).
Remark. The normalization factor \(\frac{1}{K-1}\) applies a bias correction to account for the use of the sample mean \(\hat{b}\) (see Thm. 4). Additionally, self-normalized importance sampling is utilized to enhance numerical stability and robustness. In Thm. 5, we further demonstrate that the averaged baseline is optimal for variance minimization under common sampling distributions.
Adopting the strategy from [@zoar], the query reuse technique significantly reduces estimator variance by aggregating historical queries from recent optimization steps. Specifically, we maintain a history buffer \(\mathcal{H}_t\) that stores the most recent \(N \times K\) queries, comprising the random directions \(\{{\mathbf{u}}_{t - i, k}\}_{i, k=1}^{N, K}\) and their corresponding function values \(\{y_{t - i, k} \triangleq f({\boldsymbol{\theta}}_{t - i} + \mu {\mathbf{u}}_{t - i, k}; \xi_{t - i})\}_{i, k=1}^{N, K}\). Notably, the memory overhead introduced by this mechanism is negligible in practice, as the history buffer requires storing only scalar function values and random seeds, rather than high-dimensional random vectors (see Appx. 12.1).
By integrating the averaged baseline with query reuse technique, we define the complete ZoVH estimator as follows:
Definition 2 (ZoVH (Zeroth-Order Variance-Reduced Hessian Estimator)). At iteration \(t\), given the history buffer \(\mathcal{H}_t\) containing the most recent \(N \times K\) queries, the Hessian approximation is defined as: \[\label{eq:hess-est-zoar} \widehat{{\mathbf{H}}}\triangleq \frac{1}{N K - 1} \sum_{i, k=1}^{N, K}\frac{y_{t - i, k} - \hat{b}_t}{\mu^2} {\mathbf{u}}_{t - i, k} {\mathbf{u}}_{t - i, k}^{\top} \;,\tag{9}\] where the averaged baseline is \(\hat{b}_t \triangleq \frac{1}{N K} \sum_{i, k=1}^{N, K} y_{t - i, k}\).
Remark. From the perspective of policy optimization in reinforcement learning, reusing past queries can be interpreted as a form of off-policy learning, where historical data is leveraged to refine current estimates. This perspective aligns with the importance sampling framework established in Prop. 3, wherein the proposal distribution \(\rho\) corresponds to the off-policy distribution induced by historical perturbations, distinct from the target distribution \(\pi_{{\boldsymbol{\theta}}}\) (which remains a Gaussian distribution centered at the current parameter \({\boldsymbol{\theta}}\)). Consequently, Def. 2 can be viewed as a special case of Def. 1, where the importance sampling ratio \(\mathcal{W}({\mathbf{x}})\) is implicitly integrated into the historical queries.
To facilitate the theoretical analysis, we focus on the simplified setting of \(N = 1\) (i.e., without query reuse) in Def. 2. This choice is motivated by the observation that in local optimization, parameters typically exhibit slow evolution over short time horizons. Consequently, the proposal distribution \(\rho\) closely approximates the target distribution \(\pi_{{\boldsymbol{\theta}}}\), implying that the importance sampling ratio \(\mathcal{W}({\mathbf{x}}) \approx 1\) and that historical queries are approximately drawn from the target (on-policy) distribution. We also provide a theoretical analysis for the general case of \(N > 1\) in Appx. 9, which follows analogous reasoning.
We first adopt the following standard assumptions regarding the objective function \(f({\boldsymbol{\theta}}; \xi)\):
Assumption 1 (Lipschitz Continuity). \(\forall {\boldsymbol{\theta}}, {\boldsymbol{\theta}}' \in \mathbb{R}^d\), \[\begin{align} |f({\boldsymbol{\theta}}; \xi) - f({\boldsymbol{\theta}}'; \xi)| \le& L_0 \norm{{\boldsymbol{\theta}}- {\boldsymbol{\theta}}'} \\ \norm{\nabla f({\boldsymbol{\theta}}; \xi) - \nabla f({\boldsymbol{\theta}}'; \xi)} \le& L_1 \norm{{\boldsymbol{\theta}}- {\boldsymbol{\theta}}'} \\ \norm{\nabla^2 f({\boldsymbol{\theta}}; \xi) - \nabla^2 f({\boldsymbol{\theta}}'; \xi)}_F \le & L_2 \norm{{\boldsymbol{\theta}}- {\boldsymbol{\theta}}'} \;. \end{align}\]
Assumption 2 (Bounded Variance). \(\forall {\boldsymbol{\theta}}\in \mathbb{R}^d\) \[\require{physics} \begin{align} \mathbb{E}_\xi \qty[|f({\boldsymbol{\theta}}; \xi) - F({\boldsymbol{\theta}})|^2] \le& \sigma_\xi^2 \end{align}\]
We then restate the gradient and Hessian of the Gaussian smoothed objective 7 to support our subsequent analysis:
Lemma 3 (Smoothed Gradient and Hessian). For a smoothing parameter \(\mu > 0\), the gradient and Hessian of the smoothed objective \(F_{\mu}({\boldsymbol{\theta}})\) with Gaussian smoothing distribution \({\mathcal{N}}({\boldsymbol{0}}, {\mathbf{I}}_d)\) satisfy: \[\require{physics} \label{eq:grad95hess95smoothed} \begin{align} \nabla F_{\mu}({\boldsymbol{\theta}}) &= \frac{1}{\mu} \mathbb{E}_{{\mathbf{u}}\sim {\mathcal{N}}({\boldsymbol{0}}, {\mathbf{I}}_d)}\qty[F({\boldsymbol{\theta}}+ \mu{\mathbf{u}}) {\mathbf{u}}] \\ \nabla^2 F_{\mu}({\boldsymbol{\theta}}) &= \frac{1}{\mu^2} \mathbb{E}_{{\mathbf{u}}\sim {\mathcal{N}}({\boldsymbol{0}}, {\mathbf{I}}_d)}\qty[({\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d) F({\boldsymbol{\theta}}+ \mu{\mathbf{u}})]. \end{align}\tag{10}\]
Based on Lem. 3, we prove the unbiasedness of the Hessian estimator 8 :
Theorem 4 (Bias of Hessian Estimator). The Hessian estimator \(\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})\) in 8 is an unbiased estimator of the Hessian of the smoothed objective 10 : \[\mathbb{E}[\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})] = \nabla^2 F_{\mu}({\boldsymbol{\theta}}) \;.\]
Remark. The proof is provided in Appx. 10.8. Thm. 4 extends Lem. 2 by demonstrating the unbiasedness of the proposed Hessian estimator 8 with respect to \(\nabla^2 F_{\mu}({\boldsymbol{\theta}})\) when employing the averaged baseline. Notably, the bias relative to the true Hessian \(\nabla^2 F({\boldsymbol{\theta}})\) persists, stemming from the inherent discrepancy between \(\nabla^2 F_{\mu}({\boldsymbol{\theta}})\) and \(\nabla^2 F({\boldsymbol{\theta}})\) (see Thm. 6 and Appx. 11.2).
Theorem 5 (Optimal Baseline). The optimal baseline \(b^*\) that minimizes the variance of the Hessian estimator \(\require{physics} \mathrm{Var}\qty(\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})) \triangleq \mathbb{E}\qty[\norm{\widehat{{\mathbf{H}}}({\boldsymbol{\theta}}) - \nabla^2 F_{\mu}({\boldsymbol{\theta}})}_F^2]\) is: \[\require{physics} \label{eq:opt-baseline} b^* = \frac{\mathbb{E}_{{\mathbf{u}}}\qty[F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) \norm{\qty({\mathbf{u}}_k{\mathbf{u}}_k^{\top} - {\mathbf{I}}_d)}_F^2]}{\mathbb{E}_{{\mathbf{u}}}\qty[\norm{\qty({\mathbf{u}}_k{\mathbf{u}}_k^{\top} - {\mathbf{I}}_d)}_F^2]} \;.\tag{11}\] In particular, when \({\mathbf{u}}\sim {\mathcal{N}}(0, {\mathbf{I}}_d)\) as \(d \to \infty\), such that \(\require{physics} \norm{\qty({\mathbf{u}}_k{\mathbf{u}}_k^{\top} - {\mathbf{I}}_d)}_F^2\) is effectively constant, the optimal baseline reduces to: \[\require{physics} b^* = \mathbb{E}_{{\mathbf{u}}}\qty[F({\boldsymbol{\theta}}+ \mu {\mathbf{u}})] = F_{\mu}({\boldsymbol{\theta}}) \;.\]
Remark. The proof is provided in Appx. 10.9. Thm. 5 provides theoretical justification for using the averaged baseline in our Hessian estimator. It presents the explicit form of the optimal baseline that minimizes estimator variance without making assumptions about the distribution of random directions. If the random directions are sampled from standard Gaussian distribution, \(\require{physics} \norm{\qty({\mathbf{u}}_k{\mathbf{u}}_k^{\top} - {\mathbf{I}}_d)}_F^2\) concentrates around the constant \(d(d+1)\) for large dimensions \(d\). Thus, the averaged baseline remains a robust approximation of the optimal baseline. Besides, the optimal baseline is also related to control-variate view (detailed in Appx. 11.3).
Theorem 6 (Bias-Variance Decomposition of Hessian Estimator). Under Assump. 1 and 2, with the optimal baseline \(b = F_{\mu}({\boldsymbol{\theta}})\) (as in Thm. 5) and \({\mathbf{u}}\sim \mathcal{N}(\boldsymbol{0}, {\mathbf{I}}_d)\), the expected Frobenius norm error of the Hessian estimator \(\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})\) with respect to the true Hessian \(\nabla^2 F({\boldsymbol{\theta}})\) is bounded by: \[\require{physics} \mathbb{E}\qty[\norm{\widehat{{\mathbf{H}}}({\boldsymbol{\theta}}) - \nabla^2 F({\boldsymbol{\theta}})}_F^2] \le \underbrace{\frac{K d (d + 2) V}{(K - 1)^2 \mu^4}}_{\text{Variance}} + \underbrace{L_2^2 \mu^2 d}_{\text{Squared Bias}} \;,\] where \(V \triangleq \sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 2)\).
Remark. The proof is provided in Appx. 10.10. Thm. 6 characterizes the bias-variance trade-off of the Hessian estimator. The variance term captures stochastic fluctuations \(\sigma_\xi^2\) and the Gaussian smoothing effect (the second term in \(V\)), while the squared bias term quantifies the discrepancy between the smoothed and true Hessians. Notably, the variance decreases with a larger smoothing radius \(\mu\) and increased random directions \(K\), whereas the bias increases with \(\mu\). Consequently, selecting an appropriate smoothing radius \(\mu\) is critical for minimizing the overall error.
Although the Hessian estimator in Def. 1 is valuable, practical curvature-aware ZO algorithms typically require the inverse Hessian or its product with the gradient. In this section, we extend ZoVH to derive efficient approximations for both the inverse Hessian (Sec. 5.1) and the inverse Hessian-gradient product (Sec. 5.2) by leveraging the structure of our estimator.
To simplify notation, we omit the explicit dependence on the iteration \(t\) throughout this section. Furthermore, when query reuse is employed, \(K\) denotes the total number of queries, encompassing both current and historical samples.
By utilizing the Woodbury matrix identity [@woodbury-matrix-identity], we can efficiently compute the inverse of the Hessian estimator in Def. 1 without explicitly inverting a dense matrix:
Definition 3 (Inverse Hessian Approximation). Let \(\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})\) be the Hessian estimator and \(\hat{b}\) be the averaged baseline ?? . Define the scalar \(\nu_k \triangleq \mathcal{W}({\mathbf{x}}_k)\left(\frac{f({\mathbf{x}}_k;\xi)-\hat{b}}{\mu^2}\right)\), the matrix \({\mathbf{U}}\triangleq[{\mathbf{u}}_{1},\dots,{\mathbf{u}}_{K}]\), and \({\mathbf{D}}\triangleq\mathrm{diag}\left(\frac{\nu_1}{K-1},\dots,\frac{\nu_K}{K-1}\right)\). Then for any regularization parameter \(\lambda>0\), the exact inverse of the regularized Hessian estimator is: \[\label{eq:inv-hess-exact} \left(\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})+\lambda {\mathbf{I}}_d\right)^{-1} = \frac{1}{\lambda}{\mathbf{I}}_d-\frac{1}{\lambda^2}\, {\mathbf{U}}\Big({\mathbf{D}}^{-1}+\frac{1}{\lambda}{\mathbf{U}}^\top {\mathbf{U}}\Big)^{-1}{\mathbf{U}}^\top \;.\tag{12}\] Further approximating \({\mathbf{U}}^\top {\mathbf{U}}\) by \(\mathrm{diag}({\mathbf{U}}^\top {\mathbf{U}})\) yields the approximation of \(\left(\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})+\lambda {\mathbf{I}}_d\right)^{-1}\) as below: \[\label{eq:inv-hess-approx} \widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) \triangleq \frac{1}{\lambda}{\mathbf{I}}_d - \sum_{k=1}^{K}\frac{\nu_k}{\lambda^2(K-1)+\lambda\,\nu_k\norm{{\mathbf{u}}_k}^2}\,{\mathbf{u}}_k {\mathbf{u}}_k^\top \;.\tag{13}\] Note that this approximation becomes exact if the random directions \(\{{\mathbf{u}}_k\}_{k=1}^K\) are pairwise orthogonal.
Remark. The detailed derivation is provided in Appx. 10.11. Since \(\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})\) is rank-\(K\) (where \(K \ll d\)), the regularization term \(\lambda {\mathbf{I}}_d\) is essential for invertibility. Strict equality in 13 holds when the random directions are pairwise orthogonal. This condition is naturally satisfied by uniform spherical or coordinate-basis sampling and is approximately satisfied by standard Gaussian sampling when the dimension \(d\) is large. In Appx. 11.4, we further quantify the gap between the exact inverse 12 and the approximation 13 under standard Gaussian sampling, showing that the theoretical approximation error is \(\mathcal{O}_p(K/\sqrt d)\) and empirically decays as \(d^{-1/2}\) for fixed small \(K\).
We then analyze the error of the inverse Hessian approximation \(\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}})\) defined in 13 with respect to the inverse of the true Hessian \(\nabla^2 F({\boldsymbol{\theta}})\):
Theorem 7 (Bias of Inverse Hessian Estimator). Assume that there exists a positive constant \(\rho \in (0, 1]\) such that \(|\nu_k \norm{{\mathbf{u}}_{k}}^2 / \lambda(K-1) + 1| \ge \rho\) for all \(k \in [K]\). Under Assump. 1 and the orthogonality of random directions \(\{{\mathbf{u}}_k\}_{k=1}^K\), the bias of the inverse Hessian approximation in 13 with respect to the inverse of the true Hessian is bounded by: \[\require{physics} \begin{align} &\mathbb{E}\qty[\norm{\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) - \qty(\nabla^2 F({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1}}^2_F] \\ \le& \frac{d}{\lambda^2 \rho^2 \qty(\sigma_{\min} + \lambda)^2} \qty(\frac{K d (d + 2) V}{(K - 1)^2 \mu^4} + L_2^2 \mu^2 d) \;, \end{align}\] where \(\sigma_{\min}\) denotes the minimum eigenvalue of the true Hessian \(\nabla^2 F({\boldsymbol{\theta}})\).
Remark. The proof is provided in Appx. 10.13. Thm. 7 bounds the approximation error, showing it depends on the Hessian estimation error (Thm. 6) scaled by three factors: (1) The regularization parameter \(\lambda\), ensuring the invertibility and stability. A larger \(\lambda\) reduces the bound but may over-smooth curvature, necessitating a balanced choice. (2) The minimum eigenvalue \(\sigma_{\min}\) of the true Hessian. A larger \(\sigma_{\min}\) leads to a smaller error bound. (3) The constant \(\rho\), ensuring non-singularity in the Woodbury update. In high dimensions where \(\mathbb{E}[\norm{{\mathbf{u}}}^2] \approx d\), the term \(|\nu_k \norm{{\mathbf{u}}_{k}}^2 / \lambda(K-1) + 1|\) is typically sufficient to guarantee a reasonable \(\rho\).
Combining the ZO gradient estimator 6 with the inverse Hessian approximation 13 , we compute the product \(\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) \hat{\nabla} F({\boldsymbol{\theta}})\). We consider two sampling strategies based on whether the gradient and Hessian estimators share the same set of random directions:
When the Hessian and gradient estimators use independent sets of random directions, they are statistically uncorrelated, allowing direct multiplication of gradient estimator 6 and Hessian estimator 13 . However, this doubles the query complexity to \(2 K\) evaluations per iteration, which may be impractical.
Using the same directions \(\{{\mathbf{u}}_{k}\}_{k = 1}^{K}\) for both estimators reduces the cost to \(K\) evaluations but introduces correlation bias. To mitigate this while maintaining efficiency, we propose a bias-corrected estimator:
Remark. The derivation is given in Appx. 10.12. We use a leave-one-out strategy to remove self-interaction terms \(\nu_k {\mathbf{u}}_k\), significantly reducing bias. Defining the global weighted sum \({\mathbf{s}}\triangleq \sum_{j=1}^{K}\nu_j {\mathbf{u}}_j\), the interaction term can be efficiently computed as \({\mathbf{u}}_k^\top (\sum_{j \neq k}\nu_j{\mathbf{u}}_j) = {\mathbf{u}}_k^\top {\mathbf{s}}- \nu_k \norm{{\mathbf{u}}_k}^2\). This allows computation in \(\mathcal{O}(K d)\) time, avoiding the \(\mathcal{O}(K^2 d)\) cost of pairwise operations. Additionally, since the directions are reused, no extra function evaluations are needed.
Def. 4 provides an efficient framework for curvature-aware zeroth-order optimization with minimal query overhead, as outlined in Alg. 1. This approach offers several advantages: (a) it preserves efficiency by sharing query directions for both gradient and Hessian estimation, requiring only \(K\) function evaluations per iteration, and is identical to the cost of [@zhu2022; @hizoo]; (b) it benefits from variance reduction via an averaged baseline, and can be further enhanced by integrating a query reuse mechanism, as detailed in Appx. 11.5; and (c) it is easy to implement, requiring only a straightforward modification to standard ZO optimizers to incorporate the product approximation in Def. 4.
We then analyze the error of the inverse Hessian-gradient product approximation \(\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}})\hat{\nabla} F({\boldsymbol{\theta}})\) from 14 relative to the true product \(\require{physics} \qty(\nabla^2 F({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1} \nabla F({\boldsymbol{\theta}})\):
Theorem 8 (Bias of Inverse Hessian-Gradient Product Estimator (Informal)). Assume \(f({\boldsymbol{\theta}}; \xi)\) is bounded. Under Assump. 1 and 2, and assuming orthogonality of \(\{{\mathbf{u}}_k\}_{k=1}^K\), the bias of the estimator 14 is bounded by: \[\require{physics} \begin{align} &\mathbb{E}\qty[\norm{\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}})\hat{\nabla} F({\boldsymbol{\theta}}) - \qty(\nabla^2 F({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1} \nabla F({\boldsymbol{\theta}})}^2] \\ \le& \frac{K d^2 \qty(B_1 \sigma_\xi^2 + 4 B_2 L_0^2 \mu^2)}{\lambda^2 \qty(\sigma_{\min} + \lambda)^2 (K - 1)^2} \;, \end{align}\] where \(B_1\), \(B_2\) are some constants, and \(\sigma_{\min}\) denotes the minimum eigenvalue of the true Hessian \(\nabla^2 F({\boldsymbol{\theta}})\).
Remark. The formal statement is provided in Thm. 11 and proof are available in Appx. 10.14. Thm. 8 shows that the error bound of the inverse Hessian-gradient product approximation shares the same structure as that of the inverse Hessian approximation in Thm. 7, differing only by constant factors \(B_1\) and \(B_2\), since the biased-corrected multiplication in 14 mitigates the correlation-induced bias.
We provide an convergence guarantee for Alg. 1 below:
Theorem 9 (Convergence of Alg. 1 (Informal)). Under Assump. 1 and 2, employing the optimal baseline \(b_t\) from Thm. 5, with \(\eta \sim \mathcal{O}(\epsilon^2)\) and \(T \sim \mathcal{O}(\epsilon^{-4})\), we have: \[\require{physics} \frac{1}{T} \sum_{t=0}^{T-1} \mathbb{E}\qty[\norm{\nabla F({\boldsymbol{\theta}}_t)}] \le \epsilon + \frac{\mu L_1 d}{2} \;.\]
Remark. The formal statement is provided in Thm. 12 and detailed proof are available in Appx. 10.15. Thm. 9 establishes the convergence of ZoVH to a stationary point, up to a bias term induced by the Gaussian smoothing. By appropriately tuning the learning rate \(\eta\), iteration count \(T\), and smoothing parameter \(\mu\), the algorithm can achieve convergence to an \(\epsilon\)-stationary point.
We evaluate the performance of ZoVH through empirical Hessian error analysis on synthetic functions and a neural network (Sec. 6.1), convergence benchmarks on synthetic optimization (Sec. 6.2) and black-box adversarial attack (Sec. 6.3). Additional experiments on curvature-aware zeroth-order LLM fine-tuning and ablation study of the averaged baseline and query reuse techniques are detailed in Appx. 12.
We first compare the empirical Frobenius norm error of various Hessian estimators against the ground-truth Hessian. We assess the two-point 3 and three-point 4 Stein Estimators, the randomized central-difference estimator 5 , and ZoVH (both with and without query reuse technique). The one-point Stein estimator 2 is excluded due to its significantly higher error than other methods.
We employ three synthetic benchmarks: Quadratic, Rosenbrock, and Styblinski-Tang functions. For each, we initialize \({\boldsymbol{\theta}}_0 \in \mathbb{R}^d\) (\(d = 5000\)) and perform gradient descent steps, collecting \(25\) test points along the trajectory (detailed in Appx. 13.1). Fig. 3 demonstrates that ZoVH with \(N = 6\) (utilizing query reuse) consistently yields the lowest estimation error. Even ZoVH with \(N=1\) (without query reuse), outperforms all baselines, achieving an \(8 \times\) accuracy improvement over the central-difference estimator 5 on Quadratic and Rosenbrock functions, and \(3.4 \times\) on Styblinski-Tang. The reduced error bars for ZoVH with \(N=6\) further confirm the variance reduction efficacy of query reuse.
We extend our evaluation to a Convolutional Neural Network (CNN) trained on MNIST [@mnist]. The network comprises two convolutional and two fully connected layers. We collect \(1875\) test points along a complete SGD training trajectory (detailed in Appx. 13.1). The results in Fig. 4 reveals that ZoVH with \(N = 4\) (utilizing query reuse) consistently achieves the lowest estimation error across all layers. Notably, for the second fully connected layer ( Fc2.weight), ZoVH with \(N=4\) achieves a \(9 \times\) error reduction compared to the central-difference estimator.
We then evaluate the convergence of ZoVH against Vanilla ZOO [@nesterov2017], HiZOO [@hizoo], and ZoAR [@zoar] on four synthetic functions: Quadratic, Levy, Rosenbrock, and Ackley (detailed in Appx. 13.2). As shown in Fig. 2, ZoVH with \(N=4\) (utilizing query reuse) significantly outperforms baselines in both convergence speed and final accuracy. Notably, ZoVH achieves an average speedup of \(22\times\) over Vanilla ZOO, underscoring its efficiency in high-dimensional ZOO.
We further evaluate the performance of ZoVH in the domain of black-box adversarial attacks, a prominent application of zeroth-order optimization [@zhu2022; @zord]. In this scenario, the objective is to identify an optimal perturbation \(\delta\) for a given input image \(x\) such that a target black-box model misclassifies \(x + \delta\). The attack is performed using a convolutional neural network (CNN) trained on the MNIST dataset [@mnist]. The compared methods are the same as synthetic experiments in Sec. 6.2 (detailed in Appx. 13.3). To evaluate the efficiency of the algorithms, we measure the minimum number of iterations to achieve a successful attack. The results in Tab. 1 show that ZoVH with \(N = 4\) (utilizing query reuse) consistently requires fewer iterations compared to other baseline methods, indicating its superior efficiency in generating adversarial examples. Specifically, ZoVH with \(N = 1\) (w/o query reuse) achieves a \(3 \times\) speedup over Vanilla ZOO, while ZoVH with \(N = 4\) (utilizing query reuse) further achieves a \(4 \times\) speedup.
| Method | # Iters | Speedup |
|---|---|---|
| Vanilla ZOO | 1629 \(\pm\) 610 | 1.00\(\times\) |
| HiZOO | 1045 \(\pm\) 305 | 1.56\(\times\) |
| ZoAR (\(N = 4\)) | 538 \(\pm\) 113 | 3.03\(\times\) |
| ZoVH (\(N = 1\)) | 536 \(\pm\) 133 | 3.04\(\times\) |
| (\(N = 4\)) | \(\pm\) 76 | \(\times\) |
We introduced a unified framework connecting zeroth-order Hessian approximation with single-step policy optimization to derive ZoVH, a variance-reduced Hessian estimator. Leveraging an optimal baseline and query reuse, ZoVH minimizes estimation error efficiently without increasing the query budget. We further developed stable inverse Hessian approximations for a practical curvature-aware zeroth-order algorithm with proven convergence guarantees. Experiments across synthetic benchmarks, adversarial attacks, and LLM fine-tuning confirm that ZoVH achieves superior convergence speed and accuracy, providing a robust foundation for curvature-aware derivative-free optimization.
This paper presents a novel perspective on zeroth-order Hessian approximation framed through single-step policy optimization. Our findings contribute to the theoretical foundations of derivative-free optimization and have the potential to enhance the efficiency of algorithms used in black-box optimization settings. We do not anticipate any specific negative ethical implications or adverse societal impacts resulting from this work.
This work was supported in part by the Youth S&T Talent Support Programme of Guangdong Provincial Association for Science and Technology (Grant No. SKXRC2025466).
Early efforts on derivative-free Hessian approximation date back to coordinate-wise perturbation schemes that form second-order updates by probing each coordinate direction, which typically requires on the order of \(\mathcal{O}(d^2)\) function evaluations per iteration for an \(d\)-dimensional problem [@fabian1971]. To reduce this query cost, subsequent work moved from coordinate perturbations to random perturbations for curvature estimation. A representative milestone is Spall’s second-order SPSA (2SPSA, [@2-spsa]), which estimates the Hessian using only four function evaluations per update, independent of the dimension, yielding a substantial improvement over earlier \(\mathcal{O}(d^2)\) query constructions. In a similar spirit, randomized finite difference methods were developed for estimating Hessian. One notable line of work is Random Directions Stochastic Approximation (RDSA, [@rdsa]), which employs central sampling to construct Hessian estimates with uniform or asymmetrical Bernoulli distributed directions. Furthermore, [@balasubramanian2022] extended the central sampling approach to Gaussian perturbations, deriving a family of unbiased ZO Hessian estimators via Stein’s identity. On the application side, ZO Hessian approximations have been leveraged to improve query efficiency and optimization performance in black-box adversarial attacks [@zoha] and in curvature-aware ZO fine-tuning of large language models [@hizoo].
Zeroth-Order Optimization (ZOO) aims to minimize black-box objectives using only function evaluations, and has been extensively studied due to its broad applicability when derivatives are unavailable. A classical line of work constructs ZO gradient estimators via randomized smoothing and finite differences, including Gaussian smoothing [@nesterov2017], uniform sampling on the unit sphere [@flaxman2004], and coordinate-wise perturbations [@ascd]. While these estimators are simple and widely used, they typically suffer from high variance in noisy and high-dimensional regimes, leading to slow convergence and substantial query complexity. To mitigate this issue, recent studies develop variance-reduced ZO methods by leveraging past queries to reduce the variance of ZO gradient estimates [@zord; @relizo; @zoar]. Another complementary direction proposes new optimization paradigms that are variance-efficient by design, thereby improving ZO optimization convergence rate and final performance [@radazo]. Our work is most closely related to variance reduction in ZOO, but differs in that we focus on the approximation of second-order information, i.e., the Hessian matrix.
We now extend the theoretical analysis to the query-reuse setting with \(N>1\). In this case, the estimator uses a history buffer of \(N K\) function queries rather than only the \(K\) queries from the current iteration. This larger sample size reduces the variance of the Hessian estimator, while the use of historical queries introduces an additional error because those queries were generated around previous iterates. The analysis below makes this bias-variance trade-off explicit. We first state the resulting Hessian estimation bound (Thm. 10) and then explain how the same bound affects the inverse Hessian approximation, the inverse Hessian-gradient product, and the convergence guarantee.
Theorem 10 (Bias-Variance Decomposition for \(N>1\)). Under Assump. 1 and 2, with the optimal baseline \(b = F_\mu({\boldsymbol{\theta}})\) and \({\mathbf{u}}\sim {\mathcal{N}}({\boldsymbol{0}},{\mathbf{I}}_d)\). Let \(N>1\), the expected Frobenius norm error of the query-reuse Hessian estimator \(\widehat{{\mathbf{H}}}_t({\boldsymbol{\theta}}_t)\) at iteration \(t\) defined in Def. 2 is bounded by: \[\require{physics} \mathbb{E}\qty[\norm{\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})-\nabla^2F({\boldsymbol{\theta}})}_F^2]\leq\frac{N K d (d + 2) \lambda^2 V}{\lambda^2 (N K - 1)^2 \mu^4 - L_0^2 \eta^2 \mu^2 K (N^2 - 1) d (d + 2) / 3}+L_2^2\mu^2d \;,\] where \(V \triangleq \sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 2)\).
Remark. The proof is provided in Appx. 10.16. Thm. 10 extends the bias-variance decomposition in Thm. 6 to the \(N>1\) (query reuse) setting. Compared with the \(N=1\) case, reusing queries across \(N\) iterations increases the effective sample size from \(K\) to \(N K\), reducing the leading variance term through the factor \((N K - 1)^2\). This gain is offset by the additional drift term \(L_0^2 \eta^2 \mu^2 K (N^2 - 1) d(d + 2) / 3\) in the denominator, which captures the error induced by reusing historical queries generated at previous iterates. When \(N = 1\), this drift term vanishes and the bound recovers Thm. 6. Therefore, for a small learning rate \(\eta\) and a moderate history length \(N\), query reuse can reduce the Hessian estimation error and improve the constants in the convergence bound of Thm. 9, while an overly large \(N\) or rapid parameter updates may offset the variance reduction.
The same resolvent-identity argument used in Appx. 10.13 gives the corresponding inverse Hessian bound. Let the \(N>1\) Hessian estimation error bound be \[\mathcal{E}_{H,N} \triangleq \frac{N K d (d + 2) \lambda^2 V}{\lambda^2 (N K - 1)^2 \mu^4 - L_0^2 \eta^2 \mu^2 K (N^2 - 1) d (d + 2) / 3} + L_2^2 \mu^2 d .\] With this notation, the inverse Hessian approximation satisfies \[\require{physics} \mathbb{E}\qty[\norm{\widetilde{{\mathbf{H}}}_{N}^{-1}({\boldsymbol{\theta}}) - \qty(\nabla^2 F({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1}}^2_F] \le \frac{d}{\lambda^2 \rho^2 \qty(\sigma_{\min} + \lambda)^2} \mathcal{E}_{H,N} \;.\] Relative to Thm. 7, query reuse mainly replaces the \(K\)-sample Hessian error by the \(N K\)-sample error in \(\mathcal{E}_{H,N}\). The regularization factor \(\lambda\), the non-singularity constant \(\rho\), and the spectral factor \(\sigma_{\min}+\lambda\) play the same stability roles as in the \(N=1\) analysis. When the history buffer is moderate and the iterate drift is small, \(\mathcal{E}_{H,N}\) can be smaller than the \(N=1\) counterpart. If \(N\) or \(\eta\) is too large, the drift term in the denominator may offset this benefit.
The same reasoning applies to the bias-corrected inverse Hessian-gradient product in Def. 5. The leave-one-out correction is computed over the whole history buffer, so each current or historical query \((i,k)\) excludes all other pairs \((j,k')\neq(i,k)\) rather than only the other directions in the current iteration. Query reuse therefore increases the effective sample size in both the Hessian estimate and the shared inverse-Hessian-gradient product. Historical samples are still generated around previous iterates, so rapid parameter changes or an overly large buffer can make the reused samples stale. This is the same off-policy drift captured in Thm. 10. Query reuse can improve the estimator when \(N\) and \(\eta\) are moderate, but the benefit can be offset if the history distribution moves too far from the current target distribution.
This extension also clarifies the convergence guarantee in Thm. 9. The convergence bound depends on the estimation error of the inverse Hessian-gradient product, which is in turn controlled by the quality of the Hessian estimator and the variance bound in Thm. 10. Improving the Hessian estimate through the optimal baseline and query reuse therefore improves the constants in the convergence bound. The resulting iteration complexity remains the standard \({\mathcal{O}}(\epsilon^{-4})\) zeroth-order rate when \(N\) and \(K\) are fixed. The theoretical role of query reuse is to explain the practical speedup through better estimator quality and smaller constants, rather than through a different asymptotic order.
Lemma 4 (Lipschitz Continuity for Objective). \(\forall {\boldsymbol{\theta}}_1, {\boldsymbol{\theta}}_2 \in {\mathbb{R}}^d\), the objective 1 satisfies: \[\begin{align} |F({\boldsymbol{\theta}}_1) - F({\boldsymbol{\theta}}_2)| \leq& L_0 \norm{{\boldsymbol{\theta}}_1 - {\boldsymbol{\theta}}_2} \;, \\ \norm{\nabla F({\boldsymbol{\theta}}_1) - \nabla F({\boldsymbol{\theta}}_2)} \leq& L_1 \norm{{\boldsymbol{\theta}}_1 - {\boldsymbol{\theta}}_2} \;, \\ \norm{\nabla^2 F({\boldsymbol{\theta}}_1) - \nabla^2 F({\boldsymbol{\theta}}_2)} \leq& L_2 \norm{{\boldsymbol{\theta}}_1 - {\boldsymbol{\theta}}_2} \;. \end{align}\]
Proof. Since \(F({\boldsymbol{\theta}}) = \mathbb{E}_{\xi}[f({\boldsymbol{\theta}}; \xi)]\), the Lipschitz continuity of \(F({\boldsymbol{\theta}})\) follows: \[|F({\boldsymbol{\theta}}_1) - F({\boldsymbol{\theta}}_2)| = |\mathbb{E}_{\xi}[f({\boldsymbol{\theta}}_1; \xi) - f({\boldsymbol{\theta}}_2; \xi)]| \overset{(a)}{\leq} \mathbb{E}_{\xi}[|f({\boldsymbol{\theta}}_1; \xi) - f({\boldsymbol{\theta}}_2; \xi)|] \overset{(b)}{\leq} L_0 \norm{{\boldsymbol{\theta}}_1 - {\boldsymbol{\theta}}_2} \;,\] where \((a)\) follows from Jensen’s inequality, and \((b)\) comes from Lem. 4.
The Lipschitz continuity for the gradient and Hessian of \(F({\boldsymbol{\theta}})\) can be proved similarly. ◻
Lemma 5 (Bias of Gradient Estimator 6 ). Let smoothed objective \(F_{\mu}({\boldsymbol{\theta}})\) be 7 , and the gradient estimator \(\hat{\nabla} F({\boldsymbol{\theta}})\) be 6 , we have: \[\mathbb{E}[\hat{\nabla} F({\boldsymbol{\theta}})] = \nabla F_{\mu}({\boldsymbol{\theta}}) \;, \quad \text{and} \quad \norm{\hat{\nabla} F({\boldsymbol{\theta}}) - \nabla F({\boldsymbol{\theta}})}^2 \le \frac{\mu^2 L_1^2 d^2}{4} \;.\]
Proof. The unbiasedness of the gradient estimator \(\hat{\nabla} F({\boldsymbol{\theta}})\) follows from Stein’s identity: \[\label{eq:bias-true-grad-deriv} \begin{align} \mathbb{E}[\hat{\nabla} F({\boldsymbol{\theta}})] =& \mathbb{E}\left[\frac{1}{K - 1} \sum_{k=1}^{K} \frac{f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_k; \xi) - \frac{1}{K} \sum_{k'=1}^{K} f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_{k'}; \xi)}{\mu} {\mathbf{u}}_k\right] \\ =& \mathbb{E}\left[\frac{1}{K - 1} \sum_{k=1}^{K} \frac{\frac{K - 1}{K} f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_k; \xi) - \frac{1}{K} \sum_{k'=1, k' \neq k}^{K} f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_{k'}; \xi)}{\mu} {\mathbf{u}}_k \right] \\ =& \mathbb{E}\left[\frac{1}{K} \sum_{k=1}^{K} \frac{f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_k; \xi)}{\mu} {\mathbf{u}}_k \right] - \mathbb{E}\left[\frac{1}{K(K - 1)} \sum_{k=1}^{K} \sum_{k'=1, k' \neq k}^{K} \frac{f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_{k'}; \xi)}{\mu} {\mathbf{u}}_k \right] \\ \overset{(a)}{=}& \mathbb{E}_{\mathbf{u}}\left[\frac{F({\boldsymbol{\theta}}+ \mu {\mathbf{u}})}{\mu} {\mathbf{u}}\right] \overset{(b)}{=} \nabla F_{\mu}({\boldsymbol{\theta}}) \;, \end{align}\tag{15}\] where \((a)\) comes from the dependence of different random directions \(\{{\mathbf{u}}_k\}_{k=1}^K\), and \((b)\) follows from Stein’s identity.
For the bias between the smoothed gradient and the true gradient, we have: \[\norm{\nabla F_{\mu}({\boldsymbol{\theta}}) - \nabla F({\boldsymbol{\theta}})}^2 \overset{(a)}{\le} \mathbb{E}_{{\mathbf{u}}} \left[\norm{\nabla F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) - \nabla F({\boldsymbol{\theta}})}^2\right] \overset{(b)}{\le} L_1^2 \mu^2 \mathbb{E}_{{\mathbf{u}}} \left[\norm{{\mathbf{u}}}^2\right] \overset{(c)}{=} L_1^2 \mu^2 d \;,\] where \((a)\) follows from Jensen’s inequality, \((b)\) comes from Lem. 4, and \((c)\) results from the fact that \(\mathbb{E}_{{\mathbf{u}}}[\norm{{\mathbf{u}}}^2] = d\) for \({\mathbf{u}}\sim {\mathcal{N}}(0, {\mathbf{I}}_d)\).
Moreover, since the gradient estimator \(\hat{\nabla} F({\boldsymbol{\theta}})\) is constructed from \(K\) dependent random directions, we have the variance bound: \[\require{physics} \begin{align} &\mathbb{E}\left[\norm{\hat{\nabla} F({\boldsymbol{\theta}}) - \nabla F_\mu({\boldsymbol{\theta}})}^2\right] \overset{(a)}{=} \mathbb{E}\qty[\norm{\hat{\nabla} F({\boldsymbol{\theta}})}^2] - \norm{\nabla F_\mu({\boldsymbol{\theta}})}^2 \overset{(b)}{\le} \mathbb{E}\qty[\norm{\frac{1}{K - 1} \sum_{k=1}^{K} \frac{f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_k; \xi) - F_\mu({\boldsymbol{\theta}})}{\mu} {\mathbf{u}}_k}^2] \\ \overset{(c)}{\le}& \frac{K}{(K - 1)^2 \mu^2} \mathbb{E}\qty[\left|f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi) - F_\mu({\boldsymbol{\theta}})\right|^2 \norm{{\mathbf{u}}}^2] \overset{(d)}{\le} \frac{K d \qty(\sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 1))}{(K - 1)^2 \mu^2} \;, \end{align}\] where \((a)\) follows from 15 , \((b)\) comes from getting rid of \(\norm{F_\mu({\boldsymbol{\theta}})}^2\), \((c)\) follows from the dependence of random directions \(\{{\mathbf{u}}_k\}_{k=1}^K\), and \((d)\) results from the following inequality: \[\require{physics} \begin{align} \mathbb{E}\qty[\left|f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi) - F_\mu({\boldsymbol{\theta}})\right|^2 \norm{{\mathbf{u}}}^2] \overset{(a)}{=}& \mathbb{E}\qty[\left|f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi) - F({\boldsymbol{\theta}}+ \mu {\mathbf{u}})\right|^2 \norm{{\mathbf{u}}}^2] + \mathbb{E}\qty[\left|F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) - F_\mu({\boldsymbol{\theta}})\right|^2 \norm{{\mathbf{u}}}^2] \\ \overset{(b)}{\le}& \sigma_\xi^2 \mathbb{E}[\norm{{\mathbf{u}}}^2] + \mathbb{E}\qty[\left|F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) - F_\mu({\boldsymbol{\theta}})\right|^2 \norm{{\mathbf{u}}}^2] \\ \overset{(c)}{\le}& \sigma_\xi^2 d + \mathbb{E}\qty[2 \qty(\left|F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) - F({\boldsymbol{\theta}})\right|^2 + 2 \left|F({\boldsymbol{\theta}}) - \mathbb{E}_{{\mathbf{u}}'} \qty[F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}')]\right|^2) \norm{{\mathbf{u}}}^2] \\ \overset{(d)}{\le}& \sigma_\xi^2 d + \mathbb{E}\qty[2 \qty(\left|F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) - F({\boldsymbol{\theta}})\right|^2 + 2 \mathbb{E}_{{\mathbf{u}}'} \qty[\left|F({\boldsymbol{\theta}}) - F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}')\right|^2]) \norm{{\mathbf{u}}}^2] \\ \overset{(e)}{\le}& \sigma_\xi^2 d + 2 L_0^2 \mu^2 \mathbb{E}\qty[\qty(\norm{{\mathbf{u}}}^2 + \mathbb{E}_{{\mathbf{u}}'} \qty[\norm{{\mathbf{u}}'}^2]) \norm{{\mathbf{u}}}^2] \\ \overset{(f)}{=}& \sigma_\xi^2 d + 2 L_0^2 \mu^2 \mathbb{E}\qty[\qty(\norm{{\mathbf{u}}}^2 + d) \norm{{\mathbf{u}}}^2] \overset{(g)}{=} d \qty(\sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 1)) \;, \end{align}\] where \((a)\) follows from 1 , \((b)\) comes from Assump. 2, \((c)\) results from the fact that \((a + b)^2 \le 2(a^2 + b^2)\), \((d)\) follows from Jensen’s inequality, \((e)\) comes from Lem. 4, and \((c)\), \((f)\), \((g)\) results from the fact that \(\mathbb{E}[\norm{{\mathbf{u}}}^2] = d\) and \(\mathbb{E}[\norm{{\mathbf{u}}}^4] = d(d + 2)\) for \({\mathbf{u}}\sim {\mathcal{N}}(0, {\mathbf{I}}_d)\).
Overall, combining the bias between the smoothed gradient and the true gradient with the variance of the gradient estimator, we have: \[\require{physics} \begin{align} \mathbb{E}\left[\norm{\hat{\nabla} F({\boldsymbol{\theta}}) - \nabla F({\boldsymbol{\theta}})}^2\right] \overset{(a)}{\le}& \mathbb{E}\left[\norm{\hat{\nabla} F({\boldsymbol{\theta}}) - F_\mu({\boldsymbol{\theta}})}^2\right] + \norm{F_\mu({\boldsymbol{\theta}}) - \nabla F({\boldsymbol{\theta}})}^2 \le \frac{K d \qty(\sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 1))}{(K - 1)^2 \mu^2} + L_1^2 \mu^2 d \;, \end{align}\] where \((a)\) follows from 15 . ◻
The following lemma bounds the bias between the smoothed Hessian and the true Hessian:
Lemma 6 (Bias of Smoothed Hessian). Let smoothed objective \(F_{\mu}({\boldsymbol{\theta}})\) be 7 , we have: \[\norm{\nabla^2 F_{\mu}({\boldsymbol{\theta}}) - \nabla^2 F({\boldsymbol{\theta}})}_F^2 \le L_2^2 \mu^2 d \;.\]
Proof. \[\norm{\nabla^2 F_{\mu}({\boldsymbol{\theta}}) - \nabla^2 F({\boldsymbol{\theta}})}_F^2 \overset{(a)}{\le} \mathbb{E}_{{\mathbf{u}}} \left[\norm{\nabla^2 F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) - \nabla^2 F({\boldsymbol{\theta}})}_F^2\right] \overset{(b)}{\le} L_2^2 \mu^2 \mathbb{E}_{{\mathbf{u}}} \left[\norm{{\mathbf{u}}}^2\right] \overset{(c)}{=} L_2^2 \mu^2 d \;,\] where \((a)\) follows from Jensen’s inequality, \((b)\) comes from Lem. 4, and \((c)\) results from the fact that \(\mathbb{E}_{{\mathbf{u}}}[\norm{{\mathbf{u}}}^2] = d\) for \({\mathbf{u}}\sim {\mathcal{N}}(0, {\mathbf{I}}_d)\). ◻
Lemma 7 (Bound on Second Moment of \(\nu\)). Let \(\require{physics} \nu = \qty(f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi) - F_\mu({\boldsymbol{\theta}})) / \mu^2\), where \({\mathbf{u}}\sim {\mathcal{N}}(0, {\mathbf{I}}_d)\). Under Assump. 1 and Lem. 4, we have: \[\require{physics} \begin{align} \mathbb{E}[\nu^2 \norm{{\mathbf{u}}}^2] \le& \frac{d}{\mu^4} \qty(\sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 1)) \;, \\ \mathbb{E}[\nu^2 \norm{{\mathbf{u}}}^4] \le& \frac{d (d + 2)}{\mu^4} \qty(\sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 2)) \;, \\ \mathbb{E}[\nu^2 \norm{{\mathbf{u}}}^6] \le& \frac{d (d + 2)(d + 4)}{\mu^4} \qty(\sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 3)) \;. \end{align}\]
Proof. First, \[\require{physics} \label{eq:second-moment-nu-deriv} \begin{align} \mathbb{E}_{{\mathbf{u}}}[\nu^2 \norm{{\mathbf{u}}}^2] =& \frac{1}{\mu^4} \mathbb{E}_{{\mathbf{u}}} \left[\left|f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi) - F_\mu({\boldsymbol{\theta}})\right|^2 \norm{{\mathbf{u}}}^2\right] \\ \overset{(a)}{=}& \frac{1}{\mu^4} \mathbb{E}_{{\mathbf{u}}} \left[\qty(\left|f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi) - F({\boldsymbol{\theta}}+ \mu {\mathbf{u}})\right|^2 + \left|F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) - F_\mu({\boldsymbol{\theta}})\right|^2) \norm{{\mathbf{u}}}^2\right] \\ \overset{(b)}{\le}& \frac{1}{\mu^4} \qty(\sigma_\xi^2 \mathbb{E}_{{\mathbf{u}}}[\norm{{\mathbf{u}}}^2] + \mathbb{E}_{{\mathbf{u}}} \left[\left|F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) - F_\mu({\boldsymbol{\theta}})\right|^2 \norm{{\mathbf{u}}}^2\right]) \\ \overset{(c)}{=}& \frac{1}{\mu^4} \qty(\sigma_\xi^2 d + \mathbb{E}_{{\mathbf{u}}} \left[\left|F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) - F_\mu({\boldsymbol{\theta}})\right|^2 \norm{{\mathbf{u}}}^2\right]) \;, \end{align}\tag{16}\] where \((a)\) follows from 1 , i.e. \(\mathbb{E}_{\xi}[f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi) - F({\boldsymbol{\theta}}+ \mu {\mathbf{u}})] = 0\), \((b)\) comes from Assump. 2, and \((c)\) results from the fact that \(\mathbb{E}_{{\mathbf{u}}}[\norm{{\mathbf{u}}}^2] = d\) for \({\mathbf{u}}\sim {\mathcal{N}}(0, {\mathbf{I}}_d)\).
Furthermore, the second term in 16 can be bounded as: \[\require{physics} \label{eq:second-moment-nu-deriv-2} \begin{align} \mathbb{E}_{{\mathbf{u}}} \left[\left|F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) - F_\mu({\boldsymbol{\theta}})\right|^2 \norm{{\mathbf{u}}}^2\right] \overset{(a)}{\le}& 2 \mathbb{E}_{{\mathbf{u}}} \left[\qty(\left|F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) - F({\boldsymbol{\theta}})\right|^2 + \left|F({\boldsymbol{\theta}}) - \mathbb{E}_{{\mathbf{u}}'} \qty[F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}')]\right|^2) \norm{{\mathbf{u}}}^2\right] \\ \overset{(b)}{\le}& 2 \mathbb{E}_{{\mathbf{u}}} \left[\qty(\left|F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) - F({\boldsymbol{\theta}})\right|^2 + \mathbb{E}_{{\mathbf{u}}'} \qty[\left|F({\boldsymbol{\theta}}) - F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}')\right|^2]) \norm{{\mathbf{u}}}^2\right] \\ \overset{(c)}{\le}& 2 L_0^2 \mu^2 \mathbb{E}_{{\mathbf{u}}} \left[\qty(\norm{{\mathbf{u}}}^2 + \mathbb{E}_{{\mathbf{u}}'} \qty[\norm{{\mathbf{u}}'}^2]) \norm{{\mathbf{u}}}^2\right] \\ \overset{(d)}{=}& 2 L_0^2 \mu^2 \mathbb{E}_{{\mathbf{u}}} \left[\qty(\norm{{\mathbf{u}}}^2 + d) \norm{{\mathbf{u}}}^2\right] \overset{(e)}{=} 4 L_0^2 \mu^2 d (d + 1) \;, \end{align}\tag{17}\] where \((a)\) follows from the fact that \((a + b)^2 \le 2(a^2 + b^2)\), \((b)\) comes from Jensen’s inequality, \((c)\) results from Lem. 4, and \((d)\), \((e)\) results from the fact that \(\mathbb{E}[\norm{{\mathbf{u}}}^2] = d\) and \(\mathbb{E}[\norm{{\mathbf{u}}}^4] = d(d + 2)\) for \({\mathbf{u}}\sim {\mathcal{N}}(0, {\mathbf{I}}_d)\).
Overall, substituting 17 into 16 , we complete the proof: \[\require{physics} \mathbb{E}_{{\mathbf{u}}}[\nu^2 \norm{{\mathbf{u}}}^2] \le \frac{1}{\mu^4} \qty(\sigma_\xi^2 d + 4 L_0^2 \mu^2 d (d + 1)) = \frac{d}{\mu^4} \qty(\sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 1)) \;.\]
Similarly, we have: \[\require{physics} \mathbb{E}_{{\mathbf{u}}}[\nu^2 \norm{{\mathbf{u}}}^4] \le \frac{d (d + 2)}{\mu^4} \qty(\sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 2)) \;.\] \[\require{physics} \mathbb{E}_{{\mathbf{u}}}[\nu^2 \norm{{\mathbf{u}}}^6] \le \frac{d (d + 2)(d + 4)}{\mu^4} \qty(\sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 3)) \;.\] ◻
Below are some useful lemmas for \(N>1\) case, which can be proved similarly as above.
Lemma 8 (Bias of Gradient Estimator 18 for \(N>1\)). Let smoothed objective \(F_{\mu}({\boldsymbol{\theta}})\) be 7 , and the gradient estimator \(\hat{\nabla} F({\boldsymbol{\theta}})\) be \[\label{eq:grad-est-zoar} \hat{\nabla} F({\boldsymbol{\theta}}_{t-1}) \triangleq \frac{1}{N K - 1} \sum_{n, k = 1}^{N, K} \frac{f({\boldsymbol{\theta}}_{t - n} + \mu {\mathbf{u}}_{t-n, k}; \xi) - b}{\mu} {\mathbf{u}}_{t-n, k} \;,\tag{18}\] where the averaged baseline \(b \triangleq \frac{1}{N K} \sum_{n, k = 1}^{N, K} f({\boldsymbol{\theta}}_{t - n} + \mu {\mathbf{u}}_{t-n, k}; \xi)\). We then have: \[\mathbb{E}[\hat{\nabla} F({\boldsymbol{\theta}}_{t-1})] = \frac{1}{N} \sum_{n = 1}^{N} \nabla F_{\mu}({\boldsymbol{\theta}}_{t-n}) \;.\]
Proof. The bias of the gradient estimator \(\hat{\nabla} F({\boldsymbol{\theta}})\) follows from Stein’s identity: \[\label{eq:bias-true-grad-deriv-N-greater-than-1} \begin{align} \mathbb{E}[\hat{\nabla} F({\boldsymbol{\theta}}_{t-1})] =& \mathbb{E}\left[\frac{1}{N K - 1} \sum_{n, k = 1}^{N, K} \frac{f({\boldsymbol{\theta}}_{t - n} + \mu {\mathbf{u}}_{t-n, k}; \xi) - \frac{1}{N K} \sum_{n, k = 1}^{N, K} f({\boldsymbol{\theta}}_{t - n} + \mu {\mathbf{u}}_{t-n, k}; \xi)}{\mu} {\mathbf{u}}_{t-n, k}\right] \\ =& \mathbb{E}\left[\frac{1}{N K - 1} \sum_{n, k=1}^{N, K} \frac{\frac{N K - 1}{N K} f({\boldsymbol{\theta}}_{t - n} + \mu {\mathbf{u}}_{t-n, k}; \xi) - \frac{1}{N K} \sum_{\substack{n', k'=1 \\ (n', k') \neq (n, k)}}^{N, K} f({\boldsymbol{\theta}}_{t - n} + \mu {\mathbf{u}}_{t-n, k'}; \xi)}{\mu} {\mathbf{u}}_{t-n, k} \right] \\ =& \mathbb{E}\left[\frac{1}{N K} \sum_{n, k=1}^{N, K} \frac{f({\boldsymbol{\theta}}_{t - n} + \mu {\mathbf{u}}_{t-n, k}; \xi)}{\mu} {\mathbf{u}}_{t-n, k} \right] \\ & \quad - \mathbb{E}\left[\frac{1}{N K(N K - 1)} \sum_{n, k=1}^{N, K} \sum_{\substack{n', k'=1 \\ (n', k') \neq (n, k)}}^{N, K} \frac{f({\boldsymbol{\theta}}_{t - n} + \mu {\mathbf{u}}_{t-n, k'}; \xi)}{\mu} {\mathbf{u}}_{t-n, k} \right] \\ \overset{(a)}{=}& \mathbb{E}_{\mathbf{u}}\left[\frac{1}{N} \sum_{n=1}^N \frac{F({\boldsymbol{\theta}}_{t - n} + \mu {\mathbf{u}}_{t-n})}{\mu} {\mathbf{u}}_{t-n}\right] \overset{(b)}{=} \frac{1}{N} \sum_{n=1}^N \nabla F_{\mu}({\boldsymbol{\theta}}_{t - n}) \;, \end{align}\tag{19}\] where \((a)\) comes from the dependence of different random directions \(\{{\mathbf{u}}_{t-n, k}\}_{k=1}^K\), and \((b)\) follows from Stein’s identity. ◻
Lemma 9 (Bound on Second Moment of \(\nu\) for \(N > 1\)). Let \(\require{physics} \nu_{t-1} = \qty(f({\boldsymbol{\theta}}_{t-1} + \mu {\mathbf{u}}_{t-1}; \xi) - b) / \mu^2\), where \(b\) is the averaged baseline in Thm. 5, and \({\mathbf{u}}_{t-1} \sim {\mathcal{N}}(0, {\mathbf{I}}_d)\). Under Assump. 1 and Lem. 4, for \(N>1\) case, we have: \[\require{physics} \begin{align} \sum_{n = 1}^N \mathbb{E}\qty[\nu_{t-n}^2 \norm{{\mathbf{u}}_{t-n}}^2] \le& \frac{\lambda^2 N (N K - 1)^2 d }{\lambda^2 \mu^4 (N K - 1)^2 - L_0^2 \eta^2 \mu^2 K (N^2 - 1) d / 3} \qty(\sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 1)) \;, \\ \sum_{n=1}^N \mathbb{E}_{{\mathbf{u}}}\qty[\nu_{t-n}^2 \norm{{\mathbf{u}}_{t-n}}^4] \le& \frac{\lambda^2 N (N K - 1)^2 d (d + 2)}{\lambda^2 \mu^4 (N K - 1)^2 - L_0^2 \eta^2 \mu^2 K (N^2 - 1) d (d + 2) / 3} \qty(\sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 2)) \;, \\ \sum_{n=1}^N \mathbb{E}_{{\mathbf{u}}}\qty[\nu_{t-n}^2 \norm{{\mathbf{u}}_{t-n}}^6] \le& \frac{\lambda^2 N (N K - 1)^2 d (d + 2) (d + 4)}{\lambda^2 \mu^4 (N K - 1)^2 - L_0^2 \eta^2 \mu^2 K (N^2 - 1) d (d + 2) (d + 4) / 3} \qty(\sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 3)) \;. \end{align}\]
Proof. First, at the iteration \(t - n\), we have: \[\require{physics} \label{eq:second-moment-nu-deriv-N-greater-than-1} \begin{align} \mathbb{E}_{{\mathbf{u}}}\qty[\nu^2_{t - n} \norm{{\mathbf{u}}_{t - n}}^2] =& \frac{1}{\mu^4} \mathbb{E}_{{\mathbf{u}}} \left[\left|f({\boldsymbol{\theta}}_{t - n} + \mu {\mathbf{u}}_{t - n}; \xi) - \frac{1}{N} \sum_{n'=1}^N F_\mu({\boldsymbol{\theta}}_{t - n'})\right|^2 \norm{{\mathbf{u}}_{t - n}}^2\right] \\ \overset{(a)}{=}& \frac{1}{\mu^4} \mathbb{E}_{{\mathbf{u}}} \left[\qty(\left|f({\boldsymbol{\theta}}_{t - n} + \mu {\mathbf{u}}_{t - n}; \xi) - F({\boldsymbol{\theta}}_{t - n} + \mu {\mathbf{u}}_{t - n})\right|^2 + \left|F({\boldsymbol{\theta}}_{t - n} + \mu {\mathbf{u}}_{t - n}) - \frac{1}{N} \sum_{n'=1}^N F_\mu({\boldsymbol{\theta}}_{t - n'})\right|^2) \norm{{\mathbf{u}}_{t - n}}^2\right] \\ \overset{(b)}{\le}& \frac{1}{\mu^4} \qty(\sigma_\xi^2 \mathbb{E}_{{\mathbf{u}}}[\norm{{\mathbf{u}}_{t - n}}^2] + \mathbb{E}_{{\mathbf{u}}} \left[\left|F({\boldsymbol{\theta}}_{t - n} + \mu {\mathbf{u}}_{t - n}) - \frac{1}{N} \sum_{n'=1}^N F_\mu({\boldsymbol{\theta}}_{t - n'})\right|^2 \norm{{\mathbf{u}}_{t - n}}^2\right]) \\ \overset{(c)}{=}& \frac{1}{\mu^4} \qty(\sigma_\xi^2 d + \mathbb{E}_{{\mathbf{u}}} \left[\left|F({\boldsymbol{\theta}}_{t - n} + \mu {\mathbf{u}}_{t - n}) - \frac{1}{N} \sum_{n'=1}^N F_\mu({\boldsymbol{\theta}}_{t - n'})\right|^2 \norm{{\mathbf{u}}_{t - n}}^2\right]) \;, \end{align}\tag{20}\] where \((a)\) follows from 1 , i.e. \(\mathbb{E}_{\xi}[f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi) - F({\boldsymbol{\theta}}+ \mu {\mathbf{u}})] = 0\), \((b)\) comes from Assump. 2, and \((c)\) results from the fact that \(\mathbb{E}_{{\mathbf{u}}}[\norm{{\mathbf{u}}}^2] = d\) for \({\mathbf{u}}\sim {\mathcal{N}}(0, {\mathbf{I}}_d)\).
Furthermore, the second term in 20 can be bounded as: \[\require{physics} \label{eq:second-moment-nu-deriv-2-N-greater-than-1} \begin{align} &\mathbb{E}_{{\mathbf{u}}} \left[\left|F({\boldsymbol{\theta}}_{t - n} + \mu {\mathbf{u}}_{t - n}) - \frac{1}{N} \sum_{n'=1}^N F_\mu({\boldsymbol{\theta}}_{t - n'})\right|^2 \norm{{\mathbf{u}}_{t - n}}^2\right] \\ \overset{(a)}{=}& \mathbb{E}_{{\mathbf{u}}} \left[\qty(\left|F({\boldsymbol{\theta}}_{t - n} + \mu {\mathbf{u}}_{t - n}) - F_\mu({\boldsymbol{\theta}}_{t - n})\right|^2 + \left|F_\mu({\boldsymbol{\theta}}_{t - n}) - \frac{1}{N} \sum_{n'=1}^N F_\mu({\boldsymbol{\theta}}_{t - n'})\right|^2) \norm{{\mathbf{u}}_{t - n}}^2\right] \\ \overset{(b)}{\le}& 4 L_0^2 \mu^2 d (d + 1) + \left|F_\mu({\boldsymbol{\theta}}_{t - n}) - \frac{1}{N} \sum_{n'=1}^N F_\mu({\boldsymbol{\theta}}_{t - n'})\right|^2 \cdot \mathbb{E}_{{\mathbf{u}}} \left[\norm{{\mathbf{u}}_{t - n}}^2\right] \\ =& 4 L_0^2 \mu^2 d (d + 1) + \left|\frac{1}{N} \sum_{n'=1}^N \qty(F_\mu({\boldsymbol{\theta}}_{t - n}) - F_\mu({\boldsymbol{\theta}}_{t - n'}))\right|^2 \cdot d \\ \overset{(c)}{\le}& 4 L_0^2 \mu^2 d (d + 1) + \frac{d L_0^2}{N} \sum_{n'=1}^N \norm{{\boldsymbol{\theta}}_{t - n} - {\boldsymbol{\theta}}_{t - n'}}^2 \\ \overset{(d)}{\le}& 4 L_0^2 \mu^2 d (d + 1) + \frac{d L_0^2 \eta^2 \mu^2 K C_\nu}{\lambda^2 N (N K - 1)^2} \cdot \sum_{n'=1}^N |n - n'| \;, \end{align}\tag{21}\] where \((a)\) follows from the fact that \(\mathbb{E}_{{\mathbf{u}}}[F({\boldsymbol{\theta}}+ \mu {\mathbf{u}})] = F_\mu({\boldsymbol{\theta}})\), \((b)\) comes from 17 , \((c)\) results from Lem. 4, and \((d)\) results from: \[\begin{align} \norm{{\boldsymbol{\theta}}_{t - n} - {\boldsymbol{\theta}}_{t - n'}}^2 \overset{(a)}{\le}& \sum_{n'' = \min(n, n')}^{\max(n, n')} \norm{{\boldsymbol{\theta}}_{t - n''} - {\boldsymbol{\theta}}_{t - n'' + 1}}^2 \le \eta^2 \sum_{n'' = \min(n, n')}^{\max(n, n')} \norm{\widetilde{H}^{-1}({\boldsymbol{\theta}}_{t - n''}) \hat{\nabla} F({\boldsymbol{\theta}}_{t - n''})}^2 \\ \overset{(b)}{\le}& \frac{\eta^2 \mu^2 K C_\nu}{\lambda^2 (N K - 1)^2} |n - n'| \;, \end{align}\] where \((a)\) follows from the triangle inequality, and \((b)\) follows from the result in 36 , and we define the constant upper bound \(C_\nu\) such that \(\require{physics} \sum_n \mathbb{E}\qty[\nu_{t-n}^2 \norm{{\mathbf{u}}_{t-n}}^2] \le C\) for all \(n\).
Overall, substituting 21 into 20 , and summing over \(n\), we have: \[\require{physics} \begin{align} \sum_{n=1}^N \mathbb{E}_{{\mathbf{u}}}[\nu_{t-n}^2 \norm{{\mathbf{u}}_{t-n}}^2] \le& \frac{1}{\mu^4} \qty(\sigma_\xi^2 d N + 4 L_0^2 \mu^2 d (d + 1) N + \frac{d L_0^2 \eta^2 \mu^2 K C_\nu}{\lambda^2 N (N K - 1)^2} \cdot \sum_{n, n' = 1}^N |n - n'|) \\ =& \frac{1}{\mu^4} \qty(\sigma_\xi^2 d N + 4 L_0^2 \mu^2 d (d + 1) N + \frac{d L_0^2 \eta^2 \mu^2 K C_\nu (N^2 - 1)}{3 \lambda^2 (N K - 1)^2}) \;. \end{align}\]
Note that the definition of \(C_\nu\) implies that: \[\require{physics} C_\nu = \frac{1}{\mu^4} \qty(\sigma_\xi^2 d N + 4 L_0^2 \mu^2 d (d + 1) N + \frac{d L_0^2 \eta^2 \mu^2 K C_\nu (N^2 - 1)}{3 \lambda^2 (N K - 1)^2}) \;,\] \[\require{physics} C_\nu = \frac{1}{\mu^4} \qty(\sigma_\xi^2 d (d + 2) N + 4 L_0^2 \mu^2 d (d + 2)^2 N + \frac{d (d + 2) L_0^2 \eta^2 \mu^2 K C_\nu (N^2 - 1)}{3 \lambda^2 (N K - 1)^2}) \;,\] which leads to: \[\require{physics} \sum_{n=1}^N \mathbb{E}\qty[\nu_{t-n}^2 \norm{{\mathbf{u}}_{t-n}}^2] \le \frac{\lambda^2 N (N K - 1)^2 d }{\lambda^2 \mu^4 (N K - 1)^2 - L_0^2 \eta^2 \mu^2 K (N^2 - 1) d / 3} \qty(\sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 1)) \;.\]
Similarly, we have: \[\require{physics} \sum_{n=1}^N \mathbb{E}_{{\mathbf{u}}}\qty[\nu_{t-n}^2 \norm{{\mathbf{u}}_{t-n}}^4] \le \frac{\lambda^2 N (N K - 1)^2 d (d + 2)}{\lambda^2 \mu^4 (N K - 1)^2 - L_0^2 \eta^2 \mu^2 K (N^2 - 1) d (d + 2) / 3} \qty(\sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 2)) \;,\] \[\require{physics} \sum_{n=1}^N \mathbb{E}_{{\mathbf{u}}}\qty[\nu_{t-n}^2 \norm{{\mathbf{u}}_{t-n}}^6] \le \frac{\lambda^2 N (N K - 1)^2 d (d + 2) (d + 4)}{\lambda^2 \mu^4 (N K - 1)^2 - L_0^2 \eta^2 \mu^2 K (N^2 - 1) d (d + 2) (d + 4) / 3} \qty(\sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 3)) \;.\] ◻
Proof. We first derive the first derivative of the single-step policy optimization objective 7 by applying the Policy Gradient Thm. [@pg-thm]: \[\nabla F_\mu({\boldsymbol{\theta}}) = \mathbb{E}_{{\mathbf{x}}\sim \pi_{{\boldsymbol{\theta}}}({\mathbf{x}})}\left[ \nabla \ln \pi_{{\boldsymbol{\theta}}}({\mathbf{x}}) \mathbb{E}_{\xi}[f({\mathbf{x}}; \xi)] \right] \;.\]
Taking the second derivative, we have: \[\require{physics} \label{eq:hess-zoo-deriv-1} \begin{align} \nabla^2 F_\mu({\boldsymbol{\theta}}) =& \nabla \int \pi_{{\boldsymbol{\theta}}}({\mathbf{x}}) \nabla \ln \pi_{{\boldsymbol{\theta}}}({\mathbf{x}}) \mathbb{E}_{\xi}[f({\mathbf{x}}; \xi)] d{\mathbf{x}}\overset{(a)}{=} \int \qty(\nabla \pi_{{\boldsymbol{\theta}}}({\mathbf{x}}) \qty(\nabla \ln \pi_{{\boldsymbol{\theta}}}({\mathbf{x}}))^{\top} + \pi_{{\boldsymbol{\theta}}}({\mathbf{x}}) \nabla^2 \ln \pi_{{\boldsymbol{\theta}}}({\mathbf{x}})) \mathbb{E}_{\xi}[f({\mathbf{x}}; \xi)] d{\mathbf{x}}\\ \overset{(b)}{=}& \int \pi_{{\boldsymbol{\theta}}}({\mathbf{x}}) \qty(\qty(\nabla \ln \pi_{{\boldsymbol{\theta}}}({\mathbf{x}})) \qty(\nabla \ln \pi_{{\boldsymbol{\theta}}}({\mathbf{x}}))^{\top} + \nabla^2 \ln \pi_{{\boldsymbol{\theta}}}({\mathbf{x}})) \mathbb{E}_{\xi}[f({\mathbf{x}}; \xi)] d{\mathbf{x}}\\ =& \mathbb{E}_{{\mathbf{x}}\sim \pi_{{\boldsymbol{\theta}}}({\mathbf{x}})}\left[ \left(\left(\nabla \ln \pi_{{\boldsymbol{\theta}}}({\mathbf{x}})\right)\left(\nabla \ln \pi_{{\boldsymbol{\theta}}}({\mathbf{x}})\right)^{\top} + \nabla^2 \ln \pi_{{\boldsymbol{\theta}}}({\mathbf{x}})\right)\mathbb{E}_{\xi}[f({\mathbf{x}}; \xi)] \right] \;, \end{align}\tag{22}\] where \((a)\) comes from the product rule of differentiation, and \((b)\) follows from the fact that \(\nabla \pi_{{\boldsymbol{\theta}}}({\mathbf{x}}) = \pi_{{\boldsymbol{\theta}}}({\mathbf{x}}) \nabla \ln \pi_{{\boldsymbol{\theta}}}({\mathbf{x}})\). ◻
Proof. Taking the reparametrization trick \({\mathbf{x}}= {\boldsymbol{\theta}}+ \mu {\mathbf{u}}\) with \({\mathbf{u}}\sim {\mathcal{N}}(0, {\mathbf{I}}_d)\), we have: \[\label{eq:hess-zoo-deriv-2} \nabla^2 F_\mu({\boldsymbol{\theta}}) \overset{(a)}{=} \mathbb{E}_{\mathbf{u}}\left[ \left({\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d\right) \frac{\mathbb{E}_{\xi}[f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi)]}{\mu^2} \right] \;,\tag{23}\] where \((a)\) comes from \(\nabla \ln \pi_{{\boldsymbol{\theta}}}({\mathbf{x}}) = \frac{1}{\mu^2}({\mathbf{x}}- {\boldsymbol{\theta}}) = \frac{1}{\mu}{\mathbf{u}}\) and \(\nabla^2 \ln \pi_{{\boldsymbol{\theta}}}({\mathbf{x}}) = -\frac{1}{\mu^2}{\mathbf{I}}_d\) for Gaussian policy.
Since \(\mathbb{E}_{\mathbf{u}}[{\mathbf{u}}{\mathbf{u}}^{\top}] = {\mathbf{I}}_d\), for any constant baseline \(b\) that is independent of \({\mathbf{u}}\), 23 can be further transformed as: \[\label{eq:hess-zoo-deriv-3} \nabla^2 F_\mu({\boldsymbol{\theta}}) = \mathbb{E}_{\mathbf{u}}\left[ \left({\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d\right) \frac{\mathbb{E}_{\xi}[f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi)]}{\mu^2} \right] + b \cdot \mathbb{E}_{\mathbf{u}}\left[ \left({\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d\right)\right] = \mathbb{E}_{\mathbf{u}}\left[ \left({\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d\right) \frac{\mathbb{E}_{\xi}[f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi) - b]}{\mu^2} \right] \;,\tag{24}\] which completes the proof. ◻
Proof. Regardless of the choice of baseline \(b\), since \(\mathbb{E}_{\mathbf{u}}[{\mathbf{u}}{\mathbf{u}}^{\top}] = {\mathbf{I}}_d\), Prop. 1 can always be transformed as: \[\label{eq:hess-zoo-deriv-4} \begin{align} \nabla^2 F_\mu({\boldsymbol{\theta}}) =& \mathbb{E}_{\mathbf{u}}\left[ \frac{f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi) - b}{\mu^2} {\mathbf{u}}{\mathbf{u}}^{\top} \right] - \mathbb{E}_{\mathbf{u}}\left[ \mathbb{E}_{\mathbf{u}}\left[\frac{f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi) - b}{\mu^2}\right] {\mathbf{u}}{\mathbf{u}}^{\top}\right] \\ =& \mathbb{E}_{\mathbf{u}}\left[ \frac{f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi) - b - \mathbb{E}_{\mathbf{u}}\left[f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi) - b\right]}{\mu^2} {\mathbf{u}}{\mathbf{u}}^{\top} \right] \\ =& \mathbb{E}_{\mathbf{u}}\left[ \frac{f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi) - \mathbb{E}_{\mathbf{u}}\left[f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi)\right]}{\mu^2} {\mathbf{u}}{\mathbf{u}}^{\top} \right] \;, \end{align}\tag{25}\] which completes the proof. ◻
Proof. Suppose there exists another baseline \(b' \neq \mathbb{E}_{{\mathbf{u}}\sim {\mathcal{N}}(0, {\mathbf{I}}_d)}\left[\mathbb{E}_{\xi}\left[f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}; \xi)\right]\right]\) that also satisfies the unbiasedness: \[\require{physics} \mathbb{E}_{\mathbf{u}}\left[ \frac{\mathbb{E}_{\xi}\left[f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}; \xi) - b'\right]}{\mu^2} {\mathbf{u}}{\mathbf{u}}^{\top} \right] = \nabla^2 F_\mu({\boldsymbol{\theta}}) = \mathbb{E}_{\mathbf{u}}\left[ \frac{\mathbb{E}_{\xi}\left[f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}; \xi)\right]}{\mu^2} \qty({\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d)\right] \;.\]
Take the difference on both sides, we have: \[\require{physics} \begin{align} 0 =& \mathbb{E}_{\mathbf{u}}\left[\frac{\mathbb{E}_{\xi}\left[f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}; \xi) - b'\right]}{\mu^2} {\mathbf{u}}{\mathbf{u}}^{\top}\right] - \mathbb{E}_{\mathbf{u}}\left[ \frac{\mathbb{E}_{\xi}\left[f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}; \xi)\right]}{\mu^2} \qty({\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d)\right] \\ =& \mathbb{E}_{\mathbf{u}}\left[-\frac{b'}{\mu^2} {\mathbf{u}}{\mathbf{u}}^{\top}\right] + \mathbb{E}_{\mathbf{u}}\left[\frac{\mathbb{E}_{\xi}\left[f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}; \xi)\right]}{\mu^2} {\mathbf{I}}_d\right] \\ =& \frac{\mathbb{E}_{\mathbf{u}}\left[\mathbb{E}_{\xi}\left[f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}; \xi)\right]\right] - b'}{\mu^2} {\mathbf{I}}_d \;, \end{align}\] which implies that \(b' = \mathbb{E}_{\mathbf{u}}\left[\mathbb{E}_{\xi}\left[f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}; \xi)\right]\right]\), contradicting the assumption. Therefore, the average baseline is the unique choice that guarantees the unbiasedness of the Hessian estimator in Prop. 2. ◻
Proof. We rewrite the smoothed objective using the importance weight \(w({\mathbf{x}}) = \pi_{{\boldsymbol{\theta}}}({\mathbf{x}})/\rho({\mathbf{x}})\). The Hessian is \(\nabla^2 \int f({\mathbf{x}}) \frac{\pi_{{\boldsymbol{\theta}}}({\mathbf{x}})}{\rho({\mathbf{x}})} \rho({\mathbf{x}}) d{\mathbf{x}}\). Since \(\rho\) is independent of \({\boldsymbol{\theta}}\), the derivatives apply solely to \(\pi_{{\boldsymbol{\theta}}}\). Interchanging differentiation and integration yields \(\mathbb{E}_{{\mathbf{x}}\sim \rho}[f({\mathbf{x}}) \frac{1}{\rho({\mathbf{x}})} \nabla^2 \pi_{{\boldsymbol{\theta}}}({\mathbf{x}})]\). The result follows by expanding \(\nabla^2 \pi_{{\boldsymbol{\theta}}} = \pi_{{\boldsymbol{\theta}}} (\nabla^2 \ln \pi_{{\boldsymbol{\theta}}} + \nabla \ln \pi_{{\boldsymbol{\theta}}} \nabla \ln \pi_{{\boldsymbol{\theta}}}^\top)\).
We start from the Hessian of the smoothed objective in 23 : \[\nabla^2 F_\mu({\boldsymbol{\theta}}) = \mathbb{E}_{\mathbf{u}}\left[ \left({\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d\right) \frac{\mathbb{E}_{\xi}[f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi)]}{\mu^2} \right] = \int \left({\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d\right) \frac{\mathbb{E}_{\xi}[f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi)]}{\mu^2} \pi_{{\boldsymbol{\theta}}}({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) d{\mathbf{u}}\;,\] where we rewrite the expectation over \({\mathbf{u}}\) as an integral over the Gaussian policy \(\pi_{{\boldsymbol{\theta}}}({\mathbf{x}})\).
Under the assumptions \(\text{supp}(\pi_{{\boldsymbol{\theta}}}) \subseteq \text{supp}(\rho)\) that ensures the importance sampling ratio \(\mathcal{W}_{\pi/\rho}({\mathbf{u}}) \triangleq \frac{\pi_{{\boldsymbol{\theta}}}({\boldsymbol{\theta}}+ \mu {\mathbf{u}})}{\rho({\mathbf{u}})}\) is well-defined, we can express the Hessian of smoothed objective as: \[\nabla^2 F_\mu({\boldsymbol{\theta}}) = \int \left({\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d\right) \frac{\mathbb{E}_{\xi}[f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi)]}{\mu^2} \mathcal{W}_{\pi/\rho}({\mathbf{u}}) \rho({\mathbf{u}}) d{\mathbf{u}}= \mathbb{E}_{{\mathbf{u}}\sim \rho}\left[ \left({\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d\right) \frac{\mathbb{E}_{\xi}[f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi)]}{\mu^2} \mathcal{W}_{\pi/\rho}({\mathbf{u}}) \right] \;.\]
Finally, similar to the derivation in 23 , we have: \[\nabla^2 F_\mu({\boldsymbol{\theta}}) = \mathbb{E}_{{\mathbf{u}}\sim \rho}\left[ \frac{\mathbb{E}_{\xi}[f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi)] - \mathbb{E}_{{\mathbf{u}}\sim \rho}\left[\mathbb{E}_{\xi}[f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi)] \mathcal{W}_{\pi/\rho}({\mathbf{u}})\right]}{\mu^2} {\mathbf{u}}{\mathbf{u}}^{\top} \cdot \mathcal{W}_{\pi/\rho}({\mathbf{u}}) \right] \;.\] ◻
Proof. The gradient of the smoothed objective \(F_\mu({\boldsymbol{\theta}})\) is a direct result of Stein’s identity: \[\nabla F_\mu({\boldsymbol{\theta}}) = \mathbb{E}_{\mathbf{u}}\left[\nabla F({\boldsymbol{\theta}}+ \mu {\mathbf{u}})\right] = \frac{1}{\mu} \mathbb{E}_{\mathbf{u}}\left[\nabla_{\mathbf{u}}F({\boldsymbol{\theta}}+ \mu {\mathbf{u}})\right] \overset{(a)}{=} \frac{1}{\mu} \mathbb{E}_{\mathbf{u}}\left[F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) {\mathbf{u}}\right] \;,\] where \((a)\) follows from Stein’s identity.
Then, the Hessian of the smoothed objective \(F_\mu({\boldsymbol{\theta}})\) can be derived by taking another derivative: \[\require{physics} \nabla^2 F_\mu({\boldsymbol{\theta}}) = \qty(\frac{1}{\mu} \mathbb{E}_{\mathbf{u}}\left[\qty(\nabla F({\boldsymbol{\theta}}+ \mu {\mathbf{u}})) {\mathbf{u}}\right]) = \frac{1}{\mu^2} \mathbb{E}_{\mathbf{u}}\left[\qty(\nabla_{\mathbf{u}}F({\boldsymbol{\theta}}+ \mu {\mathbf{u}})) {\mathbf{u}}^{\top}\right] \;.\] Note that \(\require{physics} \nabla_{\mathbf{u}}\qty(F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) {\mathbf{u}}) = \qty(\nabla_{\mathbf{u}}F({\boldsymbol{\theta}}+ \mu {\mathbf{u}})) {\mathbf{u}}^{\top} + F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) {\mathbf{I}}_d\), we have: \[\require{physics} \nabla^2 F_\mu({\boldsymbol{\theta}}) = \frac{1}{\mu^2} \mathbb{E}_{\mathbf{u}}\left[\nabla_{\mathbf{u}}\qty(F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) {\mathbf{u}}) - F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) {\mathbf{I}}_d\right] \overset{(a)}{=} \frac{1}{\mu^2} \mathbb{E}_{\mathbf{u}}\left[F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) \qty({\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d)\right] \;,\] where \((a)\) again follows from Stein’s identity. ◻
Proof. We first simplify the Hessian estimator in 8 by: \[\begin{align} \widehat{{\mathbf{H}}}({\boldsymbol{\theta}}) =& \frac{1}{K - 1} \sum_{k=1}^{K} \frac{f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_k; \xi) - \frac{1}{K} \sum_{k'=1}^{K} f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_{k'}; \xi)}{\mu^2} {\mathbf{u}}_k{\mathbf{u}}_k^{\top} \\ =& \frac{1}{K - 1} \sum_{k=1}^{K} \frac{\frac{K - 1}{K} f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_k; \xi) - \frac{1}{K} \sum_{\substack{k'=1 \\ k' \neq k}}^{K} f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_{k'}; \xi)}{\mu^2} {\mathbf{u}}_k{\mathbf{u}}_k^{\top} \;. \end{align}\]
Take the expectation over \(\{{\mathbf{u}}_k\}_{k=1}^{K}\) and \(\xi\) on both sides, we have: \[\require{physics} \begin{align} \mathbb{E}\qty[\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})] =& \frac{1}{K - 1} \sum_{k=1}^{K} \mathbb{E}_{{\mathbf{u}}} \mathbb{E}_{\xi} \left[\frac{\frac{K - 1}{K} f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_k; \xi) - \frac{1}{K} \sum_{\substack{k'=1 \\ k' \neq k}}^{K} f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_{k'}; \xi)}{\mu^2} {\mathbf{u}}_k{\mathbf{u}}_k^{\top} \right] \\ \overset{(a)}{=}& \frac{1}{K - 1} \sum_{k=1}^{K} \mathbb{E}_{{\mathbf{u}}} \left[\frac{\frac{K - 1}{K} F({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_k) - \frac{1}{K} \sum_{\substack{k'=1 \\ k' \neq k}}^{K} F({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_{k'})}{\mu^2} {\mathbf{u}}_k{\mathbf{u}}_k^{\top} \right] \\ =& \frac{1}{K - 1} \sum_{k=1}^{K} \frac{\frac{K - 1}{K} \mathbb{E}_{{\mathbf{u}}} \qty[F({\boldsymbol{\theta}}+ \mu{\mathbf{u}}) {\mathbf{u}}{\mathbf{u}}^{\top}] - \frac{1}{K} \sum_{\substack{k'=1 \\ k' \neq k}}^{K} \mathbb{E}_{{\mathbf{u}}} \qty[F({\boldsymbol{\theta}}+ \mu{\mathbf{u}}) {\mathbf{I}}_d]}{\mu^2} \\ =& \frac{1}{K - 1} \sum_{k=1}^{K} \frac{\frac{K - 1}{K} \mathbb{E}_{{\mathbf{u}}} \qty[F({\boldsymbol{\theta}}+ \mu{\mathbf{u}}) {\mathbf{u}}{\mathbf{u}}^{\top}] - \frac{K - 1}{K} \mathbb{E}_{{\mathbf{u}}} \qty[F({\boldsymbol{\theta}}+ \mu{\mathbf{u}}) {\mathbf{I}}_d]}{\mu^2} \\ =& \mathbb{E}_{{\mathbf{u}}} \left[\frac{F({\boldsymbol{\theta}}+ \mu{\mathbf{u}}) \qty({\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d)}{\mu^2}\right] \\ \overset{(b)}{=}& \nabla^2 F_\mu({\boldsymbol{\theta}}) \;, \end{align}\] where \((a)\) follows from the independence of \(\frac{1}{K} \sum_{\substack{k'=1 \\ k' \neq k}}^{K} f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_{k'}; \xi)\) and \({\mathbf{u}}_k{\mathbf{u}}_k^{\top}\), and \(\mathbb{E}_{{\mathbf{u}}} [u u^{\top}] = {\mathbf{I}}_d\). Step \((b)\) follows from Lem. 3. ◻
Proof. Since the baseline \(b\) is a free parameter in the Hessian estimator, to ensure unbiasedness, we consider the Monte Carlo implementation of Prop. 1: \[\require{physics} \label{eq:hess-est-gaussian} \widehat{{\mathbf{H}}}({\boldsymbol{\theta}}) = \frac{1}{K} \sum_{k=1}^{K} \frac{f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_k; \xi) - b}{\mu^2} \qty({\mathbf{u}}_k{\mathbf{u}}_k^{\top} - {\mathbf{I}}_d) \;,\tag{26}\] where the baseline \(b\) is a constant independent of the random directions \(\{{\mathbf{u}}_k\}_{k=1}^{K}\).
We verify that the Hessian estimator in 26 is unbiased: \[\require{physics} \label{eq:hess-est-gaussian-bias} \mathbb{E}\qty[\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})] \overset{(a)}{=} \mathbb{E}_{{\mathbf{u}}} \left[\frac{F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) - b}{\mu^2} \qty({\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d) \right] \overset{(b)}{=} \mathbb{E}_{{\mathbf{u}}} \left[\frac{F({\boldsymbol{\theta}}+ \mu {\mathbf{u}})}{\mu^2} \qty({\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d) \right] \overset{(c)}{=} \nabla^2 F_\mu({\boldsymbol{\theta}}) \;,\tag{27}\] where \((a)\) follows from the independence of \(\{{\mathbf{u}}_k\}\) across different queries \(k\), \((b)\) uses the property \(\mathbb{E}_{{\mathbf{u}}}[{\mathbf{u}}{\mathbf{u}}^{\top}] = {\mathbf{I}}_d\), and \((c)\) follows from Stein’s identity.
Next, the variance of the Hessian estimator in 26 is given by: \[\require{physics} \label{eq:var-decomp} \begin{align} &\mathrm{Var}\qty(\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})) = \mathbb{E}\qty[\norm{\widehat{{\mathbf{H}}}({\boldsymbol{\theta}}) - \nabla^2 F_{\mu}({\boldsymbol{\theta}})}_F^2] = \mathbb{E}\left[ \norm{\widehat{{\mathbf{H}}}({\boldsymbol{\theta}}) }_F^2 \right] - 2 \Tr\left( \mathbb{E}\left[\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})\right]^{\top} \nabla^2 F_{\mu}({\boldsymbol{\theta}}) \right) + \norm{\nabla^2 F_{\mu}({\boldsymbol{\theta}})}_F^2 \\ \overset{(a)}{=}& \mathbb{E}\left[ \norm{\frac{1}{K} \sum_{k=1}^{K} \frac{f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_k; \xi) - b}{\mu^2} \qty({\mathbf{u}}_k{\mathbf{u}}_k^{\top} - {\mathbf{I}}_d) }_F^2 \right] - \norm{\nabla^2 F_{\mu}({\boldsymbol{\theta}})}_F^2 \;, \end{align}\tag{28}\] where \((a)\) follows from 27 .
Differentiating the variance with respect to the baseline \(b\) yields: \[\require{physics} \begin{align} \frac{\partial}{\partial b} \mathrm{Var}\qty(\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})) =& 2 \mathbb{E}\left[ \left\langle \frac{1}{K} \sum_{k=1}^{K} \frac{f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_k; \xi) - b}{\mu^2} \qty({\mathbf{u}}_k{\mathbf{u}}_k^{\top} - {\mathbf{I}}_d), \frac{1}{K} \sum_{k=1}^{K} \qty(-\frac{1}{\mu^2}) \qty({\mathbf{u}}_k{\mathbf{u}}_k^{\top} - {\mathbf{I}}_d) \right\rangle_F \right] \\ \overset{(a)}{=}& -\frac{2}{K^2 \mu^4} \sum_{k = 1}^{K} \mathbb{E}\left[ \left\langle \qty(f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_k; \xi) - b) \qty({\mathbf{u}}_k{\mathbf{u}}_k^{\top} - {\mathbf{I}}_d), \qty({\mathbf{u}}_k{\mathbf{u}}_k^{\top} - {\mathbf{I}}_d) \right\rangle_F \right] \\ =& -\frac{2}{K^2 \mu^4} \sum_{k = 1}^{K} \mathbb{E}_{\mathbf{u}}\left[ \left\langle \qty(F({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_k) - b) \qty({\mathbf{u}}_k{\mathbf{u}}_k^{\top} - {\mathbf{I}}_d), \qty({\mathbf{u}}_k{\mathbf{u}}_k^{\top} - {\mathbf{I}}_d) \right\rangle_F \right] \\ =& -\frac{2}{K^2 \mu^4} \sum_{k = 1}^{K} \mathbb{E}_{\mathbf{u}}\left[ \left(F({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_k) - b\right) \norm{\qty({\mathbf{u}}_k{\mathbf{u}}_k^{\top} - {\mathbf{I}}_d)}_F^2 \right] \;, \end{align}\] where \((a)\) follows from the independence of \(\{{\mathbf{u}}_k\}\) across different queries \(k\).
Setting \(\require{physics} \frac{\partial}{\partial b} \mathrm{Var}\qty(\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})) = 0\), we have: \[\require{physics} b^* = \frac{\sum_{k = 1}^{K} \mathbb{E}_{\mathbf{u}}\left[ F({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_k) \norm{\qty({\mathbf{u}}_k{\mathbf{u}}_k^{\top} - {\mathbf{I}}_d)}_F^2 \right]}{\sum_{k = 1}^{K} \mathbb{E}_{\mathbf{u}}\left[ \norm{\qty({\mathbf{u}}_k{\mathbf{u}}_k^{\top} - {\mathbf{I}}_d)}_F^2 \right]} = \frac{\mathbb{E}_{\mathbf{u}}\left[ F({\boldsymbol{\theta}}+ \mu{\mathbf{u}}) \norm{\qty({\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d)}_F^2 \right]}{\mathbb{E}_{\mathbf{u}}\left[ \norm{\qty({\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d)}_F^2 \right]} \;.\]
In particular, when \({\mathbf{u}}\sim {\mathcal{N}}(0, {\mathbf{I}}_d)\) as \(d \to \infty\), such that \(\require{physics} \norm{\qty({\mathbf{u}}_k{\mathbf{u}}_k^{\top} - {\mathbf{I}}_d)}_F^2\) is effectively constant, the optimal baseline reduces to the expected function value: \[b^* = \mathbb{E}_{\mathbf{u}}\left[ F({\boldsymbol{\theta}}+ \mu{\mathbf{u}}) \right] = F_\mu({\boldsymbol{\theta}}) \;.\]
Finally, following the discussion in Appx. 11.1, which establishes that Prop. 1 with an averaged baseline is equivalent to Def. 1, we conclude that the Hessian estimator in Def. 1 also attains the minimum variance among all constant baselines. ◻
Before proving Thm. 6, we first present the variance analysis of the Hessian estimator with the optimal baseline in Thm. 5:
Lemma 10 (Variance of Hessian Estimator). Consider the Hessian estimator utilizing the optimal baseline derived in Thm. 5. Let \({\mathbf{u}}\sim \mathcal{N}(\boldsymbol{0}, {\mathbf{I}}_d)\). Under Assump. 1 and 2, the variance of the estimator is bounded by: \[\require{physics} \mathbb{E}\qty[\norm{\widehat{{\mathbf{H}}}({\boldsymbol{\theta}}) - \nabla^2 F_{\mu}({\boldsymbol{\theta}})}_F^2] \le \frac{K d (d + 2) V}{(K - 1)^2 \mu^4} \;,\] where \(V \triangleq \sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 2)\).
Proof. We adopt the decomposition of the variance of the Hessian estimator from 28 , and let \(b\) be the averaged baseline in Thm. 5. Then we have: \[\require{physics} \label{eq:var-decomp-1} \begin{align} \mathrm{Var}\qty(\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})) =& \mathbb{E}\left[ \norm{\frac{1}{K - 1} \sum_{k=1}^{K} \frac{f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_k; \xi) - b}{\mu^2} {\mathbf{u}}_k{\mathbf{u}}_k^{\top} }_F^2 \right] - \norm{\nabla^2 F_{\mu}({\boldsymbol{\theta}})}_F^2 \\ \le& \mathbb{E}\left[ \norm{\frac{1}{K - 1} \sum_{k=1}^{K} \frac{f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_k; \xi) - b}{\mu^2} {\mathbf{u}}_k{\mathbf{u}}_k^{\top} }_F^2 \right] \\ \overset{(a)}{=}& \frac{1}{(K - 1)^2 \mu^4} \sum_{k = 1}^{K} \mathbb{E}\left[ \left|f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_k; \xi) - F_\mu({\boldsymbol{\theta}})\right|^2 \norm{{\mathbf{u}}_k{\mathbf{u}}_k^{\top}}_F^2 \right] \\ =& \frac{K}{(K - 1)^2 \mu^4} \mathbb{E}\left[ \left|f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}; \xi) - F_\mu({\boldsymbol{\theta}})\right|^2 \norm{{\mathbf{u}}}^4 \right] \\ \overset{(b)}{\le}& \frac{K d (d + 2) V}{(K - 1)^2 \mu^4} \;, \end{align}\tag{29}\] where \((a)\) follows from the independence of \(\{{\mathbf{u}}_k\}\) across different queries \(k\), \((b)\) comes from Lem. 7. Here, we denote \(V \triangleq \sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 2)\) for simplicity. ◻
Now we are ready to prove Thm. 6.
Proof. The total error is bounded as: \[\require{physics} \label{eq:bias-variance-decomp} \begin{align} &\mathbb{E}\qty[\norm{\widehat{{\mathbf{H}}}({\boldsymbol{\theta}}) - \nabla^2 F({\boldsymbol{\theta}})}_F^2] \overset{(a)}{=} \mathbb{E}\qty[\norm{\widehat{{\mathbf{H}}}({\boldsymbol{\theta}}) - \nabla^2 F_{\mu}({\boldsymbol{\theta}})}_F^2] + \norm{\nabla F_\mu({\boldsymbol{\theta}}) - \nabla F({\boldsymbol{\theta}})}_F^2 \overset{(b)}{\le} \frac{K d (d + 2) V}{(K - 1)^2 \mu^4} + L_2^2 \mu^2 d \;, \end{align}\tag{30}\] where \((a)\) follows \(\require{physics} \mathbb{E}\qty[\widehat{{\mathbf{H}}}({\boldsymbol{\theta}}) - \nabla^2 F_{\mu}({\boldsymbol{\theta}})] = 0\) from Thm. 4, and \((b)\) comes from Thm. 10 and Lem. 6. Here we denote \(V \triangleq \sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 2)\) in the last step for simplicity. ◻
Proof. The Hessian estimator in Def. 1 can be rewritten as: \[\widehat{{\mathbf{H}}}({\boldsymbol{\theta}}) = \frac{1}{K - 1} \sum_{k=1}^{K} \frac{f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_k; \xi) - \frac{1}{K} \sum_{k'=1}^{K} f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_{k'}; \xi)}{\mu^2} {\mathbf{u}}_k{\mathbf{u}}_k^{\top} \cdot \mathcal{W}({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_k) = U D U^{\top} \;,\] where we denote \(\require{physics} {\mathbf{D}}= \operatorname{diag}(\nu_{1} / \qty(K - 1), \ldots, \nu_{K} / \qty(K - 1)) \in {\mathbb{R}}^{K \times K}\) with \(\nu_{k} = \frac{f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_{k}; \xi) - \frac{1}{K} \sum_{k'=1}^{K} f({\boldsymbol{\theta}}+ \mu{\mathbf{u}}_{k'}; \xi)}{\mu^2} \mathcal{W}({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_k)\), and \({\mathbf{U}}= [{\mathbf{u}}_1, {\mathbf{u}}_2, \ldots, {\mathbf{u}}_{K}] \in {\mathbb{R}}^{d \times K}\).
According to the Woodbury matrix identity [@woodbury-matrix-identity], we have: \[\require{physics} \qty(\widehat{{\mathbf{H}}}({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1} = \qty(\lambda {\mathbf{I}}_d + {\mathbf{U}}{\mathbf{D}}{\mathbf{U}}^{\top})^{-1} = \frac{1}{\lambda} {\mathbf{I}}_d - \frac{1}{\lambda^2} {\mathbf{U}}\qty({\mathbf{D}}^{-1} + \frac{1}{\lambda} {\mathbf{U}}^{\top} {\mathbf{U}})^{-1} {\mathbf{U}}^{\top} \;.\]
If we consider the diagonal approximation of \({\mathbf{U}}\) (i.e. assuming \(\{{\mathbf{u}}_k\}_{k=1}^K\) are orthogonal), then \({\mathbf{U}}^{\top} {\mathbf{U}}\) is a diagonal matrix with the \(k\)-th diagonal element being \(\norm{{\mathbf{u}}_k}^2\). The inverse term can be calculated as: \[\require{physics} {\mathbf{D}}^{-1} + \frac{1}{\lambda} {\mathbf{U}}^{\top} {\mathbf{U}}= \operatorname{diag}\qty(\frac{K - 1}{\nu_{k}} + \frac{1}{\lambda} \norm{{\mathbf{u}}_{k}}^2)_{k=1}^{K} \;.\]
Therefore, the approximated inverse Hessian \(\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}})\) is: \[\require{physics} \widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) = \frac{1}{\lambda} {\mathbf{I}}_d - \frac{1}{\lambda^2} \sum_{k=1}^{K} \frac{{\mathbf{u}}_{k} {\mathbf{u}}_{k}^{\top}}{\frac{K - 1}{\nu_{k}} + \frac{1}{\lambda} \norm{{\mathbf{u}}_{k}}^2} = \frac{1}{\lambda} {\mathbf{I}}_d - \sum_{k=1}^{K} \frac{\nu_{k}}{\lambda \qty(\lambda (K - 1) + \nu_{k} \norm{{\mathbf{u}}_{k}}^2)} {\mathbf{u}}_{k} {\mathbf{u}}_{k}^{\top} \;.\] ◻
Proof. Adopt from inverse Hessian estimator in 13 , we have: \[\require{physics} \widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) \hat{\nabla} F({\boldsymbol{\theta}}) = \left(\frac{1}{\lambda} {\mathbf{I}}_d - \sum_{k = 1}^{K} \frac{\mu \nu_{k}}{\lambda \qty(\lambda (K - 1) + \nu_{k} \norm{{\mathbf{u}}_{k}}^2)} {\mathbf{u}}_{k} {\mathbf{u}}_{k}^{\top}\right) \hat{\nabla} F \;.\]
The first term is simple: \[\frac{1}{\lambda} {\mathbf{I}}_d \hat{\nabla} F({\boldsymbol{\theta}}) = \frac{1}{\lambda (K - 1)} \sum_{k = 1}^{K} \mu \nu_k {\mathbf{u}}_k \;.\]
While for the second term, to reduce the bias introduced by the correlation between the same random directions used in Hessian and gradient estimation, we remove the random direction that is used in the Hessian estimation from the gradient estimation, i.e., we have: \[\require{physics} \begin{align} &\qty(\sum_{k = 1}^{K} \frac{\mu \nu_{k}}{\lambda \qty(\lambda (K - 1) + \nu_{k} \norm{{\mathbf{u}}_{k}}^2)} {\mathbf{u}}_{k} {\mathbf{u}}_{k}^{\top}) \hat{\nabla} F({\boldsymbol{\theta}}) = \qty(\sum_{k = 1}^{K} \frac{\mu \nu_{k}}{\lambda \qty(\lambda (K - 1) + \nu_{k} \norm{{\mathbf{u}}_{k}}^2)} {\mathbf{u}}_{k} {\mathbf{u}}_{k}^{\top}) \qty(\frac{1}{K - 2} \sum_{\substack{k' = 1 \\ k' \neq k}}^{K} \mu \nu_{k'} {\mathbf{u}}_{k'}) \\ =& \frac{1}{K - 2} \sum_{k = 1}^{K} \sum_{\substack{k' = 1 \\ k' \neq k}}^{K} \frac{\mu \nu_{k} \mu \nu_{k'}}{\lambda \qty(\lambda (K - 1) + \nu_{k} \norm{{\mathbf{u}}_{k}}^2)} {\mathbf{u}}_{k} \qty({\mathbf{u}}_{k}^{\top} {\mathbf{u}}_{k'}) = \sum_{k = 1}^{K} \mu \nu_{k} \frac{{\mathbf{u}}_k^\top \qty(\sum_{k' = 1, k' \neq k}^{K} \nu_{k'} {\mathbf{u}}_{k'}) / \qty(K - 2)}{\lambda \qty(\lambda (K - 1) + \nu_{k} \norm{{\mathbf{u}}_{k}}^2)} {\mathbf{u}}_{k} \;. \end{align}\]
Combining the two terms together, we have: \[\require{physics} \widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) \hat{\nabla} F({\boldsymbol{\theta}}) = \sum_{k = 1}^{K} \mu \nu_{k} \left(\frac{1}{\lambda (K - 1)} - \frac{{\mathbf{u}}_k^\top \qty(\sum_{k' = 1, k' \neq k}^{K} \nu_{k'} {\mathbf{u}}_{k'}) / \qty(K - 2)}{\lambda \qty(\lambda (K - 1) + \nu_{k} \norm{{\mathbf{u}}_{k}}^2)}\right) {\mathbf{u}}_{k} \;.\] ◻
Proof. We first use Resolvent identity to decompose the error between two inverse Hessians into: \[\require{physics} \label{eq:inv-hess-bias-decomp} \begin{align} &\mathbb{E}\qty[\norm{\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) - \qty(\nabla^2 F_{\mu}({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1}}_F^2] \\ \overset{(a)}{=}& \mathbb{E}\qty[\norm{ \widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) \qty(\nabla^2 F_{\mu}({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d - \widetilde{{\mathbf{H}}}({\boldsymbol{\theta}})) \qty(\nabla^2 F_{\mu}({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1} }_F^2] \\ \overset{(b)}{\le}& \mathbb{E}\qty[\norm{ \widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) }_2^2 \norm{ \nabla^2 F_{\mu}({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d - \widetilde{{\mathbf{H}}}({\boldsymbol{\theta}}) }_F^2] \norm{(\nabla^2 F_{\mu}({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1} }_2^2 \;, \end{align}\tag{31}\] where \((a)\) follows from the Resolvent identity \({\mathbf{A}}^{-1} - {\mathbf{B}}^{-1} = {\mathbf{A}}^{-1} ({\mathbf{B}}- {\mathbf{A}}) {\mathbf{B}}^{-1}\) for any invertible matrices \({\mathbf{A}}\) and \({\mathbf{B}}\), and \((b)\) follows from the Cauchy-Schwarz inequality.
We next bound these three terms in 31 respectively. For the first term, we have: \[\require{physics} \norm{ \widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) }_2^2 = \norm{\frac{1}{\lambda} {\mathbf{I}}_d - \sum_{k=1}^{K} \frac{\nu_{k}}{\lambda \qty(\lambda (K - 1) + \nu_{k} \norm{{\mathbf{u}}_{k}}^2)} {\mathbf{u}}_{k} {\mathbf{u}}_{k}^{\top}}_2^2 \;.\]
Note that the summation \(\require{physics} \sum_{k=1}^{K} \frac{\nu_{k}}{\lambda \qty(\lambda (K - 1) + \nu_{k} \norm{{\mathbf{u}}_{k}}^2)} {\mathbf{u}}_{k} {\mathbf{u}}_{k}^{\top}\) is a rank-\(K\) matrix. Under the orthogonality assumption of random directions \(\{u_k\}_{k=1}^K\), the eigenvalues of \(\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}})\) related to the subspace spanned by \(\{{\mathbf{u}}_k\}_{k=1}^K\) can be computed as: \[\require{physics} \lambda_k = \frac{1}{\lambda} - \frac{\nu_{k} \norm{{\mathbf{u}}_{k}}^2}{\lambda \qty(\lambda (K - 1) + \nu_{k} \norm{{\mathbf{u}}_{k}}^2)} = \frac{K - 1}{\lambda (K - 1) + \nu_{k} \norm{{\mathbf{u}}_{k}}^2} = \frac{1}{\lambda \qty(1 + t_k)} \;,\] where we denote \(\require{physics} t_k \triangleq \nu_k \norm{{\mathbf{u}}_k}^2 / \qty(\lambda (K - 1))\) for simplicity.
Meanwhile, in the orthogonal complement subspace, the eigenvalues are all \(1 / \lambda\). Therefore, we have: \[\norm{ \widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) }_2^2 = \max \left\{\frac{1}{\lambda^2}, \max_{k = 1, \dots, K} \frac{1}{\lambda^2 (1 + t_k)^2} \right\} = \frac{1}{\lambda^2} \max \left\{1, \max_{k = 1, \dots, K} \frac{1}{(1 + t_k)^2} \right\} \;.\]
To avoid singularity, we assume the existence of a positive constant \(\rho \in (0, 1]\) such that \(|t_k + 1| \ge \rho\) for all \(k\). There are two cases to consider:
For case \(t_k \ge 0\) or \(t_k \le -2\), we have \(1 / (1 + t_k)^2 \le 1\), thus \(\norm{ \widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) }_2^2 = 1 / \lambda^2\).
For case \(\rho - 1 \le t_k < 0\) or \(-2 < t_k \le -1 - \rho\), we have \(1 / (1 + t_k)^2 \ge 1\), thus: \[\norm{ \widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) }_2^2 = \max_{k = 1, \dots, K} \frac{1}{\lambda^2 (1 + t_k)^2} \le \frac{1}{\lambda^2 \rho^2} \;.\]
Overall, since \(\rho \in (0, 1]\), we have: \[\norm{ \widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) }_2^2 \le \frac{1}{\lambda^2 \rho^2}\]
Then, the second term in 31 can be bounded by Thm. 6: \[\require{physics} \mathbb{E}\qty[\norm{ \nabla^2 F_{\mu}({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d - \widetilde{{\mathbf{H}}}({\boldsymbol{\theta}}) }_F^2] \le \frac{K d (d + 2) V}{(K - 1)^2 \mu^4} + L_2^2 \mu^2 d\]
For the third term in 31 : \[\require{physics} \label{eq:inv-hess-bias-decomp-3} \begin{align} \norm{(\nabla^2 F({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1} }_2^2 \le \norm{(\nabla^2 F({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1} }_F^2 = \sum_{i=1}^{d} \frac{1}{\qty(\sigma_i + \lambda)^2} \le \frac{d}{\qty(\sigma_{\min} + \lambda)^2} \;, \end{align}\tag{32}\] where \(\sigma_i\) denotes the \(i\)-th eigenvalue of \(\nabla^2 F({\boldsymbol{\theta}})\), and \(\sigma_{\min}\) denotes the smallest eigenvalue respectively.
Overall, we have: \[\require{physics} \mathbb{E}\qty[\norm{\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) - \qty(\nabla^2 F_{\mu}({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1}}_F^2] \le \frac{d}{\lambda^2 \rho^2 \qty(\sigma_{\min} + \lambda)^2} \qty(\frac{K d (d + 2) V}{(K - 1)^2 \mu^4} + L_2^2 \mu^2 d) \;.\] ◻
Theorem 11 (Bias of Inverse Hessian-Gradient Product Estimator (Formal)). Assume that the objective function is bounded, i.e. there exists a positive constant \(G\) such that \(f({\boldsymbol{\theta}}; \xi) \le G\) for all \({\boldsymbol{\theta}}\in \mathbb{R}^d\) and \(\xi\). Under Assump. 1, 2, and the orthogonality of random directions \(\{{\mathbf{u}}_k\}_{k=1}^K\), the bias of the inverse Hessian-gradient product approximation in 14 with respect to the true inverse Hessian-gradient product is bounded by: \[\require{physics} \mathbb{E}\qty[\norm{\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}})\hat{\nabla} F({\boldsymbol{\theta}}) - \qty(\nabla^2 F({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1} \nabla F({\boldsymbol{\theta}})}^2] \le \frac{K d^2 \qty(B_1 \sigma_\xi^2 + 4 B_2 L_0^2 \mu^2)}{\lambda^2 \qty(\sigma_{\min} + \lambda)^2 (K - 1)^2} \;,\] where \(B_1 \triangleq \frac{B}{\mu^6} + L_2^2 d\), and \(\require{physics} B_2 \triangleq \frac{B}{\mu^6} \qty(d + 3) + L_2^2 d (d + 1)\), and \(\require{physics} B \triangleq \frac{4 K G^2}{\qty(K - 1)^2 \mu^6} \qty(d + 2) (d + 4)\). Besides, \(\sigma_{\min}\) denotes the minimum eigenvalue of the true Hessian \(\nabla^2 F({\boldsymbol{\theta}})\).
Proof. We first decompose the error of the inverse Hessian-gradient product approximation into: \[\require{physics} \label{eq:inv-hess-grad-prod-bias-decomp} \begin{align} &\mathbb{E}\qty[\norm{\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) \hat{\nabla} F({\boldsymbol{\theta}}) - \qty(\nabla^2 F({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1} \nabla F({\boldsymbol{\theta}})}^2] \\ \overset{(a)}{\le}& 2 \underbrace{\mathbb{E}\qty[\norm{\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) \hat{\nabla} F({\boldsymbol{\theta}}) - \qty(\nabla^2 F({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1} \hat{\nabla} F({\boldsymbol{\theta}})}^2]}_{\raisebox{.5pt}{\textcircled{\raisebox{-.9pt} {1}}}} \\ & \quad + 2 \underbrace{\mathbb{E}\qty[\norm{\qty(\nabla^2 F({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1} \hat{\nabla} F({\boldsymbol{\theta}}) - \qty(\nabla^2 F({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1} \nabla F({\boldsymbol{\theta}})}^2]}_{\raisebox{.5pt}{\textcircled{\raisebox{-.9pt} {2}}}} \;, \end{align}\tag{33}\] where \((a)\) follows from the inequality \((a + b)^2 \le 2 (a^2 + b^2)\).
For the first term in 33 , we have: \[\require{physics} \label{eq:inv-hess-grad-prod-bias-decomp-1} \begin{align} &\mathbb{E}\qty[\norm{\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) \hat{\nabla} F({\boldsymbol{\theta}}) - \qty(\nabla^2 F({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1} \hat{\nabla} F({\boldsymbol{\theta}})}^2] \\ \overset{(a)}{=}& \mathbb{E}\qty[\norm{\qty(\nabla^2 F({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1} \qty(\widetilde{{\mathbf{H}}}({\boldsymbol{\theta}}) - \nabla^2 F({\boldsymbol{\theta}}) - \lambda {\mathbf{I}}_d) \widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) \hat{\nabla} F({\boldsymbol{\theta}})}^2] \\ \overset{(b)}{\le}& \mathbb{E}\qty[\norm{\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) \hat{\nabla} F({\boldsymbol{\theta}})}^2 \norm{\widetilde{{\mathbf{H}}}({\boldsymbol{\theta}}) - \nabla^2 F({\boldsymbol{\theta}}) - \lambda {\mathbf{I}}_d}_F^2] \norm{\qty(\nabla^2 F({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1}}_2^2 \;, \end{align}\tag{34}\] where \((a)\) follows from the Resolvent identity \({\mathbf{A}}^{-1} - {\mathbf{B}}^{-1} = {\mathbf{B}}^{-1} ({\mathbf{B}}- {\mathbf{A}}) {\mathbf{A}}^{-1}\) for any invertible matrices \({\mathbf{A}}\) and \({\mathbf{B}}\), and \((b)\) follows from \(\norm{{\mathbf{A}}{\mathbf{v}}}^2 \le \norm{{\mathbf{A}}}_2^2 \norm{{\mathbf{v}}}^2\), \(\norm{{\mathbf{A}}{\mathbf{B}}}_2 \le \norm{{\mathbf{A}}}_2 \norm{{\mathbf{B}}}_2\), and \(\norm{{\mathbf{A}}}_2 \le \norm{{\mathbf{A}}}_F\) for any matrices \({\mathbf{A}}, {\mathbf{B}}\) and vector \({\mathbf{v}}\).
We next bound the three terms in 34 respectively. For the first term, we have: \[\require{physics} \label{eq:inv-hess-grad-prod-norm-1} \norm{\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) \hat{\nabla} F({\boldsymbol{\theta}})}^2 = \norm{\sum_{k = 1}^{K} \mu \nu_{k} \left(\frac{1}{\lambda (K - 1)} - \frac{{\mathbf{u}}_k^\top \qty(\sum_{k' = 1, k' \neq k}^{K} \nu_{k'} {\mathbf{u}}_{k'}) / \qty(K - 2)}{\lambda \qty(\lambda (K - 1) + \nu_{k} \norm{{\mathbf{u}}_{k}}^2)}\right) {\mathbf{u}}_{k}}^2 \;.\tag{35}\]
Under the assumption that \(\norm{{\mathbf{u}}_k} = 1\), and \(\{{\mathbf{u}}_k\}_{k=1}^K\) are orthogonal, the second term in 35 reduces to zero, and we then have: \[\label{eq:inv-hess-grad-prod-norm-2} \norm{\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) \hat{\nabla} F({\boldsymbol{\theta}})}^2 = \norm{\sum_{k = 1}^{K} \frac{\mu \nu_{k}}{\lambda (K - 1)} {\mathbf{u}}_{k}}^2 \overset{(a)}{=} \frac{\mu^2}{\lambda^2 (K - 1)^2}\sum_{k = 1}^{K} \nu_{k}^2 \norm{{\mathbf{u}}_k}^2 = \frac{K \mu^2}{\lambda^2 (K - 1)^2} \nu^2 \norm{{\mathbf{u}}}^2 \;,\tag{36}\] where \((a)\) follows from the independence of \(\{{\mathbf{u}}_k\}_{k=1}^K\).
Next, the second term in 34 can be bounded by: \[\label{eq:inv-hess-grad-prod-norm-3} \norm{\widetilde{{\mathbf{H}}}({\boldsymbol{\theta}}) - \nabla^2 F({\boldsymbol{\theta}}) - \lambda {\mathbf{I}}_d }_F^2 \overset{(a)}{\le} \norm{\widehat{{\mathbf{H}}}({\boldsymbol{\theta}}) - \nabla^2 F_{\mu}({\boldsymbol{\theta}})}_F^2 + L_2^2 \mu^2 d \overset{(b)}{\le} \frac{K}{(K - 1)^2} \nu^2 \norm{{\mathbf{u}}}^4 + L_2^2 \mu^2 d \;.\tag{37}\] where \((a)\) results from 30 , and \((b)\) follows from 29 .
Combine 36 and 37 , we have: \[\require{physics} \label{eq:inv-hess-grad-prod-norm-4} \begin{align} &\mathbb{E}\qty[\norm{\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) \hat{\nabla} F({\boldsymbol{\theta}})}^2 \norm{\widetilde{{\mathbf{H}}}({\boldsymbol{\theta}}) - \nabla^2 F({\boldsymbol{\theta}}) - \lambda {\mathbf{I}}_d}_F^2] \le \frac{K \mu^2}{\lambda^2 (K - 1)^2} \mathbb{E}\qty[\nu^2 \norm{{\mathbf{u}}}^2 \left(\frac{K}{(K - 1)^2} \nu^2 \norm{{\mathbf{u}}}^4 + L_2^2 \mu^2 d\right)] \\ =& \frac{K \mu^2}{\lambda^2 (K - 1)^2} \qty(\frac{K}{(K - 1)^2} \mathbb{E}[\nu^4 \norm{{\mathbf{u}}}^6] + L_2^2 \mu^2 d \mathbb{E}[\nu^2 \norm{{\mathbf{u}}}^2]) \;. \end{align}\tag{38}\]
Given Lem. 7 and the following inequality: \[\require{physics} \mathbb{E}[\nu^4 \norm{{\mathbf{u}}}^6] \overset{(a)}{\le} \mathbb{E}[\nu^2 \norm{{\mathbf{u}}}^6] \cdot \max \left|\nu^2\right| \overset{(b)}{\le} \qty(\frac{2 G}{\mu^2})^2 \frac{d (d + 2) (d + 4)}{\mu^4} \left(\sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 3)\right) \;,\] where \((a)\) follows from Holder’s inequality \(\mathbb{E}[|XY|] \le \mathbb{E}[|X|^p]^{1/p} \mathbb{E}[|Y|^q]^{1/q}\) for \(p = 1\) and \(q = \infty\), and \((b)\) comes from Lem. 7 and the bound \(\max |\nu| = \max |f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi) - F_\mu({\boldsymbol{\theta}})| / \mu^2 = 2 G / \mu^2\).
Therefore, 38 can be further bounded by: \[\require{physics} \mathbb{E}\qty[\norm{\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) \hat{\nabla} F({\boldsymbol{\theta}})}^2 \norm{\widetilde{{\mathbf{H}}}({\boldsymbol{\theta}}) - \nabla^2 F({\boldsymbol{\theta}}) - \lambda {\mathbf{I}}_d}_F^2] \le \frac{K d}{\lambda^2 (K - 1)^2}\qty(B_1 \sigma_\xi^2 + 4 B_2 L_0^2 \mu^2) \;,\] where we denote \(\require{physics} B \triangleq \frac{4 K G^2}{\qty(K - 1)^2 \mu^6} \qty(d + 2) (d + 4)\), \(B_1 \triangleq \frac{B}{\mu^6} + L_2^2 d\), and \(\require{physics} B_2 \triangleq \frac{B}{\mu^6} \qty(d + 3) + L_2^2 d (d + 1)\) for simplicity.
Adopting the results from 32 , the third term in 34 can be bounded as: \[\require{physics} \norm{(\nabla^2 F({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1} }_2^2 \le \norm{(\nabla^2 F({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1} }_F^2 = \sum_{i=1}^{d} \frac{1}{\qty(\sigma_i + \lambda)^2} \le \frac{d}{\qty(\sigma_{\min} + \lambda)^2} \;,\] where \(\sigma_i\) denotes the \(i\)-th eigenvalue of \(\nabla^2 F({\boldsymbol{\theta}})\), and \(\sigma_{\min}\) denotes the smallest eigenvalue respectively.
Overall, we have: \[\require{physics} \mathbb{E}\qty[\norm{\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) \hat{\nabla} F({\boldsymbol{\theta}}) - \qty(\nabla^2 F({\boldsymbol{\theta}}) + \lambda {\mathbf{I}}_d)^{-1} \hat{\nabla} F({\boldsymbol{\theta}})}^2] \le \frac{K d^2 \qty(B_1 \sigma_\xi^2 + 4 B_2 L_0^2 \mu^2)}{\lambda^2 \qty(\sigma_{\min} + \lambda)^2 (K - 1)^2} \;.\] ◻
Theorem 12 (Convergence of ZoVH (Formal)). Under Assump. 1, 2, let the baseline \(b_t\) be the optimal baseline in Thm. 5, when \(\require{physics} \eta \sim {\mathcal{O}}\qty(\frac{4 \lambda \qty(\sigma_{\min} + \lambda)^2 (K - 1)^2 \epsilon^2}{L_1 K d^2 \qty(B_1 \sigma_\xi^2 + 4 B_2 L_0^2 \mu^2)}) \sim {\mathcal{O}}(\epsilon^2)\), and \(\require{physics} T \sim {\mathcal{O}}\qty(\frac{2 \lambda \Delta}{\eta \epsilon^2}) \sim {\mathcal{O}}(\epsilon^{-4})\), where \(\Delta \triangleq F({\boldsymbol{\theta}}_0) - F({\boldsymbol{\theta}}^*)\) denotes the initial optimality gap, \(\sigma_{\min}\) denotes the minimum eigenvalue of the true Hessian \(\nabla^2 F({\boldsymbol{\theta}})\), and \(B_1, B_2\) are two constants in Thm. 8, the following holds: \[\require{physics} \frac{1}{T} \sum_{t=0}^{T-1} \mathbb{E}\qty[\norm{\nabla F({\boldsymbol{\theta}}_t)}] \le \epsilon + \frac{\mu L_1 d}{2} \;.\]
Proof. Due to the \(L_1\)-Lipschitz smoothness of \(F({\boldsymbol{\theta}})\) given in Lem. 4, the smoothed objective \(F_\mu({\boldsymbol{\theta}})\) is also \(L_1\)-Lipschitz smooth: \[\norm{\nabla F_\mu({\boldsymbol{\theta}}) - \nabla F_\mu({\boldsymbol{\theta}}')} \overset{(a)}{\le} \mathbb{E}_{{\mathbf{u}}} \left[\norm{\nabla F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) - \nabla F({\boldsymbol{\theta}}' + \mu {\mathbf{u}})}\right] \le L_1 \norm{{\boldsymbol{\theta}}- {\boldsymbol{\theta}}'} \;,\] where \((a)\) follows from Jensen’s inequality.
Therefore, we have: \[\label{eq:F95mu-smoothness} F_\mu({\boldsymbol{\theta}}_{t+1}) - F_\mu({\boldsymbol{\theta}}_t) \le \left\langle\nabla F_\mu({\boldsymbol{\theta}}_t), {\boldsymbol{\theta}}_{t+1} - {\boldsymbol{\theta}}_t \right\rangle + \frac{L_1}{2} \norm{{\boldsymbol{\theta}}_{t+1} - {\boldsymbol{\theta}}_t}^2 \;.\tag{39}\]
For the first term in the RHS of 39 , we have: \[\require{physics} \begin{align} &\mathbb{E}\qty[\left\langle\nabla F_\mu({\boldsymbol{\theta}}_t), {\boldsymbol{\theta}}_{t+1} - {\boldsymbol{\theta}}_t \right\rangle] = - \eta \mathbb{E}\qty[\left\langle\nabla F_\mu({\boldsymbol{\theta}}_t), \widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}_t) \hat{\nabla} F({\boldsymbol{\theta}}_t) \right\rangle] \\ \overset{(a)}{=}& - \eta \mathbb{E}\qty[\left\langle\nabla F_\mu({\boldsymbol{\theta}}_t), \sum_{k = 1}^{K} \mu \nu_{k} \left(\frac{1}{\lambda (K - 1)} - \frac{{\mathbf{u}}_k^\top \qty(\sum_{k' = 1, k' \neq k}^{K} \nu_{k'} {\mathbf{u}}_{k'}) / \qty(K - 2)}{\lambda \qty(\lambda (K - 1) + \nu_{k} \norm{{\mathbf{u}}_{k}}^2)}\right) {\mathbf{u}}_{k} \right\rangle] \\ \overset{(b)}{=}& - \eta \mathbb{E}\qty[\left\langle\nabla F_\mu({\boldsymbol{\theta}}_t), \sum_{k = 1}^{K} \frac{\mu \nu_{k}}{\lambda (K - 1)} {\mathbf{u}}_{k} \right\rangle] = - \frac{\eta}{\lambda} \mathbb{E}\qty[\left\langle\nabla F_\mu({\boldsymbol{\theta}}_t), \hat{\nabla} F({\boldsymbol{\theta}}_t) \right\rangle] \overset{(c)}{=} - \frac{\eta}{\lambda} \norm{\nabla F_\mu({\boldsymbol{\theta}}_t)}^2 \;, \end{align}\] where \((a)\) follows from the definition of \(\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}_t)\), \((b)\) follows from the orthogonality of \(\{{\mathbf{u}}_k\}_{k=1}^K\), and \((c)\) follows from Lem. 5.
For the second term in the RHS of 39 , we have: \[\require{physics} \frac{L_1}{2} \mathbb{E}\qty[\norm{{\boldsymbol{\theta}}_{t+1} - {\boldsymbol{\theta}}_t}^2] = \frac{L_1 \eta^2}{2} \mathbb{E}\qty[\norm{\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}_t) \hat{\nabla} F({\boldsymbol{\theta}}_t)}^2] \overset{(a)}{\le} \frac{L_1 \eta^2 K d^2 \qty(B_1 \sigma_\xi^2 + 4 B_2 L_0^2 \mu^2)}{2 \lambda^2 \qty(\sigma_{\min} + \lambda)^2 (K - 1)^2} \;,\] where \((a)\) follows from the result in Thm. 8.
Summing all iterations from \(0\) to \(T - 1\) to both sides of 39 , and denote \(\Delta = F_\mu({\boldsymbol{\theta}}_0) - F_\mu({\boldsymbol{\theta}}^*)\), we have: \[\require{physics} \frac{1}{T} \sum_{t=0}^{T-1} \mathbb{E}\qty[\norm{\nabla F_\mu({\boldsymbol{\theta}}_t)}^2] \le \frac{\lambda \Delta}{\eta T} + \frac{L_1 \eta K d^2 \qty(B_1 \sigma_\xi^2 + 4 B_2 L_0^2 \mu^2)}{2 \lambda \qty(\sigma_{\min} + \lambda)^2 (K - 1)^2} \;.\]
To simplify the expression, we choose \(\require{physics} \eta \sim {\mathcal{O}}\qty(\frac{4 \lambda \qty(\sigma_{\min} + \lambda)^2 (K - 1)^2 \epsilon^2}{L_1 K d^2 \qty(B_1 \sigma_\xi^2 + 4 B_2 L_0^2 \mu^2)}) \sim {\mathcal{O}}\qty(\epsilon^2)\), and \(\require{physics} T \sim {\mathcal{O}}\qty(\frac{2 \lambda \Delta}{\eta \epsilon^2}) \sim {\mathcal{O}}\qty(\epsilon^{-4})\), such that: \[\require{physics} \frac{1}{T} \sum_{t=0}^{T-1} \mathbb{E}\qty[\norm{\nabla F_\mu({\boldsymbol{\theta}}_t)}^2] \le \frac{1}{2} \epsilon^2 + \frac{1}{2} \epsilon^2 = \epsilon^2 \;.\]
Finally, since \(\norm{\nabla F({\boldsymbol{\theta}}_t) - \nabla F_\mu({\boldsymbol{\theta}}_t)} \le \frac{\mu L_1 d}{2}\), we have: \[\require{physics} \begin{align} &\frac{1}{T} \sum_{t=0}^{T-1} \mathbb{E}\qty[\norm{\nabla F({\boldsymbol{\theta}}_t)}] \le \frac{1}{T} \sum_{t=0}^{T-1} \mathbb{E}\qty[\norm{\nabla F_\mu({\boldsymbol{\theta}}_t)}] + \frac{1}{T} \sum_{t=0}^{T-1} \mathbb{E}\qty[\norm{\nabla F({\boldsymbol{\theta}}_t) - \nabla F_\mu({\boldsymbol{\theta}}_t)}] \\ \overset{(a)}{\le}& \sqrt{\frac{1}{T} \sum_{t=0}^{T-1} \mathbb{E}\qty[\norm{\nabla F_\mu({\boldsymbol{\theta}}_t)}^2]} + \frac{\mu L_1 d}{2} \le \epsilon + \frac{\mu L_1 d}{2} \;, \end{align}\] where \((a)\) follows from Jensen’s inequality. ◻
Before proving Thm. 10, we first present the variance analysis of Hessian estimator with query reuse technique and the optimal baseline in Thm. 5:
Lemma 11 (Variance of Hessian Estimator for \(N>1\)). Consider the Hessian estimator with query reuse in Def. 2 utilizing the optimal baseline derived in Thm. 5. Let \({\mathbf{u}}\sim \mathcal{N}(\boldsymbol{0}, {\mathbf{I}}_d)\). Under Assump. 1 and 2, the variance of the estimator is bounded by: \[\require{physics} \mathbb{E}\qty[\norm{\widehat{{\mathbf{H}}}({\boldsymbol{\theta}}) - \nabla^2 F_{\mu}({\boldsymbol{\theta}})}_F^2] \le \frac{NKd(d+2)\lambda^2V}{\lambda^2(NK-1)^2\mu^4-L_0^2\eta^2 (N-1)^2K/3} \;,\] where \(V \triangleq \sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 2)\).
Proof. We adopt the decomposition of the variance of the Hessian estimator with query reuse from 9 , and let \(b\) be the averaged baseline in Thm. 5. Then we have: \[\require{physics} \label{eq:var-decomp-1-query-reuse} \begin{align} \mathrm{Var}\qty(\widehat{{\mathbf{H}}}({\boldsymbol{\theta}}_{t-1})) =& \mathbb{E}\left[ \norm{\frac{1}{N K - 1} \sum_{n,k=1}^{N,K} \frac{f({\boldsymbol{\theta}}_{t-n} + \mu{\mathbf{u}}_{t-n,k}; \xi) - b}{\mu^2} {\mathbf{u}}_{t-n,k}{\mathbf{u}}_{t-n,k}^{\top} }_F^2 \right] - \norm{\nabla^2 F_{\mu}({\boldsymbol{\theta}}_{t-1})}_F^2 \\ \le& \mathbb{E}\left[ \norm{\frac{1}{N K - 1} \sum_{n,k=1}^{N,K} \frac{f({\boldsymbol{\theta}}_{t-n} + \mu{\mathbf{u}}_{t-n,k}; \xi) - b}{\mu^2} {\mathbf{u}}_{t-n,k}{\mathbf{u}}_{t-n,k}^{\top} }_F^2 \right] \\ \overset{(a)}{=}& \frac{1}{(N K - 1)^2 \mu^4} \sum_{n,k = 1}^{N,K} \mathbb{E}\left[ \left|f({\boldsymbol{\theta}}_{t-n} + \mu{\mathbf{u}}_{t-n,k}; \xi) - \frac{1}{N} \sum_{n'=1}^N F_\mu({\boldsymbol{\theta}}_{t-n'})\right|^2 \norm{{\mathbf{u}}_{t-n,k}{\mathbf{u}}_{t-n,k}^{\top}}_F^2 \right] \\ =& \frac{K}{(NK - 1)^2 \mu^4} \sum_{n=1}^N \mathbb{E}\left[ \left|f({\boldsymbol{\theta}}_{t-n} + \mu{\mathbf{u}}_{t-n,k}; \xi) - \frac{1}{N} \sum_{n'=1}^N F_\mu({\boldsymbol{\theta}}_{t-n'})\right|^2 \norm{{\mathbf{u}}_{t-n,k}{\mathbf{u}}_{t-n,k}^{\top}}_F^2 \right] \\ \overset{(b)}{\le}& \frac{N K d (d + 2) \lambda^2 V}{\lambda^2 (N K - 1)^2 \mu^4 - L_0^2 \eta^2 \mu^2 K (N^2 - 1) d (d + 2) / 3} \;, \end{align}\tag{40}\] where \((a)\) follows from the independence of \(\{{\mathbf{u}}_k\}\) across different queries \(k\), \((b)\) comes from Lem. 9. Here, we denote \(V \triangleq \sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 2)\) for simplicity. ◻
Now we are ready to prove Thm. 10.
Proof. The total error is bounded as: \[\require{physics} \label{eq:bias-variance-decomp-query-reuse} \begin{align} \mathbb{E}\qty[\norm{\widehat{{\mathbf{H}}}({\boldsymbol{\theta}}) - \nabla^2 F({\boldsymbol{\theta}})}_F^2] \overset{(a)}{=}& \mathbb{E}\qty[\norm{\widehat{{\mathbf{H}}}({\boldsymbol{\theta}}) - \nabla^2 F_{\mu}({\boldsymbol{\theta}})}_F^2] + \norm{\nabla F_\mu({\boldsymbol{\theta}}) - \nabla F({\boldsymbol{\theta}})}_F^2 \\ \overset{(b)}{\le}& \frac{N K d (d + 2) \lambda^2 V}{\lambda^2 (N K - 1)^2 \mu^4 - L_0^2 \eta^2 \mu^2 K (N^2 - 1) d (d + 2) / 3} + L_2^2 \mu^2 d \;, \end{align}\tag{41}\] where \((a)\) follows \(\require{physics} \mathbb{E}\qty[\widehat{{\mathbf{H}}}({\boldsymbol{\theta}}) - \nabla^2 F_{\mu}({\boldsymbol{\theta}})] = 0\) from Thm. 4, and \((b)\) comes from Thm. 11 and Lem. 6. Here we denote \(V \triangleq \sigma_\xi^2 + 4 L_0^2 \mu^2 (d + 2)\) in the last step for simplicity. ◻
The Gaussian smoothed Hessian estimator in Prop. 1 with the averaged baseline \(\require{physics} b = \mathbb{E}\qty[f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_k; \xi)]\) is given as: \[\require{physics} \nabla^2 F_{\mu}({\boldsymbol{\theta}}) = \mathbb{E}_{\mathbf{u}}\left[\frac{\mathbb{E}_{\xi}[f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}; \xi)] - \mathbb{E}\qty[f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_k; \xi)]}{\mu^2} \qty({\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d)\right] \;.\]
Moreover, the practical implementation (via Monte Carlo) of the above estimator is: \[\require{physics} \label{eq:hess-est-gaussian-avg-baseline} \widehat{{\mathbf{H}}}({\boldsymbol{\theta}}) = \frac{1}{K - 1} \sum_{k=1}^{K} \frac{f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_k; \xi) - \frac{1}{K} \sum_{k'=1}^{K} f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_{k'}; \xi)}{\mu^2} \qty({\mathbf{u}}_k{\mathbf{u}}_k^{\top} - {\mathbf{I}}_d) \;,\tag{42}\] where the \(\frac{1}{K - 1}\) factor is used to make the estimator unbiased (similar to Def. 1).
The estimator 42 can be further decomposed as: \[\begin{align} \widehat{{\mathbf{H}}}({\boldsymbol{\theta}}) =& \underbrace{\frac{1}{K - 1} \sum_{k=1}^{K} \frac{f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_k; \xi) - \frac{1}{K} \sum_{k'=1}^{K} f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_{k'}; \xi)}{\mu^2} {\mathbf{u}}_k{\mathbf{u}}_k^{\top}}_{\text{Def.~\ref{def:hess-est}}} \\ & \quad - \underbrace{\frac{1}{K - 1} \sum_{k=1}^{K} \frac{f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_k; \xi) - \frac{1}{K} \sum_{k'=1}^{K} f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_{k'}; \xi)}{\mu^2} {\mathbf{I}}_d}_{= 0} \;, \end{align}\] where the first term is exactly the Hessian estimator in Def. 1, and the second term equals zero since: \[\require{physics} \begin{align} & \frac{1}{K - 1} \sum_{k=1}^{K} \frac{f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_k; \xi) - \frac{1}{K} \sum_{k'=1}^{K} f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_{k'}; \xi)}{\mu^2} {\mathbf{I}}_d \\ =& \qty(\frac{1}{K - 1} \sum_{k=1}^{K} \frac{f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_k; \xi)}{\mu^2} - \frac{K}{K - 1} \frac{1}{K} \sum_{k'=1}^{K} \frac{f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_{k'}; \xi)}{\mu^2}) {\mathbf{I}}_d \\ =& \qty(\frac{1}{K - 1} \sum_{k=1}^{K} \frac{f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_k; \xi)}{\mu^2} - \frac{1}{K - 1} \sum_{k=1}^{K} \frac{f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_{k}; \xi)}{\mu^2}) {\mathbf{I}}_d = 0 \;. \end{align}\]
Overall, we show that the Gaussian smoothed Hessian estimator in Prop. 1 with the averaged baseline is equivalent to the one in Def. 1.
The Hessian estimator in Thm. 4 is unbiased for the Gaussian-smoothed Hessian \(\nabla^2 F_\mu({\boldsymbol{\theta}})\) rather than the exact Hessian \(\nabla^2 F({\boldsymbol{\theta}})\). The resulting smoothing bias between \(\nabla^2 F_\mu({\boldsymbol{\theta}})\) and \(\nabla^2 F({\boldsymbol{\theta}})\) is controlled directly by the smoothing radius \(\mu\). Below we present the formal bound on the smoothing bias in terms of \(\mu\):
Proposition 13 (Bias of Smoothed Hessian). Under Assump. 1, for \({\mathbf{u}}\sim {\mathcal{N}}({\boldsymbol{0}},{\mathbf{I}}_d)\) and \(F_\mu({\boldsymbol{\theta}}) = \mathbb{E}_{{\mathbf{u}}}[F({\boldsymbol{\theta}}+\mu{\mathbf{u}})]\), the Gaussian-smoothed Hessian satisfies: \[\norm{\nabla^2 F_\mu({\boldsymbol{\theta}})-\nabla^2 F({\boldsymbol{\theta}})}_F \le L_2 \mu \sqrt{d} \;.\]
Remark. Prop. 13 gives the unsquared version of Lem. 6, thus the proof is similar. The bound in Prop. 13 explicitly characterizes the dependence of the smoothing bias on the smoothing radius \(\mu\). Thus, decreasing \(\mu\) reduces the gap between the smoothed and true Hessians linearly. At the same time, the finite-sample variance terms (Thm. 6) in these bounds contain inverse powers of \(\mu\), so \(\mu\) should be interpreted as a bias-variance tuning parameter rather than simply set as small as possible in noisy finite-sample estimation.
We also empirically evaluate the Frobenius norm gap \(\norm{\nabla^2 F_\mu({\boldsymbol{\theta}})-\nabla^2 F({\boldsymbol{\theta}})}_F\) under different smoothing radii on Rosenbrock and Styblinski-Tang functions to validate Prop. 13.
As shown in Fig. 5, the bias (Frobenius norm gap) proportionally increases with \(\mu\) in a log-log scale, with slopes approximately around \(1\), matching the linear dependence predicted by Prop. 13. These results indicate that the smoothing bias is well controlled for sufficiently small \(\mu\).
The optimal baseline result in Thm. 5 can be interpreted as a direct analogue of the classical control variate principle [@asmussen2007stochastic]. For the Gaussian Hessian identity in Prop. 1, define the random matrix variables: \[\require{physics} {\mathbf{A}}({\mathbf{u}}) \triangleq \frac{F({\boldsymbol{\theta}}+\mu{\mathbf{u}})}{\mu^2}\qty({\mathbf{u}}{\mathbf{u}}^{\top}-{\mathbf{I}}_d), \qquad {\mathbf{B}}({\mathbf{u}}) \triangleq \frac{1}{\mu^2}\qty({\mathbf{u}}{\mathbf{u}}^{\top}-{\mathbf{I}}_d) \;.\] Since \(\mathbb{E}_{\mathbf{u}}[{\mathbf{B}}({\mathbf{u}})]={\boldsymbol{0}}\), the baseline estimator can be written as \({\mathbf{A}}({\mathbf{u}})-b{\mathbf{B}}({\mathbf{u}})\) and remains unbiased for any constant \(b\) that is independent of \({\mathbf{u}}\): \[\mathbb{E}_{\mathbf{u}}[{\mathbf{A}}({\mathbf{u}})-b{\mathbf{B}}({\mathbf{u}})] = \mathbb{E}_{\mathbf{u}}[{\mathbf{A}}({\mathbf{u}})] = \nabla^2 F_\mu({\boldsymbol{\theta}}) \;.\] Thus, the baseline term is a zero-mean control variate whose coefficient is chosen only to reduce variance, not to change the target expectation.
Because the estimator is matrix-valued, the natural scalar criterion is the Frobenius variance, \[\require{physics} \min_{b\in{\mathbb{R}}} \mathbb{E}_{\mathbf{u}}\qty[ \norm{{\mathbf{A}}({\mathbf{u}})-b{\mathbf{B}}({\mathbf{u}})-\nabla^2 F_\mu({\boldsymbol{\theta}})}_F^2 ] \;.\] Differentiating with respect to \(b\) gives \[\require{physics} b^* = \frac{\mathbb{E}_{\mathbf{u}}\qty[\left\langle {\mathbf{A}}({\mathbf{u}})-\nabla^2 F_\mu({\boldsymbol{\theta}}), {\mathbf{B}}({\mathbf{u}})\right\rangle_F]}{\mathbb{E}_{\mathbf{u}}\qty[\norm{{\mathbf{B}}({\mathbf{u}})}_F^2]} = \frac{\mathbb{E}_{\mathbf{u}}\qty[\left\langle {\mathbf{A}}({\mathbf{u}}), {\mathbf{B}}({\mathbf{u}})\right\rangle_F]}{\mathbb{E}_{\mathbf{u}}\qty[\norm{{\mathbf{B}}({\mathbf{u}})}_F^2]} = \frac{\mathbb{E}_{{\mathbf{u}}}\qty[F({\boldsymbol{\theta}}+ \mu {\mathbf{u}}) \norm{{\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d}_F^2]}{\mathbb{E}_{{\mathbf{u}}}\qty[\norm{{\mathbf{u}}{\mathbf{u}}^{\top} - {\mathbf{I}}_d}_F^2]} \;,\] where the second equality uses \(\mathbb{E}_{\mathbf{u}}[{\mathbf{B}}({\mathbf{u}})]={\boldsymbol{0}}\). This is exactly the optimal baseline in 11 . When \(\norm{{\mathbf{u}}{\mathbf{u}}^\top-{\mathbf{I}}_d}_F^2\) concentrates in high dimensions, the coefficient reduces to \(F_\mu({\boldsymbol{\theta}})\), which is estimated in practice by the averaged baseline.
The inverse Hessian approximation in Def. 3 replaces the full Gram matrix \({\mathbf{U}}^\top {\mathbf{U}}\) in the exact Woodbury inverse with its diagonal part. This step is exact when the random directions are pairwise orthogonal. For Gaussian directions, it is also accurate in high dimensions because the diagonal terms \(\norm{{\mathbf{u}}_k}^2\) are of order \(d\), while the off-diagonal terms \({\mathbf{u}}_i^\top {\mathbf{u}}_j\) are only of order \(\sqrt d\) for \(i\neq j\). The following proposition gives the resulting approximation error.
Proposition 14 (Exact and Approximate Inverse Error). Let \({\mathbf{U}}=[{\mathbf{u}}_1,\ldots,{\mathbf{u}}_K]\in{\mathbb{R}}^{d\times K}\) with \({\mathbf{u}}_k\stackrel{\mathrm{i.i.d.}}{\sim}{\mathcal{N}}({\boldsymbol{0}},{\mathbf{I}}_d)\). Define \({\mathbf{G}}\triangleq {\mathbf{U}}^\top {\mathbf{U}}\), \(\Delta\triangleq \operatorname{diag}({\mathbf{G}})\), and \({\mathbf{E}}\triangleq {\mathbf{G}}-\Delta\). Let \[{\mathbf{M}}\triangleq {\mathbf{D}}^{-1}+\frac{1}{\lambda}{\mathbf{G}}, \quad \widetilde{{\mathbf{M}}}\triangleq {\mathbf{D}}^{-1}+\frac{1}{\lambda}\Delta \;,\] where \({\mathbf{D}}\) is defined as in Def. 3. Assume \(\lambda>0\) is fixed, \(\norm{{\mathbf{D}}^{-1}}_2=\mathcal{O}_p(1)\). Then, \[\require{physics} \norm{\qty(\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})+\lambda {\mathbf{I}}_d)^{-1}-\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}})}_F = \mathcal{O}_p\qty(\frac{K}{\sqrt d}) \;.\]
Proof. From 12 and 13 , the only difference between the exact inverse and the approximation is whether \({\mathbf{M}}^{-1}\) or \(\widetilde{{\mathbf{M}}}^{-1}\) is used in the low-dimensional Woodbury correction: \[\require{physics} \qty(\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})+\lambda {\mathbf{I}}_d)^{-1}-\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) = -\frac{1}{\lambda^2}{\mathbf{U}}\qty({\mathbf{M}}^{-1}-\widetilde{{\mathbf{M}}}^{-1}){\mathbf{U}}^\top \;.\] For Gaussian directions, standard concentration gives \(\norm{{\mathbf{U}}}_2^2=\norm{{\mathbf{G}}}_2=\mathcal{O}_p(d)\), \(\norm{\Delta}_2=\Theta_p(d)\), and \(\norm{{\mathbf{E}}}_F=\mathcal{O}_p(K\sqrt d)\), since the off-diagonal entries \({\mathbf{u}}_i^\top{\mathbf{u}}_j\) have variance \(d\) for \(i\neq j\). Because \(\norm{{\mathbf{D}}^{-1}}_2=\mathcal{O}_p(1)\) and \(\lambda\) is fixed, the diagonal matrix \(\widetilde{{\mathbf{M}}}\) has entries of order \(d\), hence \(\norm{\widetilde{{\mathbf{M}}}^{-1}}_2=\mathcal{O}_p(d^{-1})\).
By the assumed stability of the exact Woodbury inverse, \(\norm{{\mathbf{M}}^{-1}}_2=\mathcal{O}_p(d^{-1})\). Then, by the resolvent identity, \[{\mathbf{M}}^{-1}-\widetilde{{\mathbf{M}}}^{-1} = -\frac{1}{\lambda}{\mathbf{M}}^{-1}{\mathbf{E}}\widetilde{{\mathbf{M}}}^{-1}.\] Therefore, \[\require{physics} \begin{align} &\norm{\qty(\widehat{{\mathbf{H}}}({\boldsymbol{\theta}})+\lambda {\mathbf{I}}_d)^{-1}-\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}})}_F \le \frac{1}{\lambda^3}\norm{{\mathbf{U}}}_2^2\norm{{\mathbf{M}}^{-1}}_2\norm{{\mathbf{E}}}_F\norm{\widetilde{{\mathbf{M}}}^{-1}}_2 \\ =&\;\mathcal{O}_p(d)\cdot \mathcal{O}_p(d^{-1})\cdot \mathcal{O}_p(K\sqrt d)\cdot \mathcal{O}_p(d^{-1}) = \mathcal{O}_p\qty(\frac{K}{\sqrt d}) \;, \end{align}\] which completes the proof. ◻
Remark. Prop. 14 formalizes the intuition behind the diagonal Gram approximation in 13 . The result keeps the dependence on the number of query directions as \(\mathcal{O}_p(K/\sqrt d)\). For the small fixed \(K\) used in our experiments, this reduces to the \(d^{-1/2}\) decay observed empirically. Thus, the approximation becomes increasingly accurate in the high-dimensional regimes targeted by ZoVH, while avoiding the need to manipulate dense \(d\times d\) inverse matrices.
We further empirically measure the Frobenius norm error between the exact Woodbury inverse in 12 and the approximation in 13 .
As shown in Fig. 6, the error decreases consistently as the dimension increases. The fitted slopes are close to \(-0.5\) across four synthetic functions, matching the \(d^{-1/2}\) dependence in Prop. 14. The result supports using the approximate inverse for the small \(K\) setting used by ZoVH, especially in LLM fine-tuning where individual layers contain millions of parameters.
Definition 5 (Shared Product with Query Reuse). Assume \(\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}})\) and \(\hat{\nabla} F({\boldsymbol{\theta}})\) are estimated using the same set of standard Gaussian directions \(\{{\mathbf{u}}_{k}\}_{k = 1}^{K}\). The bias-corrected inverse Hessian-gradient product \(\widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}) \hat{\nabla} F({\boldsymbol{\theta}})\) with query reuse is given by: \[\require{physics} \label{eq:inv-hess-grad-prod-zoar} \widetilde{{\mathbf{H}}}^{-1}({\boldsymbol{\theta}}_{t - 1})\hat{\nabla} F({\boldsymbol{\theta}}_{t - 1}) \triangleq \sum_{i, k=1}^{N, K}\frac{\mu\nu_{t - i, k}}{\lambda} \qty(\frac{1}{N K - 1} - \frac{{\mathbf{u}}_{t - i, k}^\top\left(\sum\limits_{(j,k')\neq(i,k)}\nu_{t - j, k'} {\mathbf{u}}_{t - j, k'}\right)/(N K - 2)}{\lambda(N K - 1) + \nu_{t - i, k}\norm{{\mathbf{u}}_{t - i, k}}^2}){\mathbf{u}}_{t - i, k}.\tag{43}\] where the averaged baseline \(\hat{b}_t \triangleq \frac{1}{N K} \sum_{i, k=1}^{N, K} y_{t - i, k}\), and \(\require{physics} \nu_{t - i, k} \triangleq \qty(y_{t - i, k} - \hat{b}_t) / \mu^2\).
Remark. The definition above extends Def. 4 to incorporate query reuse across \(N\) iterations. By reusing the same set of \(K\) random directions over \(N\) consecutive iterations, we effectively increase the sample size to \(N K\), which enhances the accuracy of both the Hessian and gradient estimations. This approach leverages historical query information, reducing the need for additional function evaluations while maintaining robust optimization performance.
HiZOO [@hizoo] is a recently proposed curvature-aware zeroth-order optimization method that utilizes a randomized central-difference Hessian estimator 5 for memory-efficient LLMs fine-tuning. However, to avoid the computational complexity of inverting the full Hessian estimator, HiZOO only approximates the diagonal of the Hessian estimator to facilitate inversion. Besides, recent studies [@adam-mini] have shown that the practical Hessian of LLMs exhibits significant block-diagonal structures, indicating that simple diagonal approximations may overlook important curvature information.
In contrast, our proposed method ZoVH addresses this by approximating the full Hessian matrix and captures more comprehensive curvature information than diagonal approximations. This leads to more accurate inverse Hessian-gradient products, which are crucial for effective optimization steps. A detailed comparison of HiZOO and ZoVH in terms of Hessian approximation and its inverse is summarized in Table 2.
| Method | HiZOO | |
|---|---|---|
| Gradient | \(\hat{\nabla} F({\boldsymbol{\theta}}) \triangleq \frac{1}{2 K} \sum_{k=1}^K \frac{f({\boldsymbol{\theta}}+ \mu {\mathbf{u}}_k; \xi) - f({\boldsymbol{\theta}}- \mu {\mathbf{u}}_k; \xi)}{\mu} {\mathbf{u}}_k\) | Eq. 6 |
| Hessian | \(\widehat{{\mathbf{H}}}_{\text{\normalfont diag}}({\boldsymbol{\theta}}) \triangleq \frac{1}{2K} \sum_{k=1}^K \frac{f({\boldsymbol{\theta}}^+_k; \xi) - 2 f({\boldsymbol{\theta}}; \xi) + f({\boldsymbol{\theta}}^-_k; \xi)}{\mu^2} {\mathbf{u}}_k^\top {\mathbf{u}}_k\) | Def. 1 |
| Inverse Hessian | \(1 / \widehat{{\mathbf{H}}}_{\text{\normalfont diag}}({\boldsymbol{\theta}})\) | Def. 3 |
| Inv-Hess-Grad Opt. | \(1 / \widehat{{\mathbf{H}}}_{\text{\normalfont diag}}({\boldsymbol{\theta}}) \cdot \hat{\nabla} F({\boldsymbol{\theta}})\) | Def. 5 |
Recent advancements in memory-efficient fine-tuning for large language models (LLMs) have begun to leverage zeroth-order optimization [@mezo] and curvature-aware techniques [@hizoo]. However, conventional ZO Hessian approximations often suffer from high variance, which can hamper convergence during fine-tuning. ZoVH addresses this limitation by reducing variance through a provably averaged baseline and the reuse of historical query information. In this section, we apply ZoVH to curvature-aware ZO fine-tuning of LLMs, comparing its performance against MeZO [@mezo] and HiZOO [@hizoo] (detailed in Appx. 13.4). Specifically, we fine-tune OPT-1.3B and OPT-13B [@opt] on five downstream tasks from the GLUE [@glue] and SuperGLUE [@super-glue] benchmarks, including SST2, COPA, SQuAD, WSC, and WIC.
As shown in Fig. 7, ZoVH exhibits faster convergence than both MeZO and HiZOO across distinct tasks and model sizes. Furthermore, ZoVH with \(N = 2\) (incorporating query reuse) accelerates convergence further while achieving test accuracy comparable to, or even exceeding, that of ZoVH with \(N = 1\) (without query reuse). The test accuracy for all methods is summarized in Tab. 3. ZoVH secures the highest accuracy on the majority of tasks, as well as the highest average accuracy across both models. Notably, ZoVH with \(N = 2\) results in lower accuracy on certain tasks compared to \(N = 1\). This reflects the bias-variance tradeoff inherent in query reuse, where bias may eventually dominate the total error near convergence. In practice, this issue can be alleviated by reducing the reuse parameter \(N\) as the optimization approaches convergence.
| Model | Method | SST2 | Copa | SQuAD | WSC | WIC | Avg |
|---|---|---|---|---|---|---|---|
| OPT-1.3B | MeZO | 90.41 (0.58) | 75.33 (0.58) | 75.17 (0.48) | 54.17 (0.56) | 57.26 (2.76) | 70.47 |
| HiZOO | 85.02 (1.79) | 76.00 (0.00) | 70.25 (1.16) | 54.17 (0.56) | 57.05 (1.39) | 68.50 | |
| ZoVH (\(N = 1\)) | 90.29 (0.66) | (1.53) | (1.08) | (6.40) | (0.45) | ||
| ZoVH (\(N = 2\)) | (0.65) | 73.67 (1.53) | 72.86 (0.90) | 57.69 (5.35) | 56.64 (1.60) | 70.30 | |
| OPT-13B | MeZO | 91.13 (0.46) | (2.00) | 81.88 (0.40) | 51.28 (2.94) | 54.08 (0.83) | 72.87 |
| HiZOO | 81.92 (2.62) | 80.67 (1.53) | 74.45 (0.79) | 46.47 (6.40) | 54.75 (0.18) | 67.65 | |
| ZoVH (\(N = 1\)) | (0.52) | 85.67 (1.15) | (0.85) | 59.29 (8.18) | 54.34 (0.89) | ||
| ZoVH (\(N = 2\)) | 90.90 (0.52) | 83.33 (1.15) | 80.70 (1.62) | (3.09) | (0.41) | 74.55 |
It is worth noting that HiZOO demonstrates inferior performance compared to MeZO in both convergence speed and test accuracy. This underperformance is likely due to the Hessian smoothing factor \(\alpha\) in HiZOO, which is set to a small value (e.g., \(\alpha = 10^{-8}\), refer to Appx. 13.4) to guarantee numerical stability when inverting the diagonal Hessian estimator (while higher \(\alpha\) values leads to divergence issues in our experiments). Consequently, such a small \(\alpha\) may provide negligible regularization, leading to behavior that is practically indistinguishable from MeZO. Additionally, HiZOO requires \(3\) function queries per step, whereas MeZO uses only \(2\). Since we evaluate performance under a fixed query budget (as shown in Fig. 7 and Tab. 3), HiZOO completes fewer optimization steps, further contributing to its degraded performance.
We also measure wall-clock running time and peak GPU memory on the OPT-13B fine-tuning experiments to evaluate the practical overhead of the inverse Hessian-gradient product in Def. 5. Tab. 4 reports the results.
As shown in Tab. 4, ZoVH is close to HiZOO in both running time and peak memory usage, while being only slightly slower than MeZO. Compared with HiZOO, ZoVH increases running time by about \(5\%\) and peak memory by only \(0.04\) GB. The wall-clock overhead remains small because forward evaluations dominate the runtime, and the additional inverse-Hessian computation only uses scalar coefficients and random directions reconstructed from their seeds. The memory overhead is also limited, since the history buffer stores only \(N K\) scalar function values and their corresponding random seeds, rather than the full perturbation vectors. Its persistent memory cost is therefore \(\mathcal{O}(N K)\) and does not grow with the model dimension.
| Metric | MeZO | HiZOO | |
|---|---|---|---|
| Running Time (min) | 29.25 | 32.18 | 33.80 |
| Peak Memory (GB) | 27.14 | 27.12 | 27.16 |
We further isolate the individual contributions of the averaged baseline and query reuse in ZoVH. The ablation is conducted on four synthetic optimization benchmarks with \(d=5000\). We compare four variants that differ only in the baseline choice and whether query reuse is enabled. The anchor baseline variants use \(b=F({\boldsymbol{\theta}})\), while the averaged baseline variants use ?? . The query reuse variants use the same history setting as the synthetic optimization experiments with \(N=4\).
As shown in Fig. 8, most of the gain comes from replacing the anchor baseline with the averaged baseline, regardless of whether query reuse is used. The averaged baseline curves descend much faster and reach substantially lower optimality gaps than their anchor baseline counterparts. This supports the variance-minimization role of the averaged baseline established in Thm. 5. Query reuse provides an additional gain by enlarging the effective sample size without adding new function evaluations, especially in the early and middle stages of optimization. The best performance is achieved when the averaged baseline and query reuse are combined. This is consistent with the bias-variance discussion in Thm. 10, where a moderate history length reduces variance while the iterate drift remains small enough that the additional reuse bias does not dominate.
The compared estimators include the two-point 3 , three-point 4 Stein Estimators, the randomized central-difference estimator 5 , and our proposed ZoVH w/ and w/o the query reuse technique. The one-point Stein estimator 2 is excluded from the comparison due to its significantly higher error than other methods.
All experiments are conducted in \(d = 5000\) dimensions, and averaged over \(500\) test points Hessian errors (\(20\) random initializations with \(25\) test points collected along the optimization trajectory). The analytical forms of the synthetic functions used in our experiments are as follows:
Quadratic Function: \[F({\boldsymbol{\theta}}) = \frac{1}{2} {\boldsymbol{\theta}}^T {\mathbf{A}}{\boldsymbol{\theta}}+ {\boldsymbol{b}}^T {\boldsymbol{\theta}}+ c \;,\] where \({\mathbf{A}}\) is a symmetric positive-definite matrix, \(b\) is a \(d\)-dimensional vector, and \(c\) is a scalar constant.
Rosenbrock Function: \[F({\boldsymbol{\theta}}) = \sum_{i=1}^{d-1} \left[ 100(\theta_{i+1} - \theta_i^2)^2 + (1 - \theta_i)^2 \right] \;.\]
Styblinski-Tang Function: \[F({\boldsymbol{\theta}}) = \frac{1}{2} \sum_{i=1}^d \left( \theta_i^4 - 16 \theta_i^2 + 50 \theta_i \right) \;.\]
We further evaluate the Hessian approximation error on a small convolutional neural network (CNN), which consists of two convolutional layers, followed by two fully connected layers. In Fig. 4, we present the empirical Hessian approximation errors across the first convolutional layer (\(d = 96\)), the second convolutional layer (\(d = 6144\)), and the second fully connected layer (\(d = 1280\)). This model is trained on the MNIST dataset [@mnist] for digit classification. All experiments are averaged over \(5625\) test points Hessian errors (\(3\) independent runs with \(1875\) test points collected along each optimization trajectory).
We compare ZoVH with several representative ZO optimization methods as baselines:
Vanilla ZOO [@nesterov2017]. This is the standard stochastic finite-difference gradient estimation, whose analytical form is similar to 6 , except the averaged baseline \(b\) replaced with anchor baseline \(b = f({\boldsymbol{\theta}}; \xi)\).
HiZOO [@hizoo]. This is a recent curvature-aware ZO optimization method that utilizes a randomized central-difference Hessian estimator 5 with diagonal approximation for LLMs fine-tuning. The complete comparison between HiZOO and ZoVH is detailed in Appx. 11.6. We do not include ZOHA [@zoha] as a separate baseline because HiZOO already covers this case. When the scaling factor is set to \(1\), HiZOO reduces to ZOHA.
[@zoar]. This is a variance-reduced ZO optimization method that incorporates averaged baseline and query reuse techniques to improve gradient estimation.
All experiments are conducted in \(d = 10000\) dimensions, and averaged over independent \(10\) runs. To ensure fair comparison, the hyperparameters of all methods are chosen to achieve the best performance (summarized in Tab. 5). The analytical forms of the synthetic functions used in our experiments are as follows:
Quadratic Function: \[F({\boldsymbol{\theta}}) = \frac{1}{2} \sum_{i=1}^d \theta_i^2 \;.\]
Levy Function: \[F({\boldsymbol{\theta}}) = \sin^2(\pi w_1) + (w_d - 1)^2(1 + \sin^2(2 \pi w_d)) + \sum_{i=1}^{d-1} (w_i - 1)^2 (1 + 10 \sin^2(\pi w_i + 1)) \;,\] where \(w_i = 1 + \frac{\theta_i - 1}{4}\).
Rosenbrock Function: \[F({\boldsymbol{\theta}}) = \sum_{i=1}^{d-1} \left[ 100(\theta_{i+1} - \theta_i^2)^2 + (1 - \theta_i)^2 \right] \;.\]
Ackley Function: \[F({\boldsymbol{\theta}}) = -20 \exp\left(-0.2 \sqrt{\frac{1}{d} \sum_{i=1}^d \theta_i^2}\right) - \exp\left(\frac{1}{d} \sum_{i=1}^d \cos(2\pi \theta_i)\right) + 20 + e \;.\]
| Hyper-parameter | Value |
|---|---|
| Number of queries per iteration \(K\) | \(3\) |
| Smoothing radius \(\mu\) | \(0.1\) |
| Hessian smooth factor \(\alpha\) (For HiZOO) | \(1e-8\) |
| Hessian regularization factor \(\lambda\) (For ZoVH) | \(0.1\) |
| Learning rate \(\eta\) (Quadratic) | \(\{5e-6, 1e-5, 2e-5, 5e-5, 1e-4\}\) |
| Learning rate \(\eta\) (Levy) | \(\{5e-6, 1e-5, 2e-5, 5e-5, 1e-4\}\) |
| Learning rate \(\eta\) (Ackley) | \(\{1e-3, 5e-3, 1e-2, 5e-2, 1e-1\}\) |
| Learning rate \(\eta\) (Rosenbrock) | \(\{5e{-9}, 1e-8, 2e-8, 5e-8, 1e{-7}\}\) |
The compared methods are the same as in the synthetic experiments in Sec. 13.2.
For the black-box adversarial attack, we use the same model as in [@radazo]: a simple two-layer CNN trained on the MNIST dataset. All experiments are averaged over \(10\) independent runs. To ensure fair comparison, all hyperparameters are chosen to achieve the best performance of each method (summarized in Tab. 6).
| Hyperparameter | Value |
|---|---|
| Number of queries per iteration \(K\) | \(3\) |
| Smoothing parameter \(\mu\) | \(0.5\) |
| Learning rate \(\eta\) | \(\{0.01, 0.02, 0.05, 0.1\}\) |
| Hessian smooth factor \(\alpha\) (For HiZOO) | \(1e-8\) |
| Hessian regularization factor \(\lambda\) (For ZoVH) | \(0.1\) |
We compare ZoVH with two representative ZO optimization methods as baselines:
MeZO [@mezo]. A memory-efficient ZO fine-tuning method for LLMs that employs a central-difference gradient estimator.
HiZOO [@hizoo]. A recent curvature-aware ZO optimization method that leverages a randomized central-difference Hessian estimator 5 with a diagonal approximation for LLM fine-tuning. A comprehensive comparison between HiZOO and ZoVH is provided in Appx. 11.6. We do not include ZOHA [@zoha] as a separate baseline because HiZOO already covers this case. When the scaling factor is set to \(1\), HiZOO reduces to ZOHA.
All experiments are averaged over \(3\) independent runs. To ensure fair comparison, all hyperparameters are chosen to achieve the best performance of each method (summarized in Tab. 7).
| Hyperparameter | Value |
|---|---|
| Number of queries per iteration \(K\) | \(2\) (for MeZO), \(3\) (for HiZOO and ZoVH) |
| Smoothing parameter \(\mu\) | \(1e-2\) |
| Learning rate \(\eta\) | \(\{1e-4, 5e-5, 1e-5\}\) |
| Hessian smooth factor \(\alpha\) (For HiZOO) | \(1e-8\) |
| Hessian regularization factor \(\lambda\) (For ZoVH) | \(0.5\) |