Decentralized Deep Learning Using Momentum-Accelerated Consensus

Aditya Balu, Zhanhong Jiang, Sin Yong Tan, Chinmay Hegde, Young M. Lee, Soumik SarkarICASSP 2020

Abstract: We consider the problem of decentralized deep learning where multiple agents collaborate to learn from a distributed dataset. While there exist several decentralized deep learning approaches, the majority consider a central parameter-server topology for aggregating the model parameters from the agents. However, such a topology may be inapplicable in networked systems such as ad-hoc mobile networks, field robotics, and power network systems where direct communication with the central parameter server may be inefficient. In this context, we propose and analyze a novel decentralized deep learning algorithm where the agents interact over a fixed communication topology (without a central server). Our algorithm is based on the heavy-ball acceleration method used in gradient-based optimization. We propose a novel consensus protocol where each agent shares with its neighbors its model parameters as well as gradient-momentum values during the optimization process. We consider both strongly convex and non-convex objective functions and theoretically analyze our algorithm's performance. We present several empirical comparisons with competing decentralized learning methods to demonstrate the efficacy of our approach under different communication topologies.

Introduction

Distributed deep learning typically relies on a centralized "parameter-server" architecture. While effective, this setup introduces communication bottlenecks and single points of failure, making it unsuitable for decentralized environments like mobile ad-hoc networks or field robotics. Decentralized learning addresses this by requiring nodes to communicate only with immediate neighbors. However, integrating momentum—a standard technique for accelerating convergence—into decentralized, stochastic, and nonconvex settings has historically lacked rigorous theoretical backing. This paper introduces Decentralized Momentum SGD (DMSGD), a novel algorithm that bridges this gap by allowing agents to share both model parameters and momentum values.

The DMSGD Algorithm

DMSGD adapts the classical "heavy-ball" momentum method for peer-to-peer networks. Each node in the network performs three primary operations per iteration:

  1. Consensus Step: Nodes average their local model parameters with those of their neighbors.
  2. Momentum Step: A weighted momentum term is calculated using a novel parameter, $\omega$. This parameter controls the trade-off between a node's local momentum history and the neighborhood's consensus momentum.
  3. Local Gradient Step: The model is updated using local stochastic gradients.

The theoretical contribution of this work is significant. As shown in the comparison table below, DMSGD is one of the few methods to provide convergence guarantees for nonconvex objective functions while incorporating both stochasticity and momentum in a decentralized setting.

Theoretical comparison of DMSGD with existing centralized and decentralized optimization methods.

Key Insights: Linear Speedup and Topology

A core finding is that DMSGD achieves a linear speedup. In the nonconvex case, the algorithm converges at a rate of $O(1/K + 1/\sqrt{NK})$, where $N$ is the number of agents. This implies that increasing the number of nodes effectively reduces the variance of the stochastic gradients, accelerating the overall training process.

The parameter $\omega$ serves as a critical tuning knob. While setting $\omega=1$ mimics standard decentralized momentum, lower values (or adaptive schemes) can improve stability, particularly when data is non-identically distributed (non-iid) across the network. Furthermore, the network's topology—its "connectedness"—plays a vital role. More densely connected graphs reach consensus faster, leading to superior convergence rates compared to sparse topologies like rings.

Empirical Results

The researchers evaluated DMSGD on standard benchmarks including CIFAR-10 and MNIST, testing both iid and non-iid data distributions.

Performance of DMSGD across different momentum weights (ω) and network topologies.

As illustrated in the experimental results:

  • Hyperparameter Sensitivity: Subplots (a) and (b) demonstrate how varying $\omega$ and the momentum coefficient $\beta$ affects accuracy. DMSGD consistently outperforms the baseline CDSGD (Communication-Efficient Decentralized SGD).
  • Topology Impact: Subplot (c) highlights the performance drop in sparse topologies. Notably, the "Bipartite" graph shows a sharp decline in accuracy after a certain number of epochs, emphasizing the importance of network connectivity for stable consensus.
  • Robustness: DMSGD maintains higher accuracy in non-iid scenarios where traditional decentralized methods often fail to converge effectively. The consensus mechanism also appears to provide a generalization benefit, likely by steering the optimization toward flatter, more robust minima.

Conclusion and Future Directions

DMSGD provides a mathematically grounded and empirically robust framework for decentralized deep learning with momentum. While the algorithm shows great promise, its sensitivity to hyperparameters like $\omega$ suggests that automated tuning or adaptive schedules are important areas for future study. Additionally, extending this framework to Nesterov Accelerated Gradient (NAG) and incorporating variance reduction techniques could further push the boundaries of decentralized optimization speed.

Summary updated

BibTeX
@inproceedings{balu2020decentralized,
  author = {Aditya Balu and Zhanhong Jiang and Sin Yong Tan and Chinmay Hegde and Young M. Lee and Soumik Sarkar},
  title = {{Decentralized Deep Learning Using Momentum-Accelerated Consensus}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2020},
  url = {https://openreview.net/forum?id=FQpiBO7xMVV},
}
Figure