cs.LGMay 19, 2024

Gradient Testing and Estimation by Comparisons

Authors: Xiwen Tao, Chenyi Zhang, Helin Wang, Yexin Zhang, Tongyang Li

Organizations: School of Electronics Engineering and Computer Science, Peking University · Computer Science Department, Stanford University · Center on Frontiers of Computing Studies, Peking University · School of Computer Science, Peking University

Abstract

We study gradient testing and gradient estimation of smooth functions using only a comparison oracle that, given two points, indicates which one has the larger function value. For any smooth f ⁣:Rn→Rf\colon\mathbb R^n\to\mathbb R, x∈Rn\mathbf{x}\in\mathbb R^n, and ε>0\varepsilon>0, we design a gradient testing algorithm that determines whether the normalized gradient ∇f(x)/∥∇f(x)∥\nabla f(\mathbf{x})/\|\nabla f(\mathbf{x})\| is ε\varepsilon-close or 2ε2\varepsilon-far from a given unit vector v\mathbf{v} using O(1)O(1) queries, as well as a gradient estimation algorithm that outputs an ε\varepsilon-estimate of ∇f(x)/∥∇f(x)∥\nabla f(\mathbf{x})/\|\nabla f(\mathbf{x})\| using O(nlog⁡(1/ε))O(n\log(1/\varepsilon)) queries which we prove to be optimal. Furthermore, we study gradient estimation in the quantum comparison oracle model where queries can be made in superpositions, and develop a quantum algorithm using O(log⁡(n/ε))O(\log (n/\varepsilon)) queries.

Explore similar work

Jun 25, 2026cs.LG

Finding Stationary Points by Comparisons

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 ⁣:Rn→Rf\colon\mathbb R^n\to\mathbb R with Lipschitz gradient and Hessian, we develop an algorithm that visits an εε-stationary point using O~(n2/ε1.5)\widetilde O(n^2/ε^{1.5}) queries. Our approach uses a subroutine that estimates the normalized Hessian to accuracy δδ using O~(n2log⁡(1/δ))\widetilde O(n^2\log(1/δ)) 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 εε-stationary point, which takes O~(n/ε1.5)\widetilde O(n/ε^{1.5}) queries.
Helin Wang, Chenyi Zhang, Xiwen Tao +2
May 26, 2026cs.DS

Smoothed Score Queries and the Complexity of Sampling

We study the query complexity of sampling from high-dimensional Gaussian distributions using gradient information. In the standard oracle model, exact gradients expose only matrix-vector products with the precision matrix, leading to polynomial approximation barriers and a characteristic κ\sqrtκ dependence on the condition number. We show that this barrier disappears when the sampler is allowed to query \emph{smoothed scores}, namely gradients of the logarithms of the Gaussian-convolved densities. For a Gaussian target with precision matrix ΛΛ, a smoothed-score query at noise level ττ gives access to the resolvent (Λ+τ−1I)−1(Λ+τ^{-1}I)^{-1}. Combining geometrically spaced noise levels with sinc-quadrature rational approximation, we obtain a sampler with q=O ⁣((log⁡κ+log⁡(ed/δTV))log⁡(ed/δTV))q=O\!\left(\bigl(\logκ+\log(e\sqrt d/δ_{\rm TV})\bigr)\log(e\sqrt d/δ_{\rm TV})\right) smoothed-score queries for total variation error δTVδ_{\rm TV}, improving the condition-number dependence from κ\sqrtκ to logarithmic. We also study finite-bit gradient oracles. Using coordinatewise quantization of the transformed smoothed-score answers and a final dithering step, we obtain a sampling scheme whose total communicated gradient information is polylogarithmic in κκ; in particular, for fixed dimension and accuracy, the bit complexity is O(log⁡2κ)O(\log^2κ). To complement these upper bounds, we introduce a channel-synthesis, or reverse-Shannon, converse technique for sampling lower bounds. This converts total-variation simulation guarantees into communication requirements and yields an Ω(log⁡κ)Ω(\logκ) lower bound on the required gradient information. Together, these results identify smoothed scores as a provably more informative oracle for sampling and give nearly matching upper and lower bounds for its finite-bit complexity.
Jingbo Liu
May 13, 2026cs.DS

Min-Max Optimization Requires Exponentially Many Queries

We study the query complexity of min-max optimization of a nonconvex-nonconcave function ff over [0,1]d×[0,1]d[0,1]^d \times [0,1]^d. We show that, given oracle access to ff and to its gradient ∇f\nabla f, any algorithm that finds an ε\varepsilon-approximate stationary point must make a number of queries that is exponential in 1/ε1/\varepsilon or dd.
Martino Bernasconi, Matteo Castiglioni, Andrea Celli +1