FedStaleWeight: Buffered Asynchronous Federated Learning with Fair Aggregation via Staleness Reweighting

Jeffrey Ma, Alan Tu, Yiling Chen, Vijay Janapa ReddiarXiv 2024 · DOI

Abstract

Asynchronous Federated Learning (AFL) mitigates the "straggler" problem in distributed training by allowing the server to update the global model without waiting for all participants. However, this often results in a fairness gap where the global model becomes biased toward high-throughput (fast) devices, potentially ignoring unique data from slower edge devices. We propose FedStaleWeight, a novel aggregation algorithm that utilizes update "staleness" to fairly weight contributions. By upweighting updates from slower agents, FedStaleWeight achieves higher accuracy and better representation across non-IID datasets. Crucially, the weighting function is designed to be strategy-proof, ensuring that fast devices are not incentivized to intentionally slow down.

Introduction

Federated Learning (FL) enables training models on decentralized data residing on edge devices like smartphones while maintaining data privacy. Traditional synchronous FL (e.g., FedAvg) requires the server to wait for all selected devices to complete a training round. This approach is frequently bottlenecked by the slowest device, a challenge known as the "straggler" problem.

Asynchronous Federated Learning (AFL) addresses this by allowing the server to update the model as soon as it receives an update. While efficient, AFL introduces a significant fairness challenge: fast devices contribute many more updates than slow ones. In non-IID scenarios—where different devices hold different types of data—the global model becomes heavily biased toward the fast devices' data. Simply giving more weight to slow devices is risky, as it might encourage fast devices to intentionally throttle their speed to gain more influence over the model (a "strategy-proofness" issue). FedStaleWeight addresses these challenges by using update staleness as a proxy for speed to implement fair, strategy-proof aggregation.

The FedStaleWeight Framework

FedStaleWeight operates in a "buffered" AFL setting. Instead of updating the global model for every individual incoming result, the server collects a small buffer of updates ($b$) before performing an aggregation step.

Illustration of the buffered asynchronous federated learning process, where updates are collected into buffers before updating the global model version.

The core innovation of this work is the Staleness Reweighting mechanism. The algorithm measures staleness by checking how many versions behind an update is compared to the current global model. This staleness serves as a natural, observable proxy for a device's relative compute speed without requiring intrusive hardware telemetry.

The algorithm calculates a weight for each update based on its observed staleness. Slower (staler) updates are given higher weights to compensate for their lower frequency of contribution. The authors mathematically derived a weighting function that is strategy-proof. They prove that even with reweighting, a device's best strategy to maximize its influence is still to report its updates as fast as possible, preventing "throttling" for influence. Furthermore, the paper provides a theoretical proof that this upweighting of stale updates still allows the model to converge in smooth, non-convex settings.

Experimental Evaluation

The researchers evaluated FedStaleWeight using two standard computer vision benchmarks: CIFAR-10 and FashionMNIST. To simulate a realistic "unfair" environment with heterogeneous network speeds, they used 15 agents: 10 "fast" agents (assigned labels 4-9) and 5 "slow" agents (assigned labels 0-3). This setup ensures that if the model ignores the slow agents, it physically cannot learn nearly half of the possible categories.

Key Results and Insights

  • Higher Accuracy and Faster Convergence: On both CIFAR-10 and FashionMNIST, FedStaleWeight reached significantly higher test accuracy than the standard baseline (FedBuff). Because it incorporates data from all distributions more equitably, the model generalizes faster.
  • Bias Reduction: The results clearly show that traditional AFL methods are biased toward high-throughput clients, whereas FedStaleWeight maintains a more balanced representation of the entire dataset.
  • Fairness as a Performance Metric: The study highlights that in heterogeneous networks, fairness is essential for model generalization. If slow devices have unique data, ignoring them leads to a deficient global model.
  • Open Source Contribution: To facilitate further research, the authors released an open-source test bench for experimenting with buffered AFL strategies.

Conclusion and Future Work

FedStaleWeight demonstrates that staleness is a powerful and accessible signal for achieving fairness in asynchronous federated learning. By rebalancing the scales between fast and slow devices, it ensures that the global model remains representative of the entire network's data without introducing negative incentives for fast participants.

Future work is needed to make the fairness guarantees robust against devices that participate only occasionally or at random intervals. Additionally, the current framework assumes devices are always "online." In real-world deployments, devices frequently drop out or join late, necessitating further refinements to the aggregation logic. Finally, investigating the impact of "zero-cost throttling"—where slowing down might save battery life—could provide deeper insights into the incentive structures for end-users.

Summary updated

BibTeX
@misc{ma2024fedstaleweight,
  author = {Jeffrey Ma and Alan Tu and Yiling Chen and Vijay Janapa Reddi},
  title = {{FedStaleWeight: Buffered Asynchronous Federated Learning with Fair Aggregation via Staleness Reweighting}},
  year = {2024},
  eprint = {2406.02877},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.02877},
}
Figure