Efficient Asynchronous Federated Learning with Prospective Momentum Aggregation and Fine-Grained Correction

Yu Zang, Zhe Xue, Shilong Ou, Lingyang Chu, Junping Du, Yunfei LongAAAI 2024

Abstract

Asynchronous federated learning (AFL) is a distributed machine learning technique that allows multiple devices to collaboratively train deep learning models without sharing local data. However, AFL suffers from low efficiency due to poor client model training quality and slow server model convergence speed, which are a result of the heterogeneous nature of both data and devices. To address these issues, we propose Efficient Asynchronous Federated Learning with Prospective Momentum Aggregation and Fine-Grained Correction (FedAC). Our framework consists of three key components: client weight evaluation based on temporal gradient, adaptive server update with prospective weighted momentum, and client update with fine-grained gradient correction. Experimental results demonstrate effective improvements in model training efficiency and AFL performance by our framework.

Introduction

Federated Learning (FL) enables collaborative model training across decentralized devices while preserving data privacy. While synchronous FL is common, it often faces bottlenecks due to "stragglers"—slow devices that delay the entire training round. Asynchronous Federated Learning (AFL) mitigates this by allowing clients to contribute updates as soon as they are ready.

However, AFL introduces two primary challenges:

  1. Device Heterogeneity (Staleness): Updates from slower devices may be based on outdated global models, potentially hindering convergence.
  2. Data Heterogeneity (Client Drift): Non-IID data distributions across clients cause local models to diverge from the global objective.

Existing solutions often address these issues in isolation or use coarse-grained adjustments. We propose FedAC, a comprehensive framework designed to optimize AFL through sophisticated weighting and correction mechanisms.

The FedAC Framework

FedAC integrates three novel components to enhance training efficiency:

1. Temporal Gradient-Based Weight Evaluation

Rather than penalizing updates solely based on their age (time-based staleness), FedAC evaluates the quality of an update. It uses cosine similarity to measure how well a client's update direction aligns with the recent trajectory of the global model. Updates that align well are weighted more heavily, regardless of their "age."

2. Prospective Weighted Momentum

The server employs a buffered update strategy combined with a prospective momentum approach inspired by the Nadam optimizer. By "looking ahead" and using an adaptive learning rate, the server stabilizes the global model's path, significantly accelerating convergence.

3. Fine-Grained Gradient Correction

To mitigate client drift, FedAC applies a correction term at every step of local stochastic gradient descent (SGD). This fine-grained approach ensures that local training remains aligned with the global objective throughout the entire local epoch, rather than just adjusting the final model state.

Experimental Evaluation

We evaluated FedAC on three standard benchmarks: CIFAR-10 (image classification), EMNIST-L (handwritten letters), and Shakespeare (language modeling). These datasets were tested under varying degrees of data heterogeneity (non-IID) using Dirichlet distributions.

Performance and Efficiency

FedAC consistently outperformed baselines such as FedAvg, FedBuff, and FedAsync in both convergence speed and final accuracy.

Convergence curves across CIFAR-10, EMNIST-L, and Shakespeare datasets. FedAC (brown line) demonstrates faster and more stable accuracy gains compared to other methods.

As shown in the convergence plots, FedAC reaches higher accuracy levels with fewer communication rounds. Quantitatively, the efficiency gains are substantial:

Comparison of communication trips required to reach target accuracy. FedAC significantly reduces the number of trips, achieving up to a 5.8x speedup on the Shakespeare dataset.

On the Shakespeare dataset, FedAC reached the target accuracy 5.8x faster than FedAsync. In highly heterogeneous settings ($\alpha=0.1$), FedAC achieved 70.6% accuracy on CIFAR-10, significantly surpassing FedBuff's 63.1%.

Discussion and Conclusion

FedAC demonstrates that prioritizing update direction over age and applying fine-grained local corrections can drastically improve AFL performance. While the framework introduces a slight communication overhead due to the correction terms, the massive reduction in total communication rounds (trips) makes it highly efficient for real-world deployments. Future work will explore the sensitivity of the buffer size $|B|$ across diverse hardware environments and provide deeper theoretical convergence bounds for the Nadam-correction synergy.

Summary updated

BibTeX
@inproceedings{zang2024efficient,
  author = {Yu Zang and Zhe Xue and Shilong Ou and Lingyang Chu and Junping Du and Yunfei Long},
  title = {{Efficient Asynchronous Federated Learning with Prospective Momentum Aggregation and Fine-Grained Correction}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=eAjZEWbZmG},
}
Figure