arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.15795cs.CV
收藏

AdaCLIP:使用混合可学习提示适配CLIP用于零样本异常检测

AdaCLIP: Adapting CLIP with Hybrid Learnable Prompts for Zero-Shot Anomaly Detection

Princeton University(普林斯顿大学);Springer Heidelberg(施普林格海德堡分部);Rupert-Karls-University Heidelberg(海德堡鲁普雷希特-卡尔斯大学);ABC Institute(ABC研究所)

Yunkang Cao, Jiangning Zhang, Luca Frittoli, Yuqi Cheng, Weiming Shen, Giacomo Boracchi

AI总结:

针对任意新类别图像的零样本异常检测任务,提出AdaCLIP,通过在CLIP中融入静态和动态混合可学习提示并在辅助数据上训练优化,在14个真实数据集上优于现有方法,泛化能力更强。

摘要:

零样本异常检测(ZSAD)旨在识别任意新类别图像中的异常。本研究针对ZSAD任务提出AdaCLIP,利用预训练视觉语言模型(VLM)CLIP。AdaCLIP将可学习提示融入CLIP,并通过在辅助标注异常检测数据上训练优化这些提示。提出两种可学习提示:静态和动态。静态提示在所有图像间共享,初步适配CLIP用于ZSAD;动态提示为每个测试图像生成,赋予CLIP动态适配能力。静态与动态提示结合称为混合提示,提升ZSAD性能。在工业和医疗领域14个真实异常检测数据集上的实验表明,AdaCLIP优于其他ZSAD方法,且能更好地泛化到不同类别甚至领域。最后,分析强调了多样化辅助数据和优化提示对提升泛化能力的重要性。代码见https://github.com/caoyunkang/AdaCLIP。

英文摘要:

Zero-shot anomaly detection (ZSAD) targets the identification of anomalies within images from arbitrary novel categories. This study introduces AdaCLIP for the ZSAD task, leveraging a pre-trained vision-language model (VLM), CLIP. AdaCLIP incorporates learnable prompts into CLIP and optimizes them through training on auxiliary annotated anomaly detection data. Two types of learnable prompts are proposed: static and dynamic. Static prompts are shared across all images, serving to preliminarily adapt CLIP for ZSAD. In contrast, dynamic prompts are generated for each test image, providing CLIP with dynamic adaptation capabilities. The combination of static and dynamic prompts is referred to as hybrid prompts, and yields enhanced ZSAD performance. Extensive experiments conducted across 14 real-world anomaly detection datasets from industrial and medical domains indicate that AdaCLIP outperforms other ZSAD methods and can generalize better to different categories and even domains. Finally, our analysis highlights the importance of diverse auxiliary data and optimized prompts for enhanced generalization capacity. Code is available at https://github.com/caoyunkang/AdaCLIP.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑