Skip to main content
QUICK REVIEW

[论文解读] Bootstrap Fine-Grained Vision-Language Alignment for Unified Zero-Shot Anomaly Localization

Hanqiu Deng, Zhaoxiang Zhang|arXiv (Cornell University)|Aug 30, 2023
Anomaly Detection Techniques and ApplicationsComputer Science被引用 8
一句话总结

本论文通过训练无关的逐值注意力和测试时自适应模块,将 CLIP 调整为支持统一的零样本异常定位,在 MVTecAD 和 VisA 上无需训练数据即可达到时序最先进(SOTA)结果。

ABSTRACT

Contrastive Language-Image Pre-training (CLIP) models have shown promising performance on zero-shot visual recognition tasks by learning visual representations under natural language supervision. Recent studies attempt the use of CLIP to tackle zero-shot anomaly detection by matching images with normal and abnormal state prompts. However, since CLIP focuses on building correspondence between paired text prompts and global image-level representations, the lack of fine-grained patch-level vision to text alignment limits its capability on precise visual anomaly localization. In this work, we propose AnoCLIP for zero-shot anomaly localization. In the visual encoder, we introduce a training-free value-wise attention mechanism to extract intrinsic local tokens of CLIP for patch-level local description. From the perspective of text supervision, we particularly design a unified domain-aware contrastive state prompting template for fine-grained vision-language matching. On top of the proposed AnoCLIP, we further introduce a test-time adaptation (TTA) mechanism to refine visual anomaly localization results, where we optimize a lightweight adapter in the visual encoder using AnoCLIP's pseudo-labels and noise-corrupted tokens. With both AnoCLIP and TTA, we significantly exploit the potential of CLIP for zero-shot anomaly localization and demonstrate the effectiveness of AnoCLIP on various datasets.

研究动机与目标

  • 促使在没有特定任务训练数据的情况下实现统一的零样本异常检测与定位。
  • 利用 CLIP 的开放词汇能力实现对细粒度定位。
  • 引入训练-free 与测试时自适应,以提取局部 token 并改善文本–图像对齐。
  • 在工业异常数据集(MVTecAD 与 VisA)上证明有效性。
  • 通过消融研究分析各组件以验证设计选择。

提出的方法

  • 引入训练无关的值对值(V-V)注意力,从 CLIP 的视觉编码器中提取局部补丁 token。
  • 设计统一的领域感知对比状态提示模板以增强视觉-语言对齐。
  • 提出快速的测试时自适应(TTA)适配器,在推理时利用伪标签和合成噪声对补丁 token 进行 refined。
  • 在 TTA 中使用双任务损失,结合判别性 token 破坏和基于伪标签的定位。
  • 在 MVTecAD 与 VisA 上用 AUROC、F1Max、PRO、AUPR 指标评估零样本异常检测与定位。

实验结果

研究问题

  • RQ1CLIP 是否能够扩展为在零样本设置下提供异常的精确补丁级定位?
  • RQ2训练无关的局部 token 提取与领域感知提示是否比原生 CLIP 提升零样本异常定位?
  • RQ3在推理阶段进行轻量级的测试时自适应是否能在没有标注数据的情况下进一步改进定位?
  • RQ4在标准异常数据集(MVTecAD、VisA)上,零样本设置下该流程的表现如何?
  • RQ5提示设计与适配器优化对性能的影响如何? امت؟

主要发现

  • 通过所提出的 TFA 和 TTA,CLIP 的零样本异常定位得到显著提升,超越之前基于 CLIP 的方法。
  • 在 MVTecAD 上,方法在 TTA 下达到 AUROC 90.6、F1Max 36.5、PRO 77.8;仅 TFA 时分别为 AUROC 86.6、F1Max 30.1、PRO 70.4。
  • 在 VisA 上,方法在 TTA 下达到 AUROC 91.4、F1Max 17.4、PRO 75.0;仅 TFA 时分别为 AUROC 85.9、F1Max 14.7、PRO 65.1。
  • 对于异常检测(AD),在 MVTecAD 上达到 AUROC 92.5、F1Max 93.2、AUPR 96.7;在 VisA 上达到 AUROC 79.2、F1Max 79.7、AUPR 81.7,比若干基线方法更优。
  • 测试时自适应比仅 TFA 增加了额外计算量(约 3 倍),但仍比像 WinCLIP 这样多尺度方法更高效,每张图像约 20 ms 的时间开销。
  • 消融研究表明多层 V-V 注意力对局部 token 提取的重要性,以及领域感知提示与对比状态提示在提升零样本性能方面的有效性。

阅读本论文

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

在 Nubint 中阅读本论文

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