Finding Stationary Points by Comparisons

Helin Wang\(^{1,3}\)1 Chenyi Zhang\(^{2,}\)Xiwen Tao\(^{1,3}\)Yexin Zhang\(^{3,4}\)Tongyang Li\(^{3,4,}\)2
\(^1\) School of Electronics Engineering and Computer Science, Peking University
\(^2\) Computer Science Department, Stanford University
\(^3\) Center on Frontiers of Computing Studies, Peking University
\(^4\) School of Computer Science, Peking University


Abstract

We study the problem of finding stationary points of non-convex functions when access to the objective is provided only through a comparison oracle that, given two points, outputs which has the larger function value. For a twice differentiable \(f\colon\mathbb{R}^n\to\mathbb{R}\) with Lipschitz gradient and Hessian, we develop an algorithm that visits an \(\epsilon\)-stationary point using \(\widetilde{O}(n^2/\epsilon^{1.5})\) queries. Our approach uses a subroutine that estimates the normalized Hessian to accuracy \(\delta\) using \(\widetilde{O}(n^2\log(1/\delta))\) queries. We further study this problem with a quantum comparison oracle model where queries can be made in superpositions, and develop the first quantum algorithm that finds an \(\epsilon\)-stationary point, which takes \(\widetilde{O}(n/\epsilon^{1.5})\) queries.

1 Introduction↩︎

We study the problem of finding a stationary point of a non-convex function \(f\colon\mathbb{R}^n\to\mathbb{R}\), which is a point \(\mathbf{x}\in\mathbb{R}^n\) satisfying \(\|\nabla f(\mathbf{x})\|\leq \epsilon\), given an initial \(\mathbf{x}^{(0)}\in\mathbb{R}^n\) with bounded initial function value gap, i.e., \(f(\mathbf{x}^{(0)})-\inf_{x\in\mathbb{R}^n}f(\mathbf{x})\leq \Delta\). Finding a stationary point is a natural objective in non-convex optimization, since computing the global optimum is NP hard in the worst case. Moreover, in problems including tensor decomposition [1], matrix completion [2], and regression with non-convex regularization [3], global optimality can be obtained by finding a second-order stationary point, which is a generalization of stationary points.

As a foundational problem in optimization theory, finding a stationary point, also known as critical point computation [4], [5] or making the gradient small [6], [7], has been extensively studied. Given a gradient oracle, gradient descent finds an \(\epsilon\)-stationary point of \(f\) using \(O(1/\epsilon^2)\) iterations, provided that \(f\) has Lipschitz gradient, i.e., \(\|\nabla f(\mathbf{x})-\nabla f(\mathbf{y})\|\leq L_1\|\mathbf{x}-\mathbf{y}\|\) for any \(\mathbf{x},\mathbf{y}\in\mathbb{R}^n\) [8]. More generally, if \(f\) has \(L_p\)-Lipschitz \(p\)-th order derivative, Birgin et al. [9] gives an algorithm using \(O(L_p^{1/p}\Delta\epsilon^{-(p+1)/p})\) queries to a \(p\)-th order oracle, where a query at \(\mathbf{x}\) returns all derivatives of \(f\) at \(\mathbf{x}\) up to order \(p\). Furthermore, Carmon et al. [10] establishes that these rates are optimal among dimension-independent algorithms.

More recently, training of machine learning models solicits for even simpler information. For example, it is known that taking only signs of gradient descents still demonstrates good performance in training neural networks [11][13]. Moreover, in the breakthrough of large language models (LLMs), reinforcement learning from human feedback (RLHF) [14][16] played an important role in training these LLMs, for instance on GPT-3 [17]. Compared to standard RL that applies function evaluation for rewards, RLHF is preference-based RL that only compares between options and determines which is better. There is emerging interest in preference-based RL, with a series of results [18][23] establishing provable guarantees for learning a near-optimal policy from preference feedback. Furthermore, Wang et al. [24] proved that preference-based RL can be solved with small or no extra costs compared to those of standard reward-based RL for a wide range of models.

More broadly, these developments reflect a longstanding interest in designing optimization methods using limited feedback. There has been a line of research on solving optimization problems using a comparison oracle; see the survey [25]. Formally, a function \(f\colon\mathbb{R}^n\to\mathbb{R}\) is accessed through a comparison oracle \(O_f^{\mathop{\mathrm{comp}}}\colon\mathbb{R}^n\times\mathbb{R}^n\rightarrow\{-1,1\}\) that upon a pair of inputs \((\mathbf{x},\mathbf{y})\in\mathbb{R}^n\times\mathbb{R}^n\), we get output: \[\label{eq:comparison} O_f^{\mathop{\mathrm{comp}}}(\mathbf{x},\mathbf{y})= \begin{cases} 1, & f(\mathbf{x})\ge f(\mathbf{y}) \\ -1. & f(\mathbf{x})\le f(\mathbf{y}) \end{cases}\tag{1}\] with either output allowed when \(f(\mathbf{x})=f(\mathbf{y})\). Classical direct-search and pattern-search methods use such comparisons to accept or reject trial steps [26], [27], while the Nelder–Mead method [28] relies on comparisons among candidate points to drive the search. However, Nelder–Mead may converge to a nonstationary point even on continuously differentiable convex examples [29]. Based on that, Jamieson et al. [30] studied derivative-free optimization with Boolean comparison feedback and comparison-based line searches. GradientLess Descent [31] studies monotone-invariant zeroth-order optimization, and [23] studied ranking-based feedback, where the oracle provides ranking information over multiple candidate points. Beyond noiseless pairwise comparisons in Euclidean space, Saha et al. [32] studied batched and multiway preference feedback, and Ren et al. [33] considered comparison-based optimization on Riemannian manifolds. Very recently, Ref. [34] proposed a function-free optimization framework in which the preference relation itself, rather than an underlying scalar objective, defines the optimization problem.

For convex objectives, several works give provable guarantees under comparison or order-type feedback. Karabag et al. [35] proposed an ellipsoid-based method for smooth convex optimization using comparison oracles. Bergou et al. [36] and Gorbunov et al. [37] developed the stochastic three-point (STP) methods using comparisons among randomly sampled trial points to select the next iterate. Dueling optimization [38], [39] studies convex optimization from noisy pairwise comparisons, and Lobanov et al. [40] developed accelerated methods in a similar setting.

For nonconvex objectives, fewer comparison-query guarantees are known. The stochastic three-point method of [36], [37] samples random search directions and chooses the next iterate using comparisons among trial points; for functions with Lipschitz gradients, this gives an \(O(n/\epsilon^2)\) comparison-query implementation for finding an \(\epsilon\)-stationary point in expectation. These results leave open whether comparison access can exploit higher-order smoothness to improve the dependence on \(\epsilon\) for finding stationary points.

1.0.0.1 Our results.

In this paper, we develop an algorithm that makes \(\widetilde{O}(n^2/\epsilon^{1.5})\) queries to \(O_f^{\mathrm{comp}}\) and guarantees that one of the queried points is an \(\epsilon\)-stationary point.3

Theorem 1 (Informal). Let \(f\colon\mathbb{R}^n\to\mathbb{R}\) have \(L_1\)-Lipschitz gradient and \(L_2\)-Lipschitz Hessian. Given \(\mathbf{x}_0\in\mathbb{R}^n\) satisfying \(f(\mathbf{x}_0)-\inf_{x\in\mathbb{R}^n}(\mathbf{x})\leq \Delta\), with success probability at least \(2/3\), Algorithm [[algo:best-of-all]](#algo:best-of-all){reference-type=“ref” reference=“algo:best-of-all”} visits an \(\epsilon\)-stationary point using \(\widetilde{O}(\Delta\sqrt{L_2}n^2/\epsilon^{1.5})\) queries to \(O_f^{\mathrm{comp}}\).

Up to poly-logarithmic factors, the \(\epsilon\)-dependence of our rate matches the optimal rate of second-order methods [10], [41]. Compared to [36], [37], our algorithm achieves an improved dependence on \(\epsilon\), at the cost of a worse dependence on the dimension \(n\). It is unclear whether our bound, particularly the \(n^2\) dependence, is asymptotically optimal in any non-trivial regime of \(n\) and \(\epsilon\). Although [10] give relevant lower bounds in the dimension-independent setting, the dimension-dependent complexity of finding stationary points is still not well understood, even in the setting where the algorithm has access to gradient or Hessian information. We view developing matching lower bounds in the comparison setting as an interesting open problem.

Note that here we only obtain the guarantee that our algorithm visits an \(\epsilon\)-stationary point throughout the iterations instead of finding one, similar to prior works [36], [37]. This is due to the fact that in the comparison oracle model the algorithm only observes relative function values. Consequently, it is in general impossible to access the gradient norm or even to test whether a given point \(\mathbf{x}\) is an \(\epsilon\)-stationary point. For applications where a single point is needed, a natural heuristic is to return the iterate with the smallest function value, which can be identified by comparisons. While this does not certify stationarity in general, in many structured nonconvex problems near-optimality is closely tied to stationarity or second-order stationarity, such as tensor decomposition [42], matrix completion [2], and regression with nonconvex regularization [3].

Furthermore, we study the problem of finding stationary points in the quantum setting, where we can query a quantum comparison oracle \[\label{eq:quantum95comparison} O_{f,q}^{\mathop{\mathrm{comp}}}|\mathbf{x}\rangle|\mathbf{y}\rangle|b\rangle=|\mathbf{x}\rangle|\mathbf{y}\rangle|b\oplus \mathbb{1}\{f(\mathbf{x})>f(\mathbf{y})\}\rangle\tag{2}\] which performs comparison in quantum superpositions.4 Extending upon our classical algorithm, we obtain a quantum algorithm for finding stationary points using the quantum comparison oracle 2 .

Theorem 2 (Informal). Let \(f\colon\mathbb{R}^n\to\mathbb{R}\) have \(L_1\)-Lipschitz gradient and \(L_2\)-Lipschitz Hessian. Given \(\mathbf{x}_0\in\mathbb{R}^n\) satisfying \(f(\mathbf{x}_0)-\inf_{x\in\mathbb{R}^n}(\mathbf{x})\leq \Delta\), there exists a quantum algorithm that visits an \(\epsilon\)-stationary point using \(\widetilde{O}(\Delta\sqrt{L_2}n/\epsilon^{1.5})\) queries to \(O_{f,q}^{\mathrm{comp}}\).

1.0.0.2 Techniques.

Figure 1: The structure of our stationary point finding algorithm. In this figure the arrow represents the implementation relationship. The three purple frames represent the novel techniques that we propose, the yellow frame represents the known technique from [43], and the green frame represents our main theorem.

Our approach for establishing Theorem [1](#thm:Comparison-Newton-informal){reference-type=“ref” reference=“thm:Comparison-Newton-informal”} is summarized in Figure 1. Throughout, we use the comparison-based gradient direction estimation algorithm as a basic primitive.

We first give an algorithm ComparisonHessVec (Algorithm [[algo:Comparison-Triangle]](#algo:Comparison-Triangle){reference-type=“ref” reference=“algo:Comparison-Triangle”}) that, for any given \(\mathbf{x},\mathbf{y}\in\mathbb{R}^n\), estimates the direction \(\nabla^2 f(\mathbf{x})\cdot \mathbf{y}\). This is done by first estimating the directions of \(\nabla f(\mathbf{x})\), \(\nabla f(\mathbf{x}+r\mathbf{y})\), and \(\nabla f(\mathbf{x}-r\mathbf{y})\) using [43]. We then infer the direction of \(\nabla f(\mathbf{x}+r\mathbf{y})-\nabla f(\mathbf{x}-r\mathbf{y})\) using a geometric property: its intersection with \(\nabla f(\mathbf{x})\) and \(\nabla f(\mathbf{x}+r\mathbf{y})\) as well as its intersection with \(\nabla f(\mathbf{x})\) and \(\nabla f(\mathbf{x}-r\mathbf{y})\) give two segments of same length (see Figure 2). By choosing \(r\) sufficiently small, this direction provides a good approximation of the direction of \(\nabla^2 f(\mathbf{x})\cdot \mathbf{y}\).

Figure 2: The intuition of ComparisonHessVec (Algorithm [[algo:Comparison-Triangle]](#algo:Comparison-Triangle){reference-type=“ref” reference=“algo:Comparison-Triangle”}) for computing Hessian-vector products using gradient directions.

Then, we use ComparisonHessVec to implement ComparisonHE (Algorithm [[algo:normhess]](#algo:normhess){reference-type=“ref” reference=“algo:normhess”}), which estimates the normalized Hessian \(\nabla^2 f(\mathbf{x})/\|\nabla^2 f(\mathbf{x})\|\). Because a column of \(\nabla^2f(\mathbf{x})\) is given by multiplying a unit vector by \(\nabla^2f(\mathbf{x})\), we can use ComparisonHessVec to estimate the normalized direction of each column. The remaining challenge is to determine the relative norms of different columns. For any two columns \(\mathbf{h}_i\) and \(\mathbf{h}_j\) of \(\nabla^2f(\mathbf{x})\), this is accomplished by estimating the directions of \(\mathbf{h}_i\), \(\mathbf{h}_j\), and \(\mathbf{h}_i+\mathbf{h}_j\), and then solving the resulting triangle. A corner case of the above argument arises when two columns \(\mathbf{h}_i\) and \(\mathbf{h}_j\) have nearly identical directions, in which case the error incurred by solving the triangle can be arbitrarily large. To address this issue, we introduce an additional perturbation along a direction sufficiently far from that of \(\mathbf{h}_i\), which ensures that the resulting error remains controllable.

Furthermore, we give an algorithm ComparisonRatio (Algorithm [[algo:Comparison-ratio]](#algo:Comparison-ratio){reference-type=“ref” reference=“algo:Comparison-ratio”}) that estimates the ratio between the norm of the Hessian and the norm of the gradient using comparisons. This is done by identifying a vector \(\mathbf{v}\) of the approximate Hessian whose corresponding eigenvalue has the largest magnitude, estimating the directions of \(\nabla f(\mathbf{x})\) and \(\nabla f(\mathbf{x}+\mu \mathbf{v})\), and then solving the resulting triangle. One source of error in this approximation is that \(\mathbf{v}\) may differ from \(\mathbf{u}\), the eigenvector of the true Hessian \(\nabla^2 f(\mathbf{x})\) corresponding to the eigenvalue with the largest magnitude. We control this discrepancy by applying the Davis–Kahan theorem to bound \(\|\mathbf{u}-\mathbf{v}\|\), which yields a bound on the overall estimation error.

Finally, we design a trust-region–type algorithm (Algorithm [[algo:best-of-all]](#algo:best-of-all){reference-type=“ref” reference=“algo:best-of-all”}) such that, at any iteration \(\mathbf{x}_t\) which is not an \(\epsilon\)-stationary point, it produces a new point \(\mathbf{x}_{t+1}\) that decreases the function value by \(\Omega(\epsilon^{3/2})\). As shown in standard trust-region analysis [44], there exists a point \(\hat{\mathbf{x}}\in\mathbb{R}^n\) with \(\|\hat{\mathbf{x}}-\mathbf{x}_t\|=O(\sqrt{\epsilon})\) such that \(f(\hat{\mathbf{x}})-f(\mathbf{x}_t)\le -\Omega(\epsilon^{3/2})\). Moreover, such a point can be found exactly given access to the normalized gradient, the normalized Hessian, and the ratio of their norms. We show that the approximations of these quantities produced by our previous algorithms are sufficient to recover a point \(\hat{\mathbf{x}}'\) with the same asymptotic decrease in function value. Hence, after running this algorithm for \(\Theta(1/\epsilon^{1.5})\) iterations, it decreases the function value for at least \(\Omega(\Delta)\) in expectation, thus we get a contradiction with a constant probability. This contradiction means that we have visited at least one stationary point during the iteration steps. The above argument can fail in certain corner cases, e.g., when the Hessian is rank-one, positive semidefinite, or negative semidefinite, or when the eigenvector \(v\) corresponding to the eigenvalue of largest magnitude is nearly aligned with the gradient. In these cases, we additionally apply normalized gradient descent together with a binary line search to guarantee an \(\Omega(\epsilon^{-1.5})\) decrease in function value.

1.0.0.3 Open questions.

Our work leaves several open questions for future investigation.

  • First, is it possible to interpolate between our approach and the STP framework [36], [37] to achieve a sharper tradeoff between the dependencies on \(n\) and \(\epsilon\)?

  • Second, it is natural to extend our results to stochastic comparison oracles, including the standard Bradley–Terry model [45].

  • Third, it is worth investigating the practical applicability of our algorithm in practical settings.

  • Fourth, our approach may benefit from lazy Hessian-update techniques [46], [47]. In Appendix [[append:lazy_TR]](#append:lazy_TR){reference-type=“ref” reference=“append:lazy_TR”}, we show that a lazy trust-region method using \(\widetilde{O}(n^2+n^{3/2}/\epsilon^{3/2})\) queries to a zeroth-order oracle. Establishing an analogous result in the comparison-oracle model is a natural direction for future work.

2 Preliminaries↩︎

2.0.0.1 Basic notation.

For any \(\mathbf{x}\in\mathbb{R}^n\), we denote \(\mathbf{g}\) and \(H\) as the gradient and Hessian of \(f\) at \(\mathbf{x}\), respectively, and omit the dependence on \(\mathbf{x}\) when it is clear from context. For any vector \(\mathbf{v}\) and matrix \(A\), let \(\|\mathbf{v}\|\) and \(\|A\|\) be their \(\ell_2\) norm. We denote \(B_R^{n}(\mathbf{x}) \mathrel{\vcenter{:}}= \{\mathbf{y}\in\mathbb{R}^n\colon\|\mathbf{y}-\mathbf{x}\|\leq R\}\) and \(S_R^{n}(\mathbf{x}) \mathrel{\vcenter{:}}= \{\mathbf{y}\in\mathbb{R}^n\colon\|\mathbf{y}-\mathbf{x}\|=R\}\).

2.0.0.2 Quantum notation.

We briefly introduce some basic notation of quantum computing that will be used in this paper. We use the Dirac notation \(|\cdot\rangle\) to represent quantum states, which can be seen as column vectors. Qubit, which is the basic unit of quantum state, is represented as \(|\phi\rangle = \alpha |0\rangle + \beta |1\rangle\) on the computational basis \(\{|0\rangle, |1\rangle\}\) with \(\alpha, \beta \in \mathbb{C}\) and \(|\alpha|^2 + |\beta|^2 = 1\). An \(n\)-qubit system is represented in a \(2^n\)-dimensional vector space, with basis states \(\{|0\rangle, |1\rangle\}^{\otimes n}\). An \(n\)-qubit state can be written as \(|\psi\rangle = \sum_{x \in \{0,1\}^n} \alpha_x |x\rangle\) with \(\sum_{x} |\alpha_x|^2 = 1\). A quantum algorithm can access a function via queries to a quantum oracle. For a classical function \(\phi\), the oracle \(O_\phi\) is defined as a unitary transformation that maps \(|x\rangle|b\rangle\) to \(|x\rangle|b \oplus \phi(x)\rangle\). This allows the oracle to be queried on superpositions of inputs, producing corresponding superpositions of outputs.

2.0.0.3 Gradient direction estimation using comparisons.

Recently, Tao et al. [43] developed classical and quantum algorithms for gradient direction estimation using comparisons. These algorithms serve as basic building blocks in our algorithms, stated below:

Theorem 3 (Classical gradient direction estimation, Theorem 3.3 in [43]). Let \(f\colon\mathbb{R}^n\to\mathbb{R}\) with \(L_1\)-Lipschitz gradient. Given query access to a comparison oracle \(\mathcal{O}_f^{\mathop{\mathrm{comp}}}\) (1 ) and any precision \(\epsilon\), there exists an algorithm \(\texttt{ComparisonGE}(\mathbf{x},\epsilon,\gamma)\) such that, for any \(\mathbf{x}\in\mathbb{R}^n\) with \(\|\nabla f(\mathbf{x})\|\ge\gamma\), it outputs a unit vector \(\widehat \mathbf{g}\) satisfying \(\left\|\widehat \mathbf{g}-\frac{\nabla f(\mathbf{x})}{\|\nabla f(\mathbf{x})\|}\right\|\le\epsilon\) with success probability at least \(2/3\), using \(O(n\log(1/\epsilon))\) queries.

Theorem 4 (Quantum gradient direction estimation, Theorem 4.2 in [43]). In the setting of Theorem [3](#thm:Comparison-GDE){reference-type=“ref” reference=“thm:Comparison-GDE”}, given any precision \(\epsilon\), there exists an algorithm \(\texttt{ComparisonQGE}(\mathbf{x},\epsilon,\gamma)\) such that, for any \(\mathbf{x}\in\mathbb{R}^n\) with \(\|\nabla f(\mathbf{x})\|\ge\gamma\), it outputs a unit vector \(\widehat \mathbf{g}\) satisfying \(\left\|\widehat \mathbf{g}-\frac{\nabla f(\mathbf{x})}{\|\nabla f(\mathbf{x})\|}\right\|\le\epsilon\) with success probability at least \(8/15-2\epsilon\), using \(O(\log (n/\epsilon))\) queries.

3 Hessian-Vector Product Estimation by Comparisons↩︎

In this section, we introduce \(\texttt{ComparisonHessVec}\) (Algorithm [[algo:Comparison-Triangle]](#algo:Comparison-Triangle){reference-type=“ref” reference=“algo:Comparison-Triangle”}), an algorithm for approximating the direction of a Hessian–vector product using comparisons.

Set \(r_0\leftarrow \min\left\{\frac{\gamma_{\mathbf{x}}}{100L_1},\frac{\gamma_{\mathbf{x}}}{100L_2},\frac{\sqrt{\gamma_{\mathbf{x}}\hat{\delta}}}{20\sqrt{L_2}},\frac{\gamma_{\mathbf{y}}\hat{\delta}\sqrt{\epsilon}}{20\sqrt{L_2}}\right\}\).

\(\hat{\mathbf{g}}_{0}\leftarrow\texttt{ComparisonGE}(\mathbf{x},\frac{L_2 r_{0}^{2}}{\gamma_{\mathbf{x}}},\gamma_\mathbf{x})\), \(\hat{\mathbf{g}}_{1}\leftarrow\texttt{ComparisonGE}(\mathbf{x}+r_{0}\mathbf{y},\frac{\rho r_{0}^{2}}{\gamma_{\mathbf{x}}},\gamma_\mathbf{x}/2)\), \(\hat{\mathbf{g}}_{-1}\leftarrow\texttt{ComparisonGE}(\mathbf{x}-r_{0}\mathbf{y},\frac{L_2 r_{0}^{2}}{\gamma_{\mathbf{x}}},\gamma_\mathbf{x}/2)\).

Set \(\mathbf{g}=\sqrt{1-\langle \hat{\mathbf{g}}_{-1},\hat{\mathbf{g}}_{0}\rangle^{2}}\hat{\mathbf{g}}_{1}-\sqrt{1-\langle \hat{\mathbf{g}}_{1},\hat{\mathbf{g}}_{0}\rangle^{2}}\hat{\mathbf{g}}_{-1}\).

\(\widehat \mathbf{u}(\mathbf{x},\mathbf{y},\delta,\gamma_\mathbf{x},\gamma_\mathbf{y})=\mathbf{g}/\|\mathbf{g}\|.\)

Theorem 5. Let \(f\colon\mathbb{R}^n\to\mathbb{R}\) with \(L_1\)-Lipschitz gradient and \(L_2\)-Lipschitz Hessian. For any \(\gamma_\mathbf{x},\gamma_\mathbf{y}>0\) and \(\mathbf{x},\mathbf{y}\in\mathbb{R}^d\) satisfying \[\begin{align} \|\nabla &f(\mathbf{x})\|\geq\gamma_\mathbf{x}, \quad\|\nabla^2f(\mathbf{x})\|\ge\sqrt{L_2\epsilon},\\ &\|\mathbf{y}\|=1, \qquad\quad|y_1|\geq\gamma_\mathbf{y}, \end{align}\] where \(y_1:=\langle\mathbf{y},\mathbf{u}_1\rangle\) with \(\mathbf{u}_1\) being a eigenvector of \(\nabla^2 f(\mathbf{x})\) with the largest magnitude eigenvalue, Algorithm [[algo:Comparison-Triangle]](#algo:Comparison-Triangle){reference-type=“ref” reference=“algo:Comparison-Triangle”} outputs a vector \(\widehat \mathbf{u}\) satisfying \[\begin{align} \left\|\widehat \mathbf{u}-\frac{\nabla^2f(\mathbf{x})\cdot \mathbf{y}}{\|\nabla^2f(\mathbf{x})\cdot \mathbf{y}\|}\right\|\leq\hat{\delta} \end{align}\] using \(\tilde{O}\big(n\log\big(1/(\gamma_{\mathbf{x}}\gamma_{\mathbf{y}}^{2}\hat{\delta}^{2})\big)\big)\) queries.

Intuitively, Algorithm [[algo:Comparison-Triangle]](#algo:Comparison-Triangle){reference-type=“ref” reference=“algo:Comparison-Triangle”} use Taylor expansion \(\nabla f(\mathbf{x}\pm r\mathbf{y})\approx\nabla f(\mathbf{x})\pm r \nabla^2f(\mathbf{x})\cdot \mathbf{y}\) and solving the triangle in Figure 3.

Proof. Denote \(\mathbf{x}_+\mathrel{\vcenter{:}}= \mathbf{x}+r_0\mathbf{y}\) and \(\mathbf{x}_-\mathrel{\vcenter{:}}= \mathbf{x}-r_0\mathbf{y}\). Since \(f\) has \(L_2\)-Lipschitz Hessian, \[\begin{align} \tag{3} \left\|\nabla f(\mathbf{x}_+)-\nabla f(\mathbf{x})-r_{0} \nabla^2f(\mathbf{x})\cdot\mathbf{y}\right\|\leq L_2 r_{0}^{2}/2, \\ \left\|\nabla f(\mathbf{x}_-)-\nabla f(\mathbf{x})+r_{0} \nabla^2f(\mathbf{x})\cdot\mathbf{y}\right\|\leq L_2 r_{0}^{2}/2. \tag{4} \end{align}\] Therefore, we have \(\left\|\nabla f(\mathbf{x}_+)+\nabla f(\mathbf{x}_-)-2\nabla f(\mathbf{x})\right\|\leq L_2 r_{0}^{2}\) and \(\big\|\nabla^2f(\mathbf{x})\cdot\mathbf{y}-\frac{\nabla f(\mathbf{x}_+)-\nabla f(\mathbf{x}_-)}{2r_0}\big\|\leq L_2 r_{0}/2\). Furthermore, as \(r_0\leq \gamma_\mathbf{x}/(100L_1)\) and \(f\) has \(L_1\)-Lipschitz gradient, both \(\|\nabla f(\mathbf{x}_+)\|\) and \(\|\nabla f(\mathbf{x}_-)\|\) is at least \(\gamma_{\mathbf{x}}-L_1\gamma_\mathbf{x}/(100L_1)=0.99\gamma_{\mathbf{x}}\). We first understand how to approximate \(\nabla^2f(\mathbf{x})\cdot\mathbf{y}\) by normalized vectors \(\frac{\nabla f(\mathbf{x})}{\|\nabla f(\mathbf{x})\|}, \frac{\nabla f(\mathbf{x}_+)}{\|\nabla f(\mathbf{x}_+)\|}, \frac{\nabla f(\mathbf{x}_-)}{\|\nabla f(\mathbf{x}_-)\|}\), and then analyze the approximation error due to using \(\hat{\mathbf{g}}_{0}, \hat{\mathbf{g}}_{1}, \hat{\mathbf{g}}_{-1}\), respectively. By Lemma [15](#lem:vector-norm-1){reference-type=“ref” reference=“lem:vector-norm-1”}, we have \[\begin{align} &\frac{1}{2\|\nabla f(\mathbf{x})\|}\frac{\|\nabla f(\mathbf{x})-r_{0}\nabla^{2}f(\mathbf{x})\cdot\mathbf{y}\|}{\sqrt{1-\left\langle\frac{\nabla f(\mathbf{x})+r_{0}\nabla^{2}f(\mathbf{x})\cdot\mathbf{y}}{\|\nabla f(\mathbf{x})+r_{0}\nabla^{2}f(\mathbf{x})\cdot\mathbf{y}\|},\frac{\nabla f(\mathbf{x})}{\|\nabla f(\mathbf{x})\|}\right\rangle^{2}}}\nonumber\\ &\qquad=\frac{1}{2\|\nabla f(\mathbf{x})\|}\frac{\|\nabla f(\mathbf{x})+r_{0}\nabla^{2}f(\mathbf{x})\cdot\mathbf{y}\|}{\sqrt{1-\left\langle\frac{\nabla f(\mathbf{x})-r_{0}\nabla^{2}f(\mathbf{x})\cdot\mathbf{y}}{\|\nabla f(\mathbf{x})-r_{0}\nabla^{2}f(\mathbf{x})\cdot\mathbf{y}\|},\frac{\nabla f(\mathbf{x})}{\|\nabla f(\mathbf{x})\|}\right\rangle^{2}}}. \end{align}\] We denote the value above as \(\alpha\). Because \(f\) is \(L_2\)-Hessian Lipschitz, \(\|r_{0} \nabla^2f(\mathbf{x})\cdot\mathbf{y}\|\leq r_{0}L_2\). Since \(r_{0}\leq\frac{\gamma_{\mathbf{x}}}{100L_2}\), \(\|r_{0} \nabla^2f(\mathbf{x})\cdot\mathbf{y}\|\leq\frac{\gamma_{\mathbf{x}}}{100}\). Also by Lemma [14](#lem:dist-inner-vector){reference-type=“ref” reference=“lem:dist-inner-vector”} we have \[\begin{align} &\left\langle\frac{\nabla f(\mathbf{x})+r_{0}\nabla^{2}f(\mathbf{x})\cdot\mathbf{y}}{\|\nabla f(\mathbf{x})+r_{0}\nabla^{2}f(\mathbf{x})\cdot\mathbf{y}\|},\frac{\nabla f(\mathbf{x})}{\|\nabla f(\mathbf{x})\|}\right\rangle\geq 0.94, \\ &\left\langle\frac{\nabla f(\mathbf{x})-r_{0}\nabla^{2}f(\mathbf{x})\cdot\mathbf{y}}{\|\nabla f(\mathbf{x})-r_{0}\nabla^{2}f(\mathbf{x})\cdot\mathbf{y}\|},\frac{\nabla f(\mathbf{x})}{\|\nabla f(\mathbf{x})\|}\right\rangle\geq 0.94, \end{align}\] which promises that \(\alpha\geq\frac{0.99}{2\sqrt{1-0.94^{2}}}\geq 1\). In arguments next, we say a vector \(\mathbf{u}\) is \(\xi\)-close to a vector \(\mathbf{v}\) if \(\|\mathbf{u}-\mathbf{v}\|\leq \xi\) for any \(\xi\geq0\). We prove that the vector \[\begin{align} \tilde{\mathbf{g}}_{1}&\mathrel{\vcenter{:}}=\frac{\nabla f(\mathbf{x})}{\|\nabla f(\mathbf{x})\|}+\alpha\cdot\Bigg(\sqrt{1-\left\langle\frac{\nabla f(\mathbf{x}_-)}{\|\nabla f(\mathbf{x}_-)\|},\frac{\nabla f(\mathbf{x})}{\|\nabla f(\mathbf{x})\|}\right\rangle^{2}}\frac{\nabla f(\mathbf{x}_+)}{\|\nabla f(\mathbf{x}_+)\|}\nonumber\\ &\qquad\qquad-\sqrt{1-\left\langle\frac{\nabla f(\mathbf{x}_+)}{\|\nabla f(\mathbf{x}_+)\|},\frac{\nabla f(\mathbf{x})}{\|\nabla f(\mathbf{x})\|}\right\rangle^{2}}\frac{\nabla f(\mathbf{x}_-)}{\|\nabla f(\mathbf{x}_-)\|}\Bigg)\label{eq:direction-vector43} \end{align}\tag{5}\] is \(\frac{7L_2 r_{0}^{2}}{\gamma_{\mathbf{x}}}\)-close to a vector proportional to \(\nabla f(\mathbf{x}_+)\). This is because (3 ), (4 ), and Lemma [13](#lem:dist-norm-vector){reference-type=“ref” reference=“lem:dist-norm-vector”} imply that \(\frac{\nabla f(\mathbf{x}_+)}{\|\nabla f(\mathbf{x}_+)\|}\text{\quad and\quad}\frac{\nabla f(\mathbf{x})+r_{0}\nabla^{2}f(\mathbf{x})\cdot\mathbf{y}}{\|\nabla f(\mathbf{x})+r_{0}\nabla^{2}f(\mathbf{x})\cdot\mathbf{y}\|}\) are \(\frac{L_2 r_{0}^{2}}{0.99\gamma_{\mathbf{x}}}\)-close to each other, \[\begin{align} \label{eq:direction-vector43coeff} \sqrt{1-\left\langle\frac{\nabla f(\mathbf{x}_-)}{\|\nabla f(\mathbf{x}_-)\|},\frac{\nabla f(\mathbf{x})}{\|\nabla f(\mathbf{x})\|}\right\rangle^{2}}\frac{\nabla f(\mathbf{x}_+)}{\|\nabla f(\mathbf{x}_+)\|} \end{align}\tag{6}\] is proportional to \(\nabla f(\mathbf{x}_+)\), and the definition of \(\alpha\) implies \[\begin{align} &\frac{\nabla f(\mathbf{x})}{\|\nabla f(\mathbf{x})\|}-\alpha\cdot\frac{\nabla f(\mathbf{x})-r_{0}\nabla^{2}f(\mathbf{x})\cdot\mathbf{y}}{\|\nabla f(\mathbf{x})-r_{0}\nabla^{2}f(\mathbf{x})\cdot\mathbf{y}\|}\cdot\sqrt{1-\left\langle\frac{\nabla f(\mathbf{x})+r_{0}\nabla^{2}f(\mathbf{x})\cdot\mathbf{y}}{\|\nabla f(\mathbf{x})+r_{0}\nabla^{2}f(\mathbf{x})\cdot\mathbf{y}\|},\frac{\nabla f(\mathbf{x})}{\|\nabla f(\mathbf{x})\|}\right\rangle^{2}}\nonumber\\ &\qquad=\nabla f(\mathbf{x})+r_{0}\nabla^{2}f(\mathbf{x})\cdot\mathbf{y}/(2\|\nabla f(\mathbf{x})\|).\label{eq:HV-alpha-diff} \end{align}\tag{7}\] The above vector is \(\frac{L_2 r_{0}^{2}}{4\gamma_{\mathbf{x}}}\)-close to \(\frac{\nabla f(\mathbf{x}_+)}{2\|\nabla f(\mathbf{x})\|}\) by (3 ), and the error in above steps cumulates by at most \(\frac{6L_2 r_{0}^{2}}{0.99\gamma_{\mathbf{x}}}\) using Lemma [14](#lem:dist-inner-vector){reference-type=“ref” reference=“lem:dist-inner-vector”}. In total, the error is at most \(\frac{6L_2 r_{0}^{2}}{0.99\gamma_{\mathbf{x}}}+\frac{L_2 r_{0}^{2}}{4\gamma_{\mathbf{x}}}\leq \frac{7L_2 r_{0}^{2}}{\gamma_{\mathbf{x}}}\). Furthermore, this vector proportional to \(\nabla f(\mathbf{x}_+)\) that is \(\frac{L_2 r_{0}^{2}}{4\gamma_{\mathbf{x}}}\)-close to ([eq:direction-vector+]) has norm at least \((1-0.01)/2=0.495\) because the coefficient in ([eq:direction-vector+coeff]) is positive, while in the equality above we have \(\|r_{0} \nabla^2f(\mathbf{x})\cdot\mathbf{y}\|\leq\frac{\gamma_{\mathbf{x}}}{100}\). Therefore, applying Lemma [13](#lem:dist-norm-vector){reference-type=“ref” reference=“lem:dist-norm-vector”}, the vector \(\tilde{\mathbf{g}}_{1}\) in ([eq:direction-vector+]) satisfies \[\begin{align} \label{eq:HV-error-1} \big\|\tilde{\mathbf{g}}_{1}/\|\tilde{\mathbf{g}}_{1}\|-\nabla f(\mathbf{x}_+)/\|\nabla f(\mathbf{x}_+)\|\big\|\leq 29L_2 r_{0}^{2}/\gamma_{\mathbf{x}}. \end{align}\tag{8}\] Following the same logic, we can prove that the vector \[\begin{align} \tilde{\mathbf{g}}_{-1}&\mathrel{\vcenter{:}}=\frac{\nabla f(\mathbf{x})}{\|\nabla f(\mathbf{x})\|}-\alpha\sqrt{1-\left\langle\frac{\nabla f(\mathbf{x}_-)}{\|\nabla f(\mathbf{x}_-)\|},\frac{\nabla f(\mathbf{x})}{\|\nabla f(\mathbf{x})\|}\right\rangle^{2}}\frac{\nabla f(\mathbf{x}_+)}{\|\nabla f(\mathbf{x}_+)\|}\nonumber\\ &\qquad +\alpha\sqrt{1-\left\langle\frac{\nabla f(\mathbf{x}_+)}{\|\nabla f(\mathbf{x}_+)\|},\frac{\nabla f(\mathbf{x})}{\|\nabla f(\mathbf{x})\|}\right\rangle^{2}}\frac{\nabla f(\mathbf{x}_-)}{\|\nabla f(\mathbf{x}_-)\|}\label{eq:direction-vector-} \end{align}\tag{9}\] satisfies \[\begin{align} \label{eq:HV-error-2} \big\|\tilde{\mathbf{g}}_{-1}/\|\tilde{\mathbf{g}}_{-1}\|-\nabla f(\mathbf{x}_-)/\|\nabla f(\mathbf{x}_-)\|\big\|\leq 29L_2 r_{0}^{2}/\gamma_{\mathbf{x}}. \end{align}\tag{10}\] Furthermore, (7 ) implies that the vector \(\tilde{\mathbf{g}}_{1}-\tilde{\mathbf{g}}_{-1}\) is \(\frac{14L_2 r_{0}^{2}}{\gamma_{\mathbf{x}}}\)-close to \[\begin{align} \frac{\nabla f(\mathbf{x})+r_{0}\nabla^{2}f(\mathbf{x})\cdot\mathbf{y}}{2\|\nabla f(\mathbf{x})\|}-\frac{\nabla f(\mathbf{x})-r_{0}\nabla^{2}f(\mathbf{x})\cdot\mathbf{y}}{2\|\nabla f(\mathbf{x})\|} =r_{0}\nabla^{2}f(\mathbf{x})\cdot\mathbf{y}/\|\nabla f(\mathbf{x})\| \label{eq:HV-ideal}. \end{align}\tag{11}\] Given that \(\|\nabla^2f(\mathbf{x})\|\ge\sqrt{L_2\epsilon}\) and \(|y_1|\geq\gamma_\mathbf{y}\), \(\|\nabla^2f(\mathbf{x})\cdot\mathbf{y}\|\geq \sqrt{L_2\epsilon}\gamma_\mathbf{y}\). Therefore, the RHS of (11 ) has norm at least \(\frac{r_{0}\sqrt{L_2\epsilon}\gamma_\mathbf{y}}{\gamma_{\mathbf{x}}}\), and by Lemma [13](#lem:dist-norm-vector){reference-type=“ref” reference=“lem:dist-norm-vector”} we have \[\begin{align} \left\|\frac{\tilde{\mathbf{g}}_{1}-\tilde{\mathbf{g}}_{-1}}{\|\tilde{\mathbf{g}}_{1}-\tilde{\mathbf{g}}_{-1}\|}-\frac{\nabla^2f(\mathbf{x})\cdot\mathbf{y}}{\|\nabla^2f(\mathbf{x})\cdot\mathbf{y}\|}\right\|\leq\frac{14L_2 r_{0}^{2}}{\gamma_{\mathbf{x}}}\Big/\Big(\frac{r_{0}\sqrt{L_2\epsilon}\gamma_\mathbf{y}}{\gamma_{\mathbf{x}}}\Big)=\frac{14r_{0}\sqrt{L_2}}{\sqrt{\epsilon}\gamma_{\mathbf{y}}}\label{eq:HV-error-3}. \end{align}\tag{12}\] Finally, by Theorem [3](#thm:Comparison-GDE){reference-type=“ref” reference=“thm:Comparison-GDE”}, the error terms coming from \(\texttt{ComparisonGE}\), \(\big\|\hat{\mathbf{g}}_{0}-\frac{\nabla f(\mathbf{x})}{\|\nabla f(\mathbf{x})\|}\big\|\), \(\;\big\|\hat{\mathbf{g}}_{1}-\frac{\nabla f(\mathbf{x}_+)}{\|\nabla f(\mathbf{x}_+)\|}\big\|\), and \(\;\big\|\hat{\mathbf{g}}_{-1}-\frac{\nabla f(\mathbf{x}_-)}{\|\nabla f(\mathbf{x}_-)\|}\big\|\), are all upper bounded by \(\frac{L_2 r_{0}^{2}}{\gamma_{\mathbf{x}}}\). Combined with (8 ) and (10 ), we know that the vector \(\mathbf{g}\) we obtained in Algorithm [[algo:Comparison-Triangle]](#algo:Comparison-Triangle){reference-type=“ref” reference=“algo:Comparison-Triangle”} is \(\frac{61L_2 r_{0}^{2}}{\gamma_{\mathbf{x}}}\) close to \(\frac{\tilde{\mathbf{g}}_{1}-\tilde{\mathbf{g}}_{-1}}{2\alpha}\). Since \(\alpha\geq 1\), by Lemma [13](#lem:dist-norm-vector){reference-type=“ref” reference=“lem:dist-norm-vector”} we have \[\begin{align} \label{eq:HV-error-4} \left\|\frac{\mathbf{g}}{\|\mathbf{g}\|}-\frac{\tilde{\mathbf{g}}_{1}-\tilde{\mathbf{g}}_{-1}}{\|\tilde{\mathbf{g}}_{1}-\tilde{\mathbf{g}}_{-1}\|}\right\|\leq\frac{61L_2 r_{0}^{2}}{\gamma_{\mathbf{x}}}. \end{align}\tag{13}\] Combining (12 ) and (13 ), \[\begin{align} \label{eq:HV-error-5} \left\|\frac{\mathbf{g}}{\|\mathbf{g}\|}-\frac{\nabla^2f(\mathbf{x})\cdot\mathbf{y}}{\|\nabla^2f(\mathbf{x})\cdot\mathbf{y}\|}\right\|\leq\frac{61L_2 r_{0}^{2}}{\gamma_{\mathbf{x}}}+\frac{14r_{0}\sqrt{L_2}}{\sqrt{\epsilon}\gamma_{\mathbf{y}}}. \end{align}\tag{14}\] Our choice of \(r_{0}=\min\big\{\frac{\gamma_{\mathbf{x}}}{100L_1},\frac{\gamma_{\mathbf{x}}}{100L_2},\frac{\sqrt{\gamma_{\mathbf{x}}\hat{\delta}}}{20\sqrt{L_2}},\frac{\gamma_{\mathbf{y}}\hat{\delta}\sqrt{\epsilon}}{20\sqrt{L_2}}\big\}\) guarantees that the RHS of (14 ) is at most \(\hat{\delta}\). In terms of query complexity, we make 3 calls to \(\texttt{ComparisonGE}\). By Theorem [3](#thm:Comparison-GDE){reference-type=“ref” reference=“thm:Comparison-GDE”}, the total query complexity is \(O\big(n\log\big(nL_2 L_1^{2}/\gamma_{\mathbf{x}}\gamma_{\mathbf{y}}^{2}\epsilon\hat{\delta}^{2}\big)\big)\). ◻

4 Robust Hessian Estimation by Comparisons↩︎

In this section, we show how to obtain an estimate of the normalized Hessian at a given point using comparisons.

Set \(\eta \gets c_0\,\delta^4/n^2\), thresholds \(\tau_\alpha,\tau_\beta \gets \Theta(\sqrt{\eta})\), \(\sigma \gets \frac{1}{8}\eta^2\), sample \(t\sim\mathrm{Unif}(\{1,\dots,n\})\).

Define \(\mathbf{y}_i^{\pm}\gets \frac{\mathbf{e}_i\pm \sigma \mathbf{e}_t}{\sqrt{1+\sigma^2}}\) for all \(i\in[n]\).

Define \(\mathbf{z}_i^{\pm}\gets \frac{\mathbf{e}_1+\mathbf{e}_i\pm \sigma \mathbf{e}_t}{\sqrt{2+\sigma^2}}\) for all \(i\in\{2,\dots,n\}\).

Set \(\hat{r}_1\gets 1\).

\(\widetilde{H}\gets \frac{1}{2}\left([\hat{r}_1 \mathbf{g}_1,\dots,\hat{r}_n \mathbf{g}_n]+[\hat{r}_1 \mathbf{g}_1,\dots,\hat{r}_n \mathbf{g}_n]^\top\right)\). \(\widehat H\gets \widetilde{H}/\|\widetilde{H}\|\).

Set \(\rho\gets \eta^{1/3}\). \(\hat{r}_i\gets 1\).

Theorem 6. Let \(\mathbf{x}\) satisfy \(\|H\|\ge\sqrt{L_2\epsilon}\) and \(\|\mathbf{g}\|\ge\epsilon\). There exist universal constants \(c_0,K>0\) such that, Algorithm [[algo:normhess]](#algo:normhess){reference-type=“ref” reference=“algo:normhess”} makes \(\tilde{O}(n^2\log\big(1/\delta\big))\) queries and outputs \(\widehat H\) satisfying \[\left\|\widehat H-\frac{H}{\|H\|}\right\|\le K\sqrt{n}\,\eta^{1/4}.\] with probability at least \(2/3\).

We divide the analysis into a non-degenerate case described in Assumption [[assum:nondeg_app]](#assum:nondeg_app){reference-type=“ref” reference=“assum:nondeg_app”} and two degenerate cases: either \(\mathbf{h}_i\) has a sufficiently small norm, or the directions of \(\mathbf{h}_1\) and \(\mathbf{h}_i\) are too close. We handle the non-degenerate case in Section [[sec:non-degenerate]](#sec:non-degenerate){reference-type=“ref” reference=“sec:non-degenerate”} and handle the two degenerate cases in Section [[sec:degenerate]](#sec:degenerate){reference-type=“ref” reference=“sec:degenerate”} separately.

Denote \(H=(\mathbf{h}_1,\ldots,\mathbf{h}_n)\) with \(\mathbf{h}_i=H\mathbf{e}_i\) and define \(r_i:=\|\mathbf{h}_i\|/\|\mathbf{h}_1\|\in[0,1]\). Without loss of generality, we assume\(\|H\mathbf{e}_1\|=\max_i\|H\mathbf{e}_i\|\). Otherwise, by testing \(\left\langle \frac{\mathbf{h}_i}{\|\mathbf{h}_i\|},\, \frac{\mathbf{h}_i+\mathbf{h}_j}{\|\mathbf{h}_i+\mathbf{h}_j\|} \right\rangle\) and \(\left\langle \frac{\mathbf{h}_j}{\|\mathbf{h}_j\|},\, \frac{\mathbf{h}_i+\mathbf{h}_j}{\|\mathbf{h}_i+\mathbf{h}_j\|} \right\rangle\), we can roughly tell which one is larger and then relabel columns. The error only incurs a constant overhead in the complexity.

Our estimator first estimates the directions \(\mathbf{h}_i/\|\mathbf{h}_i\|\) and \((\mathbf{h}_1+\mathbf{h}_i)/\|\mathbf{h}_1+\mathbf{h}_i\|\) via Hessian-vector product queries at (perturbed) \(\mathbf{e}_i\) and \(\mathbf{e}_1+\mathbf{e}_i\), and then computes \(\hat{r}_i\) by applying Lemma [15](#lem:vector-norm-1){reference-type=“ref” reference=“lem:vector-norm-1”} in parallelogram spanned by \(\mathbf{h}_1\), \(\mathbf{h}_i\) and \(\mathbf{h}_1+\mathbf{h}_i\) in non-degenerate cases that the direction of \(\mathbf{h}_1\) and \(\mathbf{h}_i\) are not close.

The computation of \(\hat{r}_i\) can be roughly stated as follows: for each \(i\ge 2\) with \(\mathbf{h}_i\neq \mathbf{0}\) and \(\mathbf{h}_1+\mathbf{h}_i\neq 0\), define unit vectors \[\mathbf{u}_1:=\frac{\mathbf{h}_1}{\|\mathbf{h}_1\|},\quad \mathbf{u}_i:=\frac{\mathbf{h}_i}{\|\mathbf{h}_i\|},\quad \mathbf{u}_{1i}:=\frac{\mathbf{h}_1+\mathbf{h}_i}{\|\mathbf{h}_1+\mathbf{h}_i\|}.\] Let \(\alpha_i:=\langle \mathbf{u}_i,\mathbf{u}_1\rangle\) and \(\beta_i:=\langle \mathbf{u}_{1i},\mathbf{u}_1\rangle\). A direct computation yields \[\label{eq:F95main} \beta_i = F(r_i,\alpha_i) :=\frac{1+r_i\alpha_i}{\sqrt{1+r_i^2+2r_i\alpha_i}}.\tag{15}\] Squaring ([eq:F_main]) gives the quadratic equation solved in Line [[lin:solver]](#lin:solver){reference-type=“ref” reference=“lin:solver”} in Algorithm [[algo:normhess]](#algo:normhess){reference-type=“ref” reference=“algo:normhess”} \[\label{eq:quad} (\beta_i^2-\alpha_i^2)\hat{r}_i^2 + 2\alpha_i(\beta_i^2-1)\hat{r}_i + (\beta_i^2-1)=0.\tag{16}\]

By solving this equation, we can roughly estimate \(r_i\), thus we can form the target \(\widehat H\) (see Line [[lin:forming]](#lin:forming){reference-type=“ref” reference=“lin:forming”}). The analysis has two basic cases: (i) When \(\mathbf{h}_1\) and \(\mathbf{h}_i\) overlap relatively small in directions and their norms are not too small, i.e. \(\alpha_i\) and \(\beta_i\) are bounded away from 1, we can solve (16 ) with bounded error on \(|\hat{r}_i-r_i|\). Otherwise, when \(\alpha_i\) and \(\beta_i\) are close to 1, (16 ) becomes degenerate. There are two cases that may cause degeneracy: (ii) When \(\|\mathbf{h}_i\|\) is relatively small, we can tell this case by testing if the angle between \(\mathbf{u}_1\) and \(\mathbf{u}_i\) is relatively large, and we can directly treat \(\|\mathbf{h}_i\|=0\) since the error of column vectors cause bounded error to Hessian estimation. (iii) When \(\mathbf{h}_1\) and \(\mathbf{h}_i\) have close directions, to avoid uncontrollable error, we apply Algorithm [[algo:pert]](#algo:pert){reference-type=“ref” reference=“algo:pert”} to enforce an angle separation \(1-\alpha^2=\Omega(\tau_\alpha)\), in which we use perturbed \(\mathbf{e}_i+\rho \mathbf{e}_j\) to replace \(\mathbf{e}_i\), and perturbed \(\mathbf{e}_1+\mathbf{e}_i+\rho \mathbf{e}_j\) to replace \(\mathbf{e}_1+\mathbf{e}_i\) to guarantee the non-degeneracy in the computation of the ratio \(\hat{r}_i\). This makes the inverse map Lipschitz with coefficient \(O(1/\rho^2)\), giving a noise term \(O(\eta/\sqrt{\tau_\alpha}\rho^2)\). The perturbation changes the effective triangle by \(O(\rho/\sqrt{\tau_\alpha})\), producing a bias term \(O(\rho/\sqrt{\tau_\alpha})\). Hence \[|\hat{r}_i-r_i|\le \frac{1}{\sqrt{\tau_\alpha}}(C\frac{\eta}{\rho^2}+B\rho),\] optimizing it gives \(|\hat{r}_i-r_i|=O(\eta^{1/4})\). (See Lemma [[lem:tradeoff_app]](#lem:tradeoff_app){reference-type=“ref” reference=“lem:tradeoff_app”}.)

With constant probability (guaranteed by Lemma [18](#lem:coordinate-bounds){reference-type=“ref” reference=“lem:coordinate-bounds”}), our sampled \(t\) satisfies \(|\langle \mathbf{e}_t, \mathbf{v}\rangle|\ge1/\sqrt{n}\), where \(\mathbf{v}\) is the eigenvector corresponding to minimum eigenvalue of \(H\), here we use the isotropy of \(n\) coordinates. Once we can satisfy a \(1/\sqrt{n}\)-overlap, our choice of \(\mathbf{g}_i\) and \(\mathbf{g}_{1i}\) satisfies \(\|\mathbf{g}_i-\mathbf{u}_i\|\le \eta\) and \(\|\mathbf{g}_{1i}-\mathbf{u}_{1i}\|\le \eta\) according to Lemma [[lem:suit_tri]](#lem:suit_tri){reference-type=“ref” reference=“lem:suit_tri”}. Inner products satisfy \(|\widehat\alpha_i-\alpha_i|\le O(\eta)\) and \(|\widehat\beta_i-\beta_i|\le O(\eta)\).

When \(\alpha_i\) is bounded away from \(1\) and \(r_i\) is not tiny, the implicit map \(\beta=F(r,\alpha)\) has slope \(|\partial F/\partial r|=\Omega(1/r)\), so solving the quadratic (16 ) gives \(|\hat{r}_i-r_i|=O(\eta/r_{\min}\tau_\alpha)\). (See Lemma [[lem:stable_nondeg_app]](#lem:stable_nondeg_app){reference-type=“ref” reference=“lem:stable_nondeg_app”}.)

Finally, assembling columns \(\hat{r}_i g_i\) yields a scale-free matrix \(\widetilde{H}\) satisfying \(\|\widetilde{H}-H^\star\|\le O(\sqrt{n}\eta^{1/4})\), and normalization stability implies the same order bound for \(\widehat H-\frac{H}{\|H\|}\). (See Lemma [[lem:normstab_app]](#lem:normstab_app){reference-type=“ref” reference=“lem:normstab_app”} and Lemma [[lem:col2spec_app]](#lem:col2spec_app){reference-type=“ref” reference=“lem:col2spec_app”}.)

4.1 The non-degenerate case↩︎

Here we give a deterministic bound for the case that directly solves (16 ) without perturbation.

Assumption 1 (Non-degenerate case). Fix an index \(i\ge 2\) such that \(\mathbf{h}_i\neq \mathbf{0}\) and \(\mathbf{h}_1+\mathbf{h}_i\neq \mathbf{0}\). Assume:

  1. (Not too parallel) \(\alpha_i \le 1-\gamma\) for some \(\gamma\in(0,1)\).

  2. (Not too small) \(r_i \ge r_{\min}\) for some \(r_{\min}\in(0,1]\).

Lemma 1. Under Assumption [[assum:nondeg_app]](#assum:nondeg_app){reference-type=“ref” reference=“assum:nondeg_app”}, let \((\hat{\alpha},\hat{\beta})\) satisfy \(|\hat{\alpha}-\alpha_i|\le \varepsilon\) and \(|\hat{\beta}-\beta_i|\le \varepsilon\), with \(\varepsilon\le \gamma/10\). Let \(\hat{r}\) be the (unique) solution in \([0,1]\) of \(\hat{\beta}=F(r,\hat{\alpha})\) introduced in ([eq:F_main]). Then \[|\hat{r}-r_i| \le \frac{C_0}{r_{\min}\gamma}\,\varepsilon,\] for some universal constant \(C_0\).

Proof. By the mean value theorem, \[|F(\hat{r},\hat{\alpha})-F(r_i,\hat{\alpha})| = |\frac{\partial F}{\partial r}(\xi,\hat{\alpha})|\,|\hat{r}-r_i|\] for some \(\xi\) between \(\hat{r}\) and \(r_i\). Therefore, \[|\hat{r}-r_i| = \frac{|\hat{\beta}-F(r_i,\hat{\alpha})|}{|\frac{\partial F}{\partial r}(\xi,\hat{\alpha})|}.\] We bound numerator and denominator respectively. By triangle inequality, \[\label{eq:tri95bound} |\hat{\beta}-F(r_i,\hat{\alpha})| \le |\hat{\beta}-\beta_i| + |F(r_i,\alpha_i)-F(r_i,\hat{\alpha})| \le \epsilon + L_\alpha \epsilon,\tag{17}\] where \(L_\alpha\) is a Lipschitz constant of \(F\) in \(\alpha\) on the compact set \(r\in[0,1]\), \(\alpha\in[-1,1]\). We can bound \(L_\alpha\) explicitly by computing \(\partial F/\partial \alpha\) and taking a supremum; a crude universal bound \(L_\alpha\le 2\) suffices (indeed, one can check \(|\partial F/\partial\alpha|\le 2\) on this domain). Thus the numerator is less than \(3\epsilon\).

On the other hand, We have \[\left|\frac{\partial F}{\partial r}(\xi,\hat{\alpha})\right| = \frac{\xi(1-\hat{\alpha}^2)}{(1+\xi^2+2\xi\hat{\alpha})^{3/2}}.\] Since \(\xi\) lies between \(\hat{r}\in[0,1]\) and \(r_i\ge r_{\min}\), we have \(\xi\ge r_{\min}/2\) provided \(\epsilon\) is small enough; we can ensure this by restricting to \(\epsilon\le \gamma/10\) and using continuity of the inverse map. Also, \(\hat{\alpha} \le \alpha_i+\epsilon \le 1-\gamma+\frac{\gamma{10}}{=} 1-\tfrac{9}{10}\gamma\), so \[1-\hat{\alpha}^2 = (1-\hat{\alpha})(1+\hat{\alpha}) \ge \left(\tfrac{9}{10}\gamma\right)\cdot 1 = \tfrac{9}{10}\gamma.\] Therefore \[\left|\frac{\partial F}{\partial r}(\xi,\hat{\alpha})\right| \ge \frac{(r_{\min}/2)\cdot (\tfrac{9}{10}\gamma)}{8} \ge c\,r_{\min}\gamma\] for a universal constant \(c>0\). Combining numerator and denominator gives \[|\hat{r}-r_i| \le \frac{3\varepsilon}{c\,r_{\min}\gamma} = \frac{C_0}{r_{\min}\gamma}\,\varepsilon\] with \(C_0:=3/c\). ◻

Corollary 1. Under Assumption [[assum:nondeg_app]](#assum:nondeg_app){reference-type=“ref” reference=“assum:nondeg_app”}, the variables \(\widehat\alpha_i,\widehat\beta_i\) in (16 ) of Algorithm [[algo:normhess]](#algo:normhess){reference-type=“ref” reference=“algo:normhess”} satisfies \(|\widehat\alpha_i-\alpha_i|\le 3\eta\) and \(|\widehat\beta_i-\beta_i|\le 3\eta\), and thus \[|\hat{r}_i-r_i|\le \frac{C_1}{r_{\min}\tau_\alpha}\eta\] for a constant \(C_1\).

4.2 The degenerate cases↩︎

In this subsection, we discuss about how to deal with the two degenerate cases that lead to the failure of Lemma [[lem:stable_nondeg_app]](#lem:stable_nondeg_app){reference-type=“ref” reference=“lem:stable_nondeg_app”}. In the case that \(\mathbf{h}_i\) has a sufficiently small norm, we introduce the following lemma.

Lemma 2. If \(\hat{r}_i\) is set to \(0\), which means the algorithm enters this case only when the column is treated as negligible, i.e. \(r_i\le r_{\min}\). We have \[r_i\le r_{\min}.\]

Proof. If \(\hat{r}_i\) is set to \(0\), by Line [[lin:beta]](#lin:beta){reference-type=“ref” reference=“lin:beta”} and Line [[lin:alpha]](#lin:alpha){reference-type=“ref” reference=“lin:alpha”} in Algorithm [[algo:normhess]](#algo:normhess){reference-type=“ref” reference=“algo:normhess”}, we have \[\widehat{\alpha}_i\le 1-\tau_\alpha.\]

Geometry tells us \[\label{eq:r95min} \tau_\alpha=\cos(\arctan r_{\min})\tag{18}\]

Plugging in \(\widehat{\alpha}_i=\left\langle \mathbf{g}_i,\, \mathbf{g}_1 \right\rangle\) and ([eq:r_min]) we get \[r_i\le r_{\min}.\] ◻

In the case that the directions of \(\mathbf{h}_1\) and \(\mathbf{h}_i\) are too close, we can find an index \(j\) such that the direction of \(\mathbf{h}_j\) and the direction of \(\mathbf{h}_1\) (so to \(\mathbf{h}_i\)) are sufficiently separated for the perturbation step. Note that if we cannot find the index \(j\), it means that the rank of \(H\) is \(1\) up to a small error, which would be dealt with by line search step in Lemma [[lem:cand2_descent]](#lem:cand2_descent){reference-type=“ref” reference=“lem:cand2_descent”}, so we have the following assumption.

Assumption 2. Fix an index \(i\) such that \(\mathbf{h}_i\neq \mathbf{0}\) and \(\mathbf{h}_1+\mathbf{h}_i\neq \mathbf{0}\). Assume \(r_i\ge r_{\min}>0\). Algorithm [[algo:pert]](#algo:pert){reference-type=“ref” reference=“algo:pert”} finds an index \(j\) such that \[\label{eq:sep95app} 1-\left\langle \frac{\mathbf{h}_i+\rho \mathbf{h}_j}{\|\mathbf{h}_i+\rho \mathbf{h}_j\|},\, \frac{\mathbf{h}_1}{\|\mathbf{h}_1\|} \right\rangle^2 \ge c_0\rho^2\qquad{(1)}\] for some absolute \(c_0>0\).

Define \(\alpha := \left\langle \mathbf{v},\, \mathbf{u}_1 \right\rangle, \mathbf{w}:= \frac{\mathbf{u}_1+r_i \mathbf{v}}{\|\mathbf{u}_1+r_i \mathbf{v}\|},\beta := \left\langle \mathbf{w},\, \mathbf{u}_1 \right\rangle\), then \(\beta = F(r_i,\alpha)\). Algorithm [[algo:pert]](#algo:pert){reference-type=“ref” reference=“algo:pert”} estimates \(\mathbf{v}\) and \(\mathbf{w}\) by oracle queries \[\hat{\mathbf{v}}:= \widehat \mathbf{u}(\mathbf{e}_i+\rho \mathbf{e}_j;\eta),\qquad \hat{\mathbf{w}}:= \widehat \mathbf{u}(\mathbf{e}_1+\mathbf{e}_i+\rho \mathbf{e}_j;\eta),\] and computes \[\hat{\alpha} := \left\langle \hat{\mathbf{v}},\, \mathbf{g}_1 \right\rangle,\qquad \hat{\beta} := \left\langle \hat{\mathbf{w}},\, \mathbf{g}_1 \right\rangle,\] then returns \(\hat{r}\) as the solution in \([0,1+\rho]\) to \(\hat{\beta}=F(\hat{r},\hat{\alpha})\).

Lemma 3. Under Assumption [[assum:sep_app]](#assum:sep_app){reference-type=“ref” reference=“assum:sep_app”}, there exists a constant \(C\) such that for \(\eta\) sufficiently small, \[|\hat{r}-r_i| \le C\,\frac{\eta}{r_{\min}\rho^2}.\]

Proof. By Theorem [5](#thm:triangle){reference-type=“ref” reference=“thm:triangle”}, \(\|\hat{\mathbf{v}}-\mathbf{v}\|\le \eta\), \(\|\hat{\mathbf{w}}-\mathbf{w}\|\le \eta\), and also \(\|\mathbf{g}_1-\mathbf{u}_1\|\le \eta\). Apply Lemma [14](#lem:dist-inner-vector){reference-type=“ref” reference=“lem:dist-inner-vector”} we have \[\label{eq:ab95err95app} |\hat{\alpha}-\alpha|\le 3\eta,\qquad |\hat{\beta}-\beta|\le 3\eta.\tag{19}\] and \[\left|\frac{\partial F}{\partial r}(r_i,\alpha)\right| = \frac{r_i(1-\alpha^2)}{(1+r_i^2+2r_i\alpha)^{3/2}} \ge \frac{r_{\min}(1-\alpha^2)}{8}.\] Using the separation \(1-\alpha^2\ge c_0\rho^2\), we obtain \[\label{eq:dF95lb95app} \left|\frac{\partial F}{\partial r}(r_i,\alpha)\right|\ge \frac{r_{\min}c_0}{8}\rho^2\tag{20}\] By the mean value theorem, \[|\hat{r}-r_i| = \frac{|\hat{\beta}-F(r_i,\hat{\alpha})|}{|\frac{\partial F}{\partial r}(\xi)|}\] for some \(\xi\) between \(r_i\) and \(\hat{r}\). For \(\eta\) sufficiently small, \(\hat{\alpha}\) is close to \(\alpha\) and thus \(1-\hat{\alpha}^2 \ge \frac{1}{2}(1-\alpha^2)\ge \frac{1}{2} c_0\rho^2\), and \(\xi\) remains in a compact interval containing \([r_{\min}/2,1+\rho]\). Therefore, the lower bound ([eq:dF_lb_app]) holds for \(|\frac{\partial F}{\partial r}(\xi)|\) as well \[\left|\frac{\partial F}{\partial r}(\xi,\hat{\alpha})\right| \ge \frac{r_{\min}c_0}{16} \rho^2.\] Hence \[|\hat{r}-r_i| \le \frac{16}{r_{\min}c_0\rho^2}\,|\hat{\beta}-F(r_i,\hat{\alpha})|.\] Similar to ([eq:tri_bound]), we have \[|\hat{\beta}-F(r_i,\hat{\alpha})| \le |\hat{\beta}-\beta|+|F(r_i,\alpha)-F(r_i,\hat{\alpha})| \le 3\eta+3L_\alpha\eta.\] where \(L_\alpha\) is a Lipschitz constant of \(F\) in \(\alpha\) on the compact set \(r\in[0,1]\), \(\alpha\in[-1,1]\). Conclude that the numerator is \(\le C'\eta\), and therefore \[|\hat{r}-r_i|\le C\frac{\eta}{r_{\min}\rho^2}.\] ◻

Lemma 4. Under Assumption [[assum:sep_app]](#assum:sep_app){reference-type=“ref” reference=“assum:sep_app”} and assuming \(r_i\ge r_{\min}\), the perturbation case estimator satisfies \[|\hat{r}-r_i| \le \frac{1}{r_{\min}}\left(C\,\frac{\eta}{\rho^2} + B\rho\right)\] for constants \(C,B\) depending only on \(c_0\).

Proof. The first term \(C\eta/\rho^2\) follows from Lemma [[lem:amp_app]](#lem:amp_app){reference-type=“ref” reference=“lem:amp_app”}. The second term accounts for the fact that the perturbation uses \(\mathbf{v}\) (direction of \(\mathbf{h}_i+\rho \mathbf{h}_j\)) rather than \(\mathbf{u}_i\) (direction of \(\mathbf{h}_i\)). By Lemma [[lem:bias_app]](#lem:bias_app){reference-type=“ref” reference=“lem:bias_app”}, \(\|\mathbf{v}-\mathbf{u}_i\|\le O(\rho)\) (with explicit constant \(4/r_{\min}\)). On the non-degenerate set enforced by \(1-\alpha^2\ge c_0\rho^2\), the mapping from input directions to the recovered ratio is Lipschitz; therefore this \(O(\rho)\) direction change induces an \(O(\rho)\) bias in \(r\). Combining the two terms of error yields the stated bound. ◻

4.3 Proof of Theorem [[thm:main_app]](#thm:main_app){reference-type=“ref” reference=“thm:main_app”}↩︎

Here complete the proof of Theorem [[thm:main_app]](#thm:main_app){reference-type=“ref” reference=“thm:main_app”}, the main theorem of this section.

Proof. By Lemma [18](#lem:coordinate-bounds){reference-type=“ref” reference=“lem:coordinate-bounds”}, we have \(\Pr_{\mathbf{u}\sim \mathrm{Unif}(S_1(0))}[|\langle \mathbf{u}, \mathbf{v}\rangle| \ge 1/\sqrt{n}]\ge 2/5\) where \(\mathbf{v}\) is the eigenvalue of \(H\) with the largest absolute eigenvalue. Because of the isotropy of n coordinates, \(\mathbf{v}\sim \mathrm{Unif}(S_1(0))\). So we have \[\begin{align} \Pr_{\mathbf{u}\sim \mathrm{Unif}(S_1(0))}[|\langle \mathbf{u}, \mathbf{v}\rangle| \ge 1/\sqrt{n}]&=\Pr_{\mathbf{u}\sim \mathrm{Unif}(S_1(0)), \mathbf{v}\sim \mathrm{Unif}(S_1(0))}[|\langle \mathbf{u}, \mathbf{v}\rangle| \ge 1/\sqrt{n}]\\ &=\Pr_{\mathbf{u}\sim \mathrm{Unif}(\{\mathbf{e}_1,\ldots,\mathbf{e}_n\}), \mathbf{v}\sim \mathrm{Unif}(S_1(0))}[|\langle \mathbf{u}, \mathbf{v}\rangle| \ge 1/\sqrt{n}]\\ &=\Pr_{t \sim \mathrm{Unif}(\{1,\ldots,n\}), \mathbf{v}\sim \mathrm{Unif}(S_1(0))}[|\langle \mathbf{e}_t, \mathbf{v}\rangle| \ge 1/\sqrt{n}]\\ &\ge 2/5. \end{align}\] Repeat for \(O(1)\) times and the success probability can be more than \(2/3\). Let \(H^\star\) be the scale-free target matrix ([eq:Hstar_app]), so that \(H/\|H\|=H^\star/\|H^\star\|\). Let \(\widetilde{H}=[\hat{r}_1 \mathbf{g}_1,\dots,\hat{r}_n \mathbf{g}_n]\) and define \(E:=\widetilde{H}-H^\star\). Fix \(i\). If \(\hat{r}_i\) is produced by the non-degenerate solver, Corollary [[cor:nondeg_eta_app]](#cor:nondeg_eta_app){reference-type=“ref” reference=“cor:nondeg_eta_app”} gives \[|\hat{r}_i-r_i|\le \frac{C}{r_{\min}\tau_\alpha}\eta\] for some constant \(C\).

In the case that \(\mathbf{h}_i\) has a sufficiently small norm, by Lemma [[lem:norm_small]](#lem:norm_small){reference-type=“ref” reference=“lem:norm_small”} we have \[|\hat{r}_i-r_i|<r_{\min}.\]

In the case that the directions of \(\mathbf{h}_1\) and \(\mathbf{h}_i\) are too close, ([eq:r_min]) tells us \[r_{\min}=\tan{(\arccos(1-\tau_\beta))}.\] When \(\eta\) is sufficiently small, through Taylor expansion, \(f(x)=\tan(\arccos(1-x))\sim \sqrt{2x}+O(x^{3/2})\), i.e. \(r_{\min}\sim \sqrt{\tau_\beta}\). If \(\hat{r}_i\) is produced by perturbation, then Lemma [[lem:tradeoff_app]](#lem:tradeoff_app){reference-type=“ref” reference=“lem:tradeoff_app”} yields \[|\hat{r}_i-r_i|\le \frac{1}{r_{\min}}\left(C\,\frac{\eta}{\rho^2} + B\rho\right).\]

Combine these three cases and set \(\rho=\Theta(\eta^{1/3})\), \(\tau_\alpha=\tau_\beta=\Theta(\sqrt{\eta})\), we get \[|\hat{r}_i-r_i|\le O(\eta^{1/4}),\] and \[\|E\mathbf{e}_i\| = \|\hat{r}_i \mathbf{g}_i-r_i \mathbf{u}_i\| \le \|(\hat{r}_i-r_i)\mathbf{g}_i\| + \|r_i(\mathbf{g}_i-\mathbf{u}_i)\| \le |\hat{r}_i-r_i|\cdot\|\mathbf{g}_i\| + r_i\eta \le 2|\hat{r}_i-r_i|+\eta,\] since \(\|\mathbf{g}_i\|\le 1+\eta\le 2\) and \(r_i\le 1\). Thus \(\|E\mathbf{e}_i\|\le K_1\eta^{1/4}\) for a constant \(K_1\). By Lemma [[lem:col2spec_app]](#lem:col2spec_app){reference-type=“ref” reference=“lem:col2spec_app”}, \[\|E\|\le K_1\sqrt{n}\,\eta^{1/4}.\] By Lemma [[lem:Hstar_lb_app]](#lem:Hstar_lb_app){reference-type=“ref” reference=“lem:Hstar_lb_app”}, \(\|H^\star\|\ge 1\). If \(\eta\) is small enough that \(\|E\|\le 1/2\), then Lemma [[lem:normstab_app]](#lem:normstab_app){reference-type=“ref” reference=“lem:normstab_app”} gives \[\left\|\frac{\widetilde{H}}{\|\widetilde{H}\|}-\frac{H^\star}{\|H^\star\|}\right\| \le 4\|E\| \le 4K_1\sqrt{n}\,\eta^{1/4}.\] Using \(H/\|H\|=H^\star/\|H^\star\|\) then gives the stated bound with \(K:=4K_1\). ◻

Corollary 2. Under the setting of Theorem [[thm:main_app]](#thm:main_app){reference-type=“ref” reference=“thm:main_app”}, we can increase success probability to at least \(1-p\) using \(O(n^2\log(1/\delta)\log(1/p))\) queries for any \(p\in(0,1)\) to get the same result.

Proof. Consider the \(m=\lceil18\ln(1/p)\rceil\) independent base runs in the algorithm. Define \(\widehat H^{(r)}\) to be the output of the \(r\)-th iteration and set \(\mathcal{N}_r=\{s\in\{1,\ldots,m\}:\|\widehat H^{(r)}-\widehat H^{(s)}\|\le 2\delta/3\}\). We finally return any \(\widehat H^{(r)}\) with \(|\mathcal{N}_r|\ge m/2\) and prove that it satisfies our requirements with success probability at least \(1-p\). Let \(X_r\) be the indicator that the \(r\)-th candidate satisfies \(\|\widehat H^{(r)}-H\|\le \delta_0\). Since \(\Pr[X_r=1]\ge2/3\), Hoeffding’s inequality gives \[\Pr\left[\sum_{r=1}^m X_r\le m/2\right]\le \exp(-m/18)\le p.\] Conditioned on the complementary event, more than half of the candidates are good. Any two good candidates are within \(2\delta_0=2\delta/3\) of each other, so every good candidate satisfies the selection condition \(|\mathcal{N}_r|\ge m/2\). Thus the algorithm can select at least one candidate. Moreover, for any selected candidate \(\widehat H^{(r)}\), the set \(\mathcal{N}_r\) intersects the set of good candidates because both sets have size greater than \(m/2\) or at least \(m/2\) with a strict majority of good candidates. Therefore, for some good \(\widehat H^{(s)}\), \[\|\widehat H^{(r)}-H\|\le \|\widehat H^{(r)}-\widehat H^{(s)}\|+\|\widehat H^{(s)}-H\|\le 2\delta/3+\delta/3=\delta.\] The total query complexity is \(m\cdot O(n^2\log\frac{1}{\delta})=O(n^2\log\frac{1}{\delta}\log\frac{1}{p})\). ◻

5 Estimate the Ratio of the Hessian and the Gradient Norm↩︎

In this section, we show that, under the following assumption, the ratio \(\frac{\|\nabla^2 f(\mathbf{x})\|}{\|\nabla f(\mathbf{x})\|}\) can be estimated using a single call to ComparisonHE (Algorithm [[algo:normhess]](#algo:normhess){reference-type=“ref” reference=“algo:normhess”}) and two calls to \(\texttt{ComparisonGE}\) (Theorem [3](#thm:Comparison-GDE){reference-type=“ref” reference=“thm:Comparison-GDE”}).

Assumption 3.

  1. The Hessian \(H\) is neither positive definite nor negative definite.

  2. The Hessian \(H\) is not rank-one.

  3. There exists a unit eigenvector \(\mathbf{u}\) of \(H\) with eigenvalue \(\lambda_\mathbf{u}\) such that \[\label{eq:angle95beta} \arccos\left\langle \frac{\mathbf{g}}{\|\mathbf{g}\|},\, \mathbf{u} \right\rangle\ge \beta \quad\text{and}\quad \|H\mathbf{u}\|=|\lambda_\mathbf{u}|\ge \lambda,\qquad{(2)}\] for some \(\beta\in(0,\pi/2)\) and \(\lambda>0\).

.

\(\mu\gets\tan^2\beta\cdot\epsilon^2\delta_\kappa^2\). \((\xi_1,\xi_2,\xi_3)\gets(O(\epsilon\delta_\kappa), O(\epsilon\delta_\kappa), O(\epsilon^2\delta_\kappa^2/n))\).

\(\widehat H \gets \texttt{ComparisonHE}(\mathbf{x};\xi_3)\). Compute a unit eigenvector \(v\) of \(\widehat H\) associated with the eigenvalue \(\lambda_{v}\) with the largest absolute value \(\widehat \mathbf{g}_1 \gets \texttt{ComparisonGE}(\mathbf{x};\xi_1)\). \(\widehat \mathbf{g}_2 \gets \texttt{ComparisonGE}(\mathbf{x}+\mu \mathbf{v};\xi_2)\).

\(\hat{\kappa} \gets \dfrac{\sqrt{1-\left\langle \widehat \mathbf{g}_1,\, \widehat \mathbf{g}_2 \right\rangle^2}} {\mu\,\sqrt{1-\left\langle \widehat \mathbf{g}_2,\, \mathbf{v} \right\rangle^2}}\). .

Theorem 7. Let \(f\colon\mathbb{R}^n\to\mathbb{R}\) with \(L_1\)-Lipschitz gradient and \(L_2\)-Lipschitz Hessian. Assume that Assumption [[assum:hess_lip]](#assum:hess_lip){reference-type=“ref” reference=“assum:hess_lip”} holds. Given any precision \(\delta_\kappa>0\), there exists an algorithm \(\texttt{ComparisonRatio}(\mathbf{x},\delta_\kappa)\) such that, for any \(\mathbf{x}\in\mathbb{R}^n\) with \(\|\mathbf{g}\|\ge \epsilon\), it outputs \(\hat{\kappa}\) satisfying \[\label{eq:ratio95bound95main} \left|\hat{\kappa}-\frac{\|H\|}{\|\mathbf{g}\|}\right| \le \delta_\kappa.\qquad{(3)}\] using \(\tilde{O}(n^2\log\big(1/\delta_\kappa\big))\) queries.

Figure 3: The intuition for computing the ratio.

By Lemma [[lem:taylor_grad]](#lem:taylor_grad){reference-type=“ref” reference=“lem:taylor_grad”}, we have the second-order expansion for some small \(\mu\), \[\label{eq:taylor95grad95main} \nabla f(\mathbf{x}+\mu \mathbf{v})=\mathbf{g}+\mu H\mathbf{v}+r_\mu, \qquad \|r_\mu\|\le \tfrac{1}{2}L_2\mu^2.\tag{21}\]

Here we choose \(\mathbf{v}\) as an eigenvector of \(\widehat H\) corresponding to the eigenvalue \(\lambda_\mathbf{v}\), which is the largest magnitude eigenvalue satisfying \(\arccos\left\langle \frac{\mathbf{g}_1}{\|\mathbf{g}_1\|},\, \mathbf{v} \right\rangle\ge \beta\) and \(\|\widehat H\mathbf{v}\|=|\lambda_\mathbf{v}|\ge \lambda\). Otherwise, when finding the stationary point, we apply line search on direction \(\mathbf{v}\) to handle this case. As shown in Figure 3, we can use line segment BE to replace BC. By law of sines, we can get an estimation of the Hessian-gradient norm ratio \[\frac{\|\nabla^2f(\mathbf{x})\cdot\mu\mathbf{u}\|}{\|\nabla f(\mathbf{x})\|}=\frac{\mu\lambda_\mathbf{u}}{\|\nabla f(\mathbf{x})\|}\approx\mu\frac{\|\nabla^2f(\mathbf{x})\|}{\|\nabla f(\mathbf{x})\|}.\] where \(\mathbf{u}\) is an eigenvector of the real Hessian \(H\) appropriately chosen.

A core lemma we use here is the Davis-Kahan Theorem (Lemma [22](#lem:Davis-Kahan){reference-type=“ref” reference=“lem:Davis-Kahan”}), which bounds the distance of two subspaces spanned by eigenvectors under perturbation. We use this tool to bound \(\|\mathbf{u}-\mathbf{v}\|\) and thus get an upper bound of the error \(|\hat{\kappa}-\frac{\|H\|}{\|\mathbf{g}\|}|\). We will rigorously describe how to choose \(\mathbf{u}\) in Section [[sec:choose_u]](#sec:choose_u){reference-type=“ref” reference=“sec:choose_u”}, here we directly claim that \(\mathbf{u}\) has two properties:

  • \(\|\mathbf{u}-\mathbf{v}\|\le O\left(\frac{n\xi_3}{\epsilon\delta_\kappa}\right)\);

  • \(\|H\|-\|H\mathbf{u}\|\le\frac{\epsilon\delta_\kappa}{2}+2\xi_3\).

We can take \(\xi_3\) sufficiently small to apply Lemma [22](#lem:Davis-Kahan){reference-type=“ref” reference=“lem:Davis-Kahan”}, which gives \(\|\sin(\Theta(U,V))\|\le\frac{\xi_3}{\lambda_k'-\lambda_{k+1}'}\). With these two properties we can get an upper bound of \(|\hat{\kappa}-\frac{\|H\|}{\|\mathbf{g}\|}|\).

5.1 Analysis of errors when estimating the Hessian-gradient norm ratio↩︎

Here we give some lemmas to prove the properties of \(\mathbf{u}\), and first we describe how to choose \(\mathbf{u}\).

Denote \(\mathbf{v}\) as the eigenvector with the largest magnitude eigenvalue of \(\widehat H\). Assume that all n eigenvalues of \(\widehat H\) are \(\lambda_1'\ge\cdots\ge\lambda_n'\) (correspond to eigenvectors \(\mathbf{v}_1,\ldots,\mathbf{v}_n\)), and due to Assumption [[assum:hess_lip]](#assum:hess_lip){reference-type=“ref” reference=“assum:hess_lip”}, we can assume \(\lambda_1'>0\) and \(\lambda_n'<0\). Without loss of generality, we suppose that \(\lambda_\mathbf{v}=\lambda_1'\) here, another case is the same. By the Dirichlet Theorem, there exists \(\lambda_k'-\lambda_{k+1}'\ge \frac{\|\widehat H\|}{n-1}\) for some index \(k\). We denote \(k\) as the first index that \(\lambda_k'-\lambda_{k+1}'\ge \epsilon\delta_\kappa/2n\). We call the set \(\widehat \Lambda=\{\lambda_1',\ldots,\lambda_k'\}\) a cluster, and denote \(V=\text{span}(\mathbf{v}_1,\ldots,\mathbf{v}_k)\). Denote the eigenvalues of Hessian \(H\) as \(\lambda_1\ge\cdots\ge\lambda_n\) (correspond to eigenvectors \(\mathbf{u}_1,\ldots,\mathbf{u}_n\)). By Weyl’s Theorem (Lemma [23](#lem:Weyl){reference-type=“ref” reference=“lem:Weyl”}) we know that \(|\lambda_i-\lambda_i'|\le\xi_3\). Similarly define the cluster \(\Lambda=\{\lambda_1,\ldots,\lambda_{k'}\}\) and space \(U=\text{span}(u_1,\ldots,u_{k'})\). Denote the projection of \(\mathbf{v}\) in \(U\) as \(\mathbf{u}\).

Lemma 5. With \(\mathbf{u}\) being chosen as above, we guarantee \[\|H\mathbf{v}\|-\|H\mathbf{u}\|\le \frac{\epsilon\delta_\kappa}{2}+\xi_3.\] As a result, we have \[\label{eq:estimate95norm} \|H\|-\|H\mathbf{u}\|\le \frac{\epsilon\delta_\kappa}{2}+2\xi_3.\qquad{(4)}\]

Figure 4: The intuition for applying the Davis-Kahan Theorem (Lemma [22](#lem:Davis-Kahan){reference-type=“ref” reference=“lem:Davis-Kahan”}) to prove \|H\|-\|H\mathbf{u}\|\le\frac{\epsilon\delta_\kappa}{2}+2\xi_3.

Proof. Since \(\|\widehat H-H\|\le\xi_3\), by Davis-Kahan Theorem (Lemma [22](#lem:Davis-Kahan){reference-type=“ref” reference=“lem:Davis-Kahan”}), we have \(k=k'\) and \[\sin\big(\Theta(U,V)\big)\le\frac{\xi_3}{\lambda_k-\lambda_{k+1}}=O\left(\frac{n\xi_3}{\epsilon\delta_\kappa}\right),\] and hence \[\label{eq:uv95bound} \|\mathbf{u}-\mathbf{v}\|\le O\left(\frac{n\xi_3}{\epsilon\delta_\kappa}\right).\tag{22}\]

For our choice of \(\mathbf{u}\), We prove \(\|H\|-\|H\mathbf{u}\|\le\frac{\epsilon\delta_\kappa}{2}+2\xi_3\). Our intuition is shown in Figure 4. We find the first pair of eigenvalue \((\lambda_k',\lambda_{k+1}')\) that are far apart (distance longer than \(\frac{\epsilon\delta_\kappa}{2n}\)), thus we can say \(\lambda_1',\ldots,\lambda_k'\) are close enough, and so \(\lambda_1,\ldots,\lambda_k\) are close too. Then we can apply Davis-Kahan Theorem to bound the distance between \(U\) and \(V\). Since \(\mathbf{u}\in U\), we can write \(\mathbf{u}=\sum_{i=1}^{k}s_i\mathbf{u}_i\) where \(\sum_{i=1}^{k}s_i^2=1\). Therefore, \[H\mathbf{u}=\sum_{i=1}^ks_iH\mathbf{u}_i=\sum_{i=1}^ks_i\lambda_i\mathbf{u}_i,\] and \[\|H\mathbf{u}\|=\sqrt{\sum_{i=1}^ks_i^2\lambda_i^2}\ge\lambda_k\sqrt{\sum_{i=1}^ks_i^2}=\lambda_k.\] Since for any \(i<k\) we have \(\lambda_i'-\lambda_{i+1}'\le\frac{\epsilon\delta_\kappa}{2n}\), we can further derive that \[\lambda_1'-\lambda_k'\le\sum_{i=1}^{k-1}\lambda_i'-\lambda_{i+1}'\le\frac{(k-1)\epsilon\delta_\kappa}{2n}\le\frac{\epsilon\delta_\kappa}{2}.\] From \(|\lambda_i-\lambda_i'|\le\xi_3\), \[\label{eq:Hu} \|H\|-\|H\mathbf{u}\|=\lambda_1-\|H\mathbf{u}\|\le\lambda_1'+\xi_3-(\lambda_k'-\xi_3)\le\frac{\epsilon\delta_\kappa}{2}+2\xi_3.\tag{23}\]  ◻

Lemma 6. In the setting above and choose \(\mathbf{u}\) as in Lemma [[lem:choose_eigenvector]](#lem:choose_eigenvector){reference-type=“ref” reference=“lem:choose_eigenvector”}, if two vectors \(\nabla f(\mathbf{x}+\mu \mathbf{v})+k_2\mathbf{v}_2\) and \(\nabla f(\mathbf{x})+k_1\mathbf{v}_1+\eta\hat{H}\cdot\mu \mathbf{v}\) are colinear, then \(\eta=\|H\|(1+O(\frac{\sqrt{\mu}}{\tan\beta})+O(\frac{n\xi_3}{\epsilon\delta_\kappa}))\).

Proof. Note that \[\begin{align} \nabla f(\mathbf{x}+\mu \mathbf{v})&=\nabla f(\mathbf{x})+\frac{1}{2}\nabla^2f(\mathbf{x})\cdot\mu \mathbf{v}+O(\mu^2). \end{align}\] From the observation in Figure 3, if there exist \(\eta'\) such that two vectors \(\nabla f(\mathbf{x}+\mu \mathbf{v})+k_2\mathbf{v}_2\) and \(\nabla f(\mathbf{x})+k_1\mathbf{v}_1+\eta' H\cdot\mu \mathbf{u}\) are colinear, then

\[\begin{align} \label{eq:two95ratios} \eta' &= \frac{|BD|}{|BE|}=\frac{|CD|}{|CE|}\cdot\frac{\sin \angle BCD}{\sin \angle BCE}=\frac{\sin \angle CED}{\sin\angle CDE}\cdot\frac{\sin \angle BCD}{\sin \angle BCE}. \end{align}\tag{24}\] We compute two ratios in ([eq:two_ratios]) separately \[\begin{align} \label{eq:CED47BCE} \frac{\sin \angle CED}{\sin \angle BCE}&=\frac{\sin(\angle BCE+O(\sqrt{\mu}))}{\sin\angle BCE} \notag\\ &=\frac{\sin\angle BCE\cos O(\sqrt{\mu})+\cos \angle BCE\sin O(\sqrt{\mu})}{\sin \angle BCE} \notag\\ &=\cos O(\sqrt{\mu})+\frac{O(\sqrt{\mu})}{\tan \angle BCE}. \end{align}\tag{25}\] We can then compute the angle \[\begin{align} \langle \nabla^2f(\mathbf{x})\cdot\mu \mathbf{u}, \nabla^2f(\mathbf{x})\cdot\mu \mathbf{u}+O(\mu^2)\rangle&=\arccos\frac{(\lambda_\mathbf{u}\cdot\mu)^2+(\lambda_\mathbf{u}\cdot\mu+O(\mu^2))^2-O(\mu^4)}{2\lambda_\mathbf{u}\cdot\mu(\lambda_\mathbf{u}\cdot\mu+O(\mu^2))} \notag \\ &=\arccos\frac{2(\lambda_\mathbf{u}\cdot\mu)^2+O(\mu^3)}{2(\lambda_\mathbf{u}\cdot\mu)^2}\left(1-O \left(\frac{\mu^2}{\lambda_\mathbf{u}\mu}\right)\right) \notag \\ &=\arccos(1-O(\mu)) \notag \\ &=O(\sqrt{\mu}). \label{eq:figure-1} \end{align}\tag{26}\] So there exists an angle \(\zeta\) such that \(\angle BEC=\frac{\pi-O(\sqrt{\mu})}{2}+\zeta\), \(\angle BCE=\frac{\pi-O(\sqrt{\mu})}{2}-\zeta\). From \[\begin{align} \sin(\frac{\pi-O(\sqrt{\mu})}{2}+\zeta)=\cos(\frac{O(\sqrt{\mu})}{2}-\zeta) \quad \text{and} \quad \cos x=1-\frac{x^2}{2}+O(x^4), \end{align}\] we get \[\begin{align} &\sin \angle BEC=1-\frac{1}{2}(\frac{O(\sqrt{\mu})}{2}-\zeta)^2+O((\sqrt{\mu}+\zeta)^4), \\ &\sin\angle BCE=1-\frac{1}{2}(\frac{O(\sqrt{\mu})}{2}+\zeta)^2+O((\sqrt{\mu}+\zeta)^4). \end{align}\] Therefore, \[\begin{align} \frac{\sin \angle BEC}{\sin \angle BCE}&=\frac{1-\frac{1}{2}(\frac{O(\sqrt{\mu})}{2}-\zeta)^2+O((\sqrt{\mu}+\zeta)^4)}{1-\frac{1}{2}(\frac{O(\sqrt{\mu})}{2}+\zeta)^2+O((\sqrt{\mu}+\zeta)^4)} \\ &=1+\frac{1}{2}\left(\left(\frac{O(\sqrt{\mu})}{2}+\zeta\right)^2-\left(\frac{O(\sqrt{\mu})}{2}-\zeta\right)^2\right)+O(\mu^{1.5}, \zeta^3) \\ &=1+O(\sqrt{\mu}\zeta)+O(\mu^{1.5}, \zeta^3). \end{align}\] On the other hand, by the Law of Sines, \[\begin{align} \frac{\sin \angle BEC}{\sin \angle BCE}&=\frac{\|\nabla^2f(\mathbf{x})\cdot\mu u+O(\mu^2)\|}{\|\nabla^2f(\mathbf{x})\cdot\mu u\|}=1+O(\mu). \end{align}\] Comparing two equations with the same left-hand side, we know that: \(\zeta=O(\sqrt{\mu})\), i.e. \(\angle BCE=\frac{\pi}{2}+O(\sqrt{\mu})\). Naturally, we have \[\begin{align} \tan \angle BCE=O(1/\sqrt{\mu}). \end{align}\] Plugging in ([eq:CED/BCE]), we obtain \[\begin{align} \frac{\sin \angle CED}{\sin\angle BCE}=1+O(\sqrt{\mu}). \end{align}\] Denote \(\langle \nabla f(\mathbf{x}), \nabla f(\mathbf{x}+\mu \mathbf{v})\rangle=\alpha\). Applying the Law of Cosines, we can compute \(\alpha\) as \[\cos\alpha=\frac{\|\nabla f(\mathbf{x})\|^2+\|\nabla f(\mathbf{x}+\mu \mathbf{v})\|^2-\|\nabla^2f(\mathbf{x})\cdot\mu \mathbf{v}+O(\mu^2)\|^2}{2\cdot\|\nabla f(\mathbf{x})\|\cdot\|\nabla f(\mathbf{x}+\mu \mathbf{v})\|}.\] So we have \[\label{eq:sin-ratio-1} \alpha=O(\sqrt{\mu}).\tag{27}\] Denote \(\langle \nabla f(\mathbf{x}), \mathbf{u}\rangle=\theta\). The other ratio \(\frac{\sin\angle BCD}{\sin \angle CDE}\) in ([eq:two_ratios]) can be computed as \[\begin{align} \frac{\sin \angle BCD}{\sin \angle CDE}&=\frac{\sin\theta\cos O(\sqrt{\mu})+\cos\theta\sin O(\sqrt{\mu})}{\sin\theta\cos\alpha-\cos\theta\sin\alpha} \notag\\ &=\frac{1+O(\mu)+\cot\theta\cdot O(\sqrt{\mu})}{1+O(\mu)-\cot\theta\cdot O(\sqrt{\mu})} \notag\\ &=1+\cot\theta\cdot O(\sqrt{\mu}). \label{eq:sin-ratio-2} \end{align}\tag{28}\] Combining (27 ) and (28 ), we have \[\begin{align} \eta'&=\frac{\sin \angle BEC}{\sin\angle BCE}\cdot \frac{\sin \angle BCD}{\sin\angle CDE} =(1+O(\mu))(1+\cot\theta\cdot O(\sqrt{\mu})) =1+O\left(\frac{\sqrt{\mu}}{\tan\theta}\right). \end{align}\] Since \(\|u-v\|\le O(\frac{n\xi_3}{\epsilon\delta_\kappa})\), we can further derive that \[\begin{align} \frac{\eta}{\|H\|} &=(1+O(\mu))(1+\cot(\theta-O\Big(\frac{n\xi_3}{\epsilon\delta_\kappa}\Big))\cdot O(\sqrt{\mu})) \\ &=1+O\left(\frac{\sqrt{\mu}}{\tan(\theta-O(\frac{n\xi_3}{\epsilon\delta_\kappa}))}\right)\\ &=1+O\left(\frac{\sqrt{\mu}}{\tan\beta}\right)+O\left(\frac{n\xi_3}{\epsilon\delta_\kappa}\right). \end{align}\] ◻

5.2 Proof of Theorem [7](#thm:gradient-Hessian-ratio){reference-type=“ref” reference=“thm:gradient-Hessian-ratio”}↩︎

Here we give a complete proof of our result on computing the ratio of the Hessian and the gradient norm.

Proof of . Theorem 7] By Lemma [[lem:choose_eigenvector]](#lem:choose_eigenvector){reference-type=“ref” reference=“lem:choose_eigenvector”} we have ([eq:estimate_norm]). Given Line [[lin:HE_in_ratio]](#lin:HE_in_ratio){reference-type=“ref” reference=“lin:HE_in_ratio”} and Line [[lin:GE_in_ratio]](#lin:GE_in_ratio){reference-type=“ref” reference=“lin:GE_in_ratio”} in Algorithm [[algo:Comparison-ratio]](#algo:Comparison-ratio){reference-type=“ref” reference=“algo:Comparison-ratio”}, by Theorem [[thm:main_app]](#thm:main_app){reference-type=“ref” reference=“thm:main_app”} and Theorem [3](#thm:Comparison-GDE){reference-type=“ref” reference=“thm:Comparison-GDE”} we have \[\left\|\hat{H}-\frac{H}{\|H\|}\right\|\le \xi_3,\qquad\hat{\mathbf{g}}_1=\frac{\mathbf{g}+k_1\mathbf{v}_1}{\|\mathbf{g}+k_1\mathbf{v}_1\|},\qquad \|k_1\mathbf{v}_1\|\le O(\xi_1)\|\mathbf{g}\|.\] (Analogous notation holds for \(\hat{\mathbf{g}}_2\) with error \(k_2\mathbf{v}_2\).) Observe that \[\begin{align} \left\|\frac{H}{\|H\|}\cdot\mu \mathbf{u}-\hat{H}\cdot\mu \mathbf{v}\right\| &\leq \mu\left( \left\|\frac{H}{\|H\|}\cdot \mathbf{u}-\frac{H}{\|H\|}\cdot \mathbf{v}\right\| + \left\|\frac{H}{\|H\|}\cdot \mathbf{v}-\hat{H}\cdot \mathbf{v}\right\| \right) \\ &\leq \mu\left( \|\mathbf{u}-\mathbf{v}\|+\left\|\frac{H}{\|H\|}-\hat{H}\right\| \right). \end{align}\] By ([eq:uv_bound]), we have \(\|\mathbf{u}-\mathbf{v}\|\le O(\xi_3/\epsilon\delta_\kappa)\). Therefore, we have \[\label{eq:inc95mismatch} \left\|\frac{H}{\|H\|}\cdot\mu \mathbf{u}-\hat{H}\cdot\mu \mathbf{v}\right\| \le O\left(\frac{\mu n\xi_3}{\epsilon\delta_\kappa}\right).\tag{29}\] and \[\label{eq:figure-2} \left\|H\cdot\mu \mathbf{u}-\|H\|\cdot\hat{H}\cdot\mu \mathbf{v}\right\| \le \|H\|\cdot O\left(\frac{\mu n\xi_3}{\epsilon\delta_\kappa}\right).\tag{30}\] The geometric calculation in Lemma [6](#lem:difference-colinear){reference-type=“ref” reference=“lem:difference-colinear”} gives \(\eta/\|H\|=1+O(\sqrt{\mu}/\tan\theta)\), where \(\theta=\angle(\mathbf{g},\mathbf{u})\). Due to (30 ), replacing the exact increment direction \(H\mu \mathbf{u}\) by the estimated increment direction \(\|H\|\hat{H}\mu \mathbf{v}\) perturbs the relevant triangle angles by at most \(O(\frac{n\xi_3}{\epsilon\delta_\kappa})\), hence we can write \[\label{eq:eta95ratio} \frac{\eta}{\|H\|} = 1+O\!\left(\frac{\sqrt{\mu}}{\tan(\theta-O(\frac{n\xi_3}{\epsilon\delta_\kappa}))}\right) = 1+O\!\left(\frac{\sqrt{\mu}}{\tan\beta}\right)+O\left(\frac{ n\xi_3}{\epsilon\delta_\kappa}\right),\tag{31}\] using \(\theta\ge \beta\) and \(\frac{\mu n\xi_3}{\epsilon\delta_\kappa}\) sufficiently small. Furthermore, by Lemma [15](#lem:vector-norm-1){reference-type=“ref” reference=“lem:vector-norm-1”} and Lemma [[lem:eta_prime_enters]](#lem:eta_prime_enters){reference-type=“ref” reference=“lem:eta_prime_enters”}, \[\label{eq:Delta95gamma95norm95ratio} \hat{\kappa}=\dfrac{\sqrt{1-\left\langle \hat{\mathbf{g}}_1,\, \hat{\mathbf{g}}_2 \right\rangle^2}} {\mu\,\sqrt{1-\left\langle \hat{\mathbf{g}}_2,\, \mathbf{v} \right\rangle^2}}=\frac{\eta\cdot\|\hat{H}\cdot\mu \mathbf{v}\|}{\mu\|\mathbf{g}+k_1\mathbf{v}_1\|}.\tag{32}\] By Taylor expansion, \[\label{eq:grad95diff95u} \nabla f(\mathbf{x}+\mu \mathbf{u})-\nabla f(\mathbf{x})=H\cdot\mu \mathbf{u}+O(\mu^2),\tag{33}\] so by (23 ) we have \[\begin{align} \label{eq:hatgamma95expand} \frac{1}{\mu}\frac{\|\nabla f(\mathbf{x}+\mu \mathbf{u})-\nabla f(\mathbf{x})\|}{\|\mathbf{g}\|} &= \frac{\|H\cdot\mu \mathbf{u}+O(\mu^2)\|}{\mu\|\mathbf{g}\|}\notag\\ &= \frac{\|H \mathbf{u}\|}{\|\mathbf{g}\|}+O\!\left(\frac{\mu}{\|\mathbf{g}\|}\right)\notag\\ &= \frac{\|H\mathbf{u}\|}{\|\mathbf{g}\|}+O\left(\frac{\mu}{\|\mathbf{g}\|}\right)\notag\\ &= \frac{\|H\|}{\|\mathbf{g}\|}+O\left(\frac{\epsilon\delta_\kappa+\xi_3+\mu}{\|\mathbf{g}\|}\right). \end{align}\tag{34}\] Combine ([eq:Delta_gamma_norm_ratio]) and ([eq:hatgamma_expand]), \[\begin{align} \left|\hat{\kappa}-\frac{1}{\mu}\frac{\|\nabla f(\mathbf{x}+\mu \mathbf{u})-\nabla f(\mathbf{x})\|}{\|\mathbf{g}\|}\right| &= \left| \frac{\eta\|\hat{H}\mu \mathbf{v}\|}{\mu\|\mathbf{g}+k_1\mathbf{v}_1\|} - \frac{\|H\mu \mathbf{u}+O(\mu^2)\|}{\mu\|\mathbf{g}\|} \right| \notag\\ &\le \underbrace{ \left| \frac{\eta\|\hat{H}\mu \mathbf{v}\|}{\mu\|\mathbf{g}+k_1\mathbf{v}_1\|} - \frac{\|H\|\|\hat{H}\mu \mathbf{v}\|}{\mu\|\mathbf{g}+k_1\mathbf{v}_1\|} \right|}_{T_1} + \underbrace{ \left| \frac{\|H\|\|\hat{H}\mu \mathbf{v}\|}{\mu\|\mathbf{g}+k_1\mathbf{v}_1\|} - \frac{\|H\|\|\hat{H}\mu \mathbf{v}\|}{\mu\|\mathbf{g}\|} \right|}_{T_2} \notag\\ &\qquad+ \underbrace{ \left| \frac{\|H\|\|\hat{H}\mu \mathbf{v}\|}{\mu\|\mathbf{g}\|} - \frac{\|H\mu \mathbf{u}\|}{\mu\|\mathbf{g}\|} \right|}_{T_3} + \underbrace{ \left|\frac{\|H\mu \mathbf{u}\|}{\mu\|\mathbf{g}\|}-\frac{\|H\mu \mathbf{u}+O(\mu^2)\|}{\mu\|\mathbf{g}\|}\right|}_{T_4}. \label{eq:mediator95split} \end{align}\tag{35}\] Using \(\|\hat{H}\mu \mathbf{v}\|\le \mu\|\hat{H}\|\le \mu(1+\xi_3)\le 2\mu\) and \(\|\mathbf{g}+k_1\mathbf{v}_1\|\ge \|\mathbf{g}\|-\|k_1\mathbf{v}_1\|\ge (1-O(\xi_1))\|\mathbf{g}\|\ge \tfrac12\|\mathbf{g}\|\), \[\label{eq:T195bound} T_1 = \frac{|\eta-\|H\||\cdot\|\hat{H}\mu \mathbf{v}\|}{\mu\|\mathbf{g}+k_1\mathbf{v}_1\|} \le \frac{C}{\|\mathbf{g}\|}\,|\eta-\|H\||.\tag{36}\] By ([eq:eta_ratio]), \(|\eta-\|H\||\le \|H\|\left(O(\frac{\sqrt{\mu}}{\tan\beta})+O(\frac{n\xi_3}{\epsilon\delta_\kappa})\right)\). Hence \[\label{eq:T195bound95final} T_1 \le \frac{\|H\|}{\|\mathbf{g}\|}\left(O\!\left(\frac{\sqrt{\mu}}{\tan\beta}\right)+O\left(\frac{n\xi_3}{\epsilon\delta_\kappa}\right)\right).\tag{37}\] Using the inequality \(\left|\frac{1}{\|\mathbf{g}+k_1\mathbf{v}_1\|}-\frac{1}{\|\mathbf{g}\|}\right| =\frac{|\|\mathbf{g}\|-\|\mathbf{g}+k_1\mathbf{v}_1\||}{\|\mathbf{g}\|\|\mathbf{g}+k_1\mathbf{v}_1\|} \le \frac{\|k_1\mathbf{v}_1\|}{\|\mathbf{g}\|\|\mathbf{g}+k_1\mathbf{v}_1\|}\), we obtain \[\label{eq:T295bound} T_2 \le \frac{\|H\|\|\hat{H}\mu \mathbf{v}\|}{\mu}\cdot \frac{\|k_1\mathbf{v}_1\|}{\|\mathbf{g}\|\|\mathbf{g}+k_1\mathbf{v}_1\|} \le \frac{\|H\|}{\|\mathbf{g}\|}\cdot O(\xi_1).\tag{38}\] Moreover, \[\big|\|H\|\|\hat{H}\mu \mathbf{v}\|-\|H\mu \mathbf{u}\|\big| = \big|\|H\|\mu\lambda_\mathbf{v}-\mu\|H\mathbf{u}\|\big| \le \|H\|\cdot O(\mu (\epsilon\delta_\kappa+\xi_3)).\] which gives \[\label{eq:T395bound} T_3 \le \frac{\|H\|\cdot O(\mu (\epsilon\delta_\kappa+\xi_3))}{\mu\|\mathbf{g}\|} = \frac{\|H\|}{\|\mathbf{g}\|}\cdot O(\epsilon\delta_\kappa+\xi_3).\tag{39}\] As for \(T_4\), from ([eq:grad_diff_u]) we have \(\|O(\mu^2)\|\le C\mu^2\) and thus \[\label{eq:T495bound} T_4 \le \frac{\|O(\mu^2)\|}{\mu\|\mathbf{g}\|} \le O\!\left(\frac{\mu}{\|\mathbf{g}\|}\right).\tag{40}\] Plugging ([eq:T1_bound_final])–([eq:T4_bound]) into ([eq:mediator_split]) yields \[\label{eq:gamma95hatgamma} \left|\hat{\kappa}-\frac{1}{\mu}\frac{\|\nabla f(\mathbf{x}+\mu \mathbf{u})-\nabla f(\mathbf{x})\|}{\|\mathbf{g}\|}\right| \le \frac{\|H\|}{\|\mathbf{g}\|} \left( O\!\left(\frac{\sqrt{\mu}}{\tan\beta}\right) +O(\frac{n\xi_3}{\epsilon\delta_\kappa}) +O(\xi_1) +O(\epsilon\delta_\kappa+\xi_3) \right) + O\!\left(\frac{\mu}{\|\mathbf{g}\|}\right),\tag{41}\] Combine ([eq:hatgamma_expand]) and ([eq:gamma_hatgamma]), we have \[\begin{align} \label{eq:ratio95bound} \left|\hat{\kappa}-\frac{\|H\|}{\|\mathbf{g}\|}\right| &\le \frac{\|H\|}{\|\mathbf{g}\|} \left( O\!\left(\frac{\sqrt{\mu}}{\tan\beta}\right) +O(\frac{n\xi_3}{\epsilon\delta_\kappa}) +O(\xi_1) +O(\epsilon\delta_\kappa+\xi_3) \right) + O\!\left(\frac{\mu}{\|\mathbf{g}\|}\right)\notag\\ &\le O\left(\frac{\sqrt{\mu}}{\epsilon} +\frac{n\xi_3}{\epsilon^2\delta_\kappa} +\frac{\xi_1+\xi_3}{\epsilon} +\delta_\kappa\right). \end{align}\tag{42}\] By our choice of parameters in Algorithm [[algo:Comparison-ratio]](#algo:Comparison-ratio){reference-type=“ref” reference=“algo:Comparison-ratio”} and using the Lipschitzness, the right-hand side of ([eq:ratio_bound]) is at most \(O(\delta_\kappa)\), which completes our proof. ◻

6 Finding Stationary Points↩︎

In this section, we combine the tools developed in the previous sections to construct Algorithm [[algo:best-of-all]](#algo:best-of-all){reference-type=“ref” reference=“algo:best-of-all”}, which outputs a list of points that includes at least one \(\epsilon\)-second-order stationary point, a notion that generalizes and is strictly stronger than an \(\epsilon\)-stationary point.

Definition 1. A point \(\mathbf{x}\in\mathbb{R}^n\) is an \(\epsilon\)-second-order stationary point of \(f\) if \[\|\nabla f(\mathbf{x})\|\le \epsilon \qquad\text{and}\qquad \lambda_{\min}\!\left(\nabla^2 f(\mathbf{x})\right)\ge -\sqrt{L_2\epsilon}.\]

\(r\gets \sqrt{\epsilon/L_2}\). \(\delta_\kappa\gets c_0\sqrt{\frac{\epsilon}{L_2}}\).

.

Theorem 8. Given \(f\colon\mathbb{R}^n\to\mathbb{R}\) has \(L_1\)-Lipschitz gradient and \(L_2\)-Lipschitz Hessian. Denote \(\mathbf{x}^\star=\arg\min f(\mathbf{x})\). Given \(\mathbf{x}_0\in\mathbb{R}^n\) satisfying \(f(\mathbf{x}_0)-f(\mathbf{x}^\star)\leq \Delta\), with success probability at least \(2/3\), Algorithm [[algo:best-of-all]](#algo:best-of-all){reference-type=“ref” reference=“algo:best-of-all”} outputs a list of \(O(1/\epsilon^{1.5})\) points, in which at least one point is an \(\epsilon\)-second order stationary point, using \(T=O(\frac{f(\mathbf{x}_0)-f(\mathbf{x}^\star)}{C'\epsilon^{1.5}})\) iterations. The overall query complexity is \(\tilde{O}(\frac{\Delta\sqrt{L_2}n^2}{\epsilon^{1.5}})\).

If in some steps \(\nabla f(\mathbf{x}_t)\le \epsilon\) and \(\lambda_{\min}(\nabla^2f(\mathbf{x}_t))\ge-\sqrt{L_2\epsilon}\), we have already visited an \(\epsilon\)-second order stationary point. Otherwise, at any iterate \(\mathbf{x}_t\) with \(\|\nabla f(\mathbf{x}_t)\|\ge\epsilon\), Algorithm [[algo:best-of-all]](#algo:best-of-all){reference-type=“ref” reference=“algo:best-of-all”} finds the next iterate \(\mathbf{x}_{t+1}\) that decreases the function value by \(\Omega(\epsilon^{3/2})\). If after limited steps we cannot visit a stationary point, the function value will decrease more than \(f(\mathbf{x}_0)-f(\mathbf{x}^\star)\), which is a contradiction. The iteration rule constructs three candidate steps (gradient step, trust-region step on a normalized quadratic model, and rank-one line-search step), and then selects the candidate with minimal function value by comparison. If the Hessian is rank-one or the eigenvector with the largest absolute eigenvalue has significant overlap with the gradient, line search performs well. Else if the Hessian has too small norm, or positive/negative definite, a normalized gradient descent step decreases \(\Omega(\epsilon^{1.5})\). Else, in all the other cases, trust-region step guarantees the decrease.

Lemma 7. For any iterate \(\mathbf{x}_t\) in Algorithm [[algo:best-of-all]](#algo:best-of-all){reference-type=“ref” reference=“algo:best-of-all”} that satisfies: (i) \(\|\nabla f(\mathbf{x}_t)\|\ge \epsilon\), or (ii) \(\|\nabla f(\mathbf{x}_t)\|< \epsilon\) and \(\lambda_{\min}(\nabla^2f(\mathbf{x}_t))\le -\sqrt{L_2\epsilon}\), the next iterate \(\mathbf{x}_{t+1}\) satisfies \[\label{eq:best95of95all95descent} f(\mathbf{x}_{t+1})\le f(\mathbf{x}_t)-C\epsilon^{1.5}\qquad{(5)}\] for some absolute constant \(C>0\).

6.1 Descent of each candidate↩︎

For any iterate \(\mathbf{x}_t\) with \(\|\nabla f(\mathbf{x}_t)\|\ge \epsilon\), let \(H:=\nabla^2f(\mathbf{x}_t)\) and \(\mathbf{g}:=\nabla f(\mathbf{x}_t)\). Algorithm [[algo:best-of-all]](#algo:best-of-all){reference-type=“ref” reference=“algo:best-of-all”} builds three candidates within the ball:

  • normalized gradient descent along \(-\hat{\mathbf{g}}\) with step size in \([0,r]\),

  • a line search along an eigenvector \(\mathbf{v}\) corresponding to the eigenvalue with the largest magnitude on \([-r,r]\),

  • a trust-region minimizer of the approximate quadratic \(m_{\mathbf{x}_t}(\mathbf{p})=\left\langle \hat{\mathbf{g}},\, \mathbf{p} \right\rangle+\frac{\hat{\kappa}}{2}\mathbf{p}^\top \hat{H} \mathbf{p}\) with \(\|\mathbf{p}\|\le r\).

Lemma 8 (Descent of Candidate 1). Given \(f\colon\mathbb{R}^n\to\mathbb{R}\) has \(L_1\)-Lipschitz gradient and \(L_2\)-Lipschitz Hessian. For any iterate \(\mathbf{x}_t\in\mathbb{R}^n\) with \(\|\mathbf{g}\|\ge \epsilon\), let \(\hat{\mathbf{g}}\) be the output of \(\texttt{ComparisonGE}(\mathbf{x};\xi_1)\) with \[\label{eq:cand195hatg95acc} \left\|\hat{\mathbf{g}}-\frac{\mathbf{g}}{\|\mathbf{g}\|}\right\|\le \xi_1,\qquad \xi_1\le \frac{1}{100}.\qquad{(6)}\] Assume that at least one of the following two conditions holds:

  1. (small Hessian norm) \(\|H\|\le \sqrt{L_2\epsilon}\);

  2. (\(H\) is definite) \(H\succeq \mathbf{0}\) or \(H\preceq \mathbf{0}\), and \(\|H\|\ge \sqrt{L_2\epsilon}\);

Then there exists an absolute constant \(C>0\) such that \[\label{eq:cand195true95decrease95rigorous} f(\mathbf{x}^{(1)})\le f(\mathbf{x}_t)-C\,\epsilon^{3/2}.\qquad{(7)}\]

Proof. We use the cubic Taylor remainder bound for any \(\mathbf{p}\in\mathbb{R}^n\), \[\label{eq:cand195taylor} f(\mathbf{x}_t+\mathbf{p})\le f(\mathbf{x}_t)+\mathbf{g}^\top \mathbf{p}+\frac{1}{2} \mathbf{p}^\top H \mathbf{p}+\frac{L_2}{6}\|\mathbf{p}\|^3.\tag{43}\] Denote \(\mathbf{p}_1=-r\hat{\mathbf{g}}\). We will bound the linear and quadratic terms for \(\mathbf{p}_1\) and then absorb the remainder term.

Let \(\bar \mathbf{g}:=\mathbf{g}/\|\mathbf{g}\|\). Since \(\|\hat{\mathbf{g}}-\bar \mathbf{g}\|\le\xi_1\) and both are unit vectors, \[\left\langle \bar \mathbf{g},\, \hat{\mathbf{g}} \right\rangle = 1-\frac{1}{2}\|\bar \mathbf{g}-\hat{\mathbf{g}}\|^2 \ge 1-\frac{1}{2}\xi_1^2 \ge 1-\xi_1.\] Therefore \[\label{eq:cand195lin} \mathbf{g}^\top \mathbf{p}_1 = -r\,\left\langle \mathbf{g},\, \hat{\mathbf{g}} \right\rangle = -r\,\|\mathbf{g}\|\,\left\langle \bar \mathbf{g},\, \hat{\mathbf{g}} \right\rangle \le -(1-\xi_1)\,r\,\|\mathbf{g}\|.\tag{44}\] Since \(\|\mathbf{p}_1\|=r\) and \(\|H\|\) denotes the spectral norm, \[\label{eq:cand195quad95worst} \frac{1}{2} \mathbf{p}_1^\top H \mathbf{p}_1 \le \frac{1}{2} \|H\|\,\|\mathbf{p}_1\|^2 = \frac{1}{2}\|H\|\,r^2.\tag{45}\] Plugging ([eq:cand1_lin]) and ([eq:cand1_quad_worst]) into ([eq:cand1_taylor]) with \(\mathbf{p}=\mathbf{p}_1\) yields \[\label{eq:cand195master} f(\mathbf{x}^{(1)})-f(\mathbf{x}_t) \le -(1-\xi_1)r\|\mathbf{g}\|+\frac{1}{2}\|H\|r^2+\frac{L_2}{6}r^3.\tag{46}\] Using \(\|\mathbf{g}\|\ge\epsilon\) and \(r=\sqrt{\epsilon/L_2}\) gives \[r\|\mathbf{g}\| \ge \,\frac{\epsilon^{3/2}}{\sqrt{L_2}}, \qquad r^2 = \frac{\epsilon}{L_2}, \qquad \frac{L_2}{6}r^3 = \frac{1}{6}\frac{\epsilon^{3/2}}{\sqrt{L_2}}.\] Hence ([eq:cand1_master]) becomes \[\label{eq:cand195master95scaled} f(\mathbf{x}^{(1)})-f(\mathbf{x}_t) \le -\Big((1-\xi_1)-\frac{1}{6}\Big)\frac{\epsilon^{3/2}}{\sqrt{L_2}} +\frac{1}{2}\|H\|\cdot\frac{\epsilon}{L_2}.\tag{47}\] We now argue that in each of the three cases (i)–(iii), the positive quadratic term is controlled so that the right hand side of ([eq:cand1_master_scaled]) is less than \(-C\,\epsilon^{3/2}\) after choosing \(c\) as a sufficiently small constant.

In Case (i), \(\|H\|\le \sqrt{L_2\epsilon}\). Then the quadratic term in ([eq:cand1_master_scaled]) is bounded by \[\frac{1}{2}\|H\|\cdot\frac{\epsilon}{L_2} \le \frac{1}{2} \sqrt{L_2\epsilon}\cdot\frac{\epsilon}{L_2} = \frac{1}{2}\frac{\epsilon^{3/2}}{\sqrt{L_2}}.\] Therefore \[f(\mathbf{x}^{(1)})-f(\mathbf{x}_t) \le -\left((1-\xi_1)-\frac{1}{6}-\frac{1}{2} \right)\frac{\epsilon^{3/2}}{\sqrt{L_2}}.\] So we have \[f(\mathbf{x}^{(1)})\le f(\mathbf{x}_t)-C\,\epsilon^{3/2}\] for an absolute constant \(C>0\).

In Case (ii), \(H\preceq \mathbf{0}\) or \(H\succeq \mathbf{0}\). By \(L_2\)-Lipschitzness, for any \(p\), \[f(\mathbf{x}_t+\mathbf{p})\le f(\mathbf{x}_t)+\mathbf{g}^\top \mathbf{p}+\frac{1}{2} \mathbf{p}^\top H \mathbf{p}+\frac{L_2}{6}\|\mathbf{p}\|^3.\] Apply this with \(\mathbf{p}=\mathbf{p}_1=-r\hat{\mathbf{g}}\) to obtain \[\label{eq:l195smooth95step} f(\mathbf{x}^{(1)})-f(\mathbf{x}_t)\le r\mathbf{g}^\top \hat{\mathbf{g}}+\frac{r^2}{2}\hat{\mathbf{g}}^\top H\hat{\mathbf{g}}+\frac{L_2}{6}|r|^3.\tag{48}\]

Let \(\bar \mathbf{g}:=\mathbf{g}/\|\mathbf{g}\|\). Since \(\|\hat{\mathbf{g}}-\bar \mathbf{g}\|\le \xi_1\) and both are unit vectors, \[\left\langle \bar \mathbf{g},\, \hat{\mathbf{g}} \right\rangle =1-\frac{1}{2}\|\bar \mathbf{g}-\hat{\mathbf{g}}\|^2 \ge 1-\frac{1}{2}\xi_1^2 \ge 1-\xi_1.\] Therefore \[\mathbf{g}^\top \mathbf{p}_1=-r\,\left\langle \mathbf{g},\, \hat{\mathbf{g}} \right\rangle =-r\|\mathbf{g}\|\,\left\langle \bar \mathbf{g},\, \hat{\mathbf{g}} \right\rangle \le -(1-\xi_1)\,r\|\mathbf{g}\|.\]

If \(H\preceq \mathbf{0}\), we have \[\frac{1}{2}\mathbf{p}_1^\top H\mathbf{p}_1\le 0.\] so \[f(\mathbf{x}^{(1)})- f(\mathbf{x}_t)\le\mathbf{g}^\top \mathbf{p}_1+\frac{L_2}{6}|r|^3\le-\epsilon\left((1-\xi_1)-\frac{1}{6}\right)r=-\Omega(\epsilon^{3/2}).\]

Else if \(H\succeq \mathbf{0}\), consider the 1-dimension function \(f_\star\) on the direction \(\hat{\mathbf{g}}\). By the Lipschitzness of \(H\), for any \(l\in[0,r]\), we have \[f_\star''(\mathbf{x}_t-l\hat{\mathbf{g}})\ge 0.\] It tells us that \[f_\star'(\mathbf{x}_t-l\hat{\mathbf{g}})\ge \epsilon.\] So the function value descent \[f(\mathbf{x}^{(1)})- f(\mathbf{x}_t)\le -r\epsilon=-\Omega(\epsilon^{3/2}).\] ◻

Lemma 9 (Descent of Candidate 2). Let \(\mathbf{x}^{(2)}=\mathbf{x}_t+l^\star \mathbf{v}\) where \(l^\star\in[-r,r]\) minimizes \(f(\mathbf{x}_t+t \mathbf{v})\) over \([-r,r]\). Then either \(\|\mathbf{g}\|\le \epsilon\), or \[\label{eq:cand295true} f(\mathbf{x}^{(2)})-f(\mathbf{x}_t)\le -c_2\,\epsilon^{3/2}\qquad{(8)}\] for an absolute constant \(c_2>0\).

Proof. Consider \(\phi(t)=f(\mathbf{x}_t+l \mathbf{v})\) and expand around \(l=0\), we have \[\phi(l)=\phi(0)+l\left\langle \mathbf{g},\, \mathbf{v} \right\rangle+\frac{1}{2} l^2\,\mathbf{v}^\top H \mathbf{v}+ O(L_2|l|^3).\] For \(|\left\langle \mathbf{g},\, \mathbf{v} \right\rangle|\ge \frac{1}{2}\|\mathbf{g}\|\), choosing \(l=-r\,\mathrm{sign}(\left\langle \mathbf{g},\, \mathbf{v} \right\rangle)\) yields \[\phi(l)-\phi(0)\le -r\cdot \tfrac12\|\mathbf{g}\| + O(L_2 r^3) \le -\Omega(\epsilon^{3/2})\] since \(\|\mathbf{g}\|\ge \epsilon\) and \(L_2 r^3=\epsilon^{3/2}/\sqrt{L_2}\). If instead \(|\left\langle \mathbf{g},\, \mathbf{v} \right\rangle|<\frac{1}{2}\|\mathbf{g}\|\), then \(\mathbf{g}\) has a component orthogonal to \(\mathbf{v}\) of magnitude at least \(\frac{\sqrt{3}}{2}\|\mathbf{g}\|\), and Candidate 1 already provides a decrease of order \(r\|\mathbf{g}\|\) up to quadratic/cubic corrections; therefore the best-of-all selection ensures the stated decrease. ◻

Lemma 10 (Descent of Candidate 3). Let \(\mathbf{p}^\star\) minimize the normalized quadratic model \[m_{\mathbf{x}_t}(\mathbf{p})=\left\langle \mathbf{g},\, \mathbf{p} \right\rangle+\frac{\hat{\kappa}}{2}\,\mathbf{p}^\top \hat{H}\,\mathbf{p} \quad\text{subject to }\|\mathbf{p}\|\le r,\] Then either \[\label{eq:cand395stationary} \|\nabla m_{\mathbf{x}_t}(\mathbf{p}^\star)\|\le \epsilon\qquad{(9)}\] or \[\label{eq:cand395model95descent} f(\mathbf{x}^{(3)})-f(\mathbf{x}_t)=m_{\mathbf{x}_t}(\mathbf{p}^\star)-m_{\mathbf{x}_t}(\mathbf{0})\le -\frac{1}{2} r\|\nabla m_{\mathbf{x}_t}(\mathbf{p}^\star)\|.\qquad{(10)}\] In particular, in the non-stationary case ([eq:cand3_model_descent]) implies \(m_{\mathbf{x}_t}(\mathbf{p}^\star)-m_{\mathbf{x}_t}(\mathbf{0})\le -\Omega(r\epsilon)=-\Omega(\epsilon^{3/2})\).

Proof. This is a direct corollary of Lemma [[lem:tr_quadratic]](#lem:tr_quadratic){reference-type=“ref” reference=“lem:tr_quadratic”}, taking \(q=m_{\mathbf{x}_t}\), \(b=\mathbf{g}\) and \(A=\hat{\kappa}\hat{H}\). ◻

Next, we prove that Algorithm [[algo:best-of-all]](#algo:best-of-all){reference-type=“ref” reference=“algo:best-of-all”} can go further to visit an (\(\epsilon\), \(\sqrt{\epsilon}\))-second order stationary point. Our intuition is to construct a negative curvature candidate and prove that the trust region candidate is better than or equal to it.

Lemma 11. For any iterate \(\mathbf{x}_t\in\mathbb{R}^n\), suppose that \(\mathbf{v}_{\min}\) is the unit eigenvector corresponding to the minimum eigenvalue of \(H\), denoted as \(\lambda_{\min}\). If \(\left\langle \mathbf{v}_{\min},\, \mathbf{g} \right\rangle\ge 0\), set \(\mathbf{v}_{\min}=-\mathbf{v}_{\min}\). Let \(\mathbf{x}^{(4)}=\mathbf{x}_t+r\mathbf{v}_{\min}\). If \(\|\mathbf{g}\|\le\epsilon\) and \(\lambda_{\min}\le-\sqrt{L_2\epsilon}\), then \[\label{eq:cand4} f(\mathbf{x}^{(4)})-f(\mathbf{x}_t)\le-c_4\epsilon^{3/2}\qquad{(11)}\] for an absolute constant \(c_4>0\).

Proof. We use the cubic Taylor remainder bound for any \(\mathbf{p}\in\mathbb{R}^n\), \[f(\mathbf{x}_t+\mathbf{p})\le f(\mathbf{x}_t)+\mathbf{g}^\top \mathbf{p}+\frac{1}{2} \mathbf{p}^\top H \mathbf{p}+\frac{L_2}{6}\|\mathbf{p}\|^3.\] Plugging in \(\mathbf{p}_4=r\mathbf{v}_{\min}\) we have \[\begin{align} f(\mathbf{x}^{(4)})&\le f(\mathbf{x}_t)+r\mathbf{g}^\top \mathbf{v}_{\min}+\frac{1}{2} r^2 \mathbf{v}_{\min}^\top H \mathbf{v}_{\min}+\frac{L_2}{6}r^3 \\ &= f(\mathbf{x}_t)+\sqrt{\frac{\epsilon}{L_2}}\mathbf{g}^\top \mathbf{v}_{\min}+\frac{1}{2} \frac{\epsilon}{L_2} \mathbf{v}_{\min}^\top H \mathbf{v}_{\min}+\frac{L_2}{6}\cdot \frac{\epsilon^{3/2}}{L_2^{3/2}} \\ &\le f(\mathbf{x}_t)+\sqrt{\frac{\epsilon^3}{L_2}}\left(-\frac{1}{2}+\frac{1}{6}\right)=f(\mathbf{x}_t)-c_4\epsilon^{3/2}. \end{align}\] ◻

Lemma 12. For any iterate \(\mathbf{x}_t\in\mathbb{R}^n\) and let \(\mathbf{g}=\nabla f(\mathbf{x}_t)\) and \(H=\nabla^2f(\mathbf{x}_t)\). If \(\|\mathbf{g}\|\le\epsilon\) and \(\lambda_{\min}\le-\sqrt{L_2\epsilon}\), then \[\label{eq:trust95region95better} f(\mathbf{x}^{(3)})\le f(\mathbf{x}^{(4)})+c_5\epsilon^{3/2}\qquad{(12)}\] for an absolute constant \(c_5>0\).

Proof. Denote \(x^{(3)}=\mathbf{x}_t+\mathbf{p}_3\), \(x^{(4)}=\mathbf{x}_t+\mathbf{p}_4\). For our choice of \(x^{(3)}\), we have \[m_{\mathbf{x}_t}(\mathbf{p}_3)\le m_{\mathbf{x}_t}(\mathbf{p}_4),\] which is equivalent to \[\label{eq:sosp951} T_{\mathbf{x}_t}(\mathbf{x}_t+\mathbf{p}_3)\le T_{\mathbf{x}_t}(\mathbf{x}_t+\mathbf{p}_4).\tag{49}\] By Lemma [[lem:taylor_cubic_best]](#lem:taylor_cubic_best){reference-type=“ref” reference=“lem:taylor_cubic_best”} we have \[\label{eq:sosp952} |f(\mathbf{x}_t+\mathbf{p}_3)-T_{\mathbf{x}_t}(\mathbf{x}_t+\mathbf{p}_3)|\le \frac{L_2}{6}\|\mathbf{p}_3\|^3=\frac{L_2}{6}r^3,\tag{50}\] \[\label{eq:sosp953} |f(\mathbf{x}_t+\mathbf{p}_4)-T_{\mathbf{x}_t}(\mathbf{x}_t+\mathbf{p}_4)|\le \frac{L_2}{6}\|\mathbf{p}_4\|^3=\frac{L_2}{6}r^3.\tag{51}\] Combining ([eq:sosp_1]), ([eq:sosp_2]) and ([eq:sosp_3]), we can conclude ([eq:trust_region_better]). ◻

6.2 Proof of function value descent guaranty↩︎

Here, we prove the theoretical guarantee of our Algorithm [[algo:best-of-all]](#algo:best-of-all){reference-type=“ref” reference=“algo:best-of-all”} for a large descent when the current point is not a second-order stationary point.

Proof of . Lemma 7] Assume \(\|\mathbf{g}(\mathbf{x}_t)\|\ge \epsilon\). Let \(\mathbf{x}_{t+1}=\arg\min\{f(\mathbf{x}^{(1)}),f(\mathbf{x}^{(2)}),f(\mathbf{x}^{(3)})\}\) in Algorithm [[algo:best-of-all]](#algo:best-of-all){reference-type=“ref” reference=“algo:best-of-all”}. By Lemma [[lem:taylor_cubic_best]](#lem:taylor_cubic_best){reference-type=“ref” reference=“lem:taylor_cubic_best”}, for each candidate \(\mathbf{p}_i=\mathbf{x}^{(i)}-\mathbf{x}_t\) with \(\|\mathbf{p}_i\|\le r\), \[\label{eq:model95to95true95transfer} f(\mathbf{x}^{(i)})-f(\mathbf{x}_t) \le \big(T_{\mathbf{x}_t}(\mathbf{x}_t+\mathbf{p}_i)-T_{\mathbf{x}_t}(\mathbf{x}_t)\big) + \frac{L_2}{3}r^3.\tag{52}\]

We show that at least one candidate has \(T_{\mathbf{x}_t}(\mathbf{x}_t+\mathbf{p}_i)-T_{\mathbf{x}_t}(\mathbf{x}_t)\le -c' r\epsilon\) for a constant \(c'>0\); then since \(\frac{L_2}{3}r^3=\frac{1}{3}\epsilon^{3/2}/\sqrt{L_2}\), for \(c\) sufficiently small, we obtain \(f(\mathbf{x}^{(i)})-f(\mathbf{x}_t)\le -\Omega(\epsilon^{3/2})\) and thus the same for \(\mathbf{x}_{t+1}\).

If the Hessian is rank-one or \(\left\langle \mathbf{g},\, \mathbf{v} \right\rangle\ge\frac{1}{2}\|\mathbf{g}\|\), \(\mathbf{x}^{(2)}\) ensures the \(\Omega(\epsilon^{3/2})\) decrease by Lemma [[lem:cand2_descent]](#lem:cand2_descent){reference-type=“ref” reference=“lem:cand2_descent”}. Else, for cases in Lemma [[lem:cand1_descent]](#lem:cand1_descent){reference-type=“ref” reference=“lem:cand1_descent”}, \[T_{\mathbf{x}_t}(\mathbf{x}_t+\mathbf{p}_1)-T_{\mathbf{x}_t}(\mathbf{x}_t)\le -\frac{99}{100}r\|\mathbf{g}\|+\frac{1}{2} r^2\|H\|.\] Using the ratio \(\|H\|/\|\mathbf{g}\|\approx \hat{\kappa}\), we have \[\frac{1}{2} r^2\|H\|\le c r\|\mathbf{g}\|\] at the scale \(r=\sqrt{\epsilon/L_2}\), so the linear term dominates for small \(\epsilon\). Hence \[T_{\mathbf{x}_t}(\mathbf{x}_t+\mathbf{p}_1)-T_{\mathbf{x}_t}(\mathbf{x}_t)\le -\Omega(r\|\mathbf{g}\|)\le -\Omega(r\epsilon)=-\Omega(\epsilon^{3/2}).\] Then ([eq:model_to_true_transfer]) yields \[f(\mathbf{x}^{(1)})-f(\mathbf{x}_t)\le -\Omega(\epsilon^{3/2}).\]

In the case that \(H\) is not rank-one, \(\|H\|\ge\sqrt{L_2\epsilon}\), and \(H\) is not positive or negative definite. Denote the eigenvector of \(H\) that corresponding to the largest magnitude eigenvalue as \(\mathbf{v}\) and assume that \(\left\langle \mathbf{v},\, \mathbf{g} \right\rangle\le\frac{1}{2}\|\mathbf{g}\|\).

If ([eq:cand3_stationary]) fails, then by Lemma [[lem:cand3_descent]](#lem:cand3_descent){reference-type=“ref” reference=“lem:cand3_descent”}, we have \[m_{\mathbf{x}_t}(\mathbf{p}_3)-m_{\mathbf{x}_t}(\mathbf{0})\le -\frac{1}{2} r\|\nabla m_{\mathbf{x}_t}(\mathbf{p}_3)\|.\] Since the failure of ([eq:cand3_stationary]) means \(\|\nabla m_{\mathbf{x}_t}(\mathbf{p}_3)\|>\epsilon\), we get \[m_{\mathbf{x}_t}(\mathbf{p}_3)-m_{\mathbf{x}_t}(\mathbf{0})\le -\frac{1}{2} r\epsilon=-\Omega(\epsilon^{3/2}).\] By the constant-factor accuracy of \(\hat{\kappa}\) and \(\hat{H}\), the model \(m_{\mathbf{x}_t}\) is a constant-factor approximation of the quadratic model \(T_{\mathbf{x}_t}\) when \(\|\mathbf{p}\|\le r\). Thus \[T_{\mathbf{x}_t}(\mathbf{x}_t+\mathbf{p}_3)-T_{\mathbf{x}_t}(\mathbf{x}_t)\le -\Omega(\epsilon^{3/2}),\] and ([eq:model_to_true_transfer]) gives \[f(\mathbf{x}^{(3)}-f(\mathbf{x}_t)\le -\Omega(\epsilon^{3/2}).\]

Assume \(\|\mathbf{g}\|\le\epsilon\) and \(\lambda_{\min}(H)\le-\sqrt{L_2\epsilon}\). By Lemma [[lem:trust_region_better]](#lem:trust_region_better){reference-type=“ref” reference=“lem:trust_region_better”} we have \[f(\mathbf{x}_3)-f(\mathbf{x}_t)\le -\Omega(\epsilon^{3/2}).\]

In all cases, at least one candidate \(x^{(i)}\) satisfies \(f(\mathbf{x}^{(i)})\le f(\mathbf{x}_t)-C\epsilon^{3/2}\). Since \(\mathbf{x}_{t+1}=\arg\min\{f(\mathbf{x}^{(1)}),f(\mathbf{x}^{(2)}),f(\mathbf{x}^{(3)})\}\), we have \(f(\mathbf{x}_{t+1})\le f(\mathbf{x}^{(i)})\) for that index \(i\), proving ([eq:best_of_all_descent]). ◻

6.3 Proof of Theorem [8](#thm:Comparison-Newton){reference-type=“ref” reference=“thm:Comparison-Newton”}↩︎

Here we give a complete proof of our result main result on finding the stationary points.

Proof of . Theorem 8] We use contradiction to prove the theorem. If the statement is not true and any iterate \(\mathbf{x}_t\) is not an \(\epsilon\)-stationary point, by Lemma [7](#lem:best-of-all){reference-type=“ref” reference=“lem:best-of-all”} we have \[\begin{align} \mathbb{E}[f(\mathbf{x}_{t+1})-f(\mathbf{x}_t)]\leq -\frac{2C}{3}\epsilon^{1.5}, \end{align}\] where \(C\) is the constant in Lemma [7](#lem:best-of-all){reference-type=“ref” reference=“lem:best-of-all”}, since we have \(f(\mathbf{x}_{t+1})-f(\mathbf{x}_t)\leq -C\epsilon^{1.5}\) if Algorithm [[algo:normhess]](#algo:normhess){reference-type=“ref” reference=“algo:normhess”} succeeds, which happens with probability at least \(2/3\) by Theorem [[thm:main_app]](#thm:main_app){reference-type=“ref” reference=“thm:main_app”}, and we have \(f(\mathbf{x}_{t+1})-f(\mathbf{x}_t)\leq 0\) otherwise. Sum from \(t=0\) to \(T-1\) we get \[\begin{align} \mathbb{E}[f(\mathbf{x}_T)-f(\mathbf{x}_0)]&=\sum_{t=0}^{T-1}\mathbb{E}[f(\mathbf{x}_{t+1})-f(\mathbf{x}_t)] =-\sum_{t=0}^{T-1}C'\epsilon^{1.5} =-TC'\epsilon^{1.5}. \end{align}\] By Markov’s Inequality, \[\begin{align} \Pr(f(\mathbf{x}_0)-f(\mathbf{x}_T)\ge \frac{1}{2}TC'\epsilon^{1.5}) \ge \frac{a-\mathbb{E}[f(\mathbf{x}_0)-f(\mathbf{x}_T)]}{a-\frac{1}{2}TC'\epsilon^{1.5}} =\frac{2}{3}. \end{align}\]

Therefore, with probability at least \(2/3\), the total decrease of function value is larger than \(f(\mathbf{x}_0)-f(\mathbf{x}^\star)\), which leads to a contradiction. Consequently, in \(T\) steps, we have visited at least an \(\epsilon\)-stationary point. ◻

Note that we have used \(\texttt{Comparison-GE}\) in Theorem [3](#thm:Comparison-GDE){reference-type=“ref” reference=“thm:Comparison-GDE”} as a subroutine to estimate the direction of the gradient. The query complexity of \(\texttt{Comparison-GE}\) is \(O(n\log\frac{1}{\epsilon})\), which incurs an \(O(n)\) overhead – intuitively, classical algorithms by comparisons are limited by the fact that we need \(\Omega(n)\) comparisons to explore an \(n\)-dimensional space. An idea that can significantly reduce the query complexity of our algorithm is by replacing \(\texttt{Comparison-GE}\) with \(\texttt{Comparison-QGE}\) in Theorem [4](#thm:Comparison-QGDE){reference-type=“ref” reference=“thm:Comparison-QGDE”}, a quantum algorithm with \(\log n\) dependence for gradient estimation. This implies the following corollary.

Corollary 3. There exists a quantum algorithm that visits an \(\epsilon\)-second order stationary point using \(O(\frac{\Delta\sqrt{L_2}n}{\epsilon^{1.5}}\log\big(\frac{nL_1L_2}{\epsilon}\big))\) queries to a quantum comparison oracle 2 .

Acknowledgements↩︎

We thank the anonymous reviewers for their constructive feedback. HW, XT, YZ, and TL were supported by the National Natural Science Foundation of China (Grant Number 62372006).

7 Auxiliary Lemmas↩︎

In this appendix, we collect all auxiliary lemmas needed for our proofs.

7.1 Distance between normalized vectors↩︎

Lemma 13. If \(\mathbf{v},\mathbf{v}'\in\mathbb{R}^{n}\) are two vectors such that \(\|\mathbf{v}\|\geq\gamma\) and \(\|\mathbf{v}-\mathbf{v}'\|\leq\tau\), we have \[\begin{align} \left\|\frac{\mathbf{v}}{\|\mathbf{v}\|}-\frac{\mathbf{v}'}{\|\mathbf{v}'\|}\right\|\leq\frac{2\tau}{\gamma}. \end{align}\]

Proof. By the triangle inequality, we have \[\begin{align} \left\|\frac{\mathbf{v}}{\|\mathbf{v}\|}-\frac{\mathbf{v}'}{\|\mathbf{v}'\|}\right\|&\leq \left\|\frac{\mathbf{v}}{\|\mathbf{v}\|}-\frac{\mathbf{v}'}{\|\mathbf{v}\|}\right\|+\left\|\frac{\mathbf{v}'}{\|\mathbf{v}\|}-\frac{\mathbf{v}'}{\|\mathbf{v}'\|}\right\|\\ &=\frac{\|\mathbf{v}-\mathbf{v}'\|}{\|\mathbf{v}\|}+\frac{|\|\mathbf{v}\|-\|\mathbf{v}'\||\|\mathbf{v}'\|}{\|\mathbf{v}\|\|\mathbf{v}'\|}\\ &\leq\frac{\tau}{\gamma}+\frac{\tau}{\gamma}=\frac{2\tau}{\gamma}. \end{align}\] ◻

Lemma 14. If \(\mathbf{v}_1,\mathbf{v}_2\in\mathbb{R}^{n}\) are two vectors such that \(\|\mathbf{v}_1\|,\|\mathbf{v}_2\|\geq\gamma\), and \(\mathbf{v}_1',\mathbf{v}_2'\in\mathbb{R}^{n}\) are another two vectors such that \(\|\mathbf{v}_1-\mathbf{v}_1'\|, \|\mathbf{v}_2-\mathbf{v}_2'\|\leq\tau\) where \(0<\tau<\gamma\), we have \[\begin{align} \left|\left\langle\frac{\mathbf{v}_1}{\|\mathbf{v}_1\|},\frac{\mathbf{v}_2}{\|\mathbf{v}_2\|}\right\rangle-\left\langle\frac{\mathbf{v}_1'}{\|\mathbf{v}_1'\|},\frac{\mathbf{v}_2'}{\|\mathbf{v}_2'\|}\right\rangle\right|\leq\frac{6\tau}{\gamma}. \end{align}\]

Proof. By the triangle inequality, we have \[\begin{align} \left|\left\langle\frac{\mathbf{v}_1}{\|\mathbf{v}_1\|},\frac{\mathbf{v}_2}{\|\mathbf{v}_2\|}\right\rangle-\left\langle\frac{\mathbf{v}_1'}{\|\mathbf{v}_1'\|},\frac{\mathbf{v}_2'}{\|\mathbf{v}_2'\|}\right\rangle\right|&\leq \left|\left\langle\frac{\mathbf{v}_1}{\|\mathbf{v}_1\|},\frac{\mathbf{v}_2}{\|\mathbf{v}_2\|}\right\rangle-\left\langle\frac{\mathbf{v}_1'}{\|\mathbf{v}_1\|},\frac{\mathbf{v}_2'}{\|\mathbf{v}_2\|}\right\rangle\right| \\ &\quad+\left|\left\langle\frac{\mathbf{v}_1'}{\|\mathbf{v}_1\|},\frac{\mathbf{v}_2'}{\|\mathbf{v}_2\|}\right\rangle-\left\langle\frac{\mathbf{v}_1'}{\|\mathbf{v}_1'\|},\frac{\mathbf{v}_2'}{\|\mathbf{v}_2'\|}\right\rangle\right|. \end{align}\] On the one hand, by the triangle inequality and the Cauchy-Schwarz inequality, \[\begin{align} \left|\left\langle\frac{\mathbf{v}_1}{\|\mathbf{v}_1\|},\frac{\mathbf{v}_2}{\|\mathbf{v}_2\|}\right\rangle-\left\langle\frac{\mathbf{v}_1'}{\|\mathbf{v}_1\|},\frac{\mathbf{v}_2'}{\|\mathbf{v}_2\|}\right\rangle\right| &\leq \frac{1}{\|\mathbf{v}_1\|\|\mathbf{v}_2\|}(\left|\langle\mathbf{v}_1,\mathbf{v}_2\rangle-\langle\mathbf{v}_1,\mathbf{v}_2'\rangle\right|+\left|\langle\mathbf{v}_1,\mathbf{v}_2'\rangle-\langle\mathbf{v}_1',\mathbf{v}_2'\rangle\rangle\right|)\\ &\leq \frac{\|\mathbf{v}_2-\mathbf{v}_2'\|}{\|\mathbf{v}_2\|}+\frac{\|\mathbf{v}_1-\mathbf{v}_1'\|\|\mathbf{v}_2'\|}{\|\mathbf{v}_1\|\|\mathbf{v}_2\|}\\ &\leq \frac{\tau}{\gamma}+\frac{\tau(\gamma+\tau)}{\gamma^{2}}. \end{align}\] On the other hand, by the Cauchy-Schwarz inequality, \(|\langle \mathbf{v}_1',\mathbf{v}_2'\rangle|\leq\|\mathbf{v}_1'\|\|\mathbf{v}_2'\|\), and hence \[\begin{align} \left|\left\langle\frac{\mathbf{v}_1'}{\|\mathbf{v}_1\|},\frac{\mathbf{v}_2'}{\|\mathbf{v}_2\|}\right\rangle-\left\langle\frac{\mathbf{v}_1'}{\|\mathbf{v}_1'\|},\frac{\mathbf{v}_2'}{\|\mathbf{v}_2'\|}\right\rangle\right|&=|\langle \mathbf{v}_1',\mathbf{v}_2'\rangle|\left|\frac{1}{\|\mathbf{v}_1\|\|\mathbf{v}_2\|}-\frac{1}{\|\mathbf{v}_1'\|\|\mathbf{v}_2'\|}\right|\\ &\leq \left|\frac{\|\mathbf{v}_1'\|\|\mathbf{v}_2'\|}{\|\mathbf{v}_1\|\|\mathbf{v}_2\|}-1\right|\\ &\leq \left(\frac{\gamma+\tau}{\gamma}\right)^{2}-1. \end{align}\] In all, due to \(\tau<\gamma\), \[\begin{align} \left|\left\langle\frac{\mathbf{v}_1}{\|\mathbf{v}_1\|},\frac{\mathbf{v}_2}{\|\mathbf{v}_2\|}\right\rangle-\left\langle\frac{\mathbf{v}_1'}{\|\mathbf{v}_1'\|},\frac{\mathbf{v}_2'}{\|\mathbf{v}_2'\|}\right\rangle\right|\leq \frac{\tau}{\gamma}+\frac{\tau(\gamma+\tau)}{\gamma^{2}}+\left(\frac{\gamma+\tau}{\gamma}\right)^{2}-1=\frac{2\tau(2\gamma+\tau)}{\gamma^{2}}\leq\frac{6\tau}{\gamma}. \end{align}\] ◻

Lemma 15. For any nonzero vectors \(\mathbf{v}, \mathbf{g}\in\mathbb{R}^{n}\), \[\sqrt{\frac{1-\left\langle\frac{\mathbf{v}+\mathbf{g}}{\|\mathbf{v}+\mathbf{g}\|},\frac{\mathbf{v}}{\|\mathbf{v}\|}\right\rangle^{2}}{1-\left\langle\frac{\mathbf{v}-\mathbf{g}}{\|\mathbf{v}-\mathbf{g}\|},\frac{\mathbf{v}}{\|\mathbf{v}\|}\right\rangle^{2}}} =\frac{\|\mathbf{v}-\mathbf{g}\|}{\|\mathbf{v}+\mathbf{g}\|}.\]

Proof. We have \[\begin{align} \frac{1-\langle\frac{\mathbf{v}+\mathbf{g}}{\|\mathbf{v}+\mathbf{g}\|},\frac{\mathbf{v}}{\|\mathbf{v}\|}\rangle^{2}}{1-\langle\frac{\mathbf{v}-\mathbf{g}}{\|\mathbf{v}-\mathbf{g}\|},\frac{\mathbf{v}}{\|\mathbf{v}\|}\rangle^{2}}\cdot\frac{\|\mathbf{v}+\mathbf{g}\|^{2}}{\|\mathbf{v}-\mathbf{g}\|^{2}}&=\frac{\|\mathbf{v}+\mathbf{g}\|^{2}-\langle \mathbf{v}+\mathbf{g},\frac{\mathbf{v}}{\|\mathbf{v}\|}\rangle^{2}}{\|\mathbf{v}-\mathbf{g}\|^{2}-\langle \mathbf{v}-\mathbf{g},\frac{\mathbf{v}}{\|\mathbf{v}\|}\rangle^{2}}\\ &=\frac{\langle\mathbf{v}+\mathbf{g},\mathbf{v}+\mathbf{g}\rangle-(\|\mathbf{v}\|+\frac{\langle\mathbf{v},\mathbf{g}\rangle}{\|\mathbf{v}\|})^{2}}{\langle\mathbf{v}-\mathbf{g},\mathbf{v}-\mathbf{g}\rangle-(\|\mathbf{v}\|-\frac{\langle\mathbf{v},\mathbf{g}\rangle}{\|\mathbf{v}\|})^{2}}\\ &=\frac{\|\mathbf{v}\|^{2}+\|\mathbf{g}\|^{2}+2\langle \mathbf{v},\mathbf{g}\rangle-(\|\mathbf{v}\|^{2}+2\langle \mathbf{v},\mathbf{g}\rangle+\frac{\langle \mathbf{v},\mathbf{g}\rangle^{2}}{\|\mathbf{v}\|^{2}})}{\|\mathbf{v}\|^{2}+\|\mathbf{g}\|^{2}-2\langle \mathbf{v},\mathbf{g}\rangle-(\|\mathbf{v}\|^{2}-2\langle \mathbf{v},\mathbf{g}\rangle+\frac{\langle \mathbf{v},\mathbf{g}\rangle^{2}}{\|\mathbf{v}\|^{2}})}=1. \end{align}\] ◻

7.2 Distance between normalized matrices↩︎

Lemma 16. Let \(A,B\in\mathbb{R}^{n\times n}\) be nonzero and assume \(\|A-B\|\le \rho <\frac{1}{2}\|B\|\). Then \[\left\|\frac{A}{\|A\|}-\frac{B}{\|B\|}\right\|\le \frac{4\rho}{\|B\|}.\]

Proof. Write \[\frac{A}{\|A\|}-\frac{B}{\|B\|} = \frac{A-B}{\|A\|} + B\left(\frac{1}{\|A\|}-\frac{1}{\|B\|}\right).\] Since \(\|A\|\ge \|B\|-\|A-B\|\ge \|B\|-\rho\ge \frac{1}{2}\|B\|\), we have \(\|A\|^{-1}\le 2\|B\|^{-1}\). Also, \[\left|\frac{1}{\|A\|}-\frac{1}{\|B\|}\right| = \frac{|\|A\|-\|B\||}{\|A\|\|B\|} \le \frac{\rho}{(\frac{1}{2}\|B\|)\|B\|} = \frac{2\rho}{\|B\|^2}.\] Therefore, \[\left\|\frac{A}{\|A\|}-\frac{B}{\|B\|}\right\| \le \frac{\|A-B\|}{\|A\|} + \|B\|\left|\frac{1}{\|A\|}-\frac{1}{\|B\|}\right| \le \frac{\rho}{\frac{1}{2}\|B\|} + \|B\|\frac{2\rho}{\|B\|^2} = \frac{4\rho}{\|B\|}.\] ◻

7.3 Column norm bound implies spectral norm bound↩︎

Lemma 17. Let \(E\in\mathbb{R}^{n\times n}\). If \(\|E\mathbf{e}_i\|\le \varepsilon_c\) for all \(i=1,\dots,n\), then \[\|E\|\le \varepsilon_c\sqrt{n}.\]

Proof. For any \(\mathbf{v}\in\mathbb{R}^n\) with \(\|\mathbf{v}\|=1\), \[E\mathbf{v}=\sum_{i=1}^n v_i(E\mathbf{e}_i),\] so \[\|E\mathbf{v}\| \le \sum_{i=1}^n |v_i|\|E\mathbf{e}_i\| \le \varepsilon_c\sum_{i=1}^n |v_i| \le \varepsilon_c\sqrt{n}\Big(\sum_{i=1}^n v_i^2\Big)^{1/2} =\varepsilon_c\sqrt{n}.\] Taking the supremum over \(\|\mathbf{v}\|=1\) yields \(\|E\|\le \varepsilon_c\sqrt{n}\). ◻

7.4 Inner Product Concentration for Random Vectors on Sphere↩︎

Here we give a lemma of the inner product concentration for random vectors on sphere proved in [43], stated below:

Lemma 18 (Lemma 3 of [43]). Let \(n\ge 5\). For any \(\mathbf{x}\in \mathbb{R}^n\), \(\mathbf{x}\ne \mathbf{0}\), and any constant \(c>0\), there exists constant \(p_1\) and \(p_2\) which is independent of \(n\), such that \[p_1 \le \Pr_{\mathbf{y}\sim S_n}[|\langle \mathbf{y}, \mathbf{x}\rangle| \le \|\mathbf{x}\|/(c\sqrt{n})]\le p_2.\] where \(\mathbf{y}\) is chosen from \(S_n\) uniformly at random. In particular, we have the inequality \[\Pr_{\mathbf{y}\sim S_n}\left[|\langle \mathbf{y}, \mathbf{x}\rangle| \le \|\mathbf{x}\|\cdot\frac{24}{25\sqrt{n}}\right]\ge 3/5.\]

8 Basic Lemmas for Robust Hessian Estimation↩︎

In this section, we provide some supplementary lemmas for the guaranties claimed in Section [[sec:hess_est]](#sec:hess_est){reference-type=“ref” reference=“sec:hess_est”}. Throughout, we assume that \(\|H\mathbf{e}_1\|=\max_i\|H\mathbf{e}_i\|>0\). We can make this assumption since we can find a column with maximum norm after obtaining all the column norm ratios, and it suffices to denote this column as index \(1\).

8.1 Notation↩︎

Let \(H\in\mathbb{R}^{n\times n}\) be symmetric, \(H\neq 0\), with columns \(H=(\mathbf{h}_1,\dots,\mathbf{h}_n)\), \(\mathbf{h}_i:=He_i\). Define \[r_i:=\frac{\|\mathbf{h}_i\|}{\|\mathbf{h}_1\|}\in[0,1],\qquad r_1=1.\] When \(\mathbf{h}_i\neq 0\), define the unit column direction \(u_i:=\mathbf{h}_i/\|\mathbf{h}_i\|\). When \(\mathbf{h}_1+\mathbf{h}_i\neq 0\), define the unit sum direction \(u_{1i}:=(\mathbf{h}_1+\mathbf{h}_i)/\|\mathbf{h}_1+\mathbf{h}_i\|\). Define the scale-free target matrix \[\label{eq:Hstar95app} H^\star := [r_1\mathbf{u}_1,\dots,r_n\mathbf{u}_n]\in\mathbb{R}^{n\times n}.\tag{53}\] Then \(H=\|\mathbf{h}_1\|H^\star\) and hence \(H/\|H\|=H^\star/\|H^\star\|\).

Lemma 19. The matrix \(H^\star\) be in ([eq:Hstar_app]) satisfies \(\|H^\star\|\ge 1\).

Proof. Because \(r_1=1\) and \(\mathbf{u}_1\) is a unit vector, the first column of \(H^\star\) equals \(H^\star \mathbf{e}_1 = \mathbf{u}_1\) and thus \[\|H^\star\| \ge \|H^\star \mathbf{e}_1\| = \|\mathbf{u}_1\| = 1.\] ◻

8.2 Error bound of column vector estimation↩︎

Here we give some lemmas for proving the fact that the small perturbation \(\mathbf{h}_i+\rho\mathbf{h}_j\) can only affect the estimation of \(\mathbf{h}_i\) under a bounded error when \(\rho\) is bounded.

Proof. We analyze \(\mathbf{g}_i\) here, \(\mathbf{g}_{1i}\) case is similar. Assume that \(\mathbf{v}\) is an eigenvector of \(H\) corresponding to minimum eigenvalue, and \(|\langle \mathbf{e}_t, \mathbf{v}\rangle|\ge\frac{1}{\sqrt{n}}\). Fix an index \(i\). Denote \[\mathbf{y}_i^0=\mathbf{e}_i,\; \mathbf{y}_i^1=\mathbf{e}_i+\sigma \mathbf{e}_t,\; \mathbf{y}_i^2=\mathbf{e}_i-\sigma \mathbf{e}_t.\] Observe that for any \(j\neq k\in\{0,1,2\}\), \[|\langle \mathbf{y}_i^j-\mathbf{y}_i^k, \mathbf{v}\rangle|\ge\frac{\sigma}{\sqrt{n}}.\] This implies at least two of three queries satisfies \[\label{eq:lower95bound95hv} |\langle \mathbf{y}_i^j, \mathbf{v}\rangle|\ge\frac{\sigma}{2\sqrt{n}}.\tag{54}\] For each index \(j\) satisfies ([eq:lower_bound_hv]), by taking \(\gamma_\mathbf{y}= \frac{\sigma}{2\sqrt{n}}\), \(\gamma_\mathbf{x}=\epsilon\), accuracy \(\hat{\delta}=\frac{\eta}{4}\) in Algorithm [[algo:Comparison-Triangle]](#algo:Comparison-Triangle){reference-type=“ref” reference=“algo:Comparison-Triangle”}, we know at least two queries in the setting \(\{\mathbf{y}_i^0, \mathbf{y}_i^1,\mathbf{y}_i^2\}\) satisfies the condition \(|\langle\mathbf{y}_i^j, \mathbf{v}\rangle|\ge\gamma_\mathbf{y}\). Therefore, according to Theorem [5](#thm:triangle){reference-type=“ref” reference=“thm:triangle”}, at least two of three inequalities hold: \[\left\| \mathbf{g}_i^0-\frac{\mathbf{h}_i}{\|\mathbf{h}_i\|}\right\|\le\frac{\eta}{4},\quad \left\| \mathbf{g}_i^+-\frac{\mathbf{h}_i+\sigma \mathbf{h}_t}{\|\mathbf{h}_i+\sigma \mathbf{h}_t\|}\right\|\le\frac{\eta}{4}, \quad \left\| \mathbf{g}_i^--\frac{\mathbf{h}_i-\sigma \mathbf{h}_t}{\|\mathbf{h}_i-\sigma \mathbf{h}_t\|}\right\|\le\frac{\eta}{4}.\] In non-degenerate case, our choice \((\mathbf{v}_1, \mathbf{v}_2)\gets \arg\max_{\mathbf{v}_1\neq \mathbf{v}_2\in\{\mathbf{g}_i^{0},\mathbf{g}_i^{+},\mathbf{g}_i^{-}\}}\langle \mathbf{v}_1, \mathbf{v}_2\rangle\) tells \(\mathbf{v}_1\) and \(\mathbf{v}_2\) are two success queries to Algorithm [[algo:Comparison-Triangle]](#algo:Comparison-Triangle){reference-type=“ref” reference=“algo:Comparison-Triangle”}, take \(\mathbf{v}_1=\mathbf{g}_i^+\), \(\mathbf{v}_2=\mathbf{g}_i^-\) for example, other case is the same, from Lemma [13](#lem:dist-norm-vector){reference-type=“ref” reference=“lem:dist-norm-vector”} we have \[\begin{align} \left\|\frac{\mathbf{v}_1+\mathbf{v}_2}{\|\mathbf{v}_1+\mathbf{v}_2\|}-\frac{\mathbf{h}_i}{\|\mathbf{h}_i\|}\right\| &\le\left\| \mathbf{g}_i^+-\frac{\mathbf{h}_i+\sigma \mathbf{h}_t}{\|\mathbf{h}_i+\sigma \mathbf{h}_t\|}\right\|+\left\| \mathbf{g}_i^--\frac{\mathbf{h}_i-\sigma \mathbf{h}_t}{\|\mathbf{h}_i-\sigma \mathbf{h}_t\|}\right\|+\left\| \frac{\mathbf{h}_i+\sigma \mathbf{h}_t}{\|\mathbf{h}_i+\sigma \mathbf{h}_t\|}-\frac{\mathbf{h}_i-\sigma \mathbf{h}_t}{\|\mathbf{h}_i-\sigma \mathbf{h}_t\|}\right\| \\ &\le \frac{\eta}{4}+\frac{\eta}{4}+\frac{2\eta}{4}=\eta, \end{align}\] where the last inequality holds because \(\langle \mathbf{g}_i^{+},\mathbf{g}_i^{-}\rangle \ge 1-\tau_\alpha\) tell us \(\|\mathbf{h}_i\|/\|\sigma \mathbf{h}_t\|\ge\frac{4}{\eta}\).

In the degenerate case \(\langle \mathbf{g}_i^{+},\mathbf{g}_i^{-}\rangle \le 1-\tau_\alpha\), we have \(\|\mathbf{h}_i\|/\|\sigma \mathbf{h}_t\|\le\frac{4}{\eta}\), i.e., \[\|\mathbf{h}_i\|\le\frac{\eta}{32\sqrt{n}}.\] In this case, taking \(\mathbf{g}_i=0\) guarantees error on this column is \(O\left(\frac{\eta}{\sqrt{n}}\right)\). ◻

The following lemma is to bound the error between the normalized vector and the perturbed one.

Lemma 21. Let \(\mathbf{a},\mathbf{c}\in\mathbb{R}^n\) with \(\mathbf{a}\neq 0\). For \(\rho\in(0,1/2)\) define \[\mathbf{v}:= \frac{\mathbf{a}+\rho \mathbf{c}}{\|\mathbf{a}+\rho \mathbf{c}\|},\qquad \mathbf{u}:=\frac{\mathbf{a}}{\|\mathbf{a}\|}.\] If \(\|\mathbf{c}\|\le \|\mathbf{h}_1\|\) and \(\|\mathbf{a}\|\ge r_{\min}\|\mathbf{h}_1\|\), then \[\|\mathbf{v}-\mathbf{u}\|\le \frac{4}{r_{\min}}\,\rho.\]

Proof. By triangle inequality, \(\|\mathbf{a}+\rho \mathbf{c}\|\ge \|\mathbf{a}\|-\rho\|\mathbf{c}\|\ge \|\mathbf{a}\|-\rho\|\mathbf{h}_1\|\). Using \(\|\mathbf{a}\|\ge r_{\min}\|\mathbf{h}_1\|\) and \(\rho\le r_{\min}/2\), we get \(\|\mathbf{a}+\rho \mathbf{c}\|\ge \frac{1}{2}\|\mathbf{a}\|\). Therefore, \[\mathbf{v}-\mathbf{u} = \frac{\mathbf{a}+\rho \mathbf{c}}{\|\mathbf{a}+\rho \mathbf{c}\|}-\frac{\mathbf{a}}{\|\mathbf{a}\|} = \mathbf{a}\left(\frac{1}{\|\mathbf{a}+\rho \mathbf{c}\|}-\frac{1}{\|\mathbf{a}\|}\right)+\frac{\rho}{\|\mathbf{a}+\rho \mathbf{c}\|}\mathbf{c}.\] Hence \[\|\mathbf{v}-\mathbf{u}\| \le \|\mathbf{a}\|\left|\frac{1}{\|\mathbf{a}+\rho \mathbf{c}\|}-\frac{1}{\|\mathbf{a}\|}\right| + \frac{\rho}{\|\mathbf{a}+\rho \mathbf{c}\|}\|\mathbf{c}\|.\] Also \[\left|\frac{1}{\|\mathbf{a}+\rho \mathbf{c}\|}-\frac{1}{\|\mathbf{a}\|}\right| = \frac{|\|\mathbf{a}+\rho \mathbf{c}\|-\|\mathbf{a}\||}{\|\mathbf{a}+\rho \mathbf{c}\|\|\mathbf{a}\|} \le \frac{\rho\|\mathbf{c}\|}{\|\mathbf{a}+\rho \mathbf{c}\|\|\mathbf{a}\|},\] by which we can conclude that \[\|\mathbf{v}-\mathbf{u}\| \le \|\mathbf{a}\|\frac{\rho\|\mathbf{c}\|}{\|\mathbf{a}+\rho \mathbf{c}\|\|\mathbf{a}\|} + \frac{\rho}{\|\mathbf{a}+\rho \mathbf{c}\|}\|\mathbf{c}\| = \frac{2\rho\|\mathbf{c}\|}{\|\mathbf{a}+\rho \mathbf{c}\|} \le \frac{2\rho\|\mathbf{h}_1\|}{\frac{1}{2}\|\mathbf{a}\|} = \frac{4\rho}{r_{\min}}.\] ◻

9 Basic Lemmas for Estimating the Hessian-to-Gradient Ratio↩︎

We provide some supplementary lemmas of the claims in Section [[sec:grad_hess_ratio]](#sec:grad_hess_ratio){reference-type=“ref” reference=“sec:grad_hess_ratio”} in this appendix. We first introduce the core lemma in our proof:

Lemma 22 (Davis-Kahan Theorem, see e.g., Theorem 1 of [48]). Let \(A, \widetilde{A}\in \mathbb{R}^{d\times d}\) be two symmetric matrices satisfying \(\|A-\widetilde{A}\|\le\xi\) for some \(\xi>0\). For any \(a<b\), denote \(S=\{v_1,\ldots,v_k\}\) and \(\widetilde{S}=\{\tilde{v}_1,\ldots,\tilde{v}_k\}\) as the set of normalized eigenvectors of \(A\) and \(\widetilde{A}\) associated with eigenvalues contained in the interval \([a,b]\) and \([a-\xi,b+\xi]\) respectively, and denote \[V:=\text{span}(S), \qquad \widetilde{V}:=\text{span}(\widetilde{S}).\] Then, if the remaining eigenvalues of \(A\) lie outside the interval \([a-\gamma,b+\gamma]\), we have \(k=\tilde{k}\) and \[\left\|\sin(\Theta(V,\widetilde{V}))\right\|\le\frac{\xi}{\gamma},\] where \[\sin(\Theta(V,\widetilde{V})):=\mathop{\mathrm{diag}}(\sin\theta_1(V,\widetilde{V}),\ldots,\sin\theta_k(V,\widetilde{V}))^\top.\]

Lemma 23 (Weyl’s Theorem, see [49]). Let \(A,B\) be Hermitian on inner product space V with dimension n, with spectrum ordered in descending order \(\lambda_1\ge\ldots\ge\lambda_n\), and let \(1\le i,j\le n\) be integers. If \(i+j\le n+1\), then \[\lambda_{i+j-1}(A+B)\le \lambda_i(A)+\lambda_j(B).\] If \(n<i+j\), then \[\lambda_i(A)+\lambda_j(B)\le\lambda_{i+j-n}(A+B).\]

Corollary 4 (Spectral stability). In the setting of Lemma [23](#lem:Weyl){reference-type=“ref” reference=“lem:Weyl”}, let \(1\le k\le n\) be an integer, then \[|\lambda_k(A+B)-\lambda_k(A)|\le\|B\|.\]

We use the following conversion: if \(\hat{\mathbf{z}}\) is a unit vector satisfying \(\|\hat{\mathbf{z}}-\mathbf{z}/\|\mathbf{z}\|\|\le \xi\), then one may write \[\label{eq:noise95decomp} \hat{\mathbf{z}}=\frac{\mathbf{z}+\mathbf{e}}{\|\mathbf{z}+\mathbf{e}\|}\quad\text{for some \mathbf{e} with }\|\mathbf{e}\|\le \xi\|\mathbf{z}\|.\tag{55}\]

Lemma 24. If \(\mathbf{z}\neq 0\) and \(\hat{\mathbf{z}}\) is unit with \(\|\hat{\mathbf{z}}-\mathbf{z}/\|\mathbf{z}\|\|\le \xi<1\), then there exists \(\mathbf{e}\) with \(\|\mathbf{e}\|\le 2\xi\|\mathbf{z}\|\) such that ([eq:noise_decomp]) holds.

Proof. Let \(\bar \mathbf{z}=\mathbf{z}/\|\mathbf{z}\|\). Define \(\mathbf{e}:=\|\mathbf{z}\|(\hat{\mathbf{z}}-\bar \mathbf{z})\). Then \(\|\mathbf{e}\|\le \xi\|\mathbf{z}\|\) and \(\mathbf{z}+\mathbf{e}=\|\mathbf{z}\|\hat{\mathbf{z}}\), hence \(\hat{\mathbf{z}}=(\mathbf{z}+\mathbf{e})/\|\mathbf{z}+\mathbf{e}\|\). ◻

Applying Lemma [[lem:noise_decomp]](#lem:noise_decomp){reference-type=“ref” reference=“lem:noise_decomp”} to the two gradient direction queries: \[\label{eq:g95noise95forms} \hat{\mathbf{g}}_1=\frac{\mathbf{g}+k_1 \mathbf{v}_1}{\|\mathbf{g}+k_1 \mathbf{v}_1\|},\qquad \hat{\mathbf{g}}_2=\frac{\nabla f(\mathbf{x}+\mu \mathbf{v})+k_2 \mathbf{v}_2}{\|\nabla f(\mathbf{x}+\mu \mathbf{v})+k_2 \mathbf{v}_2\|},\tag{56}\] with \(\|k_1 \mathbf{v}_1\|\le O(\xi_1)\|\mathbf{g}\|\) and \(\|k_2 \mathbf{v}_2\|\le O(\xi_2)\|\nabla f(\mathbf{x}+\mu \mathbf{v})\|\).

Lemma 25. Given Assumption [[assum:hess_lip]](#assum:hess_lip){reference-type=“ref” reference=“assum:hess_lip”}, any unit vector \(\mathbf{v}\) satisfies \[\nabla f(\mathbf{x}+\mu \mathbf{v})=\nabla f(\mathbf{x})+\mu \nabla^2 f(\mathbf{x})\mathbf{v}+ \mathbf{r}_\mu \quad\text{with}\quad \|\mathbf{r}_\mu\|\le \tfrac{1}{2}L_2\mu^2.\]

Proof. Standard integral remainder; included for completeness. \[\nabla f(\mathbf{x}+\mu \mathbf{v})-\nabla f(\mathbf{x})=\int_0^\mu \nabla^2 f(\mathbf{x}+t \mathbf{v})\,\mathbf{v}\,\mathrm{d}t =\mu \nabla^2 f(\mathbf{x})\mathbf{v}+\int_0^\mu (\nabla^2 f(\mathbf{x}+t \mathbf{v})-\nabla^2 f(\mathbf{x}))\mathbf{v}\,\mathrm{d}t,\] so \(\|\mathbf{r}_\mu\|\le \int_0^\mu L_2 t\,\mathrm{d}t=\tfrac{1}{2}L_2\mu^2\). ◻

Lemma 26. Assume the colinearity condition of Lemma [6](#lem:difference-colinear){reference-type=“ref” reference=“lem:difference-colinear”}. Let \[\mathbf{d}_1:=\mathbf{g}+k_1\mathbf{v}_1,\qquad \mathbf{d}_2:=\nabla f(\mathbf{x}+\mu \mathbf{v})+k_2\mathbf{v}_2,\qquad \mathbf{d}:=\eta\,\mu\|H\| \widehat H\mathbf{v}.\] If \(\frac{\mathbf{d}_2}{\|\mathbf{d}_2\|}= \frac{\mathbf{d}_1+\mathbf{d}}{\|\mathbf{d}_1+\mathbf{d}\|}\), then \[\label{eq:eta95prime95ratio95exact} \frac{\|\mathbf{d}\|}{\|\mathbf{d}_1\|} = \frac{\sqrt{1-\left\langle \hat{\mathbf{g}}_1,\, \hat{\mathbf{g}}_2 \right\rangle^2}}{\sqrt{1-\left\langle \hat{\mathbf{g}}_2,\, \mathbf{u} \right\rangle^2}}.\qquad{(13)}\]

Proof. Apply Lemma [15](#lem:vector-norm-1){reference-type=“ref” reference=“lem:vector-norm-1”} to the pair \((\mathbf{v},\mathbf{g})=(\mathbf{d}_1,\mathbf{d})\): it expresses the norm ratio \(\|\mathbf{d}\|/\|\mathbf{d}_1\|\) via the sines of the angles between \(\mathbf{d}_1\), \(\mathbf{d}_1+\mathbf{d}\) and \(\mathbf{d}\). Noting that \(\hat{\mathbf{g}}_1=\mathbf{d}_1/\|\mathbf{d}_1\|\) and \(\hat{\mathbf{g}}_2=\mathbf{d}_2/\|\mathbf{d}_2\|\) by ([eq:g_noise_forms]), we obtain ([eq:eta_prime_ratio_exact]). ◻

10 Basic Lemmas for Finding Stationary Points↩︎

We give the proof details of Section [[sec:best_of_all]](#sec:best_of_all){reference-type=“ref” reference=“sec:best_of_all”} in this appendix. First we refer to a lemma for Taylor approximation error analysis.

Lemma 27 (Lemma 1 of [50]). Suppose that \(f\colon\mathbb{R}^d\to\mathbb{R}\) has \(L_2\)-Lipschitz Hessian. Then for all \(\mathbf{x},\mathbf{p}\in\mathbb{R}^d\), denote \[T_\mathbf{x}(\mathbf{x}+\mathbf{p})=f(\mathbf{x})+\left\langle \nabla f(\mathbf{x}),\, \mathbf{p} \right\rangle+\frac{1}{2} \mathbf{p}^\top \nabla^2 f(\mathbf{x})\mathbf{p},\] we have \[\label{eq:taylor95cubic95best} |f(\mathbf{x}+\mathbf{p})-T_\mathbf{x}(\mathbf{x}+\mathbf{p})|\le \frac{L_2}{6}\|\mathbf{p}\|^3.\qquad{(14)}\]

We give a lemma for the descent guaranty of quadratic approximation.

Lemma 28. Given a quadratic \(q(\mathbf{p})=q(\mathbf{0})+b^\top \mathbf{p}+\frac{1}{2} \mathbf{p}^\top A \mathbf{p}\) with symmetric \(A\), and assume that \(\|A\|\ge\sqrt{L_2\epsilon}\), and \(A\) is not positive or negative definite. Denote the eigenvector of \(A\) that corresponding to the largest magnitude eigenvalue as \(\mathbf{v}\) and assume that \(\left\langle \mathbf{v},\, b \right\rangle\le\frac{1}{2}\|b\|\). For \(r>0\) and let \(\mathbf{p}^\star\in\arg\min_{\|\mathbf{p}\|\le r} q(\mathbf{p})\). Then either:

  • (Interior) \(\|\mathbf{p}^\star\|<r\) and \(\nabla q(\mathbf{p}^\star)=b+A \mathbf{p}^\star=\mathbf{0}\);

  • (Boundary) \(\|\mathbf{p}^\star\|=r\) and \(q(\mathbf{p}^\star)-q(\mathbf{0})\le -\frac{1}{2} r\|\nabla q(\mathbf{p}^\star)\|\).

Proof. If \(\|\mathbf{p}^\star\|<r\), first-order optimality gives \(b+A \mathbf{p}^\star=\mathbf{0}\). Otherwise \(\|\mathbf{p}^\star\|=r\) and there exists \(\lambda\ge 0\) with \(b+A \mathbf{p}^\star+\lambda \mathbf{p}^\star=\mathbf{0}\) and \(A+\lambda I\succeq \mathbf{0}\). Then \(\nabla q(\mathbf{p}^\star)=b+A \mathbf{p}^\star=-\lambda \mathbf{p}^\star\) so \(\|\nabla q(\mathbf{p}^\star)\|=\lambda r\). Moreover, \[q(\mathbf{0})-q(\mathbf{p}^\star)=-b^\top \mathbf{p}^\star-\tfrac12 (\mathbf{p}^\star)^\top A \mathbf{p}^\star.\] From \(b+A \mathbf{p}^\star+\lambda \mathbf{p}^\star=\mathbf{0}\) we get \(-b^\top \mathbf{p}^\star=\lambda r^2+(\mathbf{p}^\star)^\top A \mathbf{p}^\star\). Using \(A+\lambda I\succeq \mathbf{0}\) we have \((\mathbf{p}^\star)^\top A \mathbf{p}^\star\ge -\lambda r^2\), hence \(q(\mathbf{0})-q(\mathbf{p}^\star)\ge \frac{1}{2}\lambda r^2=\frac{1}{2} r\|\nabla q(\mathbf{p}^\star)\|\). ◻

11 Lazy Trust Region Method with Evaluation Oracle↩︎

In this section, we discuss how to combine our approach and lazy-type methods preliminarily. Consider the following problem:

In lazy-type methods, we update Hessian every \(m\) steps. We guarantee that in these \(m\) steps, the Hessian in the current point and delayed Hessian are close enough so that using the delayed Hessian introduces bearable error. According to this idea we obtain the following theorem:

Theorem 9. Take \(m=n\). Then in \(O(\sqrt{n}/\epsilon^{1.5}+n)\) iteration steps, with high probability, we can visit an \(\epsilon\)-first order stationary point.

Proof of . Theorem [thm:lazy_TR_value]] Take stepsize \(r=c\sqrt{\epsilon/n}\) where \(c\) is an absolute constant that is small enough, and let \(\mathbf{x}_{km+t+1}=\mathbf{x}_{km+t}+\mathbf{p}\). By Lemma [[lem:taylor_cubic_best]](#lem:taylor_cubic_best){reference-type=“ref” reference=“lem:taylor_cubic_best”}, we have \[|f(\mathbf{x}_{km+t+1})-T_{\mathbf{x}_{km+t}}(\mathbf{p})|\le \frac{L_2}{6}\left(\frac{\epsilon}{n}\right)^{\frac{3}{2}}.\] Due to the \(L_2\)-Lipschitzness of Hessian, after \(t\le m\) steps, we have \[\begin{align} \|\hat{H}_{km+t}-\widetilde{H}_{km}\|&\le L_2\|\mathbf{x}_{km+t}-\mathbf{x}_{km}\|\le L_2\sum_{i=km}^{km+t-1}\|\mathbf{x}_{i+1}-\mathbf{x}_{i}\|\le L_2\cdot rm. \end{align}\] When \(\|\mathbf{x}_{t+1}-\mathbf{x}_t\|\le r\), the error, denoted \(\Delta_{\text{err}}\), can be estimated as \[\begin{align} \Delta_{\text{err}}:=|T_{\mathbf{x}_{km+t}}(\mathbf{p})-m_{km+t}(\mathbf{p})|&=\frac{1}{2}(\mathbf{x}-\mathbf{x}_{km+t})^\top(\hat{H}_{km+t}-\widetilde{H}_{km})(\mathbf{x}-\mathbf{x}_{km+t})\notag\\ &\le\frac{1}{2}r^2 L_2\cdot rm =\frac{L_2}{2}r^3m =O(r^3\cdot m). \end{align}\] From Lemma [[lem:tr_quadratic]](#lem:tr_quadratic){reference-type=“ref” reference=“lem:tr_quadratic”}, we have \[\begin{align} |T_{\mathbf{x}_{km+t}}(\mathbf{p})-f(\mathbf{x}_{km+t})|&\ge \frac{r}{2}\|\nabla f(\mathbf{x}_{km+t})+\hat{H}_{km+t}\cdot \mathbf{p}\|=O(r\epsilon). \end{align}\] Choosing \(c\) small enough for \(r=c\sqrt{\epsilon/n}\), we obtain \(|\Delta_{km+t+1}-\Delta_{km+t}|\ge2\Delta_{\text{err}}\), thus we can get a descent at least \(\Theta(\epsilon^{1.5}/\sqrt{n})\). When \(\|\mathbf{x}_{t+1}-\mathbf{x}_t\|<r\), we have \[\begin{align} \nabla f(\mathbf{x}_{km+t+1})&=\nabla f(\mathbf{x}_{km+t})+\widetilde{H}_{km}(\mathbf{x}_{km+t+1}-\mathbf{x}_{km+t})+(\nabla^2f(\mathbf{x}_{km+t})-\widetilde{H}_{km})(\mathbf{x}_{km+t+1}-\mathbf{x}_{km+t})\notag\\ &=(\nabla^2f(\mathbf{x}_{km+t})-\widetilde{H}_{km})(\mathbf{x}_{km+t+1}-\mathbf{x}_{km+t}). \end{align}\] As a result, we can obtain \[\begin{align} \|\nabla f(\mathbf{x}_{km+t+1})\|&\le\|\nabla^2f(\mathbf{x}_{km+t})-\widetilde{H}_{km}\|\cdot\|\mathbf{x}_{km+t+1}-\mathbf{x}_{km+t}\|\le rd\cdot r\le\epsilon. \end{align}\] In Algorithm [[algo:LazyTrustRegion]](#algo:LazyTrustRegion){reference-type=“ref” reference=“algo:LazyTrustRegion”}, the total times that we update the gradient is \(T_{\text{iter}}=O(\sqrt{n}/\epsilon^{1.5})\). Therefore, the total query complexity is \[\begin{align} n\cdot \left(T_{\text{iter}}+\left(T_{\text{iter}}\cdot\frac{1}{m}+1\right)n\right)=O\left(\frac{n^{1.5}}{\epsilon^{1.5}}+n^2\right). \end{align}\] ◻

References↩︎

[1]
Rong Ge and Tengyu Ma, On the optimization landscape of tensor decompositions, Advances in Neural Information Processing Systems, vol. 30, 2017, .
[2]
Rong Ge, Jason D. Lee, and Tengyu Ma, Matrix completion has no spurious local minimum, Advances in Neural Information Processing Systems, vol. 29, 2016, .
[3]
Po-Ling Loh and Martin J. Wainwright, Regularized M-estimators with nonconvexity: Statistical and algorithmic theory for local optima, The Journal of Machine Learning Research 16(2015), no. 1, 559–616, .
[4]
Naman Agarwal, Zeyuan Allen-Zhu, Brian Bullins, Elad Hazan, and Tengyu Ma, Finding approximate local minima faster than gradient descent, Proceedings of the 49th Annual ACM SIGACT Symposium on Theory of Computing, pp. 1195–1199, 2017, .
[5]
Deeksha Adil, Brian Bullins, Aaron Sidford, and Chenyi Zhang, Balancing gradient and Hessian queries in non-convex optimization, The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025, .
[6]
Yurii Nesterov, How to make the gradients small, Optima. Mathematical Optimization Society Newsletter 88(2012), 10–11.
[7]
Zeyuan Allen-Zhu, How to make the gradients small stochastically: Even faster convex and nonconvex SGD, Advances in Neural Information Processing Systems, vol. 31, 2018, .
[8]
Yurii Nesterov, Introductory lectures on convex optimization: A basic course, vol. 87, Springer Science & Business Media, 2013.
[9]
Ernesto G. Birgin, J.L. Gardenghi, José Mario Martı́nez, Sandra Augusta Santos, and Ph.L. Toint, Worst-case evaluation complexity for unconstrained nonlinear optimization using high-order regularized models, Mathematical Programming 163(2017), no. 1, 359–368, .
[10]
Yair Carmon, John C. Duchi, Oliver Hinder, and Aaron Sidford, Lower bounds for finding stationary points I, Mathematical Programming 184(2020), no. 1, 71–120, .
[11]
Sijia Liu, Pin-Yu Chen, Xiangyi Chen, and Mingyi Hong, signSGD via zeroth-order oracle, International Conference on Learning Representations, 2019.
[12]
Xiuxian Li, Kuo-Yi Lin, Li Li, Yiguang Hong, and Jie Chen, On faster convergence of scaled sign gradient descent, IEEE Transactions on Industrial Informatics, IEEE, 2023, .
[13]
Jeremy Bernstein, Yu-Xiang Wang, Kamyar Azizzadenesheli, and Animashree Anandkumar, signSGD: Compressed optimisation for non-convex problems, International Conference on Machine Learning, pp. 560–569, PMLR, 2018, .
[14]
Paul F. Christiano, Jan Leike, Tom Brown, Miljan Martic, Shane Legg, and Dario Amodei, Deep reinforcement learning from human preferences, Advances in Neural Information Processing Systems, vol. 30, 2017, .
[15]
Mudit Gaur, Amrit Singh Bedi, Raghu Pasupathy, and Vaneet Aggarwal, On the global convergence of online RLHF with neural parametrization, 2024, .
[16]
Flint Xiaofeng Fan, Cheston Tan, Yew-Soon Ong, Roger Wattenhofer, and Wei-Tsang Ooi, FedRLHF: A convergence-guaranteed federated framework for privacy-preserving and personalized RLHF, Proceedings of the 24th International Conference on Autonomous Agents and Multiagent Systems, pp. 713–721, 2025, .
[17]
Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al., Training language models to follow instructions with human feedback, Advances in Neural Information Processing Systems 35(2022), 27730–27744, .
[18]
Xiaoyu Chen, Han Zhong, Zhuoran Yang, Zhaoran Wang, and Liwei Wang, Human-in-the-loop: Provably efficient preference-based reinforcement learning with general function approximation, International Conference on Machine Learning, pp. 3773–3793, PMLR, 2022, .
[19]
Aadirupa Saha, Aldo Pacchiano, and Jonathan Lee, Dueling RL: Reinforcement learning with trajectory preferences, International Conference on Artificial Intelligence and Statistics, pp. 6263–6289, PMLR, 2023, .
[20]
Ellen Novoseller, Yibing Wei, Yanan Sui, Yisong Yue, and Joel Burdick, Dueling posterior sampling for preference-based reinforcement learning, Conference on Uncertainty in Artificial Intelligence, pp. 1029–1038, PMLR, 2020, .
[21]
Yichong Xu, Ruosong Wang, Lin Yang, Aarti Singh, and Artur Dubrawski, Preference-based reinforcement learning with finite-time guarantees, Advances in Neural Information Processing Systems 33(2020), 18784–18794, .
[22]
Banghua Zhu, Jiantao Jiao, and Michael Jordan, Principled reinforcement learning with human feedback from pairwise or \(k\)-wise comparisons, ICLR 2023 Workshop on Mathematical and Empirical Understanding of Foundation Models, 2023, .
[23]
Zhiwei Tang, Dmitry Rybin, and Tsung-Hui Chang, Zeroth-order optimization meets human feedback: Provable learning via ranking oracles, 2023, .
[24]
Yuanhao Wang, Qinghua Liu, and Chi Jin, Is RLHF more difficult than standard RL? a theoretical perspective, Thirty-seventh Conference on Neural Information Processing Systems, 2023, .
[25]
Jeffrey Larson, Matt Menickelly, and Stefan M. Wild, Derivative-free optimization methods, Acta Numerica 28(2019), 287–404, .
[26]
Tamara G. Kolda, Robert Michael Lewis, and Virginia Torczon, Optimization by direct search: New perspectives on some classical and modern methods, SIAM Review 45(2003), no. 3, 385–482.
[27]
Charles Audet and John E. Dennis Jr, Mesh adaptive direct search algorithms for constrained optimization, SIAM Journal on Optimization 17(2006), no. 1, 188–217.
[28]
John A. Nelder and Roger Mead, A simplex method for function minimization, The Computer Journal 7(1965), no. 4, 308–313.
[29]
Ken I. M. McKinnon, Convergence of the Nelder–Mead simplex method to a nonstationary point, SIAM Journal on Optimization 9(1998), no. 1, 148–158.
[30]
Kevin G. Jamieson, Robert Nowak, and Ben Recht, Query complexity of derivative-free optimization, Advances in Neural Information Processing Systems, vol. 25, 2012, .
[31]
Daniel Golovin, John Karro, Greg Kochanski, Chansoo Lee, Xingyou Song, and Qiuyi Zhang, Gradientless descent: High-dimensional zeroth-order optimization, International Conference on Learning Representations, 2020, .
[32]
Aadirupa Saha, Vitaly Feldman, Yishay Mansour, and Tomer Koren, Faster convergence with multiway preferences, Proceedings of the 27th International Conference on Artificial Intelligence and Statistics, Proceedings of Machine Learning Research, vol. 238, pp. 433–441, PMLR, 2024, .
[33]
Yuxuan Ren, Abhishek Roy, and Shiqian Ma, Riemannian dueling optimization, 2026, .
[34]
Katya Scheinberg and Zikai Xiong, Function-free optimization via comparison oracles, 2026, .
[35]
Mustafa O. Karabag, Cyrus Neary, and Ufuk Topcu, Smooth convex optimization using sub-zeroth-order oracles, Proceedings of the AAAI Conference on Artificial Intelligence 35(2021), no. 5, 3815–3822, .
[36]
El Houcine Bergou, Eduard Gorbunov, and Peter Richtárik, Stochastic three points method for unconstrained smooth minimization, SIAM Journal on Optimization 30(2020), no. 4, 2726–2749, .
[37]
Eduard Gorbunov, Adel Bibi, Ozan Sener, El Houcine Bergou, and Peter Richtarik, A stochastic derivative free optimization method with momentum, International Conference on Learning Representations, 2020, .
[38]
Aadirupa Saha, Tomer Koren, and Yishay Mansour, Dueling convex optimization, International Conference on Machine Learning, pp. 9245–9254, PMLR, 2021, .
[39]
Aadirupa Saha, Tomer Koren, and Yishay Mansour, Dueling convex optimization with general preferences, International Conference on Machine Learning, 2025, .
[40]
Aleksandr Lobanov, Alexander Gasnikov, and Andrei Krasnov, Acceleration exists! Optimization problems when oracle can only compare objective function values, Advances in Neural Information Processing Systems, vol. 37, 2024, .
[41]
Yurii Nesterov and Boris T. Polyak, Cubic regularization of Newton method and its global performance, Mathematical Programming 108(2006), no. 1, 177–205.
[42]
Rong Ge and Tengyu Ma, Decomposing overcomplete 3rd order tensors using sum-of-squares algorithms, Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (2015), 829, .
[43]
Xiwen Tao, Chenyi Zhang, Helin Wang, Yexin Zhang, and Tongyang Li, Optimal classical and quantum algorithms for gradient testing and estimation by comparisons, 2026, To appear in the Forty-Third International Conference on Machine Learning, .
[44]
Danny C. Sorensen, Newton’s method with a model trust region modification, SIAM Journal on Numerical Analysis 19 (1982), no. 2, 409–426.
[45]
Ralph Allan Bradley and Milton E. Terry, Rank analysis of incomplete block designs: I. the method of paired comparisons, Biometrika 39(1952), no. 3/4, 324–345.
[46]
Nikita Doikov and Geovani Nunes Grapiglia, First and zeroth-order implementations of the regularized Newton method with lazy approximated Hessians, Journal of Scientific Computing 103(2025), no. 1, 32, .
[47]
Chengchang Liu, Zongqi Wan, Jialin Zhang, Xiaoming Sun, and John C.S. Lui, Quantum speedups for minimax optimization and beyond, The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2026.
[48]
Yi Yu, Tengyao Wang, and Richard J. Samworth, A useful variant of the Davis-Kahan theorem for statisticians, Biometrika 102(2015), no. 2, 315–323, .
[49]
Hermann Von Weyl, Über beschränkte quadratische formen, deren differenz vollstetig ist, Rendiconti del Circolo Matematico di Palermo (1884-1940) 27(1909), 373–392.
[50]
Yurii Nesterov and Boris Polyak, Cubic regularization of newton method and its global performance, Math. Program. 108(2006), 177–205.

  1. Equal contribution.↩︎

  2. Corresponding author. Email: tongyangli@pku.edu.cn↩︎

  3. We use \(\widetilde{O}(\cdot)\) to hide poly-logarithmic factors in \(n\), \(\epsilon^{-1}\), \(L_1\), \(L_2\), and \(\Delta\).↩︎

  4. Quantum notations can be found in Section [[sec:prelim]](#sec:prelim){reference-type=“ref” reference=“sec:prelim”}.↩︎