Skip to main content
QUICK REVIEW

[论文解读] AnomalyCLIP: Object-agnostic Prompt Learning for Zero-shot Anomaly Detection

Qihang Zhou, Guansong Pang|arXiv (Cornell University)|Oct 29, 2023
Anomaly Detection Techniques and ApplicationsComputer Science被引用 31
一句话总结

AnomalyCLIP 通过学习对象无关的文本提示来捕捉通用的正常性和异常性,从而改进在多种工业和医疗领域的零样本异常检测与分割。

ABSTRACT

Zero-shot anomaly detection (ZSAD) requires detection models trained using auxiliary data to detect anomalies without any training sample in a target dataset. It is a crucial task when training data is not accessible due to various concerns, eg, data privacy, yet it is challenging since the models need to generalize to anomalies across different domains where the appearance of foreground objects, abnormal regions, and background features, such as defects/tumors on different products/organs, can vary significantly. Recently large pre-trained vision-language models (VLMs), such as CLIP, have demonstrated strong zero-shot recognition ability in various vision tasks, including anomaly detection. However, their ZSAD performance is weak since the VLMs focus more on modeling the class semantics of the foreground objects rather than the abnormality/normality in the images. In this paper we introduce a novel approach, namely AnomalyCLIP, to adapt CLIP for accurate ZSAD across different domains. The key insight of AnomalyCLIP is to learn object-agnostic text prompts that capture generic normality and abnormality in an image regardless of its foreground objects. This allows our model to focus on the abnormal image regions rather than the object semantics, enabling generalized normality and abnormality recognition on diverse types of objects. Large-scale experiments on 17 real-world anomaly detection datasets show that AnomalyCLIP achieves superior zero-shot performance of detecting and segmenting anomalies in datasets of highly diverse class semantics from various defect inspection and medical imaging domains. Code will be made available at https://github.com/zqhang/AnomalyCLIP.

研究动机与目标

  • 在出于隐私或新颖性原因无法获得目标域训练数据时,推动零样本异常检测(ZSAD)。
  • 开发一个基于 CLIP 的方法,关注异常性/正常性而非对象语义。
  • 学习可在不同对象类别和领域间转移的通用正常性与异常性提示。
  • 结合全局与局部上下文,以捕捉粗粒度和细粒度的异常线索。

提出的方法

  • 为正常性和异常性引入对象无关的文本提示模板,将特定对象名称替换为通用标记。
  • 使用全局-局部(glocal)上下文优化,联合最小化全局(图像级)和局部(像素级)损失,从辅助数据中学习提示。
  • 通过向 CLIP 文本编码器插入可学习标记来应用文本提示微调,以细化文本空间。
  • 结合对角显著注意力映射(DPAM),通过视觉编码器中的替代自注意力机制来优化局部视觉特征。
  • 融合全局与局部视觉-语义对齐,产生图像级异常分数和像素级异常图,用于零样本推理。

实验结果

研究问题

  • RQ1对象无关的提示是否能够学习跨越多样对象语义的通用异常性/正常性模式?
  • RQ2在提示学习过程中结合全局与局部上下文是否能提升零样本异常检测与分割?
  • RQ3提示 refinements(文本空间和视觉空间)如何影响跨域的 ZSAD 性能?
  • RQ4在无需目标域微调的情况下,所提方法是否在工业和医疗影像领域都具有鲁棒性?

主要发现

  • AnomalyCLIP 在来自工业和医疗领域的 17 个真实世界数据集上实现了优越的零样本异常检测与分割。
  • 对象无关提示比对象感知提示在未见对象与异常上的泛化能力更强。
  • 全局与局部上下文优化,以及文本空间的细化和 DPAM,持续提升性能。
  • 当将工业数据学习的提示应用于医疗数据集时,观察到医疗域的一般化,在使用医疗辅助数据进行提示时进一步提升。
  • 与若干基线相比,AnomalyCLIP 展示了强跨域 ZSAD 能力,凸显对象无关提示学习在异常模式中的优势。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。