Abstract
Training massive Deep Neural Networks (DNNs) requires efficient distribution across multiple GPUs. While decentralized asynchronous algorithms mitigate the "straggler problem" and central server bottlenecks, they often suffer from high communication costs and slow convergence on sparse network topologies. This paper introduces $A^2CiD^2$, which utilizes a continuous local momentum variable to accelerate consensus. Our method effectively doubles communication efficiency without additional overhead, enabling up to 64 GPUs to train large-scale models like ImageNet with significantly higher accuracy and minimal idle time compared to existing asynchronous baselines.
Introduction
The scalability of deep learning is frequently limited by the communication overhead inherent in distributed training. Traditional synchronous, centralized approaches require all workers to wait for the slowest participant (the straggler problem) and communicate with a central parameter server, creating significant bottlenecks at scale. Decentralized asynchronous algorithms offer a promising alternative by allowing workers to communicate only with neighbors via gossip protocols without waiting for global synchronization. However, these methods often converge slowly, particularly on challenging network topologies like ring graphs where information propagation is delayed.
Methodology: The $A^2CiD^2$ Framework
The core innovation of $A^2CiD^2$ (Accelerating Asynchronous Communication in Decentralized Deep Learning) is the introduction of a continuous local momentum variable. Unlike standard optimizer momentum used to navigate loss landscapes, this "mixing momentum" is specifically designed to accelerate the consensus process—the rate at which distributed workers agree on model parameters.
Continuized Acceleration
The authors model the training process using Stochastic Differential Equations (SDEs), allowing the application of "Chebyshev-like" acceleration to a randomized, asynchronous environment. This mathematical framework provides the theoretical basis for the observed speedup in convergence.
Two-Thread Architecture
To maximize hardware utilization, $A^2CiD^2$ employs a decoupled architecture:
- Computation Thread: Continuously calculates gradients locally.
- Communication Thread: Performs peer-to-peer averaging with available neighbors in parallel.
This decoupling eliminates synchronization locks, ensuring that GPUs remain active rather than idling. The implementation is lightweight, requiring only one additional local variable per worker to track momentum.
Key Insights and Results
The empirical evaluation of $A^2CiD^2$ on CIFAR-10 and ImageNet benchmarks reveals several critical advantages over state-of-the-art asynchronous methods.
The "Virtual Doubling" Effect
A primary finding is that the inclusion of the $A^2CiD^2$ momentum variable provides a performance boost equivalent to doubling the physical communication rate of the network. As shown in Figure 1, a configuration with one communication per gradient step using $A^2CiD^2$ performs similarly to a configuration with two communications per step without it.
Scaling and Accuracy on ImageNet
On the ImageNet dataset using 64 NVIDIA A100 GPUs in a ring topology, $A^2CiD^2$ achieved a 4% absolute accuracy improvement over standard asynchronous baselines. The method maintains competitive performance with synchronous All-Reduce while avoiding the latency penalties typically associated with large-scale synchronization.
Consensus Speed
Theoretical analysis and empirical tracking of the "consensus distance" ($l_2$ distance between worker models) confirm that $A^2CiD^2$ facilitates much faster agreement across the network. This rapid consensus is vital for maintaining model consistency in poorly connected topologies.
Conclusion and Future Work
$A^2CiD^2$ represents a significant advancement in decentralized deep learning, offering a simple yet effective way to overcome communication bottlenecks. By decoupling computation from communication and utilizing continuous momentum, it achieves high efficiency and accuracy on large-scale tasks. Future research will explore the algorithm's robustness to non-IID data distributions common in Federated Learning and its performance in heterogeneous hardware environments where compute power varies significantly across workers.
Summary updated