Abstract
Federated Semi-Supervised Learning (FSSL) is often hampered by data heterogeneity, where local clients possess highly imbalanced label distributions. This imbalance creates a feedback loop: biased models produce inaccurate pseudo-labels for unlabeled data, which in turn reinforces the model's bias. We introduce FedDB (Federated Detaching Bias), a framework designed to break this cycle. FedDB utilizes the Average Prediction Probability of Unlabeled data (APP-U) as a proxy for internal model bias. By "detaching" this bias during local training via Debiased Pseudo-Labeling (DPL) and during global model aggregation via Debiased Model Aggregation (DMA), FedDB significantly improves accuracy and robustness in non-IID scenarios.
Introduction
Federated Learning (FL) enables collaborative model training without sharing raw data, preserving user privacy. In Federated Semi-Supervised Learning (FSSL), the challenge is magnified as most client data is unlabeled. A critical hurdle in FSSL is data heterogeneity, specifically label distribution skew. When a client's local data is dominated by a few classes, the model naturally develops a prediction bias toward those majority classes.
The Problem: Prediction Bias and the Vicious Cycle
In standard FSSL, models use their own predictions to generate "pseudo-labels" for unlabeled data. However, if a model is biased due to imbalanced local data, it will disproportionately assign pseudo-labels to majority classes. This creates a "vicious cycle" where the model's bias is continuously reinforced by its own erroneous predictions.
As shown in Figure 1, the local model's accuracy is high for majority classes but drops significantly for minority ones. This internal skew is a direct reflection of the underlying label distribution. The global model similarly struggles to maintain high accuracy across all classes when aggregated from biased local models.
Methodology: The FedDB Framework
FedDB addresses this by identifying and removing the "label prior bias" from the model's decision-making process. The framework consists of three main components.
1. APP-U: The Bias Proxy
The core innovation is the Average Prediction Probability of Unlabeled Data (APP-U). The authors found that averaging a model's predictions across all unlabeled samples provides a highly accurate estimate of its internal bias.
Figure 4 demonstrates that the JS divergence between the actual labeled distribution and the APP-U estimate decreases over time, confirming that APP-U is a reliable proxy for the model's skew.
2. Debiased Pseudo-Labeling (DPL)
During local training, instead of using standard pseudo-labeling, FedDB applies Bayes' theorem to "re-calibrate" predictions. By dividing the model's output by the APP-U, the framework effectively subtracts the prior bias, leading to more accurate pseudo-labels for minority classes.
3. Debiased Model Aggregation (DMA)
On the server side, FedDB optimizes the aggregation of local models. It uses the APP-U from each client to weight their contributions, ensuring the final global model is as balanced as possible, rather than being dominated by clients with large, biased datasets.
Experimental Results
FedDB was evaluated on CIFAR-10, CIFAR-100, and SVHN datasets under various non-IID settings. The results show that FedDB consistently outperformed state-of-the-art methods like FixMatch and SemiFL, especially as data heterogeneity increased. The debiasing mechanism led to significantly higher pseudo-label accuracy, breaking the reinforcement loop of biased predictions. Furthermore, DPL's modularity allows it to be integrated into existing FSSL algorithms to provide an immediate performance boost.
Conclusion
FedDB provides a principled Bayesian approach to solving the bias problem in Federated Semi-Supervised Learning. By leveraging unlabeled data to "mirror" and then detach internal model bias, it enables robust training in highly heterogeneous environments. Future work will explore extending this debiasing approach to other forms of data shift, such as feature-level heterogeneity.
Summary updated