Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Unsupervised Continual Anomaly Detection with Contrastively-learned Prompt

About

Unsupervised Anomaly Detection (UAD) with incremental training is crucial in industrial manufacturing, as unpredictable defects make obtaining sufficient labeled data infeasible. However, continual learning methods primarily rely on supervised annotations, while the application in UAD is limited due to the absence of supervision. Current UAD methods train separate models for different classes sequentially, leading to catastrophic forgetting and a heavy computational burden. To address this issue, we introduce a novel Unsupervised Continual Anomaly Detection framework called UCAD, which equips the UAD with continual learning capability through contrastively-learned prompts. In the proposed UCAD, we design a Continual Prompting Module (CPM) by utilizing a concise key-prompt-knowledge memory bank to guide task-invariant `anomaly' model predictions using task-specific `normal' knowledge. Moreover, Structure-based Contrastive Learning (SCL) is designed with the Segment Anything Model (SAM) to improve prompt learning and anomaly segmentation results. Specifically, by treating SAM's masks as structure, we draw features within the same mask closer and push others apart for general feature representations. We conduct comprehensive experiments and set the benchmark on unsupervised continual anomaly detection and segmentation, demonstrating that our method is significantly better than anomaly detection methods, even with rehearsal training. The code will be available at https://github.com/shirowalker/UCAD.

Jiaqi Liu, Kai Wu, Qiang Nie, Ying Chen, Bin-Bin Gao, Yong Liu, Jinbao Wang, Chengjie Wang, Feng Zheng• 2024

Related benchmarks

TaskDatasetResultRank
Anomaly LocalizationMVTec-AD (test)--
181
Anomaly LocalizationVisA
PCB170.2
35
Continual Anomaly DetectionMVTec 3 x 5 with 5 Steps AD (test)
Image-level A-AUROC84.8
10
Continual Anomaly DetectionVisA Setting 5: 11-1 with 1 Step
A-AUROC (Image-level)85.9
10
Continual Anomaly DetectionVisA Setting 7: 8-1x4 with 4 Steps
Image-level A-AUROC78.8
10
Continual Anomaly DetectionMVTec 14 - 1 with 1 Step AD (test)
A-AUROC (Image-level)93.8
10
Continual Anomaly DetectionMVTec 10 - 1 x 5 with 5 Steps AD (test)
Image-level A-AUROC0.912
10
Continual Anomaly DetectionVisA Setting 6: 8-4 with 1 Step
Image-level A-AUROC79.9
10
Continual Anomaly DetectionMVTec 10 - 5 with 1 Step AD (test)
Image-level A-AUROC88.7
10
Continual Multi-category Anomaly DetectionMVTec-AD (test)
Bottle1
7
Showing 10 of 25 rows

Other info

Follow for update