Abstract
Federated learning (FL) is a powerful technology that enables collaborative training of machine learning models without sharing private data among clients. The fundamental challenge in FL lies in learning over extremely heterogeneous data distributions, device capacities, and device state availabilities, all of which adversely impact performance and communication efficiency. While data heterogeneity has been well-studied in the literature, this paper introduces FLHetBench, the first FL benchmark targeted toward understanding device and state heterogeneity. FLHetBench comprises two new sampling methods to generate real-world device and state databases with varying heterogeneity and new metrics for quantifying the success of FL methods under these real-world constraints. Using FLHetBench, we conduct a comprehensive evaluation of existing methods and find that they struggle under these settings, which inspires us to propose BiasPrompt+, a new method employing staleness-aware aggregation and fast weights to tackle these new heterogeneity challenges. Experiments on various FL tasks and datasets validate the effectiveness of our BiasPrompt+ method and highlight the value of FLHetBench in fostering the development of more efficient and robust FL solutions under real-world device and state constraints.
Introduction
Federated Learning (FL) allows AI models to be trained across decentralized devices without sharing raw data. While data heterogeneity is well-researched, two critical real-world factors are often ignored: device heterogeneity (varying hardware capabilities) and state heterogeneity (varying device availability). Existing benchmarks often rely on oversimplified simulations that fail to capture the complexities of actual hardware deployments. FLHetBench addresses this gap by providing a comprehensive benchmarking suite for these realistic constraints.
The FLHetBench Framework
The authors propose a three-pronged approach to realistically benchmark FL environments: sampling, measurement, and algorithmic innovation.
Realistic Sampling (DPGMM & DPCSM)
To generate realistic test environments, FLHetBench utilizes Dirichlet Process-based methods:
- DPGMM (Dirichlet Process Gaussian Mixture Model): Generates continuous device data, such as CPU speeds.
- DPCSM (Dirichlet Process Categorical Sampling Method): Generates discrete state data, such as device availability (e.g., charging vs. Wi-Fi status).
Predictive Metrics (The "MC" Suite)
Standard statistical metrics like Standard Deviation or JS Divergence are poor predictors of FL performance. FLHetBench introduces Monte Carlo (MC) based metrics (DevMC, StatMC, InterMC) that simulate the training process to provide scores highly correlated with final accuracy and training time.
BiasPrompt+: Addressing Heterogeneity
To improve performance in these challenging environments, the authors developed BiasPrompt+, a novel training algorithm designed for robustness and efficiency.
Staleness-Aware Aggregation
Rather than discarding updates from slow "straggler" devices, BiasPrompt+ employs gradient surgery. It projects stale gradients onto a plane that does not conflict with fresh updates, allowing the model to incorporate diverse data from slow devices without compromising convergence.
Communication Efficiency
BiasPrompt+ utilizes a "prompt-tuning" approach. Instead of transmitting entire large models, it only updates a small set of "fast weights" (prompts) and "stable weights" (biases), significantly reducing communication overhead and resource utilization on low-end devices.
Experimental Evaluation and Insights
The benchmark utilizes FL-Device, a new database containing latency data from ~10,000 mobile devices, alongside datasets like COVID-FL and OpenImage.
Key Findings
- Metric Reliability: MC-based metrics show a correlation coefficient ($r$) of over 0.84 with actual performance, whereas standard statistical measures show near-zero correlation.
- Real-World Stragglers: FLHetBench demonstrates that training time increases significantly as clients drop out, exposing flaws in current "straggler-robust" algorithms that assume constant training times.
- Performance Gains: On the OpenImage dataset under severe heterogeneity, BiasPrompt+ achieved 35.75% accuracy, nearly doubling the performance of standard FedAvg (14.84%) and beating specialized methods like FetchSGD.
Conclusion
FLHetBench reveals that many state-of-the-art FL methods struggle when faced with realistic device and state constraints. BiasPrompt+ offers a promising direction by leveraging stale data and efficient tuning. Future work will extend these benchmarks to a wider variety of architectures and explore their impact on Large Language Models (LLMs) in federated settings.
Summary updated