Stochastic Zeroth-order Optimization via Variance Reduction method

Liu Liu, Minhao Cheng, Cho-Jui Hsieh, Dacheng TaoarXiv 2018

Abstract

Zeroth-order (ZO) optimization is essential for black-box problems where explicit gradient information is inaccessible, such as hyperparameter tuning and adversarial attacks on deep neural networks. However, standard ZO methods often struggle with high-dimensional spaces due to variance that scales linearly with the problem dimension $d$. This paper introduces SZVR-G (Stochastic Zeroth-order method with Variance Reduction under Gaussian smoothing), which employs a dual variance reduction strategy targeting both sample space and search directions. Theoretically, SZVR-G achieves a complexity bound that scales sublinearly with $d$, offering a significant speedup over existing methods. Experimental evaluations on adversarial attacks and high-dimensional optimization tasks demonstrate that SZVR-G converges faster and reaches lower objective values than state-of-the-art benchmarks.

Introduction

In many real-world optimization scenarios, the objective function $f(x)$ is a "black box" where gradients $\nabla f(x)$ cannot be computed directly. Standard Zeroth-Order (ZO) methods estimate these gradients by sampling random directions and measuring function value changes. A primary challenge in this domain is the "curse of dimensionality": the variance of these estimates typically scales linearly with the dimension $d$. Consequently, as the problem size grows, the number of function queries required for convergence becomes prohibitive for high-dimensional models.

Methodology: The SZVR-G Algorithm

The authors propose SZVR-G, a novel algorithm that adapts variance reduction techniques—traditionally used in first-order methods—to the zeroth-order setting. The core innovation is a "double" variance reduction strategy:

  1. Sample Space Reduction: Similar to the SVRG algorithm, SZVR-G utilizes a snapshot gradient at the start of each epoch to mitigate noise arising from stochastic data samples.
  2. Search Space Reduction: Instead of generating a new random direction for every update, the algorithm generates a set of Gaussian vectors at the start of each epoch. During the inner loop, it intelligently reuses or subsamples from this set to compute directional derivatives, effectively suppressing the variance associated with the search direction.

Theoretical Analysis

By combining these strategies, the authors establish a new complexity bound for non-convex problems. While previous methods like Random Gradient-Free (RGF) scale with $O(d/\epsilon^2)$, SZVR-G achieves a complexity of $O(\frac{1}{\epsilon^2} \max\{d^{2/3}B^{1/3}, d^{1/3}B^{2/3}\})$, where $B$ relates to the sample size. This theoretical result implies a speedup of up to a factor of $d^{1/3}$ for high-dimensional problems.

Theoretical complexity comparison of SZVR-G and RSG as a function of dimension d.

A key insight is the identified dichotomy between $d$ and $B$: the complexity behavior shifts depending on whether the dimension $d$ is larger or smaller than the effective sample size $B$. This allows practitioners to optimize parameters based on the specific scale of their problem.

Experimental Evaluation

The authors validated SZVR-G on two primary tasks: canonical logistic regression using the MNIST dataset and "Universal Black-box Adversarial Attacks" on MNIST and CIFAR-10. In the adversarial setting, the goal is to find a single perturbation that causes a pre-trained Deep Neural Network (DNN) to misclassify images without knowledge of the DNN's internal gradients.

Experimental convergence of SZVR-G against RGF and RSG benchmarks in terms of objective value and gradient norm.

Key experimental findings include:

  • Faster Convergence: SZVR-G reached lower objective values and lower gradient norms significantly faster (requiring fewer SZO queries) than RGF and RSG benchmarks.
  • Mini-batch Efficiency: The method's complexity increases sublinearly with batch size, making it better suited for parallelization than previous linear-scaling methods.
  • Query Efficiency in Attacks: SZVR-G successfully generated universal adversarial perturbations more efficiently than existing ZO attack methods.

Conclusion

SZVR-G represents a significant advancement in derivative-free optimization by breaking the linear dependency on problem dimensionality. While zeroth-order optimization remains more expensive than first-order methods, this work makes it a far more viable "last resort" for massive high-dimensional problems. Future research may explore asynchronous parallel versions of SZVR-G to further reduce wall-clock time in large-scale applications.

Summary updated

BibTeX
@misc{liu2018stochastic,
  author = {Liu Liu and Minhao Cheng and Cho-Jui Hsieh and Dacheng Tao},
  title = {{Stochastic Zeroth-order Optimization via Variance Reduction method}},
  year = {2018},
  eprint = {1805.11811},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1805.11811},
}
Figure