Abstract
Asynchronous distributed methods are a popular way to reduce the communication and synchronization costs of large-scale optimization. Yet, for all their success, little is known about their convergence guarantees in the challenging case of general non-smooth, non-convex objectives, beyond cases where closed-form proximal operator solutions are available. This is all the more surprising since these objectives are the ones appearing in the training of deep neural networks. In this paper, we introduce the first convergence analysis covering asynchronous methods in the case of general non-smooth, non-convex objectives. Our analysis applies to stochastic sub-gradient descent methods both with and without block variable partitioning, and both with and without momentum. It is phrased in the context of a general probabilistic model of asynchronous scheduling accurately adapted to modern hardware properties. We validate our analysis experimentally in the context of training deep neural network architectures. We show their overall successful asymptotic convergence as well as exploring how momentum, synchronization, and partitioning all affect performance.
Introduction
In large-scale deep learning, synchronization is a major bottleneck. Standard Distributed Data Parallel (DDP) methods require workers to wait for one another to aggregate gradients, wasting valuable compute cycles. Asynchronous methods (like "Hogwild!") allow workers to update a shared model independently, but they introduce "stale" gradients and inconsistent reads—where a worker might read a parameter while another is halfway through writing it.
While convergence proofs exist for asynchronous methods on smooth functions, deep learning is notoriously nonsmooth due to popular components like ReLU activations and max-pooling. This paper bridges the gap by providing the first rigorous mathematical guarantees that these methods converge to stable solutions in nonsmooth, nonconvex landscapes.
Methodology
The authors bridge the theory-practice gap using two main approaches:
- Continuous-Time Probabilistic Modeling: They develop a mathematical model capturing modern hardware realities, including inconsistent reads and variable delays. They prove that under this model, stochastic subgradient methods with momentum converge "with probability one" to a set of stationary points.
- PASSM and PASSM+ Algorithms:
- ASSM (Asynchronous Stochastic Subgradient Method): A baseline where every worker updates the entire model, protected by locks.
- PASSM (Partitioned ASSM): To avoid locking overhead, the model is partitioned into non-overlapping blocks. Workers update specific blocks using "Restricted Backpropagation," skipping full gradient calculations for layers they aren't updating to save FLOPs.
- PASSM+ Heuristic: A hybrid schedule that starts with full updates (ASSM), switches to partitioned updates (PASSM) for speed, and occasionally uses full updates near learning rate decay steps to stabilize the solution and improve generalization.
Experimental Results
The researchers evaluated their methods on standard image classification benchmarks including CIFAR-10, CIFAR-100, and SVHN, using architectures like ResNet, ShuffleNet, and DenseNet.
Key Findings
- Speed and Accuracy: PASSM+ achieved an average 1.2x speedup over state-of-the-art large-batch methods and up to 1.35x speedup over standard synchronous SGD. On ResNet20 (CIFAR-10), PASSM+ matched the synchronous SGD baseline accuracy while being significantly faster (1526s vs 2024s).
- Inconsistent Reads: The algorithm still converges even with "frankenstein" model reads (partially updated by others), provided delays are bounded.
- FLOP Savings: By carefully assigning layers to processes, the authors saved roughly 3/8 of the total FLOPs during backpropagation when using four concurrent processes.
- Momentum: This work is among the first to successfully integrate and analyze momentum within an asynchronous, nonsmooth framework.
Conclusion and Future Work
While PASSM+ effectively addresses the generalization gap of pure partitioned updates, the "plus" strategy relies on heuristic switch points that may require tuning for new architectures. Future research may explore the fundamental theoretical reasons why pure partitioned updates sometimes lag in nonsmooth landscapes and seek more automated scheduling methods. Nonetheless, this work provides a solid theoretical foundation for the asynchronous training of modern deep neural networks.
Summary updated