Gradient Testing and Estimation by Comparisons
arXiv:2405.11454
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 , , and , we design a gradient testing algorithm that determines whether the normalized gradient is -close or -far from a given unit vector using queries, as well as a gradient estimation algorithm that outputs an -estimate of using 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 queries.
v3: 37 pages, 1 figure. To appear in the Forty-Third International Conference on Machine Learning (ICML 2026). Added numerical experiments to validate the proposed algorithms (Section 5), and minor fixes that improve presentation compared to v2. This version subsumes the note "Comparisons are all You need for optimizing smooth functions" (v1)