TL;DR
The paper introduces FedSSG, a federated learning framework that tackles both class and domain imbalances in medical image classification. By leveraging a server-side pretrained diffusion model, FedSSG generates targeted synthetic samples locally on client devices to fill data gaps caused by rare diseases and variations in medical imaging hardware.
What Problem Does This Paper Address?
Federated Learning (FL) is a promising approach for training deep learning models on sensitive medical data because it allows multiple institutions to collaborate without sharing raw patient images. However, real-world medical data is notoriously messy and "non-IID" (not identically and independently distributed).
The authors identify three intertwined challenges that severely degrade standard FL performance:
- Statistical Heterogeneity: Images look different across hospitals due to varying acquisition protocols and scanner models (domain shift).
- Class Imbalance: Common conditions dominate hospital records, while rare pathologies are severely underrepresented.
- Domain Imbalance: Some imaging devices or institutional setups are much rarer or more expensive than others, leading to an unequal representation of domains across the entire federated network.
When standard FL algorithms encounter these combined imbalances, local client updates become highly biased, causing the global model to overfit dominant domains and fail on rare conditions or minority hardware.
Methods
To solve these issues, FedSSG introduces a three-step pipeline that integrates server-side pretraining, domain-aware clustering, and conditional data augmentation:
- Step 1: Server-Side Pretraining: Before federated training begins, the central server uses a publicly available, unlabelled/untyped dataset to pretrain both a global classifier ($M_{\theta_0}$) and a class-conditional generative model ($G_\phi$). The generator is a denoising diffusion model with a U-Net backbone, optimized to produce highly realistic medical images.
- Step 2: Client Initialization & Grouping: Clients download the pretrained classifier and the frozen generative model. Clients are grouped into domain-specific clusters based on their local acquisition device (e.g., specific types of dermatoscopes).
- Step 3: Smart Synthetic Sample Allocation: To prevent data-rich clients from dominating the training, the framework calculates a custom sample distribution. Each client computes a local class-imbalance weight and applies a domain-dependent scaling factor. The frozen diffusion model then generates targeted synthetic images locally on the client device to pad out underrepresented classes and minority domains.
Crucially, this allocation strategy relies only on aggregate statistics (sample counts per class), ensuring zero privacy leakage of raw patient data or intermediate features.
Datasets
The authors evaluated their approach using skin lesion images from the ISIC Archive, curating two distinct subsets:
- Untyped Dermoscopic Dataset (Public Data): Consists of 12,671 images across 5 diagnostic classes (actinic keratosis, basal cell carcinoma, melanoma, nevus, and seborrheic keratosis) without device metadata. This was used for server-side pretraining.
- Typed Dermoscopic Dataset (Private Data): Consists of 13,769 images stratified into three distinct device domains based on metadata: contact polarized (CP - 9,615 images), contact non-polarized (CNP - 3,364 images), and non-contact polarized (NCP - 790 images). This data was distributed across 85 simulated clients to mimic a realistic, highly unbalanced federated network.
Key Insights and Ideas
- Dual-Imbalance Mitigation: Instead of treating class and domain imbalances as separate issues, FedSSG uses a single generative mechanism to address both simultaneously. By scaling the number of generated images based on both class rarity and domain size, minority domains get a massive boost in representation.
- Zero-Overhead Privacy: Generating images locally using a frozen model means clients don't need to send any sensitive data back to the server, nor do they need to train complex generative models locally, which keeps the client-side computational footprint minimal.
- Pretraining is Essential: The paper demonstrates that initializing FL with a model pretrained on public data provides a robust, domain-agnostic starting point that significantly accelerates convergence and stabilizes training under heavy data heterogeneity.
Key Results
FedSSG was benchmarked against standard FedAvg and advanced federated optimization methods like MOON and FedProx.
- Overall Performance: When initialized with public-data pretraining, FedSSG achieved an average accuracy of 82.4% and an F1-score of 64.7%, outperforming pretrained
FedAvgby nearly 3% in accuracy and 2.6% in F1-score. - Minority Domain Gains: The most dramatic improvements occurred in the highly underrepresented domains. On the smallest device domain (NCP), FedSSG boosted classification accuracy by +6.3% compared to
FedAvg(jumping from 76.2% to 82.5%). - Robustness to Scale: Ablation studies showed that FedSSG consistently outperformed baselines regardless of variations in the total number of clients (tested on 70, 85, and 100 clients) or the number of active clients per round.
Limitations and Future Work
While FedSSG shows impressive results, the authors note a few areas for improvement:
- Evaluation Scope: The framework was validated exclusively on dermatoscopic (skin lesion) images. Its efficacy on other complex medical imaging modalities like 3D MRI, CT scans, or histopathology remains to be tested.
- Unseen Domains: The current setup assumes the server can group clients into known device domains during initialization. Future work will focus on enhancing the model's ability to generalize to entirely unseen acquisition devices and institutional settings.
Summary updated