20
0

The Effectiveness of Local Updates for Decentralized Learning under Data Heterogeneity

Abstract

We revisit two fundamental decentralized optimization methods, Decentralized Gradient Tracking (DGT) and Decentralized Gradient Descent (DGD), with multiple local updates. We consider two settings and demonstrate that incorporating K>1K > 1 local update steps can reduce communication complexity. Specifically, for μ\mu-strongly convex and LL-smooth loss functions, we proved that local DGT achieves communication complexity O~(LμK+δμ(1ρ)+ρ(1ρ)2L+δμ)\tilde{\mathcal{O}} \Big(\frac{L}{\mu K} + \frac{\delta}{\mu (1 - \rho)} + \frac{\rho }{(1 - \rho)^2} \cdot \frac{L+ \delta}{\mu}\Big), where ρ\rho measures the network connectivity and δ\delta measures the second-order heterogeneity of the local loss. Our result reveals the tradeoff between communication and computation and shows increasing KK can effectively reduce communication costs when the data heterogeneity is low and the network is well-connected. We then consider the over-parameterization regime where the local losses share the same minimums, we proved that employing local updates in DGD, even without gradient correction, can yield a similar effect as DGT in reducing communication complexity. Numerical experiments validate our theoretical results.

View on arXiv
Comments on this paper