Zeroth-order Asynchronous Doubly Stochastic Algorithm with Variance Reduction

Bin Gu, Zhouyuan Huo, Heng HuangarXiv 2016

Abstract

Zeroth-order (ZO) optimization is a critical tool for solving machine learning problems where explicit gradient information is unavailable, such as black-box adversarial attacks or complex simulations. However, traditional ZO methods are often slow and computationally expensive. This paper introduces AsyDSZOVR, the first asynchronous zeroth-order algorithm to incorporate variance reduction and doubly stochastic sampling. By allowing for lock-free parallel updates and reducing gradient estimation noise, AsyDSZOVR improves the theoretical convergence rate for non-convex objectives from $O(1/\sqrt{T})$ to $O(1/T)$.

Introduction

In modern machine learning, optimization is typically driven by first-order information (gradients). However, many real-world scenarios—ranging from bandit problems to graphical model inference—preclude the use of explicit gradients because they are either computationally prohibitive or entirely inaccessible. Zeroth-order optimization addresses this by estimating gradients through function value differences at perturbed points.

While robust, ZO methods traditionally suffer from high variance and slow convergence. To scale these methods to massive datasets, researchers have turned to asynchronous parallel execution. The challenge lies in the fact that combining the inherent noise of ZO estimates with the "staleness" of asynchronous updates often degrades performance. AsyDSZOVR aims to bridge this gap by providing a scalable, high-speed framework for gradient-free optimization.

Methodology: The AsyDSZOVR Framework

AsyDSZOVR (Asynchronous Doubly Stochastic Zeroth-Order with Variance Reduction) is built upon four technical pillars designed to maximize efficiency and stability:

  1. Zeroth-Order Estimation: The algorithm operates as a black-box optimizer, requiring only function evaluations to estimate gradients.
  2. Doubly Stochastic Sampling: To manage high-dimensional data, the algorithm samples both a subset of data points and a subset of coordinates (features) for each update. This dual sampling ensures computational efficiency even when the feature space is enormous.
  3. Variance Reduction: Borrowing from Stochastic Variance Reduced Gradient (SVRG) techniques, the algorithm utilizes a nested loop structure. An outer loop periodically computes a more accurate "full" gradient estimate to correct the noisy, fast updates performed in the inner loop.
  4. Asynchronous Execution: The framework is designed for multi-core environments. Threads operate in a lock-free manner, reading the current model state and writing updates immediately, which maximizes hardware utilization.

Theoretical Breakthroughs

The primary contribution of this work is the rigorous proof of a superior convergence rate. By integrating variance reduction into an asynchronous ZO setting, the authors demonstrate that the algorithm can achieve an $O(1/T)$ rate for smooth, non-convex functions. This is a significant improvement over the $O(1/\sqrt{T})$ rate typical of prior asynchronous ZO methods.

Comparison of AsyDSZOVR with the baseline AsySZO algorithm.

As shown in the table above, AsyDSZOVR provides several practical advantages over the baseline AsySZO. Notably, it supports constant step sizes, whereas previous methods required vanishing step sizes to ensure convergence. Constant step sizes are generally preferred in practice as they lead to faster progress in the early stages of optimization.

Key Insights and Results

  • Scalability via Double Sampling: By sampling both data and features, the algorithm circumvents the common ZO bottleneck where complexity scales linearly with the number of features.
  • Taming Asynchrony: The mathematical analysis proves that the variance reduction mechanism is robust enough to handle "stale" updates from parallel threads without losing the $O(1/T)$ convergence guarantee.
  • Superiority over Sequential Methods: Remarkably, the theoretical results indicate that this parallel, asynchronous version can outperform many existing sequential (single-threaded) zeroth-order algorithms in terms of convergence speed.

Limitations and Future Work

While the theoretical foundations are robust, the current study focuses on mathematical proofs and lacks empirical benchmarks on specific hardware clusters. Future research should investigate the algorithm's performance in distributed systems with high network latency and explore its applicability to non-smooth objective functions, which remain a challenge for current ZO acceleration techniques.

Summary updated

BibTeX
@misc{gu2016zeroth,
  author = {Bin Gu and Zhouyuan Huo and Heng Huang},
  title = {{Zeroth-order Asynchronous Doubly Stochastic Algorithm with Variance Reduction}},
  year = {2016},
  eprint = {1612.01425},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1612.01425},
}
Figure