The Limits and Potentials of Local SGD for Distributed Heterogeneous Learning with Intermittent Communication
Kumar Kshitij Patel, Margalit Glasgow, Ali Zindari, Lingxiao Wang, Sebastian U. Stich, Ziheng Cheng, Nirmit Joshi, Nathan Srebro
TL;DR
This work investigates distributed optimization under intermittent communication, focusing on Local SGD and mini-batch SGD. It first proves that existing first-order heterogeneity assumptions are insufficient to guarantee Local SGD’s superiority, while showing mini-batch SGD to be min-max optimal under shared-optima conditions. The authors then introduce higher-order heterogeneity and smoothness assumptions, deriving upper bounds in which Local SGD can outperform mini-batch SGD when heterogeneity is low, and propose two-stage strategies to mitigate fixed-point issues. Together, these results illuminate the need for richer data-heterogeneity models and provide guidance on when and how Local SGD can be advantageous in practice. The findings have practical implications for designing distributed learning systems with heterogeneous data and limited communication budgets.
Abstract
Local SGD is a popular optimization method in distributed learning, often outperforming other algorithms in practice, including mini-batch SGD. Despite this success, theoretically proving the dominance of local SGD in settings with reasonable data heterogeneity has been difficult, creating a significant gap between theory and practice. In this paper, we provide new lower bounds for local SGD under existing first-order data heterogeneity assumptions, showing that these assumptions are insufficient to prove the effectiveness of local update steps. Furthermore, under these same assumptions, we demonstrate the min-max optimality of accelerated mini-batch SGD, which fully resolves our understanding of distributed optimization for several problem classes. Our results emphasize the need for better models of data heterogeneity to understand the effectiveness of local SGD in practice. Towards this end, we consider higher-order smoothness and heterogeneity assumptions, providing new upper bounds that imply the dominance of local SGD over mini-batch SGD when data heterogeneity is low.
