Abstract
Training deep neural networks at scale often involves a trade-off between the high-speed, lock-free updates of shared-memory asynchrony (Hogwild!) and the scalability of decentralized message-passing (Local SGD). This paper introduces Locally-Partitioned-asynchronous Parallel SGD (LPP-SGD), a novel framework that bridges this gap. By combining asynchronous local updates, partial backpropagation, and non-blocking model averaging, LPP-SGD achieves significant training speedups and improved generalization. We provide a rigorous convergence analysis and demonstrate empirical gains across standard computer vision benchmarks.
Introduction
Training deep neural networks on massive datasets requires massive parallelism. Traditionally, researchers choose between two paradigms: shared-memory asynchrony, which is fast but limited to single machines, and decentralized message-passing, which scales well but often faces communication bottlenecks or poor generalization with large mini-batches. LPP-SGD addresses the challenge of decentralizing the "wild" nature of Hogwild!-style updates, allowing multiple GPUs to run internal asynchronous processes while communicating through an efficient, non-blocking averaging mechanism.
Methodology: The LPP-SGD Framework
LPP-SGD is built on three core components designed to maximize hardware utilization and minimize synchronization overhead:
- Asynchronous Local Updates: Each GPU hosts multiple "updater" processes that compute gradients and update a local shared model without locks, maximizing hardware utilization.
- Partial Backpropagation: To reduce computational costs, the model is partitioned into blocks. Updaters update specific blocks rather than the entire network in every step, effectively lowering the FLOP count per iteration.
- Non-Blocking In-Place Averaging: A dedicated process on each GPU manages communication with peers. This averaging happens in the background, updating the local model "in-place" to avoid memory copy overheads.
To ensure theoretical soundness, the authors utilize an Elastic Consistency model to bound errors caused by "stale" gradients, proving that the algorithm achieves standard convergence rates for non-convex problems.
Key Results
LPP-SGD was evaluated across standard benchmarks including CIFAR-10, CIFAR-100, and ImageNet. The results consistently show that LPP-SGD outperforms standard Mini-Batch SGD (MB-SGD) and existing local SGD variants in both speed and accuracy.
Speed and Efficiency
On a 2-GPU setup, LPP-SGD achieved up to a 1.68x speedup over standard MB-SGD. For SqueezeNet on CIFAR-10, LPP-SGD finished training in approximately 1027 seconds, compared to 1580 seconds for the baseline—a nearly 35% reduction in time.
Generalization and Scalability
One of the most significant insights is that the noise introduced by asynchronous updates acts as a regularizer, pushing the model toward "flatter" minima and improving generalization. In tests, LPP-SGD reached 92.55% accuracy compared to 91.50% for the baseline. Furthermore, the method demonstrated near-linear scaling as the number of GPUs increased from 2 to 8.
Conclusion
LPP-SGD successfully decentralizes Hogwild!-style updates, providing a scalable and theoretically grounded approach to asynchronous SGD. By leveraging local asynchrony and efficient background communication, it offers a practical path to faster training without sacrificing model quality. Future work will explore integrating communication-reduction techniques like quantization and automating hyperparameter tuning to make the system more accessible for researchers.
Summary updated