{"type":"ScholarlyArticle","title":"ReplayCAD: Generative Diffusion Replay for Continual Anomaly Detection","authors":[{"name":"Lei Hu","slug":"lei-hu","given":"Lei","family":"Hu","affiliation":""},{"name":"Zhiyong Gan","slug":"zhiyong-gan","given":"Zhiyong","family":"Gan","affiliation":""},{"name":"Ling Deng","slug":"ling-deng","given":"Ling","family":"Deng","affiliation":""},{"name":"Jinglin Liang","slug":"jinglin-liang","given":"Jinglin","family":"Liang","affiliation":""},{"name":"Lingyu Liang","slug":"lingyu-liang","given":"Lingyu","family":"Liang","affiliation":""},{"name":"Shuangping Huang","slug":"shuangping-huang","given":"Shuangping","family":"Huang","affiliation":""},{"name":"Tianshui Chen","slug":"tianshui-chen","given":"Tianshui","family":"Chen","affiliation":""}],"abstract":"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.","doi":"10.24963/ijcai.2025/328","url":"https://ijcai.org/proceedings/2025/328","pdf":"https://ijcai.org/proceedings/2025/0328.pdf","markdown":"https://ijcai.org/proceedings/2025/328.md","bibtex":"https://ijcai.org/proceedings/2025/bibtex/328","volume":{"slug":"2025","title":"Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence","short_title":"IJCAI 2025","url":"https://ijcai.org/proceedings/2025/","year":2025,"location":"Montreal, Canada","dates":"16-22 August 2025","editors":"James Kwok","isbn":"978-1-956792-06-5","publisher":"International Joint Conferences on Artificial Intelligence Organization","doi_prefix":"10.24963/ijcai.2025"},"section":"Data Mining","track":"Main Track","number":328,"pages":{"first":2946,"last":2954},"keywords":["Computer Vision: CV: Applications and Systems","Machine Learning: ML: Incremental learning","Data Mining: DM: Anomaly/outlier detection"],"videos":[],"references":[],"license_note":"Copyright International Joint Conferences on Artificial Intelligence."}