On the Impact of Device and Behavioral Heterogeneity in Federated Learning

Ahmed M. Abdelmoniem, Chen-Yu Ho, Pantelis Papageorgiou, Muhammad Bilal, Marco Canini

Abstract

Federated Learning (FL) is a promising paradigm for privacy-preserving machine learning on edge devices. However, real-world deployments face significant challenges due to device heterogeneity (DH) and behavioral heterogeneity (BH). This paper presents a comprehensive empirical study involving 1,500 configurations and 36,000 GPU hours to quantify the impact of these factors. Our findings reveal that DH and BH can lead to a 4.6x reduction in model accuracy and a 2.2x decrease in fairness. We demonstrate that existing algorithmic solutions often fail to mitigate these system-level issues, highlighting the need for adaptive system designs in FL.

Introduction

Federated Learning (FL) enables training models on decentralized data residing on mobile devices while keeping the data local. While much research has focused on data heterogeneity (non-IID data), the impact of system-level differences—such as hardware capabilities and user behavior—remains under-explored. In practice, devices vary significantly in CPU, RAM, and network speeds (Device Heterogeneity), and their availability for training is dictated by user habits like charging cycles and Wi-Fi connectivity (Behavioral Heterogeneity).

Methodology

The study utilizes Flash, a high-fidelity FL simulator capable of modeling wall-clock execution time and real-world user behavior traces. The researchers evaluated four distinct scenarios:

  1. Uniform (U): An idealized baseline with identical, always-online devices.
  2. Device Heterogeneity (DH): Devices are categorized into Low-end, Mid, and High-end classes with varying performance profiles.
  3. Behavioral Heterogeneity (BH): Devices follow real-world availability patterns but have identical hardware.
  4. Full Heterogeneity (H): A combination of both DH and BH.
The Federated Learning lifecycle under heterogeneity, illustrating the selection, configuration, and reporting phases where devices may drop out due to deadlines or behavioral changes.

The analysis employs Functional ANOVA to determine the sensitivity of model performance to various hyperparameters, including learning rates and reporting deadlines.

Experimental Setup

The evaluation spans five diverse FL benchmarks:

  • FEMNIST: Image classification (62 classes).
  • CelebA: Binary image classification (smile detection).
  • Reddit: Next-word prediction.
  • Shakespeare: Next-character prediction.
  • Synthetic: Cluster identification.

Key Insights

A critical bottleneck in FL is the reporting deadline. If a device is too slow (DH) or becomes unavailable (BH) during the training window, its update is discarded. This leads to a population bias, where the global model over-represents "fast" devices or users with specific habits. The study finds that DH primarily drives accuracy loss, while BH is the main contributor to unfairness by skewing the user sample over time.

Furthermore, increasing local computation (e.g., more local epochs) to speed up convergence can backfire in heterogeneous environments. More local work increases the likelihood of missing deadlines, potentially leading to model divergence.

Results

The empirical results underscore the severity of these challenges. In the full heterogeneity (H) scenario, average test accuracy plummeted by up to 4.6x compared to the uniform baseline. Fairness, measured by Jain’s index, degraded by up to 2.2x.

Experimental results across five datasets showing the impact of different heterogeneity scenarios (U, BH, DH, H) on average test accuracy, fairness, and client participation.

Surprisingly, algorithmic "fixes" like FedProx and Q-FFL, designed to handle heterogeneity, often failed to provide significant improvements in these realistic system-level scenarios. This suggests that the problems are fundamentally rooted in the system architecture rather than just the optimization algorithm.

Conclusion

This study highlights the profound impact of device and behavioral heterogeneity on the performance and fairness of Federated Learning. The results suggest that current "one-size-fits-all" approaches are insufficient. Future research should focus on adaptive system designs, such as per-client parameter tuning based on hardware metadata, asynchronous updates, and proportional load balancing to ensure robust and equitable FL deployments.

Summary updated

Abstract

Federated learning (FL) is becoming a popular paradigm for collaborative learning over distributed, private datasets owned by non-trusting entities. FL has seen successful deployment in production environments, and it has been adopted in services such as virtual keyboards, auto-completion, item recommendation, and several IoT applications. However, FL comes with the challenge of performing training over largely heterogeneous datasets, devices, and networks that are out of the control of the centralized FL server. Motivated by this inherent setting, we make a first step towards characterizing the impact of device and behavioral heterogeneity on the trained model. We conduct an extensive empirical study spanning close to 1.5K unique configurations on five popular FL benchmarks. Our analysis shows that these sources of heterogeneity have a major impact on both model performance and fairness, thus sheds light on the importance of considering heterogeneity in FL system design.
BibTeX
@misc{abdelmoniem2021impact,
  author = {Ahmed M. Abdelmoniem and Chen-Yu Ho and Pantelis Papageorgiou and Muhammad Bilal and Marco Canini},
  title = {{On the Impact of Device and Behavioral Heterogeneity in Federated Learning}},
  year = {2021},
  eprint = {2102.07500},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.07500},
}
Figure