Breaking the Prototype Bias Loop: Confidence-Aware Federated Contrastive Learning for Highly Imbalanced Clients
Organizations: Key Laboratory of Water Big Data Technology of Ministry of Water Resources, College of Computer Science and Software Engineering, Hohai University, Nanjing, China · Department of Computer Science, City University of Hong Kong, Hong Kong, China · State Key Laboratory for Novel Software Technology, Nanjing University, Nanjing, China · School of Artificial Intelligence and Information Technology, Nanjing University of Chinese Medicine, Nanjing, China
Abstract
Local class imbalance and data heterogeneity across clients often trap prototype-based federated contrastive learning in a prototype bias loop: biased local prototypes induced by imbalanced data are aggregated into biased global prototypes, which are repeatedly reused as contrastive anchors, accumulating errors across communication rounds. To break this loop, we propose Confidence-Aware Federated Contrastive Learning (CAFedCL), a novel framework that improves the prototype aggregation mechanism and strengthens the contrastive alignment guided by prototypes. CAFedCL employs a confidence-aware aggregation mechanism that leverages predictive uncertainty to downweight high-variance local prototypes. In addition, generative augmentation for minority classes and geometric consistency regularization are integrated to stabilize the structure between classes. From a theoretical perspective, we provide an expectation-based analysis showing that our aggregation reduces estimation variance, thereby bounding global prototype drift and ensuring convergence. Extensive experiments under varying levels of class imbalance and data heterogeneity demonstrate that CAFedCL consistently outperforms representative federated baselines in both accuracy and client fairness.
Figures & tables
| Practical heterogeneous ( ) | Pathological heterogeneous ( ) | |||||||||||
| Method | CIFAR-10 | CIFAR-100 | EMNIST | CIFAR-10 | CIFAR-100 | EMNIST | ||||||
| Acc. | Std. | Acc. | Std. | Acc. | Std. | Acc. | Std. | Acc. | Std. | Acc. | Std. | |
| FedAvg | 60.32 | 12.03 | 29.74 | 4.08 | 82.95 | 11.59 | 48.73 | 19.15 | 24.47 | 7.58 | 72.38 | 14.96 |
| FedProx | 61.82 | 10.07 | 31.42 | 4.25 | 84.27 | 8.13 | 60.29 | 9.11 | 30.60 | 5.49 | 72.45 | 7.21 |
| MOON | 82.06 | 11.19 | 46.23 | 5.15 | 92.77 | 6.53 | 84.94 | 13.44 | 48.70 | 6.95 | 93.24 | 5.40 |
| FedProto | 88.33 | 8.13 | 52.81 | 6.58 | 95.50 | 1.69 | 89.45 | 7.78 | 52.14 | 5.90 | 94.88 | 2.63 |
| Method | Dirichlet parameter | Imbalance ratio | Class per client | Client amount | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 50 Clients | 100 Clients | |||||||||||||||
| Acc. | Std. | Acc. | Std. | Acc. | Std. | Acc. | Std. | Acc. | Std. | Acc. | Std. | Acc. | Std. | Acc. | Std. | |
| FedAvg | 52.54 | 12.24 | 86.67 | 6.19 | 43.28 | 22.81 | 35.29 | 17.50 | 20.87 | 7.12 | 29.66 | 2.59 | 56.73 | 12.88 | 54.14 | 13.65 |
| FedProx | 55.48 | 14.05 | 87.93 | 6.44 | 48.30 | 11.32 | 37.33 | 13.72 | 28.56 | 6.28 | 32.70 | 2.85 | 58.50 | 10.12 | 55.94 | 10.47 |
| MOON | 65.79 | 10.40 | 90.95 | 5.52 | 54.23 | 15.73 | 42.61 | 18.25 | 56.33 | 4.95 | 25.49 | 5.22 | 79.51 | 11.58 | 78.19 | 10.66 |
| FedProto | 66.86 | 8.35 | 91.27 | 5.24 | 55.48 | 9.56 | 44.46 | 10.29 | 62.12 | 4.66 | 35.06 | 4.41 | 83.07 | 9.92 | 80.44 | 10.25 |
Federated Learning
Federated learning trains shared models across data holders without requiring them to pool their raw data.
See all 943 papers