Dynamic Attention-based Communication-Efficient Federated Learning

Zihan Chen, Kai Fong Ernest Chong, Tony Q. S. QuekarXiv 2021

Abstract

Federated Learning (FL) enables collaborative model training across decentralized clients while preserving data privacy. However, standard approaches like Federated Averaging (FedAvg) often struggle with non-IID data distributions and communication bottlenecks. This paper introduces AdaFL, an adaptive federated learning algorithm that dynamically optimizes client selection and participation rates. By employing an attention-based mechanism to prioritize lagging clients and a progressive scheduling of the participation fraction, AdaFL achieves superior accuracy and stability with significantly lower communication overhead.

Introduction

The standard Federated Averaging (FedAvg) algorithm typically selects a fixed, random fraction of clients in each communication round. In real-world scenarios characterized by heterogeneous (non-IID) data, this approach faces a critical trade-off: small participation fractions save bandwidth but lead to unstable training, while large fractions stabilize convergence at a high communication cost. Furthermore, static selection probabilities ignore the fact that some clients' local models may diverge significantly from the global objective, requiring more frequent updates to align.

The AdaFL Framework

To address these limitations, the authors propose Adaptive Federated Learning (AdaFL), which introduces two primary innovations to the server-side orchestration:

1. Attention-based Client Selection

Instead of uniform random selection, AdaFL utilizes a data-driven attention mechanism. After each round, the server computes the Euclidean distance between a client's local update and the updated global model. Clients exhibiting larger distances—indicating greater model divergence—are assigned higher selection probabilities for subsequent rounds. This ensures the global model pays more "attention" to struggling clients, effectively reducing performance variance across the network.

2. Dynamic Participation Fraction

AdaFL replaces the fixed participation rate with a monotonically increasing step function. Training begins with a small fraction of clients (e.g., 10%) to minimize early-stage communication costs when gradients are noisy. As training progresses and requires more precise gradients for convergence, the fraction is increased (e.g., up to 50%).

The dynamic fraction strategy progressively increases client participation over communication rounds.

Experimental Evaluation

The performance of AdaFL was evaluated on the MNIST (non-IID) and CIFAR-10 (IID) datasets. The results demonstrate that AdaFL consistently outperforms standard FedAvg in both final accuracy and training stability.

Test accuracy comparison between AdaFL and FedAvg variants, showing AdaFL's superior stability and final performance.

Key Results

  • Accuracy and Stability: AdaFL improved top accuracy on MNIST by up to 2.45% and on CIFAR-10 by up to 1.5%. As shown in the accuracy curves, AdaFL significantly reduces the oscillations common in low-fraction FedAvg while reaching higher peaks than high-fraction variants.
  • Communication Efficiency: By scheduling the participation fraction, AdaFL avoids the bandwidth waste of high-participation rounds during the early stages of training.
  • Modularity and Synergy: AdaFL is a "plug-and-play" enhancement. When integrated with advanced FL optimizers like FedProx, SCAFFOLD, and FedMix, it reduced total communication costs by 48.8% to 63.6% while providing an additional accuracy boost of approximately 2%.

Conclusion

AdaFL demonstrates that intelligent, dynamic resource allocation at the server level can overcome the fundamental trade-offs in federated learning. By treating client importance as fluid and scheduling participation rates, it achieves a more efficient and stable training process. Future work will focus on automating the fraction scheduling and exploring the impact of AdaFL on client-level fairness.

Summary updated

BibTeX
@misc{chen2021dynamic,
  author = {Zihan Chen and Kai Fong Ernest Chong and Tony Q. S. Quek},
  title = {{Dynamic Attention-based Communication-Efficient Federated Learning}},
  year = {2021},
  eprint = {2108.05765},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2108.05765},
}
Figure