ReplayCAD: Generative Diffusion Replay for Continual Anomaly Detection

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Hu, Lei, Gan, Zhiyong, Deng, Ling, Liang, Jinglin, Liang, Lingyu, Huang, Shuangping, Chen, Tianshui
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912369778622464
author Hu, Lei
Gan, Zhiyong
Deng, Ling
Liang, Jinglin
Liang, Lingyu
Huang, Shuangping
Chen, Tianshui
author_facet Hu, Lei
Gan, Zhiyong
Deng, Ling
Liang, Jinglin
Liang, Lingyu
Huang, Shuangping
Chen, Tianshui
contents Continual Anomaly Detection (CAD) enables anomaly detection models in learning new classes while preserving knowledge of historical classes. CAD faces two key challenges: catastrophic forgetting and segmentation of small anomalous regions. Existing CAD methods store image distributions or patch features to mitigate catastrophic forgetting, but they fail to preserve pixel-level detailed features for accurate segmentation. To overcome this limitation, we propose ReplayCAD, a novel diffusion-driven generative replay framework that replay high-quality historical data, thus effectively preserving pixel-level detailed features. Specifically, we compress historical data by searching for a class semantic embedding in the conditional space of the pre-trained diffusion model, which can guide the model to replay data with fine-grained pixel details, thus improving the segmentation performance. However, relying solely on semantic features results in limited spatial diversity. Hence, we further use spatial features to guide data compression, achieving precise control of sample space, thereby generating more diverse data. Our method achieves state-of-the-art performance in both classification and segmentation, with notable improvements in segmentation: 11.5% on VisA and 8.1% on MVTec. Our source code is available at https://github.com/HULEI7/ReplayCAD.
format Preprint
id arxiv_https___arxiv_org_abs_2505_06603
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle ReplayCAD: Generative Diffusion Replay for Continual Anomaly Detection
Hu, Lei
Gan, Zhiyong
Deng, Ling
Liang, Jinglin
Liang, Lingyu
Huang, Shuangping
Chen, Tianshui
Computer Vision and Pattern Recognition
Continual Anomaly Detection (CAD) enables anomaly detection models in learning new classes while preserving knowledge of historical classes. CAD faces two key challenges: catastrophic forgetting and segmentation of small anomalous regions. Existing CAD methods store image distributions or patch features to mitigate catastrophic forgetting, but they fail to preserve pixel-level detailed features for accurate segmentation. To overcome this limitation, we propose ReplayCAD, a novel diffusion-driven generative replay framework that replay high-quality historical data, thus effectively preserving pixel-level detailed features. Specifically, we compress historical data by searching for a class semantic embedding in the conditional space of the pre-trained diffusion model, which can guide the model to replay data with fine-grained pixel details, thus improving the segmentation performance. However, relying solely on semantic features results in limited spatial diversity. Hence, we further use spatial features to guide data compression, achieving precise control of sample space, thereby generating more diverse data. Our method achieves state-of-the-art performance in both classification and segmentation, with notable improvements in segmentation: 11.5% on VisA and 8.1% on MVTec. Our source code is available at https://github.com/HULEI7/ReplayCAD.
title ReplayCAD: Generative Diffusion Replay for Continual Anomaly Detection
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2505.06603