Does Stronger CLIP Generalization Transfer to Zero-Shot Anomaly Detection?
Abstract
CLIP-based zero-shot anomaly detection (ZSAD) uses pretrained image-text representations to identify anomalous images and localize defects without training on target-domain data. CLIP offers diverse pretrained backbones, but their AD performance is difficult to assess without target anomaly labels. This motivates selecting backbones with stronger generalization capability, assuming that they also achieve better AD performance. However, existing ZSAD methods have primarily focused on improving AD performance using specific backbones, leaving this assumption largely unexamined. We term this cross-backbone rank correlation the Generalization-AD Trend and show that existing ZSAD methods do not consistently exhibit a positive trend, with some even showing the opposite trend. To address this inconsistency, we propose TrendAD to strengthen this rank correlation while improving AD performance. TrendAD preserves CLIP's global image representation, recovers spatially informative final-layer patch features, and complements them with intermediate-layer features through closed-form orthogonal alignment. It learns only separate text decision axes for anomaly detection and localization through lightweight prompt optimization using our Text-Axis Margin Loss. Across nine CLIP ViT backbones and six AD datasets, TrendAD achieves the highest Spearman rank correlations among the compared methods for anomaly detection (0.85) and localization (0.93) while attaining competitive AD performance. These results suggest that, with TrendAD, public benchmark performance can guide backbone selection in ZSAD without target anomaly labels. Code will be available at https://github.com/jinwwo/TrendAD.
Create a lesson
Metadata
- Comments
- 25 pages, 8 figures, 28 tables
Related papers
A transductive framework for boosting zero-shot out-of-distribution detection
Shared title terminologycs.CVMatheus V. Todescato, Galadrielle Humblot-Renaux, Thomas B. Moeslund et al.
FoundationFlow: Simple, Direct, and Zero-Shot Scene Flow Estimation
Shared title terminologycs.CVTianwei Shen, Aleksandr Efitorov, Zixi Liu et al.
Revisiting Few-Shot Multimodal Anomaly Detection without Heuristic Pre- and Post-Processing
Shared title terminologycs.CVMoritz Aberle, Steven Landgraf, Markus Ulrich
Enhancing Transferability of Targeted Adversarial Attacks for Object Detection
Shared title terminologycs.CVAlexis Winter, Romaric Audigier, Angélique Loesch et al.
SF-DST: Adapting Vision-Language Models for Anomaly Detection via Asymmetric Modulation and A-LoRA
Shared title terminologycs.CVZhipeng Wang, Xiaofei Li, Dong Zhao et al.
Antithetic Flow-Matching Residuals for Multi-Class Anomaly Detection
Shared title terminologycs.CVShayan Shashaani, Marco Tasca, Jawad Tayyub