Unsupervised Continual Anomaly Detection with Contrastively-learned Prompt (2401.01010v1)
Abstract: 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.
- Memory aware synapses: Learning what (not) to forget. In Proceedings of the European conference on computer vision, 139–154.
- Task-free continual learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 11254–11263.
- MVTec AD–A comprehensive real-world dataset for unsupervised anomaly detection. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 9592–9600.
- Uninformed students: Student-teacher anomaly detection with discriminative latent embeddings. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 4183–4192.
- Anomaly Detection: A Survey. ACM Computing Surveys. vol, 41: 15.
- Riemannian walk for incremental learning: Understanding forgetting and intransigence. In Proceedings of the European conference on computer vision, 532–547.
- Sub-image anomaly detection with deep pyramid correspondences. arXiv preprint arXiv:2005.02357.
- Padim: a patch distribution modeling framework for anomaly detection and localization. In Proceedings of International Conference on Pattern Recognition, 475–489. Springer.
- Anomaly localization by modeling perceptual features. arXiv preprint arXiv:2008.05369.
- Anomaly Detection via Reverse Distillation from One-Class Embedding. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 9737–9746.
- Imagenet: A large-scale hierarchical image database. In Proceedings of 2009 IEEE conference on computer vision and pattern recognition, 248–255. Ieee.
- The farthest point strategy for progressive image sampling. IEEE Transactions on Image Processing, 6(9): 1305–1315.
- Towards Total Online Unsupervised Anomaly Detection and Localization in Industrial Vision. arXiv preprint arXiv:2305.15652.
- Generative adversarial nets. Advances in neural information processing systems, 27.
- Cflow-ad: Real-time unsupervised anomaly detection with localization via conditional normalizing flows. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, 98–107.
- ReConPatch: Contrastive Patch Representation Learning for Industrial Anomaly Detection. arXiv preprint arXiv:2305.16713.
- Masked Swin Transformer Unet for Industrial Anomaly Detection. IEEE Transactions on Industrial Informatics.
- Softpatch: Unsupervised anomaly detection with noisy data. Advances in Neural Information Processing Systems, 35: 15433–15445.
- Adam: A Method for Stochastic Optimization. CoRR, abs/1412.6980.
- Segment Anything. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 4015–4026.
- Overcoming catastrophic forgetting in neural networks. In Proceedings of the national academy of sciences, 114(13): 3521–3526.
- Cfa: Coupled-hypersphere-based feature adaptation for target-oriented anomaly localization. IEEE Access, 10: 78446–78454.
- PyramidFlow: High-Resolution Defect Contrastive Localization using Pyramid Normalizing Flow. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 14143–14152.
- Cutpaste: Self-supervised learning for anomaly detection and localization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 9664–9674.
- Cross-Modal Alternating Learning with Task-Aware Representations for Continual Learning. IEEE Transactions on Multimedia.
- Towards continual adaptation in industrial anomaly detection. In Proceedings of the 30th ACM International Conference on Multimedia, 2871–2880.
- Omni-frequency channel-selection representations for unsupervised anomaly detection. arXiv preprint arXiv:2203.00259.
- Real3D-AD: A Dataset of Point Cloud Anomaly Detection. In Proceedings of Thirty-seventh Conference on Neural Information Processing Systems Datasets and Benchmarks Track.
- Deep Industrial Image Anomaly Detection: A Survey. arXiv preprint arXiv:2301.11514, 2.
- P-tuning v2: Prompt tuning can be comparable to fine-tuning universally across scales and tasks. arXiv preprint arXiv:2110.07602.
- Simplenet: A simple network for image anomaly detection and localization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 20402–20411.
- VT-ADL: A vision transformer network for image anomaly detection and localization. 2021 IEEE 30th International Symposium on Industrial Electronics (ISIE), 01–06.
- Anomaly Detection with Conditioned Denoising Diffusion Models. arXiv preprint arXiv:2305.15956.
- Inpainting transformer for anomaly detection. In Proceedings of International Conference on Image Analysis and Processing, 394–406.
- Towards total recall in industrial anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 14318–14328.
- Same same but differnet: Semi-supervised defect detection with normalizing flows. In Proceedings of the IEEE/CVF winter conference on applications of computer vision, 1907–1916.
- Fully convolutional cross-scale-flows for image-based defect detection. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, 1088–1097.
- Multiresolution knowledge distillation for anomaly detection. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, 14902–14912.
- Natural synthetic anomalies for self-supervised anomaly detection and localization. In Proceedings of European Conference on Computer Vision, 474–489. Springer.
- Revisiting reverse distillation for anomaly detection. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 24511–24520.
- Student-Teacher Feature Pyramid Matching for Anomaly Detection. BMVC.
- Learning to prompt for continual learning. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 139–149.
- Pushing the Limits of Fewshot Anomaly Detection in Industry Vision: Graphcore. In Proceedings of The Eleventh International Conference on Learning Representations.
- Im-iad: Industrial image anomaly detection benchmark in manufacturing. arXiv preprint arXiv:2301.13359.
- Learning semantic context from normal samples for unsupervised anomaly detection. In Proceedings of the AAAI conference on artificial intelligence, volume 35, 3110–3118.
- A unified model for multi-class anomaly detection. Advances in Neural Information Processing Systems, 35: 4571–4584.
- Fastflow: Unsupervised anomaly detection and localization via 2d normalizing flows. arXiv preprint arXiv:2111.07677.
- Draem-a discriminatively trained reconstruction embedding for surface anomaly detection. In Proceedings of the IEEE/CVF International Conference on Computer Vision, 8330–8339.
- DSR–A dual subspace re-projection network for surface anomaly detection. arXiv preprint arXiv:2208.01521.
- IDDM: An incremental dual-network detection model for in-situ inspection of large-scale complex product. Journal of Industrial Information Integration, 33: 100463.
- DiffusionAD: Denoising Diffusion for Anomaly Detection. arXiv preprint arXiv:2303.08730.
- Zhao, Y. 2023. OmniAL: A unified CNN framework for unsupervised anomaly localization. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 3924–3933.
- Spot-the-difference self-supervised pre-training for anomaly detection and segmentation. In Proceedings of European Conference on Computer Vision, 392–408. Springer.
- Jiaqi Liu (102 papers)
- Kai Wu (134 papers)
- Qiang Nie (25 papers)
- Ying Chen (333 papers)
- Bin-Bin Gao (35 papers)
- Yong Liu (721 papers)
- Jinbao Wang (30 papers)
- Chengjie Wang (178 papers)
- Feng Zheng (117 papers)