NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the Choice of Learning Rate for Local SGD

Lukas Balles, Prabhu Teja Sivaprasad, Cédric Archambeau

Distributed training is the backbone of modern AI, but it comes with a significant "communication tax." As we scale to more GPUs, the time spent shuffling gradients across the network often outweighs the time spent actually computing them. Local SGD (or Parallel SGD) was proposed as a solution: let workers run several steps independently before syncing up to reduce communication frequency.

While the theory looked promising, practitioners often found that Local SGD failed to match the accuracy of standard Stochastic Gradient Descent (SGD). A new paper published in Transactions on Machine Learning Research (01/2024) explains why: the community has been using the wrong learning rate scaling rules.

The Bias-Variance Trade-off in Local SGD

In standard data-parallel training, multiple workers process different chunks of data and average their gradients after every step. Local SGD allows each worker to perform $H$ local steps before averaging, reducing communication by a factor of $H$. However, because workers drift apart during those local steps, the resulting model isn't the same as one trained synchronously.

The authors provide a mathematical proof showing that Local SGD faces a unique challenge. While more workers reduce gradient variance (allowing for higher learning rates), the lack of synchronization introduces bias. Because workers calculate gradients at slightly different points in the parameter space, the averaged gradient becomes "off-target." Crucially, this bias worsens as the learning rate increases, creating a trap for traditional scaling rules.

LocalAdaScale: Adaptive Learning Rate Scaling

To address this, the researchers developed LocalAdaScale. This algorithm measures variance and worker "drift" in real-time to calculate an approximately optimal learning rate. It balances the benefit of lower variance against the penalty of higher bias. Because the optimal rate for Local SGD is often lower than for standard SGD, LocalAdaScale automatically "stretches" the training budget to ensure the model reaches target accuracy.

Comparison of final accuracy between Local-Ada and Local-Lin across different worker counts (K) and local steps (H).

As shown in the radar plot above, the popular "Linear Scaling Rule" ($LR \times K$ workers) fails as the number of local steps $H$ increases, leading to a significant drop in accuracy. In contrast, LocalAdaScale (Local-Ada) maintains high accuracy across various configurations of workers and local steps.

Empirical Results and the Efficiency Reality Check

The researchers validated their findings on standard benchmarks like CIFAR-10 and ImageNet. While LocalAdaScale fixes the accuracy gap, it reveals a harsh truth about efficiency. Because Local SGD requires more iterations to reach the same goal due to its lower optimal learning rate, it only saves time in specific hardware environments.

Wall-clock time comparison between Autoscaled Accum SGD and Local SGD as a function of communication-to-computation ratio.

Analysis of wall-clock time shows that Local SGD only provides a real-world speedup when network communication is extremely slow—specifically, when one communication round takes more than four times the time of a single computation step. For most typical high-performance clusters, standard Gradient Accumulation with adaptive scaling remains more efficient.

Conclusion

Local SGD is not a universal fix for distributed training bottlenecks. The "performance lag" observed in the past was a symptom of suboptimal learning rates, which LocalAdaScale successfully corrects. However, the algorithm remains a niche tool, most valuable in communication-starved environments like Federated Learning where data is distributed across slow, unreliable networks.

Summary updated

BibTeX
@article{balles2024choice,
  author = {Lukas Balles and Prabhu Teja Sivaprasad and Cédric Archambeau},
  title = {{On the Choice of Learning Rate for Local SGD}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2024},
}
Figure