Tight Analysis of Decentralized SGD: A Markov Chain Perspective
Lucas Versini, Paul Mangold, Aymeric Dieuleveut
TL;DR
This work reframes Decentralized SGD as a Markov chain and shows it converges to a stationary distribution with a first-order bias that splits into a decentralization–heterogeneity term and a stochastic term. It derives explicit first-order expansions for the bias and variance, proving that the variance decreases with the number of clients and that topology affects only higher-order terms, yielding a linear speed-up without averaging. The authors provide non-asymptotic bounds and a Richardson–Romberg extrapolation method to cancel the leading bias, plus experiments validating the theory across various network topologies. Overall, the paper advances a precise, fixed-point view of DSGD under stochasticity and decentralization, with practical implications for speeding up decentralized training in less connected graphs.
Abstract
We propose a novel analysis of the Decentralized Stochastic Gradient Descent (DSGD) algorithm with constant step size, interpreting the iterates of the algorithm as a Markov chain. We show that DSGD converges to a stationary distribution, with its bias, to first order, decomposable into two components: one due to decentralization (growing with the graph's spectral gap and clients' heterogeneity) and one due to stochasticity. Remarkably, the variance of local parameters is, at the first-order, inversely proportional to the number of clients, regardless of the network topology and even when clients' iterates are not averaged at the end. As a consequence of our analysis, we obtain non-asymptotic convergence bounds for clients' local iterates, confirming that DSGD has linear speed-up in the number of clients, and that the network topology only impacts higher-order terms.
