Abstract
Federated learning (FL) is a promising technique that enables a large amount of edge computing devices to collaboratively train a global learning model. Due to privacy concerns, the raw data on devices could not be available for centralized server. Constrained by the spectrum limitation and computation capacity, only a subset of devices can be engaged to train and transmit the trained model to centralized server for aggregation. Since the local data distribution varies among all devices, class imbalance problem arises along with the unfavorable client selection, resulting in a slow converge rate of the global model. In this paper, an estimation scheme is designed to reveal the class distribution without the awareness of raw data. Based on the scheme, a device selection algorithm towards minimal class imbalance is proposed, thus can improve the convergence performance of the global model. Simulation results demonstrate the effectiveness of the proposed algorithm.
Introduction: The Challenge of Non-IID Data
Federated Learning (FL) allows a central server to train a global model using data stored on thousands of edge devices, such as smartphones or IoT sensors, without the data ever leaving the device. This decentralized approach is excellent for privacy but introduces a significant challenge: Non-IID (Independent and Identically Distributed) data.
In real-world scenarios, data distribution across devices is highly skewed. For example, one user might have thousands of photos of cats, while another has only photos of cars. This "class imbalance" means that if a server selects a biased subset of users for a training round—say, only "cat owners"—the resulting global model becomes biased and converges slowly. Because of privacy constraints, the server cannot directly inspect the data to ensure a balanced selection.
Proposed Method: FL-CIR
To address this, the researchers propose a framework called FL-CIR (Federated Learning with Class Imbalance Reduction), which consists of two primary components:
1. Class Estimation Scheme
The server needs to estimate each client's data distribution without seeing the raw data. It achieves this by using a small, balanced auxiliary dataset. When a client returns its model updates (gradients), the server passes the auxiliary data through the updated model. By analyzing the magnitudes of the gradients in the final output layer, the server can mathematically estimate the ratio of classes the client used during local training. This is based on the principle that the expectation of gradient squares is approximately proportional to the number of samples for that class.
2. Combinatorial Multi-Armed Bandit (CMAB) Selection
Once the server has estimated the "composition vector" for each client, it must select a subset of participants. This is framed as a multi-armed bandit problem, specifically using the Combinatorial Upper Confidence Bound (CUCB) algorithm. The goal is to select a group of clients whose combined data distribution is as close to uniform as possible, minimizing the Kullback-Leibler (KL) divergence from a perfectly balanced distribution. This approach balances "exploitation" (picking clients known to be balanced) with "exploration" (picking less-known clients to refine their distribution estimates).
Experimental Results
The FL-CIR method was evaluated using the CIFAR-10 dataset, simulated across 100 clients with highly non-IID data distributions.
As shown in the results, the proposed method significantly outperforms standard baselines:
- Higher Accuracy: FL-CIR reached a test accuracy of approximately 65%, whereas random selection hovered around 55%.
- Faster Convergence: The "Proposed" curve in the figure demonstrates a much steeper climb, indicating that the model reaches stable accuracy in fewer communication rounds compared to "Greedy" or "Random" selection strategies.
- Selection Efficiency: The study also noted that while increasing the number of selected clients helps, the quality of selection (balancing classes) is the primary driver of performance.
Conclusion and Future Directions
FL-CIR provides a robust way to mitigate class imbalance in federated learning without compromising data privacy. By using gradients as proxies for data distribution and a bandit framework for selection, it achieves faster convergence and higher accuracy.
Future work may focus on reducing the reliance on a balanced auxiliary dataset, which might be difficult to obtain in specialized fields like medical imaging. Additionally, optimizing the computational overhead for server-side estimation in massive-scale deployments remains an open area for improvement.
Summary updated