Skip to main content
QUICK REVIEW

[Paper Review] DiffusePast: Diffusion-based Generative Replay for Class Incremental Semantic Segmentation

Jingfan Chen, Yuxi Wang|arXiv (Cornell University)|Aug 2, 2023
Domain Adaptation and Few-Shot LearningComputer Science3 citations
TL;DR

This paper proposes DiffusePast, a diffusion-based generative replay framework for class-incremental semantic segmentation that improves mask accuracy and reduces catastrophic forgetting. By leveraging a dual-generator paradigm—Distribution-aligned Diffusion Replay (DDR) and Structure-preserved Diffusion Replay (SDR)—it generates high-fidelity, semantically precise images with reliable pseudo-masks, achieving state-of-the-art performance on VOC 15-5 and ADE20K 50-50 benchmarks.

ABSTRACT

The Class Incremental Semantic Segmentation (CISS) extends the traditional segmentation task by incrementally learning newly added classes. Previous work has introduced generative replay, which involves replaying old class samples generated from a pre-trained GAN, to address the issues of catastrophic forgetting and privacy concerns. However, the generated images lack semantic precision and exhibit out-of-distribution characteristics, resulting in inaccurate masks that further degrade the segmentation performance. To tackle these challenges, we propose DiffusePast, a novel framework featuring a diffusion-based generative replay module that generates semantically accurate images with more reliable masks guided by different instructions (e.g., text prompts or edge maps). Specifically, DiffusePast introduces a dual-generator paradigm, which focuses on generating old class images that align with the distribution of downstream datasets while preserving the structure and layout of the original images, enabling more precise masks. To adapt to the novel visual concepts of newly added classes continuously, we incorporate class-wise token embedding when updating the dual-generator. Moreover, we assign adequate pseudo-labels of old classes to the background pixels in the new step images, further mitigating the forgetting of previously learned knowledge. Through comprehensive experiments, our method demonstrates competitive performance across mainstream benchmarks, striking a better balance between the performance of old and novel classes.

Motivation & Objective

  • To address catastrophic forgetting and poor pseudo-mask quality in class-incremental semantic segmentation (CISS) caused by GAN-based generative replay.
  • To overcome the limitations of GAN-based methods, including semantic inaccuracies and distribution mismatches due to out-of-vocabulary concepts and frozen generators.
  • To improve the fidelity and semantic consistency of replayed images and their corresponding pseudo-labels using diffusion models.
  • To maintain knowledge of old classes while adapting to novel visual concepts in incremental learning.
  • To enhance model generalization by assigning pseudo-labels to background pixels in newly generated images.

Proposed method

  • Introduces a dual-generator framework: Distribution-aligned Diffusion Replay (DDR) to match the data distribution of old classes, and Structure-preserved Diffusion Replay (SDR) to preserve spatial layout and mask structure.
  • Uses pre-trained Stable Diffusion with class-wise token embeddings during generator updates to adapt to new visual concepts without full fine-tuning.
  • Applies text prompts or edge maps as conditional inputs to guide image generation, ensuring semantic consistency with original data.
  • Assigns pseudo-labels to background pixels in generated images to reinforce discrimination between old and novel classes.
  • Employs knowledge distillation with cross-entropy and logit distillation on both old class logits and background logits to stabilize learning.
  • Merges DDR and SDR samples with a 0.8 ratio in practice, balancing distribution alignment and structural fidelity.

Experimental results

Research questions

  • RQ1Can diffusion-based generative replay outperform GAN-based methods in generating semantically accurate images and precise pseudo-masks for CISS?
  • RQ2How does the dual-generator design (DDR and SDR) improve distribution alignment and structural preservation in replayed images?
  • RQ3To what extent does incorporating class-wise token embeddings help in adapting to novel visual concepts without catastrophic forgetting?
  • RQ4Does assigning pseudo-labels to background pixels in generated images enhance discrimination and reduce forgetting?
  • RQ5How does the choice of generative replay size affect model performance in incremental learning settings?

Key findings

  • DiffusePast achieves 73.45 mIoU and 66.27 hIoU on ADE20K 50-50, outperforming prior methods including memory replay baselines.
  • The ablation study shows that DDR and SDR individually improve performance over standard Stable Diffusion (SD), with DDR yielding the highest gains on ADE20K.
  • Using both CE and KD with background logit distillation improves mIoU by 2.43 points compared to using only pseudo-labels.
  • Even with only 20 generated samples, DiffusePast maintains strong performance, while SD-based generation with small sizes degrades performance due to distribution mismatch.
  • The method consistently outperforms memory replay-based baselines (SSUL-M and Ours-M), demonstrating the advantage of dynamic, diverse replay over fixed memory.
  • The ablation confirms that distilling to background logits harms performance, while pseudo-labeling and proper distillation significantly reduce forgetting.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.