Compressed Decentralized Momentum Stochastic Gradient Methods for Nonconvex Optimization

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

Abstract

In this paper, we design two compressed decentralized algorithms for solving nonconvex stochastic optimization under two different scenarios. Both algorithms adopt a momentum technique to achieve fast convergence and a message-compression technique to save communication costs. Though momentum acceleration and compressed communication have been used in literature, it is highly nontrivial to theoretically prove the effectiveness of their composition in a decentralized algorithm that can maintain the benefits of both sides, because of the need to simultaneously control the consensus error, the compression error, and the bias from the momentum gradient.

For the scenario where gradients are bounded, our proposal is a compressed decentralized adaptive method. To the best of our knowledge, this is the first decentralized adaptive stochastic gradient method with compressed communication. For the scenario of data heterogeneity without bounded gradients, our proposal is a compressed decentralized heavy-ball method, which applies a gradient tracking technique to address the challenge of data heterogeneity. Notably, both methods achieve an optimal convergence rate, and they can achieve linear speed up and adopt topology-independent algorithmic parameters within a certain regime of the user-specified error tolerance. Superior empirical performance is observed over state-of-the-art methods on training deep neural networks (DNNs) and Transformers.

Introduction

Decentralized optimization involves a network of agents working collaboratively to train a model without a central coordinator. This paradigm is increasingly relevant for large-scale machine learning but faces two primary challenges: communication bottlenecks and data heterogeneity. Sending full model updates between agents is bandwidth-intensive, and non-i.i.d. data distributions across nodes can lead to algorithmic divergence.

While momentum (for acceleration) and compression (for efficiency) are well-studied individually, combining them in a decentralized setting is mathematically complex. The interaction between compression noise and momentum bias can destabilize convergence. This work introduces two algorithms, DAMSCo and DaSHCo, that successfully integrate these techniques to achieve optimal convergence and linear speedup.

Proposed Algorithms: DAMSCo and DaSHCo

The authors propose two distinct methods tailored to different optimization constraints:

  • DAMSCo (Decentralized AMSGrad with Compressed communication): This is the first decentralized adaptive method (similar to Adam/AMSGrad) to support message compression. It is optimized for scenarios with bounded gradients and requires only one round of communication per update.
  • DaSHCo (Decentralized Stochastic Heavy-ball with Compressed communication): Utilizing a "Heavy-ball" momentum approach paired with gradient tracking, this method is designed for extreme data heterogeneity. Gradient tracking allows agents to estimate the global gradient direction even when local data is highly skewed.

Both algorithms utilize a "Choco-Gossip" communication protocol, where agents transmit compressed differences between states rather than full model parameters, significantly reducing bandwidth requirements.

Comparison of the proposed DAMSCo and DaSHCo algorithms against state-of-the-art decentralized methods across various performance metrics.

Theoretical Contributions

The core theoretical advancement of this work is a Lyapunov function analysis that simultaneously manages three error sources: consensus error (agent divergence), compression error (quantization noise), and momentum bias. Key theoretical findings include:

  1. Linear Speedup: The methods achieve linear speedup, meaning that doubling the number of agents can theoretically halve the time to reach a target accuracy, despite lossy compression.
  2. Topology Independence: Within specific error tolerance regimes, the algorithms can utilize the same learning rate regardless of the network's connection topology.
  3. Optimal Convergence: Both methods maintain optimal convergence rates for nonconvex optimization while drastically reducing communication overhead.

Experimental Results

The researchers evaluated DAMSCo and DaSHCo across several benchmarks, including FashionMNIST (LeNet5), CIFAR-10 (Fixup-ResNet-20), and Tiny-Shakespeare (NanoGPT).

  • Efficiency and Convergence: On CIFAR-10, the proposed methods converged significantly faster than existing decentralized baselines like CDProxSGT.
  • Robustness to Heterogeneity: In non-i.i.d. settings (where agents only see a subset of classes), standard adaptive methods often failed. DaSHCo, however, reached high accuracy due to its gradient tracking mechanism.
  • Transformer Performance: When training NanoGPT, DAMSCo and DaSHCo achieved validation losses between 1.62 and 1.64, outperforming CDProxSGT (2.32). Qualitatively, the text generated by the proposed methods was coherent, whereas the competitor produced largely unintelligible output.

Conclusion and Limitations

This work demonstrates that momentum and compression can be effectively combined in decentralized environments to provide both speed and communication efficiency. While DAMSCo currently relies on a bounded gradient assumption, and decentralized adaptive methods remain sensitive to hyperparameter tuning at scale, these algorithms represent a significant step forward for decentralized deep learning. Future research will explore scaling these effects to massive systems with thousands of nodes.

Summary updated

BibTeX
@article{liu2025compressed,
  author = {Wei Liu and Anweshit Panda and Ujwal Pandey and Christopher Brissette and Yikang Shen and George 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