[Paper Review] Asynchronous Decentralized SGD with Quantized and Local Updates
This paper proposes SwarmSGD, an asynchronous decentralized SGD algorithm that supports quantized communication, local steps, and non-blocking updates in a fully asynchronous gossip model. It proves convergence under heterogeneous data and topology, and demonstrates superior end-to-end training performance, rivaling large-batch SGD in practice while reducing communication costs significantly.
Decentralized optimization is emerging as a viable alternative for scalable distributed machine learning, but also introduces new challenges in terms of synchronization costs. To this end, several communication-reduction techniques, such as non-blocking communication, quantization, and local steps, have been explored in the decentralized setting. Due to the complexity of analyzing optimization in such a relaxed setting, this line of work often assumes \emph{global} communication rounds, which require additional synchronization. In this paper, we consider decentralized optimization in the simpler, but harder to analyze, \emph{asynchronous gossip} model, in which communication occurs in discrete, randomly chosen pairings among nodes. Perhaps surprisingly, we show that a variant of SGD called \emph{SwarmSGD} still converges in this setting, even if \emph{non-blocking communication}, \emph{quantization}, and \emph{local steps} are all applied \emph{in conjunction}, and even if the node data distributions and underlying graph topology are both \emph{heterogenous}. Our analysis is based on a new connection with multi-dimensional load-balancing processes. We implement this algorithm and deploy it in a super-computing environment, showing that it can outperform previous decentralized methods in terms of end-to-end training time, and that it can even rival carefully-tuned large-batch SGD for certain tasks.
Motivation & Objective
- To design a decentralized SGD algorithm that supports quantization, local steps, and non-blocking communication in an asynchronous setting.
- To prove convergence of such a method under heterogeneous data distributions and graph topologies.
- To eliminate the need for global synchronization rounds, which limit scalability in prior decentralized methods.
- To achieve better end-to-end training efficiency than existing decentralized and large-batch SGD approaches.
Proposed method
- SwarmSGD uses a shared communication buffer per node to store quantized model updates, enabling non-blocking, concurrent writes and reads.
- Each node performs H local gradient steps before communicating, reducing communication frequency and synchronization overhead.
- Nodes asynchronously pair with random neighbors, read quantized models from each other’s buffers, average them, and write the quantized average back to the neighbor’s buffer.
- The local model is updated using the averaged, quantized model, and the new model is then quantized and written to the node’s own buffer.
- The method relies on atomic read and write operations and a specific quantization scheme that preserves convergence despite quantization noise.
- A novel theoretical analysis connects the algorithm to multi-dimensional load-balancing processes to establish convergence under asynchrony and quantization.
Experimental results
Research questions
- RQ1Can decentralized SGD with quantization, local steps, and non-blocking communication converge in a fully asynchronous gossip model?
- RQ2How does the convergence behavior of such a method depend on data heterogeneity and network topology?
- RQ3Can the proposed method achieve better end-to-end training performance than synchronous or partially synchronized decentralized methods?
- RQ4What is the impact of communication frequency and quantization on training speed and model accuracy?
Key findings
- SwarmSGD achieves convergence in the asynchronous gossip model even with concurrent, non-blocking communication, quantization, and local steps.
- The method reduces communication cost by up to 50% compared to D-PSGD and SGP, with communication time remaining constant across node counts.
- On ResNet18/ImageNet, SwarmSGD matches the accuracy of large-batch SGD within 1% while reducing end-to-end training time.
- The quantized variant of SwarmSGD provides approximately 10% speedup with less than 0.3% drop in Top-1 accuracy on CIFAR-10.
- The method maintains convergence and accuracy even at 256 nodes, demonstrating strong scalability.
- Convergence is strongly correlated with the number of epochs per model, while the number of local steps has a weaker impact.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.