NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

You Point, I Learn: Online Adaptation of Interactive Segmentation Models for Handling Distribution Shifts in Medical Imaging

Wentian Xu, Ziyun Liang, Harry Anthony, Yasin Ibrahim, Felix Cohen, Guang Yang, Konstantinos Kamnitsas

TL;DR

This paper introduces OAIMS (Online Adaptation for Interactive Medical-image Segmentation), a practical framework that allows deep learning models to adapt to unseen data distributions in real-time using clinician feedback. By treating user-corrected segmentations as pseudo-ground-truth and introducing a novel Click-Centered Gaussian loss, the model continuously updates its parameters during deployment, significantly mitigating performance drops caused by scanner or modality shifts.

What Problem Does This Paper Address?

Deep learning models excel at medical image segmentation when the test data looks exactly like the training data. However, in real-world clinical settings, models frequently encounter distribution shifts—variations in images caused by different scanner manufacturers, imaging protocols, or patient pathologies. When faced with these shifts, standard automated models perform poorly.

While interactive segmentation allows clinicians to guide a model using mouse clicks, traditional models treat each image in isolation; they don't learn from the user's corrections to improve their future predictions. Existing online adaptation methods attempt to solve this but focus too narrowly on the exact pixels clicked, requiring complex mathematical regularizers to prevent the model from overfitting. This paper tackles the challenge of designing a lean, fast, and robust framework that continuously adapts a model's parameters across sequential test images using routine clinical feedback.

Methods

The authors propose OAIMS, a two-pronged online adaptation framework built on top of a standard modified U-Net architecture. The core innovation lies in how user interactions are translated into network weight updates:

  1. Click-Centered Gaussian (CCG) Loss: Instead of calculating loss only on the single pixel clicked, the CCG loss penalizes incorrect predictions within a localized region around the click, weighted by a Gaussian kernel. Crucially, it is class-limited, meaning a foreground click only enforces corrections on surrounding pixels that are actually foreground in the pseudo-ground-truth mask, preventing the model from corrupting nearby boundaries.
  2. Mid-Interaction (MI) Adaptation: Updates the model weights incrementally after each click on the current image. It uses the model's post-click prediction as a temporary pseudo-label to guide immediate parameter updates, creating a highly responsive feedback loop for the clinician.
  3. Post-Interaction (PI) Adaptation: Occurs in two stages after the clinician is fully satisfied with the final segmentation ($P_{final}$):
  4. Stage 1: Fine-tunes the model using only the initial localization click against $P_{final}$ to improve the model's first-guess capability on subsequent images.
  5. Stage 2: Automatically generates artificial correction clicks on remaining erroneous regions and fine-tunes the model using the combined Dice-Focal and CCG loss.
Overview of the OAIMS framework showing Pretraining, Mid-Interaction, and Post-Interaction adaptation stages.

Datasets

The framework was rigorously evaluated across diverse distribution shifts using two main imaging domains:

  • Fundus Imaging (Retinal Segmentation): Pretrained on REFUGE2 (source) and adapted/tested on four distinct target datasets representing different clinical sites and scanners: G1020, GS1-Drishti, GAMMA, and PAPILA.
  • Brain MRI Lesion Segmentation: Pretrained on BraTS2023 (using the FLAIR modality) and adapted to different modalities (T1, T1c, T2) and entirely different pathologies across three other datasets: ATLAS v2.0 (Stroke), WMH (White Matter Hyperintensities), and a non-public TBI (Traumatic Brain Injury) dataset.

Key Insights and Ideas

  • The Final Mask is Enough: A key insight is that the final segmentation mask at the end of a user's interactive session is of high enough quality to act as a pseudo-ground-truth target for the entire image. This eliminates the need for complex pixel-level regularizers used in prior work.
  • Pretraining with CCG Matters: Incorporating the CCG loss during the initial offline training phase forces the model to rely more heavily on user prompts rather than domain-specific image signals, making it inherently more robust to distribution shifts even before online adaptation begins.
  • Resilience to Human Error: Surprisingly, the framework is highly resilient to noisy inputs. Even when simulated users provide up to 40% incorrect clicks, the combination of the Gaussian weighting and the pseudo-ground-truth mask prevents the model from destabilizing.

Key Results

  • Substantial Performance Gains: On severe brain MRI modality shifts (e.g., adapting a FLAIR-trained model to T1 scans), OAIMS achieved absolute Dice score improvements exceeding 10%, consistently outperforming state-of-the-art methods like TSCA and IA+SA.
  • High Click Efficiency: OAIMS dramatically reduces the user burden. As shown in the paper's evaluations, it requires significantly fewer clicks to reach a target clinical accuracy of 80% Dice compared to competing methods (e.g., 4.43 clicks vs. 10.60 clicks for TSCA on BRATS T1).
  • Negligible Latency: The adaptation updates take a mere 0.05 seconds for Mid-Interaction and 0.09 seconds for Post-Interaction on an NVIDIA A5000 GPU, making the learning process completely imperceptible to the clinician. Even on a standard CPU, latencies remain well under half a second.
Visual comparison demonstrating that OAIMS produces segmentations closest to the ground truth across different modalities and pathologies.

Limitations and Future Work

While OAIMS demonstrates impressive adaptation capabilities, the authors note a few areas for future exploration:

  • Prompt Modalities: The current framework is strictly designed around click-based inputs. Extending this online adaptation logic to other common interactive prompts, such as scribbles or bounding boxes, remains an open avenue.
  • Backbone Architectures: The experiments were conducted primarily using a modified U-Net backbone. Although the adaptation method itself is model-agnostic, validating its performance on newer vision transformer-based architectures (like SAM derivatives) in an online setting is a logical next step.

Summary updated

BibTeX
@inproceedings{xu2026you,
  author = {Wentian Xu and Ziyun Liang and Harry Anthony and Yasin Ibrahim and Felix Cohen and Guang Yang and Konstantinos Kamnitsas},
  title = {{You Point, I Learn: Online Adaptation of Interactive Segmentation Models for Handling Distribution Shifts in Medical Imaging}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=n0vHjCiLD2},
}
Figure