AnomalyCLIP: Object-agnostic Prompt Learning for Zero-shot Anomaly Detection
Qihang Zhou, Guansong Pang, Yu Tian, Shibo He, Jiming Chen
Abstract
Zero-shot anomaly detection (ZSAD) requires detection models trained using auxiliary data to detect anomalies without any training sample in a target dataset. It is a crucial task when training data is not accessible due to various concerns, e.g., data privacy, yet it is challenging since the models need to generalize to anomalies across different domains where the appearance of foreground objects, abnormal regions, and background features, such as defects/tumors on different products/organs, can vary significantly. Recently large pre-trained vision-language models (VLMs), such as CLIP, have demonstrated strong zero-shot recognition ability in various vision tasks, including anomaly detection. However, their ZSAD performance is weak since the VLMs focus more on modeling the class semantics of the foreground objects rather than the abnormality/normality in the images. In this paper we introduce a novel approach, namely AnomalyCLIP, to adapt CLIP for accurate ZSAD across different domains. The key insight of Anoma-lyCLIP is to learn object-agnostic text prompts that capture generic normality and abnormality in an image regardless of its foreground objects. This allows our model to focus on the abnormal image regions rather than the object semantics, enabling generalized normality and abnormality recognition on diverse types of objects. Large-scale experiments on 17 real-world anomaly detection datasets show that AnomalyCLIP achieves superior zero-shot performance of detecting and segmenting anomalies in datasets of highly diverse class semantics from various defect inspection and medical imaging domains. Code will be made available at https://github.com/zqhang/AnomalyCLIP .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
78 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- FairCLIP: Harnessing Fairness in Vision-Language Learning cites Learning Transferable Visual Models From Natural Language Supervision
- FiLo: Zero-Shot Anomaly Detection by Fine-Grained Description and High-Quality Localization cites Towards Total Recall in Industrial Anomaly Detection
- FiLo: Zero-Shot Anomaly Detection by Fine-Grained Description and High-Quality Localization cites Anomaly Detection via Reverse Distillation from One-Class Embedding
- FiLo: Zero-Shot Anomaly Detection by Fine-Grained Description and High-Quality Localization cites Learning Transferable Visual Models From Natural Language Supervision
- FiLo: Zero-Shot Anomaly Detection by Fine-Grained Description and High-Quality Localization cites A Unified Model for Multi-class Anomaly Detection
- Open-Vocabulary Video Anomaly Detection cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Open-Vocabulary Video Anomaly Detection cites Learning Transferable Visual Models From Natural Language Supervision
- Learning Transferable Visual Models From Natural Language Supervision cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Weakly Supervised Video Anomaly Detection and Localization with Spatio-Temporal Prompts cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Weakly Supervised Video Anomaly Detection and Localization with Spatio-Temporal Prompts cites Open-Vocabulary Video Anomaly Detection
- Weakly Supervised Video Anomaly Detection and Localization with Spatio-Temporal Prompts cites Learning Transferable Visual Models From Natural Language Supervision
- Weakly Supervised Video Anomaly Detection and Localization with Spatio-Temporal Prompts cites Toward Generalist Anomaly Detection via In-Context Residual Learning with Few-Shot Sample Prompts
- A Unified Model for Multi-class Anomaly Detection cites Anomaly Detection via Reverse Distillation from One-Class Embedding
- A Unified Model for Multi-class Anomaly Detection cites An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
- Toward Generalist Anomaly Detection via In-Context Residual Learning with Few-Shot Sample Prompts cites Towards Total Recall in Industrial Anomaly Detection
- Toward Generalist Anomaly Detection via In-Context Residual Learning with Few-Shot Sample Prompts cites Anomaly Detection via Reverse Distillation from One-Class Embedding
- Toward Generalist Anomaly Detection via In-Context Residual Learning with Few-Shot Sample Prompts cites Open-Vocabulary Video Anomaly Detection
- Toward Generalist Anomaly Detection via In-Context Residual Learning with Few-Shot Sample Prompts cites Learning Transferable Visual Models From Natural Language Supervision
Cited by top-tier papers78
- Open-Vocabulary Video Anomaly DetectionPeng Wu, Xuerong Zhou, Guansong Pang, Yujia Sun et al.CVPR 2024 · 56 citations
- FiLo: Zero-Shot Anomaly Detection by Fine-Grained Description and High-Quality LocalizationZhaopeng Gu, Bingke Zhu, Guibo Zhu, Yingying Chen et al.ACM MM 2024 · 52 citations
- Weakly Supervised Video Anomaly Detection and Localization with Spatio-Temporal PromptsPeng Wu, Xuerong Zhou, Guansong Pang, Zhiwei Yang et al.ACM MM 2024 · 50 citations
- Toward Generalist Anomaly Detection via In-Context Residual Learning with Few-Shot Sample PromptsJiawen Zhu, Guansong PangCVPR 2024 · 43 citations
- FairCLIP: Harnessing Fairness in Vision-Language LearningYan Luo, Min Shi, Muhammad Osama Khan, Muhammad Muneeb Afzal et al.CVPR 2024 · 37 citations
Builds on25
- Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
- An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn et al.ICLR 2021 · 21,477 citations
- Towards Total Recall in Industrial Anomaly DetectionKarsten Roth, Latha Pemula, Joaquin Zepeda, Bernhard Schölkopf et al.CVPR 2022 · 1,301 citations
- Anomaly Detection via Reverse Distillation from One-Class EmbeddingHanqiu Deng, Xingyu LiCVPR 2022 · 701 citations
- A Unified Model for Multi-class Anomaly DetectionZhiyuan You, Lei Cui, Yujun Shen, Kai Yang et al.NeurIPS 2022 · 585 citations
Related papers
- AdaptCLIP: Adapting CLIP for Universal Visual Anomaly DetectionBin-Bin Gao, Yue Zhou, Jiangtao Yan, Yuezhi Cai et al.AAAI 2026 · 21 citations
- Aligning and Prompting Anything for Zero-Shot Generalized Anomaly DetectionJitao Ma, Weiying Xie, Hangyu Ye, Daixun Li et al.AAAI 2025 · 3 citations
- FE-CLIP: Frequency Enhanced CLIP Model for Zero-Shot Anomaly Detection and SegmentationTao Gong, Qi Chu, Bin Liu, Wei Zhou et al.ICCV 2025 · 4 citations
- SimCLIP: Refining Image-Text Alignment with Simple Prompts for Zero-/Few-shot Anomaly DetectionChenghao Deng, Haote Xu, Xiaolu Chen, Haodi Xu et al.ACM MM 2024 · 10 citations
- DLVP-CLIP: Enhancing Fine-Grained Zero-Shot Anomaly Detection via Dynamic Local Visual PromptingGaowei Zhang, Lihe ZhangCVPR 2026
