Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

AA-CLIP: Enhancing Zero-shot Anomaly Detection via Anomaly-Aware CLIP

About

Anomaly detection (AD) identifies outliers for applications like defect and lesion detection. While CLIP shows promise for zero-shot AD tasks due to its strong generalization capabilities, its inherent Anomaly-Unawareness leads to limited discrimination between normal and abnormal features. To address this problem, we propose Anomaly-Aware CLIP (AA-CLIP), which enhances CLIP's anomaly discrimination ability in both text and visual spaces while preserving its generalization capability. AA-CLIP is achieved through a straightforward yet effective two-stage approach: it first creates anomaly-aware text anchors to differentiate normal and abnormal semantics clearly, then aligns patch-level visual features with these anchors for precise anomaly localization. This two-stage strategy, with the help of residual adapters, gradually adapts CLIP in a controlled manner, achieving effective AD while maintaining CLIP's class knowledge. Extensive experiments validate AA-CLIP as a resource-efficient solution for zero-shot AD tasks, achieving state-of-the-art results in industrial and medical applications. The code is available at https://github.com/Mwxinnn/AA-CLIP.

Wenxin Ma, Xu Zhang, Qingsong Yao, Fenghe Tang, Chenxu Wu, Yingtai Li, Rui Yan, Zihang Jiang, S.Kevin Zhou• 2025

Related benchmarks

TaskDatasetResultRank
Anomaly LocalizationMVTec AD
Pixel AUROC91.4
369
Anomaly DetectionVisA
AUROC84.6
199
Anomaly ClassificationLiverCT
AUC69.7
72
Anomaly DetectionMPDD
Clean AUROC0.783
62
Anomaly DetectionBTAD
Average Image-level AUROC94.8
45
Anomaly DetectionMVTec AD
I-AUROC92
43
Anomaly DetectionKSDD
AUROC0.693
40
3D Anomaly DetectionReal3D-AD
Average O-AUROC0.748
33
Anomaly DetectionMVTec AD
P-AUROC0.919
32
Anomaly DetectionBrainMRI
AUROC84.3
31
Showing 10 of 55 rows

Other info

Code

Follow for update