Asynchronous Mini-Batch Gradient Descent with Variance Reduction for Non-Convex Optimization

Zhouyuan Huo, Heng Huang

Asynchronous Mini-Batch Gradient Descent with Variance Reduction for Non-Convex Optimization

Abstract

This paper provides the first theoretical proof that asynchronous mini-batch gradient descent with variance reduction (AsySVRG) converges at a rate of $O(1/T)$ for non-convex optimization problems. By bridging the gap between theory and practice, the authors demonstrate that these algorithms achieve a faster convergence rate than standard asynchronous SGD and provide linear speedup as more workers are added to the system.

Introduction

Training deep learning models on massive datasets requires significant computational power, usually distributed across multiple processors or machines. Stochastic Gradient Descent (SGD) is the workhorse of this process, but it has two major drawbacks: high variance and synchronization bottlenecks. While Variance Reduction (SVRG) and asynchronous implementations have been used in practice, there was no rigorous theoretical analysis of how these two interact for non-convex problems. This paper fills that gap.

Theoretical Insights and Convergence

Standard asynchronous SGD for non-convex problems converges at $O(1/\sqrt{T})$. This paper proves AsySVRG hits $O(1/T)$, which is significantly faster. A critical finding is that the convergence rate is essentially independent of the maximum time delay ($\Delta$), provided that the delay is upper-bounded. This means the negative effect of using "stale" information vanishes in the limit.

Comparison of training loss across different optimization algorithms (SGD, SVRG, and SGD_SVRG) relative to the number of data passes.

Methods: AsySVRG Architecture

The authors analyze two specific asynchronous implementations of AsySVRG:

  • Shared-Memory Architecture: Multiple threads on a single machine update a global parameter vector at the coordinate level (consistent with the "Hogwild!" approach).
  • Distributed-Memory Architecture: A "Parameter Server" model where multiple machines compute gradients and send them to a central server.

The core algorithm uses a "snapshot" mechanism: every $m$ iterations, a full gradient is calculated to "correct" the noisy stochastic gradients calculated in subsequent mini-batches, effectively reducing variance.

Experimental Results and Scalability

The authors evaluated their methods using MNIST and CIFAR-10. In both shared and distributed settings, AsySVRG-based methods converged faster than standard SGD. While SGD often starts faster in the very first few iterations, SVRG quickly overtakes it as the variance reduction kicks in.

Performance of AsySVRG with varying thread counts, demonstrating training loss, testing error, and speedup.

On a machine with 36 cores, the authors demonstrated near-linear speedup up to 24 threads. Beyond that, hardware contention (memory bandwidth) caused the speedup to level off. Using AWS t2.micro instances, the distributed version showed consistent linear speedup as the number of worker nodes increased from 1 to 10.

Conclusion

This work provides a solid theoretical foundation for using asynchronous variance reduction in non-convex optimization. It confirms that mini-batching is essential and that these methods are robust to communication delays, making them highly suitable for modern distributed deep learning systems.

Summary updated

BibTeX
@inproceedings{huo2017asynchronous,
  author = {Zhouyuan Huo and Heng Huang},
  title = {{Asynchronous Mini-Batch Gradient Descent with Variance Reduction for Non-Convex Optimization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.1609/aaai.v31i1.10940},
}
Figure