NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Unified Linear Speedup Analysis of Federated Averaging and Nesterov FedAvg

Zhaonan Qu, Kaixiang Lin, Zhaojian Li, Jiayu Zhou, Zhengyuan Zhou

TL;DR

This paper provides a unified theoretical analysis of Federated Averaging (FedAvg) and its Nesterov accelerated variant, establishing linear speedup guarantees for both algorithms under non-i.i.d. data and partial device participation. This work clarifies how convergence scales with the number of participating devices, offering crucial insights for designing more efficient federated learning systems.

What Problem Does This Paper Address?

Federated Learning (FL) enables collaborative model training across decentralized devices without sharing private data. However, its effectiveness is challenged by two key issues: data heterogeneity (non-i.i.d. data distributions across devices) and system heterogeneity (partial device participation due to varying network conditions or device availability). Understanding how popular FL algorithms like FedAvg converge under these realistic conditions, especially how their performance scales with the number of participating devices, is crucial for building practical FL systems. While prior work has analyzed FedAvg under some of these conditions, a unified analysis that simultaneously addresses both data and system heterogeneity, and extends to accelerated variants, has been lacking. This paper aims to fill this gap by providing a comprehensive theoretical framework for analyzing FedAvg's convergence and its linear speedup properties.

Methods

The authors present a unified theoretical framework to analyze the convergence of FedAvg and its Nesterov accelerated variant. Their approach involves:

  • Unified Analysis: Developing a single analytical framework that can handle both data heterogeneity (non-i.i.d. data) and system heterogeneity (partial participation) simultaneously.
  • Linear Speedup Guarantees: Establishing theoretical convergence rates that demonstrate a linear speedup with respect to the number of participating devices (K) and local steps (T). This means that doubling the number of participating devices (or local steps) can halve the convergence time, a highly desirable property for distributed systems.
  • Nesterov Acceleration: Extending the analysis to Nesterov accelerated FedAvg, providing the first linear speedup guarantees for momentum variants of FedAvg in convex settings.
  • Overparameterized Settings: Analyzing the geometric convergence of FedAvg in overparameterized scenarios, showing that it can achieve linear speedup while preserving geometric convergence.
  • Technical Innovations: Employing novel proof techniques and recursive contraction bounds to derive these guarantees, improving upon existing analyses by addressing the complexities introduced by partial participation and momentum updates.

Datasets

The paper uses synthetic datasets and a real-world dataset for experimental validation:

  • Synthetic Datasets:
    • Regularized binary logistic regression (for strongly convex objectives).
  • Binary logistic regression without regularization (for convex smooth objectives).
  • Linear regression (for overparameterized objectives).
  • Real-world Dataset:
    • w8a dataset: A small-scale dataset (n=49749 samples, d=300 features) used for experiments, characterized by sparse binary features.

Key Insights and Ideas

  • Linear Speedup is Achievable: The paper demonstrates that both standard FedAvg and its Nesterov accelerated version can achieve linear speedup in the number of participating devices, even under challenging conditions like non-i.i.d. data and partial participation. This is a significant finding, as it suggests that FL systems can scale efficiently by simply adding more participating devices.
  • Distinction in Communication Efficiency: The analysis highlights a key difference in communication efficiency between full and partial participation. For full participation, the number of local steps (E) can be increased to reduce communication rounds without degrading linear speedup. However, for partial participation, E must be kept small (O(1)) to maintain linear speedup due to sampling variance.
  • Nesterov Acceleration Benefits: While Nesterov acceleration doesn't improve the rate of convergence with respect to the number of local steps (T) compared to standard SGD, it does provide empirical performance benefits and, importantly, also achieves linear speedup in the number of participating devices under the analyzed settings.
  • Overparameterization Preserves Speedup: The paper shows that FedAvg can achieve geometric convergence in overparameterized settings while still exhibiting linear speedup, a valuable property for modern deep learning models.
  • Impact of Device Imbalance: The analysis reveals that linear speedup is guaranteed when the device weights (proportions of data) are balanced (vmax = O(1)). However, if a few devices dominate the objective (max pk = Θ(1)), this can hinder linear speedup, a phenomenon observed empirically.

Key Results

The paper provides theoretical convergence rates for FedAvg and Nesterov accelerated FedAvg, summarized below:

  • FedAvg (Strongly Convex): Achieves an $O(1/KT)$ convergence rate for the optimality gap.
  • FedAvg (Convex): Achieves an $O(1/\sqrt{KT})$ convergence rate for the optimality gap.
  • Nesterov Accelerated FedAvg (Strongly Convex): Achieves an $O(1/KT)$ convergence rate.
  • Nesterov Accelerated FedAvg (Convex): Achieves an $O(1/\sqrt{KT})$ convergence rate.
  • FedAvg (Overparameterized): Achieves geometric convergence with linear speedup.
  • Empirical Validation: Numerical experiments on synthetic and real-world datasets (w8a) confirm the theoretical findings, showing that the number of iterations decreases as the number of active workers increases, demonstrating linear speedup.

Limitations and Future Work

  • Non-adversarial Assumption: The current analysis assumes participating devices are non-adversarial. Future work could investigate the robustness of these algorithms to malicious devices that might poison the learning process.
  • Generalization to Non-convex: While the paper focuses on convex and overparameterized settings, extending the unified linear speedup analysis to general non-convex objectives remains an important direction.
  • Other Acceleration Techniques: Exploring other acceleration techniques beyond Nesterov's method in the federated setting could yield further improvements.
  • Practical Implementations: Investigating how these theoretical results translate to practical FL deployments with more complex system dynamics and communication protocols would be valuable.
  • New FL Regimes: The authors mention exploring new FL regimes like "anarchic federated learning," where local devices have more freedom, as a future research avenue.

Summary updated

BibTeX
@article{qu2023unified,
  author = {Zhaonan Qu and Kaixiang Lin and Zhaojian Li and Jiayu Zhou and Zhengyuan Zhou},
  title = {{A Unified Linear Speedup Analysis of Federated Averaging and Nesterov FedAvg}},
  journal = {J. Artif. Intell. Res.},
  year = {2023},
  doi = {10.1613/jair.1.15180},
}
Figure