Abstract
Data heterogeneity is an inherent challenge that hinders the performance of federated learning (FL). Recent studies have identified the biased classifiers of local models as the key bottleneck. Previous attempts have used classifier calibration after FL training, but this approach falls short in improving the poor feature representations caused by training-time classifier biases. Resolving the classifier bias dilemma in FL requires a full understanding of the mechanisms behind the classifier. Recent advances in neural collapse have shown that the classifiers and feature prototypes under perfect training scenarios collapse into an optimal structure called simplex equiangular tight frame (ETF). Building on this neural collapse insight, we propose a solution to the FL's classifier bias problem by utilizing a synthetic and fixed ETF classifier during training. The optimal classifier structure enables all clients to learn unified and optimal feature representations even under extremely heterogeneous data. We devise several effective modules to better adapt the ETF structure in FL, achieving both high generalization and personalization. Extensive experiments demonstrate that our method achieves state-of-the-art performances on CIFAR-10, CIFAR-100, and Tiny-ImageNet.
Introduction: The Vicious Cycle of Classifier Bias
In Federated Learning (FL), data heterogeneity (Non-IID data) remains a primary obstacle. When clients possess skewed data distributions—for example, one client seeing only "cats" while another sees "dogs"—their local classifiers become heavily biased. This creates a destructive feedback loop: a biased classifier generates poor gradients, which in turn misaligns the feature extractor (the model's backbone). When these misaligned local models are aggregated on the server, the resulting global model suffers from poor generalization. While post-hoc calibration has been attempted, it fails to rectify the underlying feature representation issues established during training.
FedETF: A Geometric Solution
To break this cycle, we introduce FedETF, a framework inspired by the Neural Collapse (NC) phenomenon. NC suggests that in ideal training, class prototypes naturally converge into a Simplex Equiangular Tight Frame (ETF)—a geometric structure where all class vectors are equidistant and have maximum separation.
FedETF addresses classifier bias by design through several key components:
- Fixed Synthetic ETF Classifier: Instead of learning classifier weights, the server pre-generates a fixed Simplex ETF. This serves as a "Geometric North Star," forcing all clients to map their features to a unified, unbiased coordinate system.
- Projection Layer: A small learnable layer is inserted between the backbone and the fixed classifier to map high-dimensional features into the specific ETF space.
- Balanced Feature Loss: To mitigate local class imbalances, a specialized loss function with a learnable temperature parameter is employed to ensure stable convergence.
- Personalized Adaptation: For tasks requiring personalization, clients can perform a two-stage finetuning process, first adapting the feature extractor and then alternately tuning the classifier and projection layer.
Experimental Results
FedETF was evaluated against standard benchmarks including CIFAR-10, CIFAR-100, and Tiny-ImageNet under various levels of heterogeneity (controlled by Dirichlet parameter \alpha).
The results indicate that FedETF achieves state-of-the-art performance in nearly all settings. For instance, on highly heterogeneous CIFAR-10 (\alpha=0.05), FedETF reached 56.08% global accuracy, a significant improvement over FedAvg's 44.48%. Furthermore, the method exhibits robust convergence and excels in personalization, reaching 92.62% local accuracy on CIFAR-10, outperforming specialized methods like FedRep.
Conclusion
By replacing the learnable classifier with a fixed, mathematically optimal ETF structure, FedETF eliminates the root cause of classifier bias in federated learning. This approach ensures that even with highly skewed local data, clients contribute to a globally consistent and well-aligned feature space. FedETF not only improves generalization but also provides a strong foundation for local personalization, setting a new standard for robust federated learning.
Summary updated