[Paper Review] Parallel Restarted SGD with Faster Convergence and Less Communication: Demystifying Why Model Averaging Works for Deep Learning
This paper proposes Parallel Restarted SGD as a theoretical framework to explain why model averaging achieves fast convergence with reduced communication in distributed deep learning. By periodically averaging models across workers and restarting SGD, it achieves the same O(1/√(NT)) convergence rate as parallel mini-batch SGD while reducing communication rounds by O(T^{1/4}), demonstrating that infrequent averaging is both effective and efficient for non-convex optimization.
In distributed training of deep neural networks, parallel mini-batch SGD is widely used to speed up the training process by using multiple workers. It uses multiple workers to sample local stochastic gradient in parallel, aggregates all gradients in a single server to obtain the average, and update each worker's local model using a SGD update with the averaged gradient. Ideally, parallel mini-batch SGD can achieve a linear speed-up of the training time (with respect to the number of workers) compared with SGD over a single worker. However, such linear scalability in practice is significantly limited by the growing demand for gradient communication as more workers are involved. Model averaging, which periodically averages individual models trained over parallel workers, is another common practice used for distributed training of deep neural networks since (Zinkevich et al. 2010) (McDonald, Hall, and Mann 2010). Compared with parallel mini-batch SGD, the communication overhead of model averaging is significantly reduced. Impressively, tremendous experimental works have verified that model averaging can still achieve a good speed-up of the training time as long as the averaging interval is carefully controlled. However, it remains a mystery in theory why such a simple heuristic works so well. This paper provides a thorough and rigorous theoretical study on why model averaging can work as well as parallel mini-batch SGD with significantly less communication overhead.
Motivation & Objective
- To theoretically explain why model averaging in distributed deep learning achieves fast convergence with significantly less communication than parallel mini-batch SGD.
- To analyze the convergence behavior of model averaging under non-convex optimization settings with heterogeneous workers.
- To quantify the trade-off between communication reduction and convergence rate in distributed training.
- To establish that model averaging can preserve linear speed-up with respect to the number of workers despite reduced synchronization frequency.
Proposed method
- Proposes Parallel Restarted SGD (PR-SGD) as a formalization of model averaging, where workers run local SGD for I iterations before averaging.
- Introduces a restart mechanism where the average model is used as the new initialization for the next epoch, reducing error accumulation.
- Uses a weighted average of gradients across workers and epochs to bound convergence error in non-convex settings.
- Derives theoretical convergence bounds under standard assumptions (smoothness, bounded variance, Lipschitz gradient) for both homogeneous and heterogeneous worker settings.
- Analyzes communication cost by reducing the number of synchronization rounds to O(T^{1/4}) compared to O(T) in standard parallel SGD.
- Employs a step size γ = Θ(√N / √T) and averaging interval I_i = Θ(T^{1/4}/N^{3/4}) to balance convergence and communication.
Experimental results
Research questions
- RQ1Why does model averaging achieve fast convergence in deep learning despite reduced communication?
- RQ2Can model averaging preserve the same O(1/√(NT)) convergence rate as parallel mini-batch SGD with fewer communication rounds?
- RQ3How does the frequency of model averaging affect convergence in heterogeneous distributed training?
- RQ4What is the theoretical trade-off between communication cost and convergence rate in distributed non-convex optimization?
- RQ5Can a restart mechanism in model averaging improve convergence, especially with poor initializations?
Key findings
- Model averaging via Parallel Restarted SGD achieves the same O(1/√(NT)) convergence rate as parallel mini-batch SGD, preserving linear speed-up with respect to the number of workers.
- Communication rounds are reduced by a factor of O(T^{1/4}) compared to standard parallel mini-batch SGD, significantly lowering communication overhead.
- The method maintains convergence even with heterogeneous workers by using worker-specific averaging intervals I_i = Θ(T^{1/4}/N^{3/4}).
- Theoretical analysis shows that a poor initial point can be compensated by the restart mechanism, leading to faster early convergence in heterogeneous settings.
- Empirical results on ResNet20 with CIFAR10 confirm that model averaging with I ∈ {4,8,16,32} matches or exceeds the performance of parallel mini-batch SGD (I=1) with less communication.
- The method is robust across different deep learning tasks, including image classification and speech recognition, as validated by prior empirical studies.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.