Global Momentum Compression for Sparse Communication in Distributed SGD

Shen-Yi Zhao, Yin-Peng Xie, Hao Gao, Wu-Jun LiarXiv 2019 · arXiv

Introduction

In the era of massive-scale deep learning, distributed training has become essential. However, as model sizes reach billions of parameters, the communication overhead between workers and the central server becomes a critical bottleneck. Sparse communication techniques, such as "top-s" selection, aim to alleviate this by sending only the most significant gradient updates. While effective in IID (Independent and Identically Distributed) scenarios, these methods often struggle in non-IID environments where data distribution varies significantly across workers.

Existing frameworks like Deep Gradient Compression (DGC) rely on local momentum, where each worker maintains its own gradient history. In non-IID settings, this local history becomes biased toward local optima, leading to slow convergence or poor final accuracy.

Global Momentum Compression (GMC)

To address the limitations of local momentum, this paper introduces Global Momentum Compression (GMC). The core innovation is the shift from local to global momentum tracking. By ensuring the momentum term captures information from all workers, GMC provides a more accurate descent direction.

The GMC framework integrates error feedback directly with this global momentum. In each iteration, workers compute local gradients, add them to a local error residual (storing unsent information from previous steps), and incorporate a global momentum term derived from the previous model update. This combined vector is then sparsified before transmission.

For more aggressive and computationally efficient compressors like Random Blockwise Gradient Sparsification (RBGS), the authors propose GMC+. This variant utilizes a "detached" error feedback technique, evaluating the gradient at a point shifted by the error residual to maintain stability despite the increased noise introduced by cheaper compression methods.

Key Insights: Overcoming Locality Bias

The primary advantage of GMC lies in its ability to correct the "locality bias" inherent in previous methods. In non-IID scenarios, a worker's local momentum might point in a direction that contradicts the global objective. Global momentum acts as a corrective force, aligning local updates with the true global descent path.

Optimization trajectory of GMC, demonstrating stable convergence toward the global optimum compared to the oscillations often seen in local momentum methods.

Furthermore, the authors demonstrate that the common practice of "Momentum Factor Masking" (mfm) used in DGC to stabilize training actually hinders convergence speed. GMC avoids this masking, allowing for faster progress without sacrificing stability.

Empirical Results

The effectiveness of GMC and GMC+ was evaluated on CIFAR-10 and CIFAR-100 datasets using ResNet20 and Vision Transformer (ViT) architectures. The experiments covered both IID and challenging non-IID partitions.

Convergence performance of GMC compared to DMSGD and DGC variants across different dimensions (d) and sparsity levels (s). GMC consistently tracks the performance of full-communication DMSGD.

Performance in Non-IID Settings

GMC significantly outperforms existing methods in non-IID environments. For instance, on CIFAR-10 with ResNet20, GMC achieved 86.51% accuracy, compared to 81.93% for DGC and 78.65% for CSER. This confirms that global momentum is crucial for maintaining model quality when data is heterogeneous.

Communication Efficiency

GMC achieves these results while communicating only a fraction of the full gradient data. Using the RBGS compressor, GMC+ reached a Relative Communication Cost (RCC) of approximately 0.098%, effectively reducing communication requirements by over 1000x compared to standard Distributed Momentum SGD (DMSGD).

Conclusion

Global Momentum Compression provides a robust solution for the communication bottlenecks in distributed learning. By replacing biased local momentum with a global approach and refining error feedback mechanisms, GMC enables fast, accurate training even in difficult non-IID scenarios. Theoretical analysis confirms that GMC maintains the same convergence rates as standard DMSGD, making it a principled and practical choice for scaling large-scale distributed systems.

Summary updated

Abstract

With the rapid growth of data, distributed momentum stochastic gradient descent~(DMSGD) has been widely used in distributed learning, especially for training large-scale deep models. Due to the latency and limited bandwidth of the network, communication has become the bottleneck of distributed learning. Communication compression with sparsified gradient, abbreviated as \emph{sparse communication}, has been widely employed to reduce communication cost. All existing works about sparse communication in DMSGD employ local momentum, in which the momentum only accumulates stochastic gradients computed by each worker locally. In this paper, we propose a novel method, called \emph{\underline{g}}lobal \emph{\underline{m}}omentum \emph{\underline{c}}ompression~(GMC), for sparse communication. Different from existing works that utilize local momentum, GMC utilizes global momentum. Furthermore, to enhance the convergence performance when using more aggressive sparsification compressors (e.g., RBGS), we extend GMC to GMC+. We theoretically prove the convergence of GMC and GMC+. To the best of our knowledge, this is the first work that introduces global momentum for sparse communication in distributed learning. Empirical results demonstrate that, compared with the local momentum counterparts, our GMC and GMC+ can achieve higher test accuracy and exhibit faster convergence, especially under non-IID data distribution.
BibTeX
@misc{zhao2019global,
  author = {Shen-Yi Zhao and Yin-Peng Xie and Hao Gao and Wu-Jun Li},
  title = {{Global Momentum Compression for Sparse Communication in Distributed SGD}},
  year = {2019},
  eprint = {1905.12948},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.12948},
}
Figure