SCAFFOLD: Stochastic Controlled Averaging for Federated Learning
Sai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Sashank J. Reddi, Sebastian U. Stich, Ananda Theertha Suresh
TL;DR
Federated learning with FedAvg struggles on heterogeneous data due to client-drift, slowing convergence and increasing communication. The paper introduces SCAFFOLD, which uses a server control variate $\bm{c}$ and per-client variates $\bm{c}_i$ to correct local update drift, achieving convergence rates on par with or faster than SGD and demonstrating robustness to client sampling. In quadratics, the method can exploit Hessian similarity $\delta$ to further reduce rounds, with an optimal local-step count near $K \approx \beta/\delta$; substantial theoretical guarantees cover strongly convex, convex, and non-convex cases. Empirical results on simulated data and EMNIST show SCAFFOLD consistently outperforms SGD, FedAvg, and FedProx, especially as data heterogeneity grows or similarity increases, highlighting the practical impact for communication-efficient federated learning.
Abstract
Federated Averaging (FedAvg) has emerged as the algorithm of choice for federated learning due to its simplicity and low communication cost. However, in spite of recent research efforts, its performance is not fully understood. We obtain tight convergence rates for FedAvg and prove that it suffers from `client-drift' when the data is heterogeneous (non-iid), resulting in unstable and slow convergence. As a solution, we propose a new algorithm (SCAFFOLD) which uses control variates (variance reduction) to correct for the `client-drift' in its local updates. We prove that SCAFFOLD requires significantly fewer communication rounds and is not affected by data heterogeneity or client sampling. Further, we show that (for quadratics) SCAFFOLD can take advantage of similarity in the client's data yielding even faster convergence. The latter is the first result to quantify the usefulness of local-steps in distributed optimization.
