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

SDDGR: Stable Diffusion-Based Deep Generative Replay for Class Incremental Object Detection

Junsu Kim, Hoseong Cho, Jihyeon Kim, Yihalem Yimolal Tiruneh, Seungryul BaekCVPR 2024 · DOI

Introduction

Class Incremental Object Detection (CIOD) is a critical challenge in computer vision, where a model must learn to recognize new object categories sequentially without losing its ability to detect previously learned ones. This phenomenon, known as catastrophic forgetting, typically occurs because the training data for old classes is no longer available during the learning of new tasks. While "Experience Replay"—storing a subset of real images—is a common mitigation strategy, it faces significant hurdles regarding data privacy and storage efficiency.

Generative Replay offers a promising alternative by using synthetic data to represent old classes. However, traditional Generative Adversarial Networks (GANs) often struggle to produce the complex, multi-object scenes required for robust object detection. This paper introduces SDDGR (Stable Diffusion-based Deep Generative Replay), a framework that leverages the superior image synthesis capabilities of Diffusion models to overcome these limitations.

The SDDGR Framework

The SDDGR framework addresses catastrophic forgetting through a sophisticated generative replay mechanism. Unlike standard replay methods, SDDGR does not require the storage of any real images from previous tasks. Instead, it "hallucinates" the necessary training data using a controlled diffusion process.

Overview of the SDDGR framework for class incremental object detection.

The framework is built upon four primary technical pillars designed to ensure the quality and relevance of the synthetic data:

  1. Controllable Generation (GLIGEN): To be useful for object detection, synthetic images must have precise spatial annotations. SDDGR utilizes GLIGEN, an extension of Stable Diffusion that incorporates bounding boxes and class labels as "grounding inputs." This allows the model to generate objects at specific coordinates, creating a synthetic dataset that perfectly mirrors the format of real detection data.
  2. Iterative Class-wise Refiner: Not all generated images are suitable for training. SDDGR employs the previous iteration of the object detector to evaluate synthetic samples. Images where the detector lacks confidence are either discarded or refined, ensuring a high-quality and balanced replay buffer.
  3. Pseudo-labeling: New training images often contain instances of old classes that are not explicitly labeled. To prevent the model from incorrectly learning these as "background," SDDGR uses the old detector to generate pseudo-labels for these hidden objects.
  4. L2 Distillation: Rather than training solely on hard synthetic labels, the framework uses Knowledge Distillation. By forcing the new model's internal feature representations to match those of the old model when processing synthetic images, the system achieves a more stable transfer of knowledge.
The SDDGR generation and training pipeline, featuring GLIGEN-based controllable generation and iterative refinement.

Experimental Results

The researchers evaluated SDDGR on the MS COCO 2017 dataset, a benchmark for complex object detection. The framework was tested across various incremental scenarios, including two-phase (40+40, 70+10) and multi-phase (40+10x4) settings.

In the 70+10 scenario, SDDGR achieved a state-of-the-art 40.9 AP, surpassing previous methods like CL-DETR. More impressively, in the challenging 5-step incremental task, SDDGR maintained a high accuracy of 36.8 AP, significantly outperforming the 28.1 AP achieved by the baseline. The "Forgetting Percentage Points" (FPP) metric also saw a dramatic improvement, dropping to just 1.9 in the 70+10 scenario, indicating near-perfect retention of old knowledge.

Discussion and Conclusion

A key insight of this work is that synthetic images do not need to be visually indistinguishable from reality to be effective. Instead, they serve as a "distillation bridge"—a medium through which the old model can pass its expertise to the new one. The spatial control provided by GLIGEN is essential for this process, as it allows the generation of complex scenes that challenge the detector appropriately.

While SDDGR sets a new standard for CIOD, it is not without limitations. The computational cost of running Diffusion models is higher than that of GANs, and the method's success is partially dependent on the breadth of the pre-trained Stable Diffusion model. Future work will likely focus on optimizing generation speed and exploring more complex scene compositions.

In conclusion, SDDGR demonstrates that Stable Diffusion is a powerful tool for overcoming catastrophic forgetting, providing a privacy-preserving and storage-efficient path forward for lifelong learning in object detection.

Summary updated

BibTeX
@inproceedings{kim2024sddgr,
  author = {Junsu Kim and Hoseong Cho and Jihyeon Kim and Yihalem Yimolal Tiruneh and Seungryul Baek},
  title = {{SDDGR: Stable Diffusion-Based Deep Generative Replay for Class Incremental Object Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  doi = {10.1109/cvpr52733.2024.02718},
}
Figure