Comprehensive Generative Replay for Task-Incremental Segmentation with Concurrent Appearance and Semantic Forgetting

Wei Li, Jingyang Zhang, Pheng-Ann Heng, Lixu Gu

Abstract

Task-incremental learning (TIL) in medical imaging is often hindered by catastrophic forgetting, particularly when models encounter concurrent shifts in both image appearance (e.g., MRI vs. fundus photography) and semantic content (e.g., cardiac vs. prostate anatomy). This paper introduces Comprehensive Generative Replay (CGR), a framework that mitigates forgetting by synthesizing high-fidelity image-mask pairs from previous tasks. By utilizing a Bayesian Joint Diffusion (BJD) model for synchronized generation and Task-Oriented Adapters (TOA) for domain-specific prompt calibration, CGR ensures that the model "rehearses" past knowledge effectively. Experimental results across diverse medical datasets demonstrate that CGR maintains high performance (88.71% mean Dice Score) where traditional methods fail.

Introduction

In the pursuit of "generalist" medical AI, models must ideally handle a variety of diagnostic tasks across different modalities and anatomical structures. However, strict data privacy regulations often prevent the centralized pooling of datasets. This necessitates Task-Incremental Learning (TIL), where a model learns new tasks sequentially.

In medical contexts, TIL faces a unique challenge: concurrent appearance and semantic forgetting. When a model transitions from segmenting cardiac structures in MRI to optic discs in fundus images, it experiences a drastic shift in both the visual style (appearance) and the objects of interest (semantics). Standard incremental learning methods typically address one shift or the other, but often fail when both occur simultaneously, leading to "catastrophic forgetting" where performance on earlier tasks collapses.

Methodology

The Comprehensive Generative Replay (CGR) framework addresses these challenges through two primary technical innovations designed to create and utilize "synthetic memories."

Bayesian Joint Diffusion (BJD)

Traditional generative replay often struggles with alignment; if a generated image does not perfectly match its corresponding segmentation mask, the model learns incorrect spatial relationships. BJD treats the image and the mask as a joint distribution rather than independent entities. By employing conditional denoising—where the model uses a noisy version of the image to help predict a clean mask and vice versa—BJD ensures that the generated anatomy and labels are structurally realistic and perfectly synchronized. This high-fidelity alignment is critical for maintaining segmentation accuracy during the rehearsal phase.

Task-Oriented Adapter (TOA)

To guide the generator, the framework uses text prompts (e.g., "[MRI] images of [heart] for [segmentation]"). However, standard CLIP-based embeddings are often pre-trained on general internet imagery and lack the nuance required for medical domains. The TOA is a lightweight, learnable module that recalibrates these prompts. This allows the diffusion model to be steered toward specific medical tasks with minimal additional parameters, making the system both accurate and memory-efficient.

Experimental Setup and Datasets

The researchers evaluated CGR on a challenging pipeline of three distinct medical segmentation tasks:

  1. Cardiac MRI: Segmentation of the left/right ventricles and myocardium (320 subjects).
  2. Fundus Images: Segmentation of the optic cup and disc (1060 subjects).
  3. Prostate MRI: Segmentation of the prostate gland (116 subjects).

These datasets were selected to represent significant shifts in both modality and anatomy, providing a rigorous test for concurrent forgetting.

Key Results and Discussion

The CGR framework demonstrated significant improvements over existing state-of-the-art methods:

  • Mitigation of Forgetting: While standard models saw performance on initial tasks drop to near 0% Dice Score after learning subsequent tasks, CGR maintained a robust 88.71% mean Dice Score across the entire sequence.
  • Comparative Performance: CGR outperformed the previous leading generative replay method, Generative Appearance Replay (GAR), by approximately 1.77%. This improvement highlights the necessity of generating synchronized image-mask pairs rather than generating images alone and attempting to derive masks post-hoc.
  • Order Independence: The framework proved robust against "task ordering" effects. Whether the model learned Cardiac MRI first or Prostate MRI first, the final performance remained consistent, addressing a common instability in incremental learning systems.

Conclusion and Future Work

Comprehensive Generative Replay offers a viable path toward persistent learning in medical AI without violating data privacy. By ensuring the structural integrity of synthetic training data through Bayesian Joint Diffusion, the framework prevents the erosion of past knowledge.

Future research will focus on scaling CGR to more complex multi-organ segmentation and integrating the framework into large-scale medical foundation models. While the computational cost of diffusion models remains a consideration, the gains in accuracy and the ability to maintain multi-domain expertise represent a significant step toward universal medical diagnostic tools.

Summary updated

BibTeX
@inproceedings{li2024comprehensive,
  author = {Wei Li and Jingyang Zhang and Pheng-Ann Heng and Lixu Gu},
  title = {{Comprehensive Generative Replay for Task-Incremental Segmentation with Concurrent Appearance and Semantic Forgetting}},
  booktitle = {International Conference on Medical Image Computing and Computer-Assisted Intervention},
  year = {2024},
  doi = {10.1007/978-3-031-72111-3\_8},
}
Figure