Abstract
Federated learning is a distributed machine learning framework that enables distributed nodes with computation and storage capabilities to train a global model while keeping distributed-stored data locally. This process can promote the efficiency of modeling while preserving data privacy. Therefore, federated learning can be widely applied in distributed conjoint analysis scenarios, such as smart plant protection systems, in which widely networked IoT devices are used to monitor the critical data of plant production to improve crop production. However, the data collected by different IoT devices can be dependent and identically distributed (non-IID), causing the challenge of statistical heterogeneity. Studies have also shown that statistical heterogeneity can lead to a marked decline in the efficiency of federated learning, making it challenging to apply in practice. To promote the efficiency of federated learning in statistical heterogeneity scenarios, an adaptive client selection algorithm for federated learning in statistical heterogeneous scenarios called ACSFed is proposed in this paper. ACSFed can dynamically calculate the possibility of clients being selected to train the model for each communication round based on their local statistical heterogeneity and previous training performance instead of randomly selected clients, and clients with heavier statistical heterogeneity or bad training performance would be more likely selected to participate in the later training. This client selection strategy can enable the federated model to learn the global statistical knowledge faster and thereby promote the convergence of the federated model. Multiple experiments on public benchmark datasets demonstrate these improvements in the efficiency of the models in heterogeneous settings.
Introduction
Federated Learning (FL) has emerged as a vital framework for training machine learning models across distributed edge devices while maintaining data privacy. However, a significant challenge in real-world deployments is statistical heterogeneity, where data is non-independent and identically distributed (non-IID) across devices. Standard approaches like FedAvg, which typically utilize random client selection, often suffer from slow convergence and reduced accuracy when faced with such heterogeneity. This paper introduces ACSFed, an adaptive client selection algorithm designed to overcome these hurdles by prioritizing the most informative and challenging clients during the training process.
Methodology: The ACSFed Algorithm
ACSFed (Adaptive Client Selection for Federated Learning) shifts away from random selection by maintaining a dynamic probability matrix at the central server. The selection logic is governed by two primary metrics:
- Earth Mover’s Distance (EMD): This is used to quantify the statistical distance between a client’s local data distribution and the global population distribution. A higher EMD indicates a more heterogeneous and potentially more informative local dataset.
- Local Training Loss: The algorithm tracks the model's performance on each client. Higher loss suggests that the global model has not yet adequately learned from that specific client's data distribution.
These metrics are integrated into a "Cumulative Model Strength" index. By biasing selection toward clients with high EMD or poor training performance, ACSFed forces the global model to "study" the most difficult data distributions early on, accelerating the acquisition of global statistical knowledge.
Experimental Evaluation and Results
The effectiveness of ACSFed was evaluated using standard benchmarks (MNIST, Fashion MNIST, and CIFAR-10) modified to simulate extreme non-IID conditions, including 1-class and 2-class scenarios.
As seen in the training loss curves, ACSFed initially undergoes a "fluctuation period." This behavior is a result of the algorithm aggressively targeting the most difficult clients first, leading to rapid, significant model updates. Despite this initial volatility, the model eventually stabilizes and achieves faster convergence than the FedAvg baseline.
In terms of accuracy, ACSFed consistently outperforms FedAvg across various levels of selection skew (denoted by $\rho$). In the 2-class scenario shown above, ACSFed variants reach higher accuracy thresholds significantly faster. The advantage is even more pronounced in extreme 1-class scenarios; for example, ACSFed reached 80% accuracy on MNIST in just 72 rounds, whereas FedAvg failed to reach that threshold within a 1,000-round window.
Conclusion
ACSFed provides a computationally efficient, server-side solution for managing statistical heterogeneity in Federated Learning. By intelligently selecting clients based on their data's uniqueness and training difficulty, it significantly enhances convergence speed and final model accuracy without increasing the local computational burden on edge devices. Future work will explore the algorithm's robustness against adversarial poisoning attacks and its integration with advanced model aggregation techniques.
Summary updated