Abstract
As datasets and models become increasingly large, distributed training has become a necessary component to allow deep neural networks to train in reasonable amounts of time. However, distributed training can have substantial communication overhead that hinders its scalability. One strategy for reducing this overhead is to perform multiple unsynchronized SGD steps independently on each worker between synchronization steps, a technique known as local SGD. We conduct a comprehensive empirical study of local SGD and related methods on a large-scale image classification task. We find that performing local SGD comes at a price: lower communication costs (and thereby faster training) are accompanied by lower accuracy. This finding is in contrast from the smaller-scale experiments in prior work, suggesting that local SGD encounters challenges at scale. We further show that incorporating the slow momentum framework of Wang et al. (2020) consistently improves accuracy without requiring additional communication, hinting at future directions for potentially escaping this trade-off.
Introduction
Distributed training is the backbone of modern deep learning, enabling the training of massive models on datasets like ImageNet in hours. However, as the number of workers ($K$) increases, the time spent communicating gradients often becomes a significant bottleneck. Local SGD is a popular strategy to mitigate this by allowing workers to train independently for $H$ steps before synchronizing. While promising in small-scale settings, its effectiveness at the scale of ImageNet remains a critical question.
The Communication Bottleneck
In standard synchronous distributed training (Minibatch SGD), all workers must average their gradients at every step ($H=1$). As shown in Figure 1, communication time (red) quickly dominates the total training time as the number of workers increases, particularly for deeper models like ResNet-101.
Experimental Methodology
This study evaluates three primary approaches on ImageNet-1k using ResNet-50 and ResNet-101:
- Minibatch SGD (Baseline): Synchronous training with $H=1$.
- Local SGD: Workers perform $H$ independent steps before weight averaging.
- Post-local SGD: A hybrid approach starting with synchronous SGD before switching to Local SGD to stabilize early training.
Additionally, the authors evaluate Slow Momentum (SlowMo), which adds a global momentum buffer to the synchronization step.
Key Results and Trade-offs
Speedup Gains
Local SGD provides substantial reductions in wall-clock time. By increasing the synchronization interval $H$, training time decreases significantly, achieving nearly 2x speedup in many configurations.
The Accuracy Tax
Despite the speed gains, the study reveals a consistent drop in validation accuracy as $H$ or $K$ increases. Unlike results on smaller datasets like CIFAR-10, large-scale training on ImageNet shows that Local SGD and Post-local SGD almost always lead to a decline in final model quality compared to the synchronous baseline.
The $H \times K$ Rule
A key finding is that the accuracy drop is primarily governed by the product of the synchronization interval and the number of workers ($H \times K$). To maintain a specific accuracy level, increasing the communication interval requires a proportional decrease in the number of workers, highlighting a fundamental constraint in scaling local methods.
Discussion: Escaping the Trade-off
The authors identify that while Local SGD can act as a deceptive regularizer—showing temporary drops in validation error—it ultimately settles at a lower final accuracy. However, Slow Momentum (SlowMo) emerges as a promising mitigation strategy, consistently improving accuracy across various settings without increasing communication costs. This suggests that more sophisticated synchronization frameworks may eventually bridge the gap between communication efficiency and model performance.
Conclusion
This empirical study underscores the challenges of scaling Local SGD to industry-standard benchmarks. While the method offers clear wall-clock time benefits, the accompanying accuracy degradation at scale necessitates careful consideration of the $H \times K$ trade-off. Future research into adaptive synchronization and momentum-based global updates remains essential for efficient, large-scale distributed training.
Summary updated