Escaping saddle points in zeroth-order optimization: the power of two-point estimators

Zhaolin Ren, Yujie Tang, Na LiICML 2023

Abstract

This paper demonstrates that zeroth-order optimization algorithms—which optimize functions using only output values rather than gradients—can efficiently escape saddle points using as few as two function evaluations per iteration. By injecting a small amount of random noise (isotropic perturbation) at each step, these "two-point" methods can find second-order stationary points in high-dimensional spaces significantly faster than previous methods that required $O(d)$ evaluations per step.

The Challenge of Zeroth-Order Optimization

In many real-world optimization problems, such as tuning a robot's gait, managing wind farm layouts, or launching black-box adversarial attacks on neural networks, mathematical formulas for gradients are unavailable. Instead, we only have "zeroth-order" access: we can input a value and observe a (potentially noisy) output.

The primary challenge in these domains is that most interesting problems are nonconvex, meaning they are riddled with "saddle points"—regions where the gradient is zero, but the algorithm is not at a local minimum. While first-order methods (which utilize gradients) have well-studied mechanisms to escape these traps, zeroth-order methods have historically lagged. Specifically, existing proofs for escaping saddle points in zeroth-order settings required $O(d)$ function evaluations per iteration, where $d$ is the number of dimensions. For a problem with 10,000 variables, waiting for 10,000 evaluations just to take a single step is often impractical. This paper addresses a fundamental question: Can we escape saddle points using only two evaluations per step?

Proposed Method: Zeroth-Order Perturbed Gradient Descent

To overcome the $O(d)$ bottleneck, the authors introduce Zeroth-Order Perturbed Gradient Descent (ZOPGD). The algorithm relies on two core mechanisms:

  1. Two-Point Gradient Estimation: Instead of calculating a full gradient, the algorithm estimates it by sampling the function at two nearby points: $f(x + uZ)$ and $f(x - uZ)$, where $Z$ is a random direction. While highly efficient, this produces a "noisy" estimate with high variance.
  2. Isotropic Perturbation: At every iteration, the algorithm adds a small, random "kick" (isotropic noise) to the current position. This perturbation is the critical mechanism that prevents the algorithm from getting stuck in the flat regions of a saddle point.

The technical core of the paper involves developing novel martingale concentration inequalities to handle the complex noise produced by two-point estimators. Unlike standard stochastic gradients, these estimators are not "sub-Gaussian"—their errors can have "heavy tails," making them significantly harder to analyze. The authors prove that this sub-exponential noise does not overwhelm the signal needed to escape saddle points.

Key Results and Theoretical Guarantees

The authors prove that ZOPGD finds an $\epsilon$-second order stationary point (a point that is nearly flat and has no significant "downhill" curvature) in $\tilde{O}(d / \epsilon^2)$ total function evaluations. Crucially, while the total number of evaluations scales with the dimension $d$, the number of evaluations per step does not.

Comparison of iteration complexity and function evaluations per iteration across different first-order and zeroth-order methods.

As shown in the theoretical comparison above, the proposed algorithm requires only $2m$ function evaluations per iteration (where $1 \leq m \leq d$), a stark contrast to prior zeroth-order methods that demand $\tilde{O}(d)$ or higher evaluations per step. This makes the algorithm much more responsive for high-dimensional systems.

Empirical Validation

The authors evaluate their method on a challenging synthetic benchmark known as the Octopus Function. Introduced by Du et al. (2017), this function is a notorious "trap" consisting of a series of $d$ chained saddle points. To reach the global minimum, an algorithm must successfully escape every single one; failing even once results in exponential recovery time.

In simulations on the Octopus function ($d=30$), ZOPGD-2pt reached the global minimum 2.5 to 3 times faster (measured in total function evaluations) than state-of-the-art zeroth-order methods that use $2d$ evaluations per step. This demonstrates that using a small batch of evaluations ($m \ll d$) is often more sample-efficient than attempting to acquire a perfect gradient estimate at every step.

Limitations and Future Directions

While ZOPGD presents a significant step forward, the authors note several limitations and avenues for future work:

  • Exact Evaluations: The current theoretical proof assumes access to the exact value of $f(x)$. In many real-world scenarios, the function evaluation itself is inherently noisy. Extending this framework to accommodate noisy zeroth-order optimization is a critical next step.
  • Smoothness Requirements: The analysis relies on the function being "smooth" (having Lipschitz continuous gradients and Hessians). It remains an open question how these two-point estimators perform on non-smooth or "jagged" landscapes, which are common in certain reinforcement learning tasks.
  • Hyperparameter Sensitivity: As with many perturbed descent methods, performance is sensitive to the choice of the perturbation size ($r$) and the smoothing radius ($u$), requiring careful tuning for different applications.

Summary updated

BibTeX
@inproceedings{ren2023escaping,
  author = {Zhaolin Ren and Yujie Tang and Na Li},
  title = {{Escaping saddle points in zeroth-order optimization: the power of two-point estimators}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=qZ1reqm5BM},
}
Figure