DR.WILSS: Diffusion-Based Replay for Weakly Supervised Continual Semantic Segmentation

Leon Arthur Marx, Francesco Barbato, Matteo Caligiuri, Pietro ZanuttigharXiv 2026

TL;DR

DR.WILSS introduces a data-free generative replay mechanism using diffusion models to tackle catastrophic forgetting in weakly supervised continual semantic segmentation. By leveraging text prompts, dataset-specific LoRAs, and a post-generation consistency check, it achieves state-of-the-art performance without storing old images or relying on external web data.

What Problem Does This Paper Address?

Continual learning in semantic segmentation aims to teach models new classes over time. However, deep learning models suffer from catastrophic forgetting—they rapidly overwrite old knowledge when learning new concepts. While fully supervised continual learning methods exist, pixel-level annotations are incredibly expensive and labor-intensive to produce.

Weakly Supervised Class-Incremental Semantic Segmentation (WILSS) attempts to solve this by using cheap, image-level labels (e.g., simply knowing "this image contains a car and a person") during incremental steps. However, existing WILSS methods face severe bottlenecks: they either fail completely when learning classes one by one (single-class increments), require storing past real data (violating privacy constraints), or rely on unpredictable web-scraping.

DR.WILSS addresses these gaps by generating its own high-quality replay data on the fly, creating a self-contained, privacy-preserving framework for continual learning.

Methods

The DR.WILSS framework consists of two main components: a segmentation module and a generative replay module.

Fig. 1. Overview of the DR.WILSS replay strategy: at each training step the segmentation network is trained with a combination of real data and replay samples from the generative module. During training, representative captions are acquired to be used in conjunction with a LoRA module trained on the step data to control the generative model in the next step. A post-generation consistency check ensures that all prompted classes are present.
  1. Generative Replay via Diffusion: Instead of saving old images, the framework saves text captions describing the classes present in past training images (e.g., "photo of a motorbike and a person"). A text-to-image diffusion model (Stable Diffusion 2.1 or XL) uses these captions to synthesize replay images.
  2. LoRA Alignment: To ensure the generated images match the specific style and statistical distribution of the original dataset (rather than generic internet images), the authors fine-tune Low-Rank Adaptation (LoRA) modules on a small subset of representative images selected via CLIP prototypes.
  3. Consistency Checking & Resampling: Text-to-image models occasionally fail to generate all requested objects. DR.WILSS introduces a post-generation consistency check: it uses the current segmentation model to verify if all prompted classes are actually present in the generated image. If any are missing, it resamples the image with a different seed (up to 4 times).
  4. Segmentation & Pseudo-Labeling: The segmentation network trains on an interleaved dataset of real new data and synthetic replay data. A localizer head generates dense pixel-level pseudo-labels from the weak image-level labels, combining predictions from the localizer and the previous step's model to mitigate forgetting.
Fig. 2. At step t > 0, the model is trained on new data and replay data of previous classes. The localizer and previous model provide pseudolabels.

Datasets

The authors evaluated their approach on two major benchmarks:

  • Augmented Pascal VOC 2012: A standard semantic segmentation dataset, evaluated across multiple incremental configurations (10-5, 15-5, 10-1, and 15-1 class splits).
  • COCO-to-VOC (C2V): A challenging multi-domain benchmark where the model is initially trained on 60 non-overlapping COCO classes and then incrementally learns 20 shared classes on the Pascal VOC dataset.

Key Insights and Ideas

  • Bigger isn't always better for downstream tasks: Surprisingly, replacing Stable Diffusion 2.1 with the larger, more advanced Stable Diffusion XL (SDXL) decreased segmentation performance. The authors hypothesize that downstream segmentation models care more about precise semantic layout and content than high-fidelity, human-appealing visual quality.
  • LoRAs prevent drift over long horizons: While LoRA adapters have a minor impact on single-step increments (like the 15-5 split), they provide a massive performance boost (~5% mIoU) in multi-step incremental scenarios (like the 15-1 split). They keep the generative model tightly aligned with the target dataset distribution over time.
  • Solving the single-class increment bottleneck: Previous data-free methods failed at single-class increments because they relied on negative examples from other classes within the same batch. Generative replay naturally provides these negative examples, unlocking true single-class continual learning.

Key Results

DR.WILSS achieved state-of-the-art (SOTA) performance among memory-free, weakly supervised methods:

  • Pascal VOC 10-5 (Two-Step): Achieved a mean Intersection over Union (mIoU) of 58.1% (disjoint) and 62.4% (overlapped), outperforming the closest competitor by up to 4.5%.
  • Pascal VOC 15-1 (Single-Class Steps): In this highly challenging setting where previous data-free methods collapsed to near 0% mIoU on new classes, DR.WILSS maintained an impressive 60.3% (disjoint) and 60.4% (overlapped) mIoU, outperforming the only other viable data-free baseline by over 30%.
Fig. 3. Qualitative results for the overlapped 15-5 scenario.

Qualitative analysis (Figure 3) demonstrates that DR.WILSS successfully preserves old knowledge without getting confused by visually similar new classes (such as distinguishing a bus from a train, or a cow from a sheep).

Limitations and Future Work

  • Computational Cost: Generating thousands of synthetic images via diffusion is computationally heavy. For instance, generating the initial 15 classes on Pascal VOC took roughly 18 hours (using SD2.1 in fp32). However, the authors note this is an offline cost incurred only between training steps.
  • Complex Scene Generation: While the consistency check filters out bad generations, diffusion models still struggle to perfectly render highly complex scenes with many overlapping objects.
  • Future Directions: The authors plan to explore alternative diffusion architectures, improve generation strategies for complex scenes, and further investigate the discrepancy between human visual preference and model training utility.

Summary updated

BibTeX
@misc{marx2026dr,
  author = {Leon Arthur Marx and Francesco Barbato and Matteo Caligiuri and Pietro Zanuttigh},
  title = {{DR.WILSS: Diffusion-Based Replay for Weakly Supervised Continual Semantic Segmentation}},
  year = {2026},
  eprint = {2609.18444},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.18444},
}
Figure