Local AdaAlter: Communication-Efficient Stochastic Gradient Descent with Adaptive Learning Rates

Cong Xie, Oluwasanmi Koyejo, Indranil Gupta, Haibin LinarXiv 2019

Abstract

Distributed training of large-scale deep learning models often faces communication bottlenecks as the number of workers increases. While Local SGD reduces communication frequency, integrating it with adaptive learning rate methods like AdaGrad is challenging due to the drift of local adaptive variables. We present Local AdaAlter, an algorithm that employs a "lazy update" strategy for adaptive denominators. This approach ensures synchronized learning rates across workers during local steps, significantly reducing communication overhead. Empirical evaluations on the 1B Word benchmark demonstrate that Local AdaAlter can reduce training time by up to 30% while maintaining or even improving model accuracy.

Introduction

The demand for training massive neural networks has led to the widespread adoption of distributed computing. However, the synchronization of gradients and parameters across multiple GPUs often becomes a primary bottleneck. Traditional Local SGD allows workers to perform several local updates before synchronizing, effectively reducing communication frequency. Yet, combining this with adaptive optimizers like AdaGrad or Adam is non-trivial. In these methods, learning rates are adjusted based on historical gradient information. If workers synchronize infrequently, their local adaptive states diverge, leading to instability and poor convergence.

The Local AdaAlter Algorithm

Local AdaAlter addresses the divergence of adaptive states through a Lazy Update of Denominators. In standard adaptive methods, the denominator—which scales the learning rate—is updated at every iteration. Local AdaAlter modifies this process:

  1. Local Iterations: Workers perform $H$ local updates. During these steps, they use a fixed, synchronized adaptive denominator from the previous communication round, rather than updating it locally.
  2. Periodic Synchronization: Every $H$ steps, workers synchronize their model parameters and aggregate their accumulated gradient squares to update the shared adaptive denominator.
  3. Staleness Management: By intentionally delaying updates to the adaptive variables, the algorithm ensures all workers utilize consistent learning rates during their local steps, mitigating the noise inherent in decentralized adaptive optimization.

Theoretical analysis confirms that this strategy maintains convergence properties for smooth, non-convex optimization problems common in deep learning.

Experimental Results

We evaluated Local AdaAlter using a Big LSTM model on the Google Billion Word (1B Word) dataset.

Communication Efficiency and Scalability

As shown in Figure 1, increasing the number of local steps $H$ significantly reduces the time required per epoch. This effect becomes more pronounced as the number of workers increases, demonstrating the algorithm's ability to alleviate communication bottlenecks in larger clusters.

Figure 1: Time per epoch vs. number of workers for various synchronization frequencies (H).

Convergence and Accuracy

Local AdaAlter achieves substantial speedups without compromising model performance. Figure 4 illustrates that while all variants converge to similar training loss and test perplexity levels over the same number of epochs, the versions with $H > 1$ reach these targets much faster in terms of absolute wall-clock time.

Figure 4: Performance metrics of Local AdaAlter compared to Distributed AdaGrad. (a, b) Test perplexity vs. time and epochs. (c, d) Training loss vs. time and epochs.

Specifically, Distributed AdaGrad reached a test perplexity (PPL) of 44.58 in approximately 98 hours. In contrast, Local AdaAlter with $H=4$ achieved a superior PPL of 44.08 in just 69 hours—a 30% reduction in training time. Interestingly, moderate values of $H$ sometimes resulted in better generalization, likely due to the regularizing effect of local updates.

Conclusion

Local AdaAlter provides a robust framework for communication-efficient adaptive optimization. By synchronizing adaptive states lazily, it bridges the gap between the fast convergence of adaptive methods and the low communication overhead of local SGD. Future work includes optimizing the selection of $H$ and extending this lazy update principle to other adaptive optimizers like Adam and RMSProp.

Summary updated

BibTeX
@misc{xie2019local,
  author = {Cong Xie and Oluwasanmi Koyejo and Indranil Gupta and Haibin Lin},
  title = {{Local AdaAlter: Communication-Efficient Stochastic Gradient Descent with Adaptive Learning Rates}},
  year = {2019},
  eprint = {1911.09030},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.09030},
}
Figure