When optimizing machine learning models, there are various scenarios where gradient computations are challenging or even infeasible. Furthermore, in reinforcement learning (RL), preference-based RL that only compares between options has wide applications, including reinforcement learning with human feedback in large language models. In this paper, we systematically study optimization of a smooth function fⁿ only assuming an oracle that compares function values at two points and tells which is larger. When f is convex, we give two algorithms using Õ(n/ε) and Õ(n²) comparison queries to find an ε-optimal solution, respectively. When f is nonconvex, our algorithm uses Õ(n/ε²) comparison queries to find an ε-approximate stationary point. All these results match the best-known zeroth-order algorithms with function evaluation queries in n dependence, thus suggest that comparisons are all you need for optimizing smooth functions using derivative-free methods. In addition, we also give an algorithm for escaping saddle points and reaching an ε-second order stationary point of a nonconvex f, using Õ(n1.5/ε2.5) comparison queries.
No takes yet. Share an insight, caveat, or question.
Zhang et al. (2024) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: