A one-bit, comparison-based gradient estimator

HanQin Cai, Daniel McKenzie, Wotao Yin, Zhenliang Zhang · DOI

Introduction

In many real-world optimization scenarios, calculating exact gradients or even obtaining reliable numerical function values is impractical. Consider human-in-the-loop systems, such as tuning a prosthetic exoskeleton for user comfort. A user can rarely quantify their "comfort level" as a precise scalar value (e.g., 7.42), but they can easily provide a preference between two settings. This necessitates comparison-based (or derivative-free) optimization.

Traditional algorithms in this space suffer from the "curse of dimensionality," where query complexity grows linearly or worse with the problem dimension $d$. This paper introduces SCOBO (Sparsity-aware Comparison-Based Optimization), an algorithm designed to overcome this barrier by exploiting the inherent sparsity or compressibility of gradients in high-dimensional real-world problems.

Methodology: The SCOBO Algorithm

The core innovation of SCOBO is a two-step process that treats gradient estimation as a signal recovery problem.

1. 1-Bit Gradient Estimation

Instead of estimating the gradient's full magnitude, SCOBO focuses on its direction (the normalized gradient). The algorithm perturbs the current iterate $\mathbf{x}_k$ in $m$ random directions $\mathbf{z}_i$. A "comparison oracle" determines if $f(\mathbf{x}_k + r\mathbf{z}_i) > f(\mathbf{x}_k)$, yielding a single bit of information per direction. These bits are treated as measurements in a one-bit compressed sensing framework. By solving a convex program, SCOBO recovers a robust estimate of the gradient's direction, $\hat{\mathbf{g}}_k$.

2. Inexact Normalized Gradient Descent (INGD)

Because the algorithm only recovers the direction, it employs a specialized version of gradient descent that relies solely on the unit vector. To ensure convergence without exact function values, the authors implement an inexact line search heuristic. This search uses the comparison oracle to decide whether to adjust the step size, bypassing the need for traditional Armijo conditions.

Summary of notation and definitions used in the SCOBO algorithm.

Theoretical Framework and Key Insights

The power of SCOBO lies in viewing the gradient as a signal to be "sensed." By assuming the gradient is sparse (with $s$ non-zero elements) or compressible, the number of queries required scales with $s \log(d)$ rather than $d$. This logarithmic dependence makes optimization in 500 dimensions nearly as efficient as in 50 dimensions.

Furthermore, the one-bit compressed sensing framework provides mathematical robustness. Even if the comparison oracle is noisy or occasionally incorrect, the gradient estimator is proven to converge. Unlike many derivative-free methods that exhibit stochastic "bouncing," SCOBO is shown to be a descent algorithm with high probability, consistently moving toward the minimum.

Experimental Evaluation

The authors evaluated SCOBO across synthetic benchmarks and complex physical simulations:

  • Synthetic Functions: On high-dimensional ($d=500$) convex functions with sparse gradients, SCOBO achieved high accuracy where competing methods like SignOPT and PCCD either failed or required significantly more queries.
  • MuJoCo Physical Simulations: In reinforcement learning tasks like HalfCheetah-v2, SCOBO reached reward thresholds using only ~400,000 bits of information. This is significantly more efficient than standard RL algorithms that typically consume millions of bits encoded as 32-bit floats.

Conclusion and Future Directions

SCOBO demonstrates that high-dimensional optimization is feasible using only binary comparisons, provided the underlying gradients are compressible. While the current theoretical convergence proofs assume restricted-strong convexity, the algorithm's success on non-convex MuJoCo tasks suggests broader applicability. Future work may extend these principles to second-order methods, using matrix recovery techniques to estimate low-rank Hessians from one-bit comparisons.

Summary updated

BibTeX
@inproceedings{cai2022one,
  author = {HanQin Cai and Daniel McKenzie and Wotao Yin and Zhenliang Zhang},
  title = {{A one-bit, comparison-based gradient estimator}},
  booktitle = {Applied and Computational Harmonic Analysis},
  year = {2022},
  doi = {10.1016/j.acha.2022.03.003},
}
Figure