[Paper Review] Fed-Focal Loss for imbalanced data classification in Federated Learning
This paper introduces Fed-Focal Loss to address class imbalance in federated learning by down-weighting easy examples and prioritizing hard ones, using a tunable client sampling framework to improve robustness across non-IID settings; experiments show improvements on MNIST, FEMNIST, VSN, and HAR, including over 9% absolute gain on unbalanced MNIST.
The Federated Learning setting has a central server coordinating the training of a model on a network of devices. One of the challenges is variable training performance when the dataset has a class imbalance. In this paper, we address this by introducing a new loss function called Fed-Focal Loss. We propose to address the class imbalance by reshaping cross-entropy loss such that it down-weights the loss assigned to well-classified examples along the lines of focal loss. Additionally, by leveraging a tunable sampling framework, we take into account selective client model contributions on the central server to further focus the detector during training and hence improve its robustness. Using a detailed experimental analysis with the VIRTUAL (Variational Federated Multi-Task Learning) approach, we demonstrate consistently superior performance in both the balanced and unbalanced scenarios for MNIST, FEMNIST, VSN and HAR benchmarks. We obtain a more than 9% (absolute percentage) improvement in the unbalanced MNIST benchmark. We further show that our technique can be adopted across multiple Federated Learning algorithms to get improvements.
Motivation & Objective
- Address global class imbalance in federated learning with non-IID client data.
- Introduce Fed-Focal Loss to down-weight well-classified samples and focus on hard cases.
- Incorporate a tunable client sampling framework to weight contributing clients.
- Demonstrate improvements across MNIST, FEMNIST, VSN, and HAR under balanced and unbalanced conditions.
Proposed method
- Define Fed-Focal Loss as a weighted focal loss variant with alpha and gamma to balance classes and focus on hard examples (epsilon_FL(p_t) = -alpha(1-p_t)^gamma log(p_t)).
- Integrate Fed-Focal Loss with a tunable client-sampling mechanism using validation losses to preferentially select contributing clients (psi controls selection bias).
- Use VIRTUAL (variational federated multi-task learning) as the experimental backbone for evaluation under balanced and unbalanced data distributions.
- Conduct ablation studies on client sampling ratios (psi) and focal-loss hyperparameters (gamma, alpha) to assess robustness and convergence.
- Evaluate on MNIST, Sampled-FEMNIST, VSN, and HAR datasets with MLP architectures and 0.10 client participation per round default.
Experimental results
Research questions
- RQ1Does Fed-Focal Loss improve accuracy over standard cross-entropy in federated learning with imbalanced and non-IID data?
- RQ2How does a tunable client sampling strategy influence global model performance and convergence under Fed-Focal Loss?
- RQ3Are the gains from Fed-Focal Loss robust across diverse federated datasets (MNIST, FEMNIST, VSN, HAR) and varying data distributions?
- RQ4What is the impact of hyperparameters gamma, alpha, and psi on performance and stability?
Key findings
- Fed-Focal Loss yields consistent performance gains over CE in both balanced and unbalanced federated settings across all tested datasets.
- On unbalanced MNIST, Fed-Focal Loss achieves more than 9% absolute improvement in accuracy.
- Fed-Focal Loss with VIRTUAL maintains top performance across IID and strongly non-IID scenarios, outperforming other methods on Sampled-FEMNIST and HAR.
- Ablation studies show best results with psi around 0.6–0.8 and gamma around 2.0; smaller gamma values help in unbalanced MNIST.
- Fed-Focal Loss also demonstrates smoother convergence and improved training stability compared to standard CE.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.