FedAT: a high-performance and communication-efficient federated learning system with asynchronous tiers

Zheng Chai, Yujing Chen, Ali Anwar, Liang Zhao, Yue Cheng, Huzefa Rangwala

TL;DR

This paper introduces FedAT, a novel federated learning system that tackles the challenges of straggling clients and communication bottlenecks. By combining synchronous intra-tier training with asynchronous cross-tier updates and employing a weighted aggregation strategy, FedAT significantly improves model performance and reduces communication costs, even with non-i.i.d. data.

What Problem Does This Paper Address?

Federated Learning (FL) allows training models on decentralized data residing on edge devices, preserving privacy. However, FL faces two major hurdles:

  1. Straggler Problem: Clients have varying computational power, network speeds, and data sizes, leading to "stragglers" that slow down the entire training process, especially in synchronous FL methods that wait for all participants.
  2. Communication Bottleneck: With a massive number of clients, even asynchronous methods that don't wait for stragglers can overwhelm the central server with frequent updates, leading to communication inefficiencies.

Existing FL solutions often optimize for one aspect (e.g., speed or communication) at the expense of others. Asynchronous methods can cause bottlenecks, while tiering-based synchronous methods might introduce biases favoring faster clients. This paper aims to bridge this gap by creating a system that is both high-performance and communication-efficient, even under challenging non-i.i.d. data distributions.

Methods

FedAT introduces a multi-pronged approach to address the aforementioned challenges:

  • Tiered Asynchronous Training: Clients are grouped into "tiers" based on their response latency. Within each tier, training is synchronous. However, different tiers communicate with the server asynchronously. This allows faster tiers to drive convergence while slower tiers contribute without holding up the entire process.
  • Synchronous Intra-Tier, Asynchronous Cross-Tier: This is the core innovation. Clients within a tier train synchronously, but the tiers themselves update the global model asynchronously. This hybrid approach aims to leverage the benefits of both synchronous and asynchronous training.
  • Straggler-Aware Weighted Aggregation: To prevent faster tiers from dominating the model updates and causing bias, FedAT employs a weighted aggregation heuristic. This heuristic dynamically assigns higher weights to slower tiers, ensuring a more balanced contribution to the global model.
  • Communication Compression: To further reduce the communication overhead, FedAT utilizes an efficient polyline-encoding-based compression algorithm for both uplink and downlink communications. This lossy compression method is designed to minimize data size without significantly impacting model accuracy.
  • Local Model Constraint: To mitigate issues arising from non-i.i.d. data and frequent local updates, FedAT adds a constraint term to the local optimization objective, encouraging local models to stay closer to the global model.

Datasets

The paper evaluates FedAT on several standard federated learning datasets:

  • CIFAR-10: A dataset of 32x32 color images in 10 classes.
  • Fashion-MNIST: A dataset of 28x28 grayscale images in 10 classes.
  • Sentiment140: A text dataset for sentiment classification.
  • FEMNIST: An image dataset with a large number of samples and classes.
  • Reddit: A text dataset of processed comments.

These datasets were used with varying degrees of non-i.i.d. distributions to test FedAT's robustness. The experiments were conducted using the LEAF benchmarking framework.

Key Insights and Ideas

  • Bridging Synchronous and Asynchronous: The most significant insight is that a hybrid approach, combining synchronous training within tiers and asynchronous training across tiers, can effectively mitigate both straggler issues and communication bottlenecks.
  • Tiering as a Solution for Stragglers: Grouping clients by latency is a practical way to manage heterogeneity. FedAT's innovation lies in how it leverages these tiers asynchronously for global updates.
  • Weighted Aggregation for Fairness: Simply aggregating updates from faster tiers can lead to biased models. The proposed weighted aggregation is crucial for ensuring that slower, potentially more diverse, clients also contribute meaningfully, leading to better overall accuracy.
  • Compression is Key for Efficiency: The use of polyline encoding demonstrates that effective compression can drastically reduce communication costs without a substantial hit to accuracy, a critical factor for large-scale FL.
  • Robustness to Non-i.i.d. Data: FedAT's design, particularly the local constraint and weighted aggregation, makes it resilient to the challenges posed by non-i.i.d. data distributions, which are common in real-world FL scenarios.

Key Results

FedAT demonstrated strong performance across various metrics:

  • Improved Prediction Performance: FedAT improved prediction accuracy by up to 21.09% compared to state-of-the-art FL methods.
  • Reduced Communication Cost: The system achieved up to 8.5x reduction in communication cost.
  • Faster Convergence: FedAT converged faster than baseline methods, as evidenced by shorter training times to reach target accuracies.
  • Lower Accuracy Variance: FedAT exhibited significantly lower variance in test accuracy among clients, indicating more stable and robust training.
  • Compression Effectiveness: Using polyline encoding with precision 4 achieved a compression ratio of up to 3.5x while maintaining high accuracy.
  • Robustness to Stragglers: FedAT showed better resilience to stragglers and client participation levels compared to synchronous methods.

Limitations and Future Work

  • Straggler Tolerance: While FedAT significantly minimizes the straggler effect, the paper acknowledges that mis-tiering can still occur due to performance variations. The asynchronous cross-tier mechanism is designed to tolerate such mis-tiering.
  • Compression Precision Trade-off: The paper notes that lower compression precision (e.g., precision 3) can lead to reduced accuracy, requiring more training rounds. Precision 4 was found to strike a good balance.
  • Future Work: The paper doesn't explicitly detail future work, but the presented framework opens avenues for exploring more sophisticated tiering strategies, adaptive compression levels, and further theoretical analysis on different types of non-i.i.d. data. The robustness to varying client participation levels also suggests potential for more dynamic client selection mechanisms.

Summary updated

BibTeX
@inproceedings{chai2021fedat,
  author = {Zheng Chai and Yujing Chen and Ali Anwar and Liang Zhao and Yue Cheng and Huzefa Rangwala},
  title = {{FedAT: a high-performance and communication-efficient federated learning system with asynchronous tiers}},
  booktitle = {SC},
  year = {2021},
  doi = {10.1145/3458817.3476211},
}
Figure