Dual-Image Enhanced CLIP for Zero-Shot Anomaly Detection
Zhaoxiang Zhang, Hanqiu Deng, Jinan Bao, Xingyu Li
TL;DR
The paper tackles zero-shot anomaly detection by integrating visual references with language guidance in a CLIP framework. A dual-image enhancement builds a joint vision-language scoring system by using each image as a visual reference for the other, complemented by a test-time adaptation module with pseudo-anomaly synthesis. Key contributions include dual-image feature pairing, a V-V attention-based localization enhancement, and a training-free TTA mechanism that refines alignment. Experiments on MVTecAD and VisA show competitive performance with SOTA methods in both anomaly classification and localization, highlighting practical gains in open-world anomaly detection.
Abstract
Image Anomaly Detection has been a challenging task in Computer Vision field. The advent of Vision-Language models, particularly the rise of CLIP-based frameworks, has opened new avenues for zero-shot anomaly detection. Recent studies have explored the use of CLIP by aligning images with normal and prompt descriptions. However, the exclusive dependence on textual guidance often falls short, highlighting the critical importance of additional visual references. In this work, we introduce a Dual-Image Enhanced CLIP approach, leveraging a joint vision-language scoring system. Our methods process pairs of images, utilizing each as a visual reference for the other, thereby enriching the inference process with visual context. This dual-image strategy markedly enhanced both anomaly classification and localization performances. Furthermore, we have strengthened our model with a test-time adaptation module that incorporates synthesized anomalies to refine localization capabilities. Our approach significantly exploits the potential of vision-language joint anomaly detection and demonstrates comparable performance with current SOTA methods across various datasets.
