FCA: Taming Long-tailed Federated Medical Image Classification by Classifier Anchoring

Jeffry Wicaksana, Zengqiang Yan, Kwang-Ting ChengarXiv 2023 · DOI

Abstract

Federated learning (FL) in medical imaging faces a "double whammy" of challenges: severe class imbalance (long-tailed data) and high variability between different hospitals (non-IID data). We present Federated Classifier Anchoring (FCA), a novel framework designed to produce a feature extractor that excels at both global generalization and local specialization. By using personalized local classifiers as "anchors" to guide a global model through consistency learning and class prior calibration, FCA addresses the distribution shifts that often cause standard FL models to diverge. Our evaluations on skin lesion and intracranial hemorrhage classification tasks demonstrate that FCA consistently outperforms state-of-the-art methods.

Introduction

In clinical settings, deep learning models encounter two major hurdles. First, data scarcity and privacy prevent hospitals from pooling datasets. Federated Learning (FL) addresses this by training models locally and sharing only weight updates. Second, medical data is naturally long-tailed; common conditions are overrepresented while rare, critical diseases are scarce.

Furthermore, different hospitals exhibit significant inter-client variation (non-IID data). For instance, one clinic may specialize in specific pathologies while another sees a broader, different distribution. This distribution shift often forces a trade-off: a global model that generalizes poorly to local nuances, or highly personalized models that fail to benefit from collective knowledge.

Figure 1: The challenge of long-tailed and non-IID data distributions across different hospitals compared to the overall distribution.

Methodology: Federated Classifier Anchoring (FCA)

The core of the FCA framework is the dual-classifier approach. Each client hospital maintains a personalized classifier (the anchor) alongside the shared federated classifier.

Figure 2: Overview of the FCA framework, illustrating the interaction between the server and local hospitals, including class prior calibration and consistency regularization.

Key Components

  1. Classifier Calibration: Both classifiers are debiased using Balanced Softmax Loss. This incorporates local class frequencies as a "prior," ensuring the model does not ignore rare diseases simply due to their low frequency.
  2. Classifier Anchoring: The local personalized classifier acts as a stable anchor. Unlike the federated classifier, it is not overwritten by server averaging every round, allowing it to retain a superior "memory" of the local data distribution.
  3. Consistency Regularization: The framework uses Kullback-Leibler (KL) divergence to penalize discrepancies between the predictions of the global federated classifier and the local anchor. This forces the shared feature extractor to learn representations that are effective for both global and local contexts.
  4. Stop-Gradient Trick: To maintain the stability of the anchor, gradients are prevented from flowing back through the personalized classifier during consistency updates. This ensures the anchor guides the federated model without being corrupted by it.

Experimental Results

The authors evaluated FCA on two major medical imaging benchmarks:

  • Skin Lesion Classification (Fed-ISIC2019): FCA achieved a 75.1% Balanced Accuracy (bACC), significantly outperforming the FedAvg baseline (69.3%) and personalized methods like FedRep (70.9%).
  • Intracranial Hemorrhage (ICH) Classification (RSNA-ICH): In a severe split simulating 10 clients with missing classes, FCA reached 66.2% bACC, while competing methods struggled to exceed 60%.

Key Insights

  • Stability: Anchoring the global model to a locally-kept classifier stabilizes training against the disruptive effects of server-side averaging.
  • Dual Performance: FCA minimizes the performance gap between global generalization and local specialization, proving robust across diverse clinical environments.
  • Calibration is Essential: The results highlight that accounting for class frequencies via Balanced Softmax is a critical prerequisite for handling long-tailed medical data in FL.

Conclusion

FCA provides a robust solution for federated medical image classification by balancing the needs of the collective global model with the specific requirements of local clinical sites. Future work may extend this anchoring concept to more complex tasks such as medical image segmentation or multi-modal data integration.

Summary updated

BibTeX
@misc{wicaksana2023fca,
  author = {Jeffry Wicaksana and Zengqiang Yan and Kwang-Ting Cheng},
  title = {{FCA: Taming Long-tailed Federated Medical Image Classification by Classifier Anchoring}},
  year = {2023},
  eprint = {2305.00738},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.00738},
}
Figure