Introduction
Federated Averaging (FedAvg), also known as Local Gradient Descent (Local-GD), is a cornerstone of distributed machine learning. By allowing compute nodes to perform multiple local updates before synchronizing with a central server, it significantly reduces communication overhead. However, classical optimization theory suggests a "client drift" problem: when local datasets are heterogeneous (non-i.i.d.), many local steps should lead to divergence or sub-optimal global models.
Despite these theoretical warnings, FedAvg is remarkably successful in training large-scale models like Large Language Models (LLMs). This paper provides a theoretical explanation for this success by analyzing Local-GD in the overparameterized regime, where the number of parameters far exceeds the total number of training samples.
The Challenge of Client Drift
In traditional optimization, client drift occurs because local gradients are biased toward local optima. If node $i$ and node $j$ have very different datasets, their local updates pull the global model in conflicting directions. Standard theory suggests that as the number of local steps increases, the error from this drift should grow, leading to an oscillating or poor global model.
The authors bridge the gap between this pessimistic theory and successful practice by asking: Can we establish rigorous conditions where Local-GD performs well with a very large number of local steps, regardless of data heterogeneity?
Methods and Theoretical Framework
The authors focus on the implicit bias of gradient descent. In overparameterized models ($d \gg MN$), there are infinitely many solutions that perfectly fit the training data. Gradient descent naturally gravitates toward specific solutions, such as the minimum-norm solution in linear regression or the max-margin solution in classification.
Linear Regression Analysis
For overparameterized linear regression, the authors derive a closed-form expression for the global model. They demonstrate that the difference between the global model and the centralized minimum-norm solution is iteratively projected onto the null space of the local data. Over multiple rounds, this difference is effectively "squeezed out," leading to exact convergence to the centralized solution.
Classification and Geometric Projection
In the context of classification, the authors link Local-GD to the Parallel Projection Method (PPM). This geometric algorithm finds a point in the intersection of multiple convex sets. Local-GD acts as an iterative process of projecting the model onto local "feasible sets" defined by the max-margin constraints of each node. The global model eventually converges to a point where all nodes' requirements are satisfied.
Modified Local-GD
While vanilla Local-GD performs well, the authors propose a refined version to guarantee convergence to the exact centralized max-margin solution in direction.
Algorithm 3 introduces a modified aggregation rule where the global update is scaled by a factor $\alpha^k$ that depends on the communication round. This adjustment ensures that the global model converges to the same "direction" as a centralized Support Vector Machine (SVM).
Key Results and Empirical Validation
The paper's theoretical contributions are validated by several key theorems:
- Theorem 1 (Regression): For overparameterized linear regression, the global model from Local-GD converges exactly to the centralized solution as the number of communication rounds $K \to \infty$.
- Theorem 2 (Classification): Vanilla Local-GD converges to a point within the global feasible set, satisfying all local constraints.
- Theorem 3 (Modified Local-GD): The proposed modified algorithm converges in direction to the centralized max-margin solution.
Experiments on synthetic high-dimensional Gaussian data and CIFAR-10 (using a ResNet50 backbone) confirm these findings. As model dimensionality $d$ increases, the performance gap between distributed and centralized training vanishes, highlighting overparameterization as the key driver of FedAvg's success.
Conclusion
This research highlights that overparameterization is a feature, not a bug, in distributed learning. By providing "room" for local updates to stay compatible with global optima, high dimensionality mitigates the effects of client drift. While the current theory focuses on linear models, it provides a crucial stepping stone toward understanding the success of FedAvg in deep learning and LLM training.
Summary updated