Federated Learning With Nesterov Accelerated Gradient

Zhengjie Yang, Wei Bao, Dong Yuan, Nguyen Hoang Tran, Albert Y. Zomaya · DOI

TL;DR

This paper introduces FedNAG, a novel federated learning algorithm that incorporates Nesterov Accelerated Gradient (NAG) into both worker-level updates and the global aggregation process. FedNAG significantly improves convergence speed and accuracy compared to standard FedAvg, demonstrating its effectiveness in accelerating distributed model training.

What Problem Does This Paper Address?

Federated Learning (FL) enables collaborative training of machine learning models across decentralized devices without sharing raw data. However, traditional FL algorithms like FedAvg, which rely on basic gradient descent, can be slow to converge, especially in resource-constrained edge computing environments. While momentum techniques are known to accelerate convergence in centralized settings, their application and benefits in FL, particularly with advanced methods like Nesterov Accelerated Gradient (NAG), have not been fully explored or quantified. This paper aims to bridge this gap by proposing and analyzing FedNAG, a federated learning approach that leverages the power of NAG.

Methods

The core innovation of this paper is the FedNAG algorithm. It extends the standard federated learning framework by:

  • Worker-level NAG: Each worker applies NAG to update its local model parameters. This means that instead of just considering the current gradient, workers also incorporate a "lookahead" step based on the momentum term, leading to more informed local updates.
  • Aggregator-level NAG momentum: The aggregator not only averages the model weights from workers but also aggregates their momentum terms. This aggregated momentum is then redistributed to the workers, further accelerating the global convergence.

The authors also provide a detailed theoretical convergence analysis of FedNAG, comparing it to FedAvg. This analysis involves bounding the gap between FedNAG's weights and hypothetical "virtual" centralized NAG updates, and then bounding the loss function's gap to the optimal solution.

Datasets

The paper utilizes the following standard datasets for evaluation:

  • MNIST: For image classification of handwritten digits.
  • CIFAR-10: For image classification with 10 classes.
  • CIFAR-100: For image classification with 100 classes.

These datasets are used with various models, including linear regression, logistic regression, CNNs, and DNNs (specifically VGG16).

Key Insights and Ideas

  • NAG's Advantage in FL: The research demonstrates that the benefits of Nesterov Accelerated Gradient, well-established in centralized learning, translate effectively to the federated setting, leading to faster convergence and improved accuracy.
  • Dual Application of NAG: Applying NAG at both the worker and aggregator levels is crucial. Worker-level NAG provides more efficient local updates, while aggregator-level momentum aggregation helps to smooth out the distributed updates and accelerate global convergence.
  • Trade-off Between Communication and Convergence: The study highlights that while more frequent global aggregations (smaller $\tau$) generally lead to better convergence, they also increase communication overhead. This suggests an inherent trade-off that needs to be considered in practical FL deployments.
  • Robustness to Non-IID Data: FedNAG shows improved performance over FedAvg and FedMom even under non-independent and identically distributed (non-IID) data conditions, which are common in real-world FL scenarios.

Key Results

  • Accuracy Improvement: FedNAG consistently increased learning accuracy by 3-24% compared to benchmark algorithms like FedAvg and FedMom across various models and datasets.
  • Time Reduction: The algorithm significantly decreased total training time, achieving reductions of 11-70% compared to benchmarks. This is a critical finding for edge computing environments with limited resources.
  • Theoretical Guarantees: The paper provides a theoretical convergence analysis showing that FedNAG outperforms FedAvg under certain conditions, particularly when the learning step size is sufficiently small.
  • Performance under Non-IID Data: FedNAG demonstrated superior performance compared to FedAvg and FedMom even with high levels of non-IID data.

Limitations and Future Work

  • Optimal Trade-off: The paper acknowledges that while it demonstrates the benefits of FedNAG, it does not explicitly model the costs and utilities of communication overhead versus convergence performance to find the optimal trade-off. This is left as a direction for future work.
  • Impact of $\eta$ Threshold: The theoretical analysis for FedNAG outperforming FedAvg holds when the learning step size $\eta$ is sufficiently small. The paper mentions a threshold value $\tilde{\eta}$ for $\eta$, and calculating this value numerically could be a future research direction.
  • Generalization to Other Models: While tested on several models, further exploration of FedNAG's performance on a wider range of complex deep learning architectures and tasks could be beneficial.

Summary updated

BibTeX
@article{yang2022federated,
  author = {Zhengjie Yang and Wei Bao and Dong Yuan and Nguyen Hoang Tran and Albert Y. Zomaya},
  title = {{Federated Learning With Nesterov Accelerated Gradient}},
  journal = {IEEE Trans. Parallel Distributed Syst.},
  year = {2022},
  doi = {10.1109/tpds.2022.3206480},
}
Figure