Abstract
Federated learning (FL) is an emerging, privacy-preserving machine learning paradigm. A unique characteristic of FL is heterogeneity, residing in various hardware specifications and dynamic states across participating devices. Theoretically, heterogeneity can exert a huge influence on the FL training process, e.g., causing a device to be unavailable for training or unable to upload its model updates. This paper carries out the first empirical study to characterize these impacts. By collecting data from 136k smartphones and building a heterogeneity-aware FL platform, we demonstrate that heterogeneity causes non-trivial performance degradation, including up to a 9.2% accuracy drop and a 2.32x increase in training time. Our findings suggest that FL algorithm designers must consider heterogeneity during evaluation and urge system providers to design mitigation mechanisms.
Introduction
Federated Learning (FL) has gained significant traction for its ability to train models on decentralized data without compromising user privacy. However, a substantial gap exists between theoretical simulations and real-world deployments. Most existing research assumes a homogeneous environment where all participating devices possess identical hardware and are consistently available. In reality, the ecosystem of mobile devices is highly heterogeneous, characterized by varying CPU/RAM capacities and dynamic states such as battery levels, network connectivity, and user activity. This study aims to bridge this gap by systematically quantifying the impact of hardware and state heterogeneity on FL performance.
Methodology: The FLASH Platform and IMA Dataset
To ground the study in reality, the researchers collected a large-scale dataset from a popular Input Method App (IMA) installed on 136,000 smartphones. This dataset includes 180 million state entries (battery, network, screen status) and detailed hardware profiles.
Using this data, they developed FLASH, a heterogeneity-aware FL simulation platform. As illustrated in the workflow above, FLASH integrates real-world traces to determine device availability and compute realistic training/upload times. The study compares "heterogeneity-aware" settings (using real traces) against "heterogeneity-unaware" settings (assuming ideal, uniform conditions) across standard benchmarks like Femnist, Celeba, and Reddit, as well as a new real-world NLP dataset, M-Type.
Key Results: Performance and Efficiency
The experiments reveal that heterogeneity significantly undermines model performance and training efficiency across all tested scenarios.
Accuracy and Convergence
Heterogeneity leads to a noticeable drop in final model accuracy. The most severe impact was observed on the M-Type dataset, which saw a 9.2% decrease in accuracy compared to the ideal setting. This degradation is largely attributed to "participant bias," where devices with certain hardware or state profiles (e.g., older phones or those with poor connectivity) are systematically excluded, preventing the model from learning from their unique local data.
Training Time and Stragglers
As shown in the figure above, when viewed against a wall-clock timeline (bottom row), the training process is significantly delayed. On average, realistic settings lengthened training time by 1.74x, reaching up to 2.32x in the worst cases. This slowdown is driven by hardware stragglers and high failure rates; approximately 11.6% of selected devices fail to report updates in each round due to interruptions or network drops. Interestingly, state heterogeneity (availability) was found to be more detrimental to accuracy than hardware heterogeneity (processing speed).
Implications for Fairness and Algorithm Design
The study also re-evaluated "advanced" FL algorithms. For instance, FedProx, designed to handle hardware stragglers, showed only marginal improvements over basic FedAvg because it does not account for total device dropouts caused by state changes. Furthermore, fairness-oriented algorithms like q-FedAvg struggled because they cannot compensate for the total absence of certain device groups that never meet the criteria for selection (e.g., being on Wi-Fi and charging simultaneously).
Conclusion
This empirical study highlights the critical need for the FL community to move beyond idealized simulations. Heterogeneity is not just a minor nuisance but a primary factor that degrades accuracy, slows convergence, and introduces bias. Future research should focus on proactive device selection strategies and hardware-specific optimizations to mitigate these real-world challenges.
Summary updated