Abstract
Decentralized optimization is a key technique for scaling deep learning, yet adaptive gradient methods like Adam and AMSGrad have lacked robust decentralized counterparts. This work introduces a unifying framework for decentralized adaptive methods that ensures convergence by maintaining consensus on adaptive learning rates across nodes. We prove that without this consensus, algorithms like DADAM can fail to converge. Our proposed Decentralized AMSGrad achieves a linear speedup and demonstrates superior performance on heterogeneous datasets compared to standard decentralized SGD.
Introduction
In modern deep learning, training is often distributed across many machines. Traditionally, this relies on a central parameter server to collect and redistribute updates. However, as the number of workers grows, this central hub becomes a massive communication bottleneck. Decentralized training solves this by removing the server; instead, each node only communicates with its immediate neighbors in a graph.
While Decentralized Stochastic Gradient Descent (D-PSGD) is well-studied, adaptive methods like Adam or AdaGrad are much harder to decentralize. These methods adjust learning rates per-parameter based on past gradients. If nodes in a decentralized network have different data, their local adaptive learning rates will drift apart. Previous attempts, such as DADAM, can fail to converge to a correct solution because of this "rate divergence."
Methods: Adaptive Learning Rate Consensus
The authors propose a unifying framework to convert centralized adaptive methods into decentralized ones. The "secret sauce" is adaptive learning rate consensus. In standard decentralized algorithms, nodes perform a weighted average of their model parameters ($x$) with their neighbors. Crucially, this new framework also performs an average consensus on the second-moment estimates (the $v$ terms in Adam/AMSGrad). This ensures that all nodes eventually agree on how to scale their gradient updates.
As shown in Algorithm 1, DADAM updates local parameters without a dedicated consensus step for the adaptive rates. In contrast, the proposed framework in Algorithm 2 introduces specific steps for rate consensus to prevent divergence.
The framework is designed to overlap gradient computation with communication, minimizing the idle time machines spend waiting for data. The authors specifically derive and analyze Decentralized AMSGrad and Decentralized AdaGrad as primary examples of this framework.
Key Insights and Theoretical Results
- The Consensus Requirement: For adaptive methods to work in a peer-to-peer network, nodes must reach a consensus on the geometry of the optimization landscape (the adaptive rates), not just the current position (the weights).
- Failure of DADAM: The paper provides a rigorous proof showing that without rate consensus, an algorithm can converge to a point that is not a stationary point of the loss function.
- Linear Speedup: Theoretical analysis shows that the convergence rate improves as more nodes ($N$) are added. Specifically, the error term scales with $1/\sqrt{TN}$, meaning that doubling the nodes and iterations effectively cuts the error bound.
Empirical Evaluation
The researchers evaluated their algorithms using the MNIST dataset on a CNN with three convolution layers. They tested both homogeneous (shuffled data) and heterogeneous (non-IID data) distributions.
In experiments on heterogeneous data, Decentralized AMSGrad achieved the best training loss and testing accuracy. It was found to be much less sensitive to hyperparameter tuning compared to standard D-PSGD. Conversely, on non-uniform data, the previous state-of-the-art (DADAM) showed significant performance deterioration, confirming the theoretical warnings regarding rate divergence.
Conclusion and Future Work
This work provides the first convergence rate for a decentralized adaptive method (AMSGrad), proving it reaches a stationary point at a rate of $O(\sqrt{d}/\sqrt{T})$. While the framework is robust, it doubles the communication volume per step to maintain rate consensus. Future research into compressed or quantized versions of this framework could further optimize communication efficiency for large-scale deployments.
Summary updated