AA-CLIP: Enhancing Zero-Shot Anomaly Detection via Anomaly-Aware CLIP
Abstract
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.
Cite
Text
Ma et al. "AA-CLIP: Enhancing Zero-Shot Anomaly Detection via Anomaly-Aware CLIP." Conference on Computer Vision and Pattern Recognition, 2025. doi:10.1109/CVPR52734.2025.00447Markdown
[Ma et al. "AA-CLIP: Enhancing Zero-Shot Anomaly Detection via Anomaly-Aware CLIP." Conference on Computer Vision and Pattern Recognition, 2025.](https://mlanthology.org/cvpr/2025/ma2025cvpr-aaclip/) doi:10.1109/CVPR52734.2025.00447BibTeX
@inproceedings{ma2025cvpr-aaclip,
title = {{AA-CLIP: Enhancing Zero-Shot Anomaly Detection via Anomaly-Aware CLIP}},
author = {Ma, Wenxin and Zhang, Xu and Yao, Qingsong and Tang, Fenghe and Wu, Chenxu and Li, Yingtai and Yan, Rui and Jiang, Zihang and Zhou, S.Kevin},
booktitle = {Conference on Computer Vision and Pattern Recognition},
year = {2025},
pages = {4744-4754},
doi = {10.1109/CVPR52734.2025.00447},
url = {https://mlanthology.org/cvpr/2025/ma2025cvpr-aaclip/}
}