NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improved Zeroth-Order Variance Reduced Algorithms and Analysis for Nonconvex Optimization

Kaiyi Ji, Zhe Wang, Yi Zhou, Yingbin Liang

In many machine learning scenarios, optimizing a function without direct access to its gradient is a necessity. This "black-box" setting—common in tasks like crafting adversarial attacks against neural networks where only output scores are visible—relies on zeroth-order (ZO) optimization.

While researchers have successfully adapted powerful first-order variance reduction techniques like SVRG (Stochastic Variance Reduced Gradient) and SPIDER to the zeroth-order setting, two major bottlenecks have persisted:

  1. The Efficiency Paradox: Existing SVRG-type ZO algorithms paradoxically required more function queries than basic zeroth-order gradient descent (ZO-GD), rendering them theoretically interesting but practically inferior.
  2. Practicality Bottlenecks: Existing SPIDER-type ZO algorithms required generating massive amounts of Gaussian random variables and relied on tiny, impractical stepsizes to guarantee convergence.

A recent paper tackles these issues head-on, introducing two new gradient-free optimization algorithms—ZO-SVRG-Coord-Rand and ZO-SPIDER-Coord—that significantly reduce the number of function evaluations needed to solve nonconvex problems.

Algorithmic Innovations

The authors propose two primary algorithmic improvements that leverage coordinate-wise gradient estimators to achieve faster convergence:

  • ZO-SVRG-Coord-Rand: This algorithm employs a hybrid approach. It uses a deterministic coordinate-wise gradient estimator in the "outer loop" (where the full batch is processed) and a randomized two-point estimator in the "inner loop." This combination allows for a much tighter error bound than previous methods.
  • ZO-SPIDER-Coord: Adapting the recursive SPIDER/SARAH technique, this method replaces random Gaussian estimators with coordinate-wise estimators. This crucial change eliminates the need to generate random variables and allows the algorithm to use a large constant stepsize. In practice, this is vastly faster than the vanishingly small stepsizes required by earlier versions.

Additionally, the authors provide refined theoretical analysis for the existing ZO-SVRG-Coord algorithm. Their new proof demonstrates that it is actually much more efficient than previously reported, finally confirming that SVRG-based ZO methods can indeed outperform basic ZO-GD.

Key Insights and Theoretical Gains

A central takeaway from this research is the hidden power of coordinate-wise estimators. While a coordinate-wise estimator requires $d$ function queries (where $d$ is the dimension), the resulting increase in estimation accuracy is so substantial that it permits much larger stepsizes. This trade-off ultimately leads to fewer total function queries to reach the same accuracy.

The new algorithms achieve significantly better theoretical function query complexities. For instance, ZO-SVRG-Coord-Rand achieves a complexity of $O(\min\{dn^{2/3}\epsilon^{-1}, d\epsilon^{-5/3}\})$, successfully removing the restrictive $d^2$ dependency found in earlier SVRG-type works.

Furthermore, the authors proved that ZO-SPIDER-Coord automatically achieves a linear convergence rate (the fastest possible) when the optimization enters a local region satisfying the Polyak-Łojasiewicz (PL) condition, requiring no manual restarts or parameter tweaks.

Empirical Results

The algorithms were evaluated on black-box adversarial attacks (generating perturbations for the MNIST dataset to fool a pre-trained deep neural network) and nonconvex logistic regression (using the german and ijcnn1 datasets).

Performance comparison of ZO optimization algorithms across different batch sizes (n=10, n=100) in terms of iterations and function queries.

In the adversarial attack experiments, ZO-SPIDER-Coord and ZO-SVRG-Coord-Rand converged significantly faster and reached lower loss values than ZO-SGD and the previous SPIDER-SZO baseline. Unlike previous SPIDER-based methods that required a stepsize tied to the target accuracy ($\sqrt{\epsilon}$), ZO-SPIDER-Coord operates effectively with a constant stepsize $O(1)$, making it far more robust for real-world engineering applications.

Limitations and Future Work

While these advancements are substantial, some limitations remain:

  • High-Dimensional Scaling: Because the coordinate-wise estimator queries the function $d$ times per iteration, the "wall-clock" time might still be high for extremely high-dimensional problems (e.g., models with millions of parameters) unless the queries are heavily parallelized.
  • Local vs. Global PL: The linear convergence under the PL condition is a local property. The paper does not claim global linear convergence for all nonconvex functions, which remains a broad challenge in the optimization field.
  • Nonsmooth Optimization: The primary focus of the main text is smooth nonconvex optimization; results for nonsmooth composite and convex optimization are provided, but relegated to supplementary materials.

Overall, these improved zeroth-order variance reduced algorithms mark a significant step forward, bridging the gap between theoretical query complexity and practical, real-world performance in gradient-free optimization.

Summary updated

BibTeX
@inproceedings{ji2019improved,
  author = {Kaiyi Ji and Zhe Wang and Yi Zhou and Yingbin Liang},
  title = {{Improved Zeroth-Order Variance Reduced Algorithms and Analysis for Nonconvex Optimization}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=S1VegnWd-B},
}
Figure