Distributed Gradient Descent with Many Local Steps in Overparameterized Models

Heng Zhu, Harsh Vardhan, Arya Mazumdar · Submission to ICLR 2025 · Rejected

TL;DR

Classical optimization theory warns that taking many local steps in distributed training (e.g., FedAvg/Local-GD) causes severe "client drift" when data is heterogeneous. This paper resolves the paradox of why Local-GD actually succeeds in modern overparameterized settings: by analyzing the implicit bias of gradient descent, the authors prove that running many local steps steers the aggregated model toward the exact same solution (or directional feasible set) as centralized training.

What Problem Does This Paper Address?

In distributed and federated learning (FL), nodes perform multiple local gradient descent steps before averaging their model weights to reduce expensive network communication. Standard convex optimization theory suggests that when client data is non-I.I.D. (heterogeneous), the number of local steps $L$ must remain small (often $L \le \mathcal{O}(\sqrt{T})$) to prevent models from diverging toward contradictory local minima.

However, practitioners routinely train overparameterized models—such as fine-tuning large language models—with hundreds of local steps (e.g., $L = 500$) without suffering performance collapse. The authors tackle this fundamental disconnect: Can we mathematically prove that Local-GD succeeds with arbitrarily many local steps when models are overparameterized, regardless of data heterogeneity?

Methods

The paper analyzes overparameterized linear models ($d \gg MN$, where $d$ is dimension, $M$ is the number of nodes, and $N$ is local sample count) through the lens of implicit bias:

  • Linear Regression (Squared Loss): Gradient descent on locally overparameterized linear systems implicitly finds the interpolator with the minimum Euclidean distance to the current global iterate. The authors derive a closed-form iteration for the aggregated global model and prove it converges to the centralized minimum $\ell_2$-norm solution.
  • Linear Classification (Exponential Loss): With an exponential loss and a vanishing $\ell_2$ regularizer ($\lambda \to 0$), local updates asymptotically solve local hard-margin Support Vector Machine (SVM) problems. The authors formalize Local-GD as an instance of the classical Parallel Projection Method (PPM)—an algorithm that iteratively projects points onto intersecting convex constraint sets.
  • Modified Local-GD: While vanilla PPM/Local-GD converges to some point in the global feasible set, the authors propose a modified aggregation scheme that anchors iterates toward the origin ($w_0^0 = 0$). This guarantees directional convergence to the centralized maximum-margin (SVM) solution.

Datasets

  • Synthetic Linear Regression: Gaussian data matrices ($X_i \sim \mathcal{N}(0, 1)$) and distinct local ground-truth vectors ($w_i^*$) evaluated under varying dimensions ($d \in [250, 2000]$) and communication rounds.
  • Synthetic Linear Classification: Linearly separable Gaussian feature vectors across 10 nodes, tested under both Gaussian shift and Dirichlet partitions ($\text{Dir}(\alpha)$ with $\alpha \in \{0.3, 0.5\}$) to induce extreme label heterogeneity.
  • Fine-Tuning Pretrained ResNet-50: The image representations of CIFAR-10 extracted from an ImageNet-pretrained ResNet-50 backbone. Only the final linear classification layer is fine-tuned across 10 nodes with highly skewed, non-I.I.D. class splits.

Key Insights and Ideas

  • Subspace Projections Eliminate Drift in Regression: In overparameterized regression, local updates act as orthogonal projections onto local data row spaces. Averaging local models repeatedly contracts the error strictly within the subspace spanned by all data matrices, driving the difference between the federated model and the centralized model to zero.
  • Federated Classification as Parallel Convex Feasibility: Rather than optimizing a single shared loss surface, Local-GD with many local steps iteratively projects onto the convex polyhedra representing each client's margin constraints. This bridges distributed machine learning with convex feasibility theory.
  • Anchoring Guarantees Centralized Equivalence: Vanilla FedAvg lands on an arbitrary interpolating separator within the global feasible margin. By adding a simple time-varying weighting factor ($\alpha_k = 1 - \frac{1}{k+1}$) toward the initial point ($w_0 = 0$), Modified Local-GD provably recovers the centralized maximum-margin direction.

Key Results

  • Exact Convergence in Regression: When initialized at $w_0 = 0$ with $d = 1500$ and 10 nodes ($MN = 500$), the normalized model difference between Local-GD and the centralized model converges monotonically to 0 as communication rounds $K$ increase. The generalization error matches the centralized benchmark once $d > MN$.
  • Margin Alignment in Classification: Under severe label heterogeneity ($\text{Dir}(0.3)$ and $\text{Dir}(0.5)$), the directional gap $\| \frac{w_{\text{global}}}{\|w_{\text{global}}\|} - \frac{w_{\text{central}}}{\|w_{\text{central}}\|} \|$ steadily decreases, achieving identical test accuracy ($\approx 64\%$) to the centralized SVM.
  • Deep Feature Adaptation: Fine-tuning the classification head of ResNet-50 on non-I.I.D. CIFAR-10 with $L=60$ local steps and $R=60$ rounds mirrored the theoretical findings: the directional distance between federated and centralized heads rapidly vanished to an error floor, achieving matching test accuracy ($\sim 70\%$).

Limitations and Future Work

  • Linear Models Only: The rigorous proofs rely on linear models (linear regression and linear separators). Although linear fine-tuning of neural networks was demonstrated empirically, end-to-end non-linear architectures (e.g., multi-layer MLPs or Transformers) are not covered by the current proof.
  • Separability Requirement: For classification, the global dataset must be linearly separable (a standard assumption in implicit bias literature, but restrictive in noisy real-world tasks).
  • Asymptotic Regime: Theoretical equivalence relies on clients training to exact local convergence ($L \to \infty$) with vanishing regularization ($\lambda \to 0$).
  • Future Directions: The authors propose extending the implicit bias analysis to deep matrix factorization and two-layer ReLU networks in distributed environments.

Summary updated

BibTeX
@misc{zhu2024distributed,
  author = {Heng Zhu and Harsh Vardhan and Arya Mazumdar},
  title = {{Distributed Gradient Descent with Many Local Steps in Overparameterized Models}},
  year = {2024},
  eprint = {2412.07971},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.07971},
}
Figure