Federated Learning (FL) is a transformative approach that allows multiple institutions to collaboratively train machine learning models without ever exchanging raw, sensitive data. While FL holds immense promise for privacy-preserving medical research, the field has been stuck in a "toy dataset" phase. Most FL research currently relies on synthetic data splits—taking a centralized dataset (like CIFAR-10) and artificially distributing it among "clients" using statistical heuristics.
The authors of FLamby (Federated Learning AMple Benchmark of Your cross-silo strategies) argue that these synthetic splits fail to capture the natural heterogeneity found in real-world "cross-silo" settings. In reality, data varies between hospitals due to different patient demographics, medical equipment manufacturers, staining techniques, and clinical protocols. Without benchmarks that reflect this natural noise, it is impossible to know if FL algorithms will actually work in the field. FLamby bridges this gap by providing a comprehensive, open-source benchmark suite designed specifically for realistic healthcare settings.
The FLamby Framework
FLamby is built as a modular Python library with a standardized API, making it compatible with existing FL frameworks like FedML or Substra. Its core components include:
- Standardized API: A consistent interface for downloading, preprocessing, and iterating over datasets.
- Baseline Models & Tasks: Each dataset is paired with a pre-defined "best-practice" model (e.g., 3D U-Nets for imaging, Cox models for survival analysis) and a specific performance metric (DICE, AUC, C-index).
- FL Strategy Implementations: The suite includes standard FL algorithms such as FedAvg, FedProx, Scaffold, and FedOpt (FedAdam/Yogi), as well as Cyclic Learning (sequential training).
- The "Pooled" Baseline: To measure the "cost" of federation, the authors provide a baseline where all data is centralized and trained traditionally. This represents the theoretical upper bound of model performance.
Realistic Healthcare Datasets
FLamby introduces seven diverse medical datasets—ranging from histopathology slides to tabular clinical data—all partitioned using "natural" splits rather than artificial synthetic partitions.
The datasets included are:
- Fed-Camelyon16: Binary classification of tumor slides, split across 2 hospitals.
- Fed-LIDC-IDRI: 3D lung nodule segmentation, partitioned by scanner manufacturer.
- Fed-IXI: 3D brain MRI segmentation, split across 3 hospitals.
- Fed-TCGA-BRCA: Breast cancer survival prediction using tabular clinical data, divided into 6 geographic regions.
- Fed-KITS2019: 3D kidney and tumor segmentation, distributed among 6 hospital groups.
- Fed-ISIC2019: Multi-class skin lesion classification, split by 6 acquisition systems.
- Fed-Heart-Disease: Tabular heart disease classification, separated across 4 countries.
Key Insights and Results
The Impact of Natural Heterogeneity
The authors demonstrate that natural heterogeneity is multi-faceted and complex. For example, in the Fed-IXI dataset, the voxel intensity distributions vary significantly between hospitals. This type of feature shift is something that simple label-based synthetic splits completely fail to replicate.
The Performance Gap
In most cases, FL strategies outperform training on a single local dataset, proving the inherent value of institutional collaboration. However, they rarely reach the performance of "pooled" (centralized) training, especially on complex imaging tasks.
- On the Fed-ISIC2019 (dermoscopy) task, the pooled baseline achieved a balanced accuracy of ~65%. Most FL strategies hovered around 50-55%, while local-only training dropped as low as 35% for some clients.
- Interestingly, for low-dimensional tabular datasets (like Fed-Heart-Disease and Fed-TCGA-BRCA), FL strategies were able to reach parity with pooled training. The "heterogeneity tax" seems much higher for high-dimensional imaging data.
No Silver Bullet Strategy
There is no single "best" FL strategy across all datasets. While FedAvg remains a strong baseline, FedOpt variants (like FedAdam) often perform better on challenging imaging tasks, whereas Scaffold helps mitigate "client drift" in others. Furthermore, Cyclic Learning (training on one client after another) consistently underperformed compared to parallel FL strategies, suggesting that simple sequential fine-tuning is not a robust substitute for true Federated Learning.
Finally, tuning FL algorithms for 3D medical imaging remains difficult. On the Fed-LIDC-IDRI dataset, several FL strategies failed to converge entirely, resulting in a DICE score of zero.
Limitations and Future Work
While FLamby is a massive step forward for applied FL research, the authors acknowledge several areas for future growth:
- Domain Scope: Currently, FLamby is restricted to healthcare. Expanding to finance or industrial IoT would broaden its utility.
- Framework Support: The current implementation is PyTorch-centric; support for TensorFlow or JAX is a potential future direction.
- Real-world Constraints: While the datasets are realistic, the benchmark doesn't yet fully integrate the computational overhead of Differential Privacy (DP) or Secure Aggregation, which are often required in production healthcare FL.
- Communication Assumptions: The benchmark assumes stable, high-bandwidth connections between silos, which is typical for hospitals but might not apply to all cross-silo use cases.
Summary updated