AdaptCLIP: Adapting CLIP for Universal Visual Anomaly Detection

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Gao, Bin-Bin, Zhou, Yue, Yan, Jiangtao, Cai, Yuezhi, Zhang, Weixi, Wang, Meng, Liu, Jun, Liu, Yong, Wang, Lei, Wang, Chengjie
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866916741704056832
author Gao, Bin-Bin
Zhou, Yue
Yan, Jiangtao
Cai, Yuezhi
Zhang, Weixi
Wang, Meng
Liu, Jun
Liu, Yong
Wang, Lei
Wang, Chengjie
author_facet Gao, Bin-Bin
Zhou, Yue
Yan, Jiangtao
Cai, Yuezhi
Zhang, Weixi
Wang, Meng
Liu, Jun
Liu, Yong
Wang, Lei
Wang, Chengjie
contents Universal visual anomaly detection aims to identify anomalies from novel or unseen vision domains without additional fine-tuning, which is critical in open scenarios. Recent studies have demonstrated that pre-trained vision-language models like CLIP exhibit strong generalization with just zero or a few normal images. However, existing methods struggle with designing prompt templates, complex token interactions, or requiring additional fine-tuning, resulting in limited flexibility. In this work, we present a simple yet effective method called AdaptCLIP based on two key insights. First, adaptive visual and textual representations should be learned alternately rather than jointly. Second, comparative learning between query and normal image prompt should incorporate both contextual and aligned residual features, rather than relying solely on residual features. AdaptCLIP treats CLIP models as a foundational service, adding only three simple adapters, visual adapter, textual adapter, and prompt-query adapter, at its input or output ends. AdaptCLIP supports zero-/few-shot generalization across domains and possesses a training-free manner on target domains once trained on a base dataset. AdaptCLIP achieves state-of-the-art performance on 12 anomaly detection benchmarks from industrial and medical domains, significantly outperforming existing competitive methods. We will make the code and model of AdaptCLIP available at https://github.com/gaobb/AdaptCLIP.
format Preprint
id arxiv_https___arxiv_org_abs_2505_09926
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle AdaptCLIP: Adapting CLIP for Universal Visual Anomaly Detection
Gao, Bin-Bin
Zhou, Yue
Yan, Jiangtao
Cai, Yuezhi
Zhang, Weixi
Wang, Meng
Liu, Jun
Liu, Yong
Wang, Lei
Wang, Chengjie
Computer Vision and Pattern Recognition
Artificial Intelligence
Universal visual anomaly detection aims to identify anomalies from novel or unseen vision domains without additional fine-tuning, which is critical in open scenarios. Recent studies have demonstrated that pre-trained vision-language models like CLIP exhibit strong generalization with just zero or a few normal images. However, existing methods struggle with designing prompt templates, complex token interactions, or requiring additional fine-tuning, resulting in limited flexibility. In this work, we present a simple yet effective method called AdaptCLIP based on two key insights. First, adaptive visual and textual representations should be learned alternately rather than jointly. Second, comparative learning between query and normal image prompt should incorporate both contextual and aligned residual features, rather than relying solely on residual features. AdaptCLIP treats CLIP models as a foundational service, adding only three simple adapters, visual adapter, textual adapter, and prompt-query adapter, at its input or output ends. AdaptCLIP supports zero-/few-shot generalization across domains and possesses a training-free manner on target domains once trained on a base dataset. AdaptCLIP achieves state-of-the-art performance on 12 anomaly detection benchmarks from industrial and medical domains, significantly outperforming existing competitive methods. We will make the code and model of AdaptCLIP available at https://github.com/gaobb/AdaptCLIP.
title AdaptCLIP: Adapting CLIP for Universal Visual Anomaly Detection
topic Computer Vision and Pattern Recognition
Artificial Intelligence
url https://arxiv.org/abs/2505.09926