TL;DR
Training a single medical image segmentation model across diverse, sequentially arriving tasks usually leads to catastrophic forgetting due to simultaneous shifts in image appearance and segmentation targets. This paper introduces $C^2GR$, a framework that uses a novel Bayesian joint diffusion process and unified prompt synchronization to replay realistic, perfectly aligned image-mask pairs from past tasks. This approach achieves near-upper-bound performance across 20 distinct medical imaging datasets without storing any historical patient data.
What Problem Does This Paper Address?
Universal medical image segmentation models are highly desirable but difficult to train continuously. In clinical settings, data arrives sequentially from different departments (e.g., oncology, cardiology) using different modalities (MRI, CT, Ultrasound) and targeting different structures (tumors, organs). This sets up a Task-Incremental Learning (TIL) scenario characterized by concurrent shifts: changes in both image appearance and the segmentation objective.
Standard continual learning methods either tackle domain shifts (appearance) or class shifts (objectives) in isolation. Generative replay—generating synthetic data from past tasks to prevent forgetting—seems ideal for privacy-preserving continual learning. However, standard diffusion models fail here because adding noise to both images and masks during training destroys the spatial correspondence between them. Furthermore, optimizing the generator and segmentor independently leads to synthetic data that isn't optimized for the segmentation task.
Methods
The authors propose Coupled Comprehensive Generative Replay ($C^2GR$). As shown in the architecture overview below, it consists of two core innovations:
- Bayesian Joint Diffusion (BJD): Instead of a naive joint diffusion process that corrupts the image-mask relationship, BJD leverages Bayes' theorem to split the joint distribution into conditional distributions. During training, it alternates between using a clean image to denoise a noisy mask, and a clean mask to denoise a noisy image. This preserves strict structural alignment.
- Relation-aware Unified Prompt Synchronization (RUPS): To bridge the gap between generation and segmentation, RUPS creates a unified task prompt using a relation-aware prompt graph. This graph encodes task attributes (modality, anatomy, objective). The unified prompt is injected into both the generator and the segmentor via cross-attention, coupling their optimization and ensuring the generator produces "segmentation-oriented" data.
Datasets
The framework was evaluated on a massive stream of 20 sequential medical segmentation tasks spanning 8 modalities and 9 anatomical regions:
- Multi-site Fundus (A, B, C, D) for optic cup/disc segmentation.
- M&Ms MRI (A, B, C, D) for cardiac segmentation.
- BraTS MRI (T1, T1ce, T2, FLAIR) for brain tumor segmentation.
- Abdominal CTs: Pancreas, KiTS (Kidney), and LiTS (Liver).
- Other modalities: GlaS (Histopathology), BUSI (Ultrasound), QaTaV2 (X-ray), Polyp (Endoscopy), and ISIC18 (Dermoscopy).
For downstream adaptation testing on unseen tasks, they evaluated the model on 5 additional datasets: DRIVE, GOALS, SegPC, DDTI, and PROMISE12.
Key Insights and Ideas
- The Independence Assumption Fallacy: Naive joint diffusion assumes images and masks are independent when adding noise, which completely breaks the structural alignment needed for segmentation. Treating them conditionally (Bayesian style) fixes this.
- Shared Task Priors as a Bridge: Instead of treating the generator and segmentor as two separate entities, using a shared, relation-aware prompt allows the segmentor's task knowledge to directly guide and refine the generator's outputs.
- Anatomy Over Modality: The relation-aware prompt graph successfully learns that tasks sharing adjacent anatomical regions (like chest X-rays and cardiac MRI) share features, helping the model transfer knowledge across modalities more effectively.
Key Results
- Near-Upper-Bound Performance: $C^2GR$ achieved an Overall Dice Similarity Coefficient (DSC) of 83.62% across all 20 tasks, representing only a 2.44% drop compared to the "Joint Training" upper bound (86.06%), which trains on all data simultaneously.
- Outperforming the State-of-the-Art: It outperformed the second-best continual learning method (MedSeqFT) by 6.49% in Overall DSC and showed significantly better backward transfer (BWT of 98.16% vs 95.18%), meaning it retained past knowledge exceptionally well.
- Downstream Adaptability: When adapting to unseen downstream tasks, the model trained via $C^2GR$ consistently outperformed other continual learning baselines, proving that its learned features are highly generalizable.
Limitations and Future Work
- Fixed Resolution: Due to computational constraints, all images were resized to a fixed $256 \times 256$ resolution. This does not fully reflect clinical reality, where different modalities (like high-res mammography or histopathology) require vastly different resolutions.
- Future Directions: The authors plan to explore variable-resolution inputs under the TIL paradigm, potentially utilizing transformer backbones with visual token pruning to handle high-resolution inputs efficiently without exploding the computational cost.
Summary updated