Compressed Decentralized Momentum Stochastic Gradient Methods for Nonconvex Optimization

Wei Liu, Anweshit Panda, Ujwal Pandey, Christopher Brissette, Yikang Shen, George M. Slota, Naigang Wang, Jie Chen, Yangyang Xu · DOI

Introduction

Decentralized learning has emerged as a critical paradigm for training large-scale models across distributed agents without a central coordinator. While decentralized systems offer better scalability, they are often hindered by significant communication overhead. To address this, researchers have explored techniques like momentum-based acceleration and message compression. However, combining these elements—momentum, compression, and decentralization—introduces complex theoretical challenges, particularly regarding stability and convergence in the presence of heterogeneous data.

This paper introduces two novel algorithms, DAMSCo and DaSHCo, designed to bridge this gap. These methods integrate momentum and compression to achieve optimal convergence rates and "linear speedup," significantly reducing communication costs while maintaining robustness across diverse network topologies.

The Challenge of Decentralized Learning

In a decentralized network, agents only communicate with their immediate neighbors. This structure avoids the bottleneck of a central server but introduces "consensus error," where individual agents' models drift apart. When combined with compression (which adds noise) and momentum (which adds bias), the mathematical stability of the system becomes difficult to guarantee. This is especially true in non-i.i.d. (heterogeneous) settings, where data distributions vary significantly across agents.

Proposed Algorithms: DAMSCo and DaSHCo

The authors propose two distinct frameworks to handle these challenges under different assumptions:

  1. DAMSCo (Decentralized AMSGrad with Compressed Communication): This is the first decentralized adaptive stochastic gradient method to incorporate compression. It is optimized for efficiency, requiring only a single round of communication per update. It is particularly effective when gradients are bounded.
  2. DaSHCo (Decentralized Stochastic Heavy-ball with Compressed Communication): By utilizing "Heavy-ball" momentum and Gradient Tracking, DaSHCo effectively manages data heterogeneity. Unlike DAMSCo, it does not require bounded gradients, though it necessitates two communication rounds per iteration to maintain stability.

Both algorithms employ "Choco-Gossip" style error compensation to prevent compression noise from accumulating and degrading model accuracy.

Comparison of decentralized optimization methods across key theoretical and practical properties.

Theoretical and Empirical Results

The proposed methods offer several key theoretical advantages:

  • Linear Speedup: Both algorithms achieve a convergence rate of $O(1/\sqrt{nT})$, meaning the error decreases linearly with the number of agents $n$.
  • Topology Independence: The learning rate remains effective regardless of the specific network structure (e.g., ring, grid, or fully connected), simplifying deployment.
  • Communication Efficiency: DAMSCo achieves adaptive updates with half the communication rounds required by previous state-of-the-art methods.

Experimental Validation

The algorithms were tested on three benchmarks: FashionMNIST (LeNet5), CIFAR-10 (Fixup-ResNet-20), and tiny-shakespeare (NanoGPT).

On the tiny-shakespeare dataset, DaSHCo achieved a validation loss of 1.620, outperforming other decentralized optimizers. Qualitative results showed that models trained with DaSHCo produced coherent text, whereas competitors often failed to converge to a readable output. Furthermore, the methods proved robust to high compression ratios, maintaining stability even when messages were compressed to 30-40% of their original size using Top-k operators.

Conclusion

DAMSCo and DaSHCo represent a significant step forward in efficient decentralized optimization. By successfully combining momentum, compression, and gradient tracking, these methods provide a robust solution for large-scale distributed training on heterogeneous data. Future work may focus on relaxing the bounded gradient assumption for DAMSCo and further reducing the communication rounds for gradient-tracking-based methods like DaSHCo.

Summary updated

BibTeX
@article{liu2025compressed,
  author = {Wei Liu and Anweshit Panda and Ujwal Pandey and Christopher Brissette and Yikang Shen and George M. Slota and Naigang Wang and Jie Chen and Yangyang Xu},
  title = {{Compressed Decentralized Momentum Stochastic Gradient Methods for Nonconvex Optimization}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=RqhMQHHkB4},
}
Figure