Introduction
Federated Learning (FL) enables training machine learning models across decentralized edge devices while preserving data privacy. However, the practical deployment of FL is hindered by two primary forms of heterogeneity: data heterogeneity, where data distributions vary across users, and hardware heterogeneity, where devices possess disparate computational and networking capabilities. Standard FL protocols often treat all data as equally valuable and struggle with "straggler" devices that delay global model updates.
FedBalancer is a novel framework designed to address these challenges by optimizing the time-to-accuracy metric. It intelligently selects the most informative data samples on each client and dynamically adjusts training deadlines to maximize system efficiency.
Methodology
FedBalancer employs a two-pronged strategy to streamline the learning process:
1. Client Sample Selection
Rather than training on all available local data, FedBalancer prioritizes samples with high loss. High-loss samples indicate data that the current model has not yet mastered, making them more informative for gradient updates. To maintain privacy, clients do not share raw loss values. Instead, they provide differentially-private statistics of their local loss distributions to the server. The server then determines a global loss threshold, which clients use to filter their training sets.
As training progresses, the proportion of informative samples typically decreases. By focusing on the "hard" samples, FedBalancer reduces the local computation load without sacrificing model quality.
2. Adaptive Deadline Control
To manage hardware heterogeneity, FedBalancer introduces Deadline Efficiency (DDL-E), a metric representing the number of successful client completions per unit of time. The framework predicts an optimal deadline for each round that maximizes DDL-E. This prevents the server from waiting excessively for a few slow devices while ensuring enough updates are collected to maintain steady progress.
Experimental Results
The researchers evaluated FedBalancer across diverse domains, including Computer Vision (FEMNIST, Celeba), NLP (Reddit, Shakespeare), and Human Activity Recognition (UCI-HAR). Hardware heterogeneity was simulated using the FLASH benchmark, incorporating real-world traces from over 136,000 smartphones.
Performance and Accuracy
FedBalancer consistently outperformed standard baselines, achieving target accuracy 1.2x to 4.48x faster. Notably, the focus on informative data led to an improvement in final model accuracy by 1.1% to 5.0% compared to the standard FedAvg algorithm.
Real-World Validation
Testing on a physical testbed of 13 different Android device models confirmed these findings, with FedBalancer delivering a 1.34x speedup and 3.3% higher accuracy over standard methods.
Discussion and Limitations
While FedBalancer significantly improves FL efficiency, it faces certain challenges. Prioritizing high-loss samples can make the model sensitive to noisy or outlier data. Future iterations may benefit from integrating robust training techniques. Additionally, the impact of sample selection on model fairness across different user groups remains an area for further investigation. Finally, enhancing the deadline control to respond to intra-round network fluctuations could further optimize performance in highly volatile environments.
Summary updated