Faster Gradient-Free Algorithms for Nonsmooth Nonconvex Stochastic Optimization

Lesi Chen, Jing Xu, Luo Luo

This paper, presented at ICML 2023, introduces a more efficient way to optimize "messy" functions—those that are both nonsmooth (have sharp corners) and nonconvex (have multiple local minima)—in settings where we cannot calculate gradients directly.

TL;DR

The authors propose GFM+, a new gradient-free algorithm that achieves a significantly better oracle complexity ($O(\epsilon^{-3})$ vs. the previous $O(\epsilon^{-4})$) for finding stationary points in nonsmooth, nonconvex stochastic optimization. By combining randomized smoothing with recursive variance reduction, they provide a faster, more stable approach for tasks like black-box adversarial attacks and reinforcement learning.

What Problem Does This Paper Address?

In many real-world machine learning scenarios, we don't have access to the gradient of our objective function. We might only be able to observe the output of a complex simulation, a financial model, or a "black-box" neural network. This is the realm of zeroth-order (gradient-free) optimization.

The challenge intensifies when the objective function is nonsmooth (like the ReLU activation or absolute value functions) and nonconvex. In these cases, traditional gradients don't even exist at every point. Researchers typically look for "stationary points," but for nonsmooth functions, finding a standard stationary point is mathematically "intractable" (essentially impossible in a reasonable timeframe).

To solve this, the authors focus on finding a $(\delta, \epsilon)$-Goldstein stationary point. Instead of looking at a single point's gradient, this metric looks at the average of all possible gradients in a small neighborhood (a $\delta$-ball). The goal is to find a point where this average "neighborhood gradient" is small ($\leq \epsilon$).

Methods

The authors build on a technique called Randomized Smoothing. By convolving the original "jagged" function with a uniform distribution over a small ball, they create a smooth surrogate function that is differentiable. They then use function value differences to estimate the gradient of this smooth surrogate.

The core innovation is the GFM+ algorithm, which introduces two key components:

  1. Recursive Gradient Estimation: Unlike previous methods that used "vanilla" zeroth-order estimators (which have high variance), GFM+ uses a recursive update rule (similar to the SARAH or SPIDER algorithms used in first-order optimization). This drastically reduces the noise in the gradient estimates.
  2. Variance Reduction for Smoothing: The authors prove that by carefully managing how often they reset their recursive estimator (using mini-batches), they can achieve a faster convergence rate.

For convex problems, they introduce WS-GFM+ (Warm-Started GFM+), which uses a two-phase approach: first using a standard method to get into the right "neighborhood" of the optimum, then switching to the high-speed recursive method to refine the solution.

Datasets

The authors evaluated GFM+ against the previous state-of-the-art (GFM) on two main tasks:

  • Nonconvex Penalized SVM: Tested on six standard LIBSVM datasets: a9a, w8a, covtype, ijcnn1, mushrooms, and phishing.
  • Black-Box Adversarial Attacks: Attempting to fool a pre-trained LeNet CNN on the MNIST and Fashion-MNIST datasets by only observing the network's output probabilities.

Key Insights and Ideas

  • Bridging the Gap: The paper successfully ports advanced variance reduction techniques (usually reserved for smooth, first-order optimization) into the much harsher world of nonsmooth, zeroth-order optimization.
  • The Power of Smoothing: The "aha moment" is realizing that while the original function is nonsmooth, the smoothed surrogate is well-behaved enough that recursive estimators can track its gradient effectively without needing an astronomical number of function evaluations.
  • Complexity Leap: They improved the dependency on the error tolerance $\epsilon$ from $\epsilon^{-4}$ to $\epsilon^{-3}$. In practical terms, if you want a solution that is 10 times more accurate, the old method might take 10,000 times longer, while GFM+ would only take 1,000 times longer.

Key Results

  • Theoretical Speedup: GFM+ achieves a stochastic zeroth-order oracle complexity of $O(d^{3/2} \epsilon^{-3})$, matching the optimal rate of first-order methods (minus an unavoidable penalty for the dimension $d$).
  • Empirical Performance: In SVM experiments, GFM+ converged significantly faster and showed much higher stability (less oscillation in the loss curve) than the original GFM across all six datasets.
  • Adversarial Success: In black-box attacks, GFM+ achieved a higher attack success rate than GFM while using the same number of function queries (zeroth-order oracles).

Limitations and Future Work

  • Dimensionality: While the $\epsilon$ dependency is improved, the algorithm still scales with $d^{3/2}$. For extremely high-dimensional problems (millions of parameters), zeroth-order methods remain very expensive.
  • Tightness of Bounds: The authors note that it is still unclear if their complexity bound is "tight" (the absolute best possible). They suggest that future work should investigate the theoretical lower bounds for finding Goldstein stationary points to see if even faster algorithms are possible.
  • Hyperparameter Tuning: The recursive nature of GFM+ introduces more hyperparameters (like epoch length $m$ and mini-batch sizes $b, b'$) which may require tuning for specific applications.

Summary updated

BibTeX
@inproceedings{chen2023faster,
  author = {Lesi Chen and Jing Xu and Luo Luo},
  title = {{Faster Gradient-Free Algorithms for Nonsmooth Nonconvex Stochastic Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=TSfK8dvAqS7},
}
Figure