AdaCLIP: Adapting CLIP with Hybrid Learnable Prompts for Zero-Shot Anomaly Detection
Yunkang Cao, Jiangning Zhang, Luca Frittoli, Yuqi Cheng, Weiming Shen,, Giacomo Boracchi

TL;DR
AdaCLIP enhances zero-shot anomaly detection by integrating static and dynamic learnable prompts into CLIP, enabling better generalization across diverse categories and domains with auxiliary data.
Contribution
The paper introduces a novel hybrid prompt approach for CLIP, combining static and dynamic prompts optimized with auxiliary data for improved ZSAD performance.
Findings
Outperforms existing ZSAD methods on 14 datasets.
Hybrid prompts improve adaptation to new categories and domains.
Auxiliary data and prompt optimization are crucial for generalization.
Abstract
Zero-shot anomaly detection (ZSAD) targets the identification of anomalies within images from arbitrary novel categories. This study introduces AdaCLIP for the ZSAD task, leveraging a pre-trained vision-language model (VLM), CLIP. AdaCLIP incorporates learnable prompts into CLIP and optimizes them through training on auxiliary annotated anomaly detection data. Two types of learnable prompts are proposed: static and dynamic. Static prompts are shared across all images, serving to preliminarily adapt CLIP for ZSAD. In contrast, dynamic prompts are generated for each test image, providing CLIP with dynamic adaptation capabilities. The combination of static and dynamic prompts is referred to as hybrid prompts, and yields enhanced ZSAD performance. Extensive experiments conducted across 14 real-world anomaly detection datasets from industrial and medical domains indicate that AdaCLIP…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsRadiation Detection and Scintillator Technologies · Anomaly Detection Techniques and Applications · Medical Imaging Techniques and Applications
MethodsContrastive Language-Image Pre-training
