FedCD: Federated Semi-Supervised Learning with Class Awareness Balance via Dual Teachers

Yuzhi Liu, Huisi Wu, Jing Qin

Abstract

Federated Semi-Supervised Learning (FSSL) is critical for medical AI, where data is often decentralized and largely unlabeled due to privacy regulations. However, FSSL faces challenges such as knowledge drift and class imbalance. This paper introduces FedCD, a novel framework utilizing Dual Teacher Distillation (DTD) to harmonize global and local knowledge, alongside a Class Awareness Balance (CAB) module to prioritize rare, unlabeled samples. Evaluated on medical benchmarks like HAM10000 and RSNA ICH, FedCD achieves state-of-the-art performance, significantly improving diagnostic accuracy for rare conditions while maintaining strict data privacy.

Introduction

In medical imaging, the abundance of data is often offset by a scarcity of expert labels. Privacy frameworks like HIPAA and GDPR prevent the centralization of this data, making Federated Learning (FL) a necessary paradigm. When local data is predominantly unlabeled, the task becomes Federated Semi-Supervised Learning (FSSL).

FSSL is plagued by two primary issues:

  1. Knowledge Discrepancy: Local models trained on unlabeled data tend to develop a "local bias," diverging from the broader patterns captured by the global network.
  2. Class Imbalance: Real-world medical data is often skewed toward common conditions. Without labels, models naturally favor majority classes, neglecting rare but clinically significant samples.

FedCD addresses these by exchanging only model parameters, avoiding the privacy risks associated with sharing data distributions.

Methods

The FedCD framework introduces two key innovations to stabilize learning and handle data heterogeneity.

Dual Teacher Distillation (DTD)

Unlike standard semi-supervised models that rely on a single "Mean Teacher," FedCD employs two:

  • Global Teacher: Derived from the server-side global model, it provides a holistic view of the data distribution across all clients.
  • Local Teacher: An exponential moving average of the local student model, capturing site-specific nuances.

To ensure the student model learns robust features, FedCD uses Knowledge Purification. By measuring the KL divergence between the student and teachers, the framework identifies and down-weights instances where teachers might be providing inconsistent guidance.

The FedCD framework architecture featuring Dual Teacher Distillation and Class Awareness Balance.

Class Awareness Balance (CAB)

To address class imbalance without labels, the CAB module identifies rare classes through a three-step process:

  1. Proxy Identification: A proxy model identifies "confident classes" that the model already understands well.
  2. Unreliability Detection: Samples with low confidence are flagged as "unreliable."
  3. Reweighting: Instead of discarding these samples, FedCD treats low confidence as a proxy for rarity. The loss function is reweighted to prioritize these samples, forcing the model to pay attention to the "tails" of the distribution.

Results and Discussion

FedCD was evaluated on the HAM10000 (skin lesions) and RSNA ICH (brain hemorrhage) datasets. To simulate realistic conditions, the experiments used 1 labeled client and 9 unlabeled clients with a Non-IID Dirichlet distribution.

Accuracy comparison over training rounds for FedCD versus baseline methods.

Key performance metrics include:

  • HAM10000: FedCD achieved 70.99% accuracy, outperforming previous SOTA methods by 1.2%. Notably, it saw a 2.91% increase in Recall, indicating better detection of rare diseases.
  • RSNA ICH: The framework reached 63.10% accuracy, a 3.76% improvement over existing benchmarks.

The results demonstrate that treating unreliability as a signal for rare classes is an effective strategy for balancing semi-supervised learning in decentralized environments.

Conclusion

FedCD provides a robust solution for FSSL in the medical domain by balancing global and local knowledge and actively addressing class imbalance. While the framework requires a "warm-up" phase and has higher local computational demands, its ability to improve diagnostic recall for rare conditions without compromising privacy marks a significant advancement. Future work will explore extending this framework to 3D medical imaging and longitudinal electronic health records.

Summary updated

BibTeX
@inproceedings{liu2024fedcd,
  author = {Yuzhi Liu and Huisi Wu and Jing Qin},
  title = {{FedCD: Federated Semi-Supervised Learning with Class Awareness Balance via Dual Teachers}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i4.28175},
}
Figure