[Paper Review] Federated Learning with Classifier Shift for Class Imbalance
This paper proposes FedShift, a novel federated learning method that mitigates class imbalance by applying a classifier shift during local training based on client-specific class distributions. The method ensures local optima align with the global optimum, achieving state-of-the-art accuracy and communication efficiency across CIFAR-10, CIFAR-100, and Tiny-ImageNet under non-IID and imbalanced data settings.
Federated learning aims to learn a global model collaboratively while the training data belongs to different clients and is not allowed to be exchanged. However, the statistical heterogeneity challenge on non-IID data, such as class imbalance in classification, will cause client drift and significantly reduce the performance of the global model. This paper proposes a simple and effective approach named FedShift which adds the shift on the classifier output during the local training phase to alleviate the negative impact of class imbalance. We theoretically prove that the classifier shift in FedShift can make the local optimum consistent with the global optimum and ensure the convergence of the algorithm. Moreover, our experiments indicate that FedShift significantly outperforms the other state-of-the-art federated learning approaches on various datasets regarding accuracy and communication efficiency.
Motivation & Objective
- Address the challenge of statistical heterogeneity in federated learning, particularly class imbalance across non-IID client data.
- Overcome client drift caused by inconsistent local and global optimization objectives due to data imbalance.
- Develop a method that explicitly aligns local model updates with the global objective to improve convergence and performance.
- Ensure theoretical convergence of the algorithm under both strongly convex and non-convex settings.
- Demonstrate superior performance in accuracy and communication efficiency compared to FedAvg, FedProx, and SCAFFOLD on multiple benchmark datasets.
Proposed method
- Introduce a classifier shift component during local training that adjusts the output layer of the client model based on the client’s local class distribution.
- Modify the local loss function by adding a shift term proportional to the logarithm of the client’s class frequency distribution.
- The shift term ensures that the local optimization objective becomes consistent with the global objective, reducing client drift.
- Theoretical analysis proves that FedShift converges to the global optimum under both strongly convex and non-convex settings.
- The method is compatible with existing aggregation techniques and can be combined with approaches like FedProx or SCAFFOLD.
- The classifier shift is computed per client and applied before the final classification layer, requiring no communication of data or model gradients beyond standard FedAvg.
Experimental results
Research questions
- RQ1Can a simple classifier shift during local training effectively mitigate performance degradation due to class imbalance in non-IID federated learning?
- RQ2Does the proposed FedShift method ensure that local optima are consistent with the global optimum, thereby improving convergence?
- RQ3How does FedShift compare to FedAvg, FedProx, and SCAFFOLD in terms of test accuracy and communication efficiency across diverse datasets?
- RQ4How robust is FedShift under varying degrees of data heterogeneity, including extreme class imbalance?
- RQ5How does the number of clients and local epochs affect the performance of FedShift compared to baselines?
Key findings
- FedShift achieves 83.52% top-1 accuracy on CIFAR-10 with α=0.1 (highly imbalanced data), significantly outperforming FedAvg (78.94%), FedProx (75.95%), and SCAFFOLD (77.75%).
- On CIFAR-10 with 50 clients and C=0.2, FedShift achieves 64.69% accuracy, outperforming FedAvg (55.22%) and FedProx (56.24%), though SCAFFOLD slightly surpasses it (64.92%) due to better gradient estimation.
- With 100 communication rounds, FedShift achieves 4.34× better communication efficiency than FedAvg on CIFAR-10, measured by accuracy per round.
- In experiments with varying local epochs (E=1 to E=20), FedShift maintains consistent superiority, achieving 83.52% accuracy at E=5 and 82.67% at E=10, outperforming all baselines.
- Under increasing data heterogeneity (α from 0.1 to 0.5), FedShift maintains a consistent performance gap, achieving 90.76% accuracy at α=0.2, compared to 89.43% for FedProx and 90.99% for SCAFFOLD.
- Theoretical analysis confirms that FedShift ensures local optima are consistent with the global optimum and guarantees convergence in both strongly convex and non-convex settings.
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.