Introduction
Federated Learning (FL) enables a central server to coordinate model training across multiple edge devices (clients) without accessing their raw data. However, a primary challenge in FL is statistical heterogeneity, where data distributions vary significantly across clients. This paper introduces FedShift, a method designed to mitigate "client drift" specifically caused by class imbalance.
The Challenge: Class Imbalance and Client Drift
In scenarios where clients possess highly skewed class distributions (e.g., one client having mostly "cat" images while another has "dog" images), local models naturally drift toward predicting their majority classes. Standard aggregation methods like FedAvg struggle because the local training objectives are fundamentally inconsistent with the global goal. While existing methods like FedProx or SCAFFOLD attempt to constrain this drift, they do not address the underlying cause: the bias in the local objective function.
Methodology: FedShift
FedShift addresses this inconsistency by modifying the local loss function to account for the discrepancy between local and global class distributions.
The Classifier Shift
During local training, FedShift introduces a specific shift ($s_i$) to the logits—the raw outputs before the softmax layer—of the classifier. The shift for class $k$ on client $i$ is defined as:
$$s_{i,k} = \ln\left(\frac{P_i(y=k)}{P(y=k)}\right)$$
where $P_i(y=k)$ represents the local class probability and $P(y=k)$ represents the global class probability.
Theoretical Foundation
This shift serves as a Bayesian correction, aligning the local optimization goal with the global objective. The authors provide a theoretical proof that with this shift, the local optimum becomes identical to the global optimum, ensuring that local updates are consistent with the desired global model.
Privacy and Efficiency
FedShift is highly efficient and privacy-preserving. Clients only need to share their class counts once at the beginning of training, which can be protected via differential privacy or secure aggregation. It introduces zero additional communication overhead during the iterative training process.
Experimental Results
The effectiveness of FedShift was evaluated on three standard benchmarks—Cifar10, Cinic10, and Tiny-Imagenet—simulating extreme class imbalance using a Dirichlet distribution ($\alpha=0.1$).
Performance and Stability
FedShift consistently outperformed state-of-the-art baselines, including FedAvg, FedProx, and SCAFFOLD. As shown in the training curves, FedShift provides much smoother convergence compared to the "jittery" performance of other methods, which often struggle with conflicting local updates.
Accuracy and Efficiency Gains
Quantitative results demonstrate significant improvements in both final accuracy and communication efficiency. On Cifar10, FedShift reached an accuracy of 83.52%, a substantial increase over FedAvg's 78.94%. Furthermore, FedShift achieved a 4.34x speedup in reaching target accuracy levels on the Cifar10 dataset, demonstrating its robustness in highly non-IID scenarios.
Conclusion and Future Work
FedShift offers a simple yet effective solution to the problem of class imbalance in Federated Learning by aligning local and global objectives through a logit shift. While highly effective for label distribution shift, the authors note that "feature representation shift"—where the appearance of classes varies across clients—remains a challenge for future research. Additionally, the requirement for global class distribution knowledge, while minimal, may be a consideration in specific high-privacy environments.
Summary updated