IOP-FL: Inside-Outside Personalization for Federated Medical Image Segmentation

Meirui Jiang, Hongzheng Yang, Cheng Chen, Qi Dou

TL;DR

IOP-FL is a novel federated learning framework that achieves high-accuracy medical image segmentation by personalizing models for both participating ("inside") and unseen ("outside") institutions. It combines a gradient-based local adaptation strategy with an unsupervised test-time routing scheme that dynamically fuses multiple models to fit new, unseen data distributions.

What Problem Does This Paper Address?

Federated Learning (FL) allows multiple hospitals to collaboratively train a model without sharing sensitive patient data. However, a one-size-fits-all "global model" often performs poorly because medical images vary significantly across different scanners, protocols, and patient demographics—a challenge known as data heterogeneity.

While existing research focuses on personalizing models for the clients inside the federation, these models often struggle when deployed to outside clients (new hospitals) that weren't part of the original training. These unseen sites face even more severe performance drops due to distribution shifts. The authors aim to bridge this gap with a unified framework for both "Inside" and "Outside" personalization.

Motivation for inside-outside personalization: a single global model is often sub-optimal for diverse local data distributions.

Methods

The IOP-FL framework consists of two main stages:

  1. Inside Personalization: During federated training, each client learns a local adapted model. Instead of just following the global model, each client accumulates both global gradients (capturing general anatomical knowledge) and local gradients (capturing site-specific features). This ensures the model stays grounded in common knowledge while specializing for the local site.
  2. Outside Personalization: For a new hospital outside the federation, the framework constructs a routing space consisting of all the personalized models from the training clients plus the global model.
  3. Test-Time Routing: When the outside client receives a new image, the system doesn't just pick one model. Instead, it uses a test-time routing scheme to dynamically calculate a weighted combination of all models in the routing space. This process is unsupervised, meaning it doesn't need ground-truth labels. It optimizes the weights using a consistency loss (ensuring the model is robust to small image perturbations) and a shape constraint (a prior that encourages the output to maintain realistic anatomical shapes, like ellipses).
Overview of the IOP-FL framework showing the dual stages of inside and outside personalization.

Datasets

The authors evaluated their method on two challenging medical segmentation tasks:

  • Prostate MRI Segmentation: Data from 6 different sources (hospitals/datasets) with varying image qualities and protocols.
  • Retinal Fundus Image Segmentation: Focused on the optic disc and cup, using data from 4 different institutions.

In both cases, they used a "leave-one-client-out" approach to test outside personalization, treating one site as the unseen hospital.

Key Insights and Ideas

  • The Power of the Routing Space: The core "aha moment" is treating the collection of diverse local models as a rich basis for representing unseen data. An unseen hospital's data distribution is likely to be similar to one—or a mixture of—the existing training sites.
  • Domain-Specific Priors: In medical imaging, we often know what the target should look like (e.g., a prostate is roughly elliptical). By baking this "shape constraint" into the unsupervised test-time loss, the model can self-correct its predictions on unseen data without needing a human to provide labels.
  • Gradient Accumulation for Stability: By using an accumulation rate ($\tau$) to mix global and local information, the framework prevents local models from diverging too far or becoming unstable due to noisy local data.

Key Results

IOP-FL demonstrated superior performance over state-of-the-art (SOTA) methods:

  • Inside Performance: On the prostate MRI task, IOP-FL improved the average Dice score (a measure of overlap between prediction and reality) by 2.63% over the standard FedAvg baseline.
  • Outside Performance: For unseen clients, IOP-FL outperformed FedAvg by 3.47% and significantly beat other test-time adaptation methods like TTT and Tent.
  • Qualitative Excellence: As shown in the qualitative results, IOP-FL produces much cleaner and more anatomically accurate segmentation boundaries compared to other methods, which often produce fragmented or incomplete shapes on unseen data.
Qualitative comparison showing IOP-FL producing more accurate and complete segmentation masks than competing methods.

Limitations and Future Work

  • Privacy Concerns: Sharing all internal personalized models with an outside client could theoretically leak information about the training data. While the authors tested against "model inversion attacks" and found their method robust, this remains a sensitive area for clinical deployment.
  • Shape Constraint Generality: The current shape constraint is optimized for elliptical structures. The authors note that for irregular shapes (like certain tumors), this specific prior might need to be adjusted or replaced.
  • Scalability: As the number of participating hospitals grows, the routing space becomes larger, increasing the computational cost of test-time optimization. Future work may involve selecting only the most "representative" models to transfer to outside clients.

Summary updated

BibTeX
@article{jiang2023iop,
  author = {Meirui Jiang and Hongzheng Yang and Cheng Chen and Qi Dou},
  title = {{IOP-FL: Inside-Outside Personalization for Federated Medical Image Segmentation}},
  journal = {IEEE Trans. Medical Imaging},
  year = {2023},
  doi = {10.1109/tmi.2023.3263072},
}
Figure