Abstract
Federated Learning (FL) is a pioneering approach in distributed machine learning, enabling collaborative model training across multiple clients while retaining data privacy. However, the inherent heterogeneity due to imbalanced resource representations across multiple clients poses significant challenges, often introducing bias towards the majority class. This issue is particularly prevalent in healthcare settings, where hospitals acting as clients share medical images. To address class imbalance and reduce bias, we propose a co-distillation driven framework in a federated healthcare setting. Unlike traditional federated setups with a designated server client, our framework promotes knowledge sharing among clients to collectively improve learning outcomes. Our experiments demonstrate that in a federated healthcare setting, co-distillation outperforms other federated methods in handling class imbalance. Additionally, we demonstrate that our framework has the least standard deviation with increasing imbalance while outperforming other baselines, signifying the robustness of our framework for FL in healthcare.
Introduction
Federated Learning (FL) has emerged as a vital paradigm for healthcare, allowing institutions like hospitals to collaboratively train machine learning models without compromising patient privacy by sharing raw data. Despite its potential, FL faces a major hurdle: data heterogeneity. In real-world medical settings, datasets are rarely "Independent and Identically Distributed" (IID). Hospitals often specialize in certain conditions, leading to severe class imbalances where one institution may have an abundance of data for a specific disease (the majority class) while others have very little (the minority class).
Standard FL algorithms, such as FedAvg, often struggle in these skewed environments, producing models biased toward majority classes and resulting in poor performance on rare conditions. Furthermore, traditional FL requires the exchange of full model parameters, which is communication-intensive and poses potential privacy risks. This paper introduces a co-distillation framework designed to overcome these challenges by facilitating efficient and robust knowledge sharing.
Methodology: Co-distillation Driven Federated Learning
The proposed framework utilizes a Co-distillation (CD) approach that replaces traditional central server aggregation with a peer-to-peer knowledge exchange. The process is centered around a student-teacher dynamic:
- Expertise Identification: Each client identifies its "expertise class"—the category for which it possesses the most significant amount of local data.
- Knowledge Transfer: In each training round, a "student" client randomly selects a "teacher" client. The student requests "soft targets" (probabilistic predictions) and averaged feature representations from the teacher specifically for the teacher's expertise class.
- Dual-Loss Optimization: The student updates its local model using two loss components: a standard Cross-Entropy Loss for its own local data, and a Distillation Loss (MSE) that penalizes discrepancies between the student’s local features and the expert representations received from the teacher.
This "mutual learning" mechanism allows a hospital with limited data on a specific condition to "learn" essential feature patterns from a specialized peer, all without either party ever seeing the other's raw medical images.
Experimental Setup
The framework's efficacy was evaluated using two prominent medical imaging datasets: the APTOS 2019 Blindness Detection dataset and the COVID-19 Radiography Database. To test robustness, the researchers simulated varying degrees of data "skew" (from 0% to 60%) by randomly removing minority class images at specific client sites.
Results and Discussion
The Co-distillation (CD) method demonstrated superior performance and stability compared to established baselines like FedDistill (FD), FedProto (FP), and FedAvg.
Performance in High-Skew Environments
In scenarios with 60% data imbalance, CD achieved an accuracy of 81.7% on the APTOS dataset and 90.3% on the COVID-19 dataset. As shown in the table below, CD consistently maintains high accuracy even as the data becomes increasingly imbalanced, whereas traditional methods often see significant performance degradation.
Robustness and Efficiency
- Stability: CD exhibited the lowest standard deviation (as low as 0.03) across different skew levels, indicating high reliability in heterogeneous environments.
- Communication Efficiency: By sharing only averaged features and logits rather than millions of model weights, the framework significantly reduces communication overhead, making it ideal for resource-constrained medical environments.
- Privacy Preservation: Sharing high-level probabilistic outputs and averaged features minimizes the risk of "reconstruction attacks" compared to weight-sharing approaches.
Conclusion
This co-distillation framework offers a robust solution for federated learning in healthcare, effectively addressing the challenges of class imbalance and data heterogeneity. While currently focused on binary classification, the results demonstrate its potential for broader applications in medical diagnosis. Future research will explore multi-class scenarios and more sophisticated peer-selection strategies to further optimize knowledge transfer across distributed networks.
Summary updated