Skip to main content
QUICK REVIEW

[Paper 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 Science8 citations
TL;DR

The paper adapts CLIP with training-free value-wise attention and a test-time adaptive module to enable unified zero-shot anomaly localization, achieving state-of-the-art results on MVTecAD and VisA without training data.

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.

Motivation & Objective

  • Motivate unified zero-shot anomaly detection and localization without task-specific training data.
  • Leverage CLIP's open-vocabulary capabilities for fine-grained localization.
  • Introduce training-free and test-time adaptations to extract local tokens and improve text–image alignment.
  • Demonstrate effectiveness on industrial anomaly datasets (MVTecAD and VisA).
  • Analyze components via ablations to validate design choices.

Proposed method

  • Introduce training-free value-to-value (V-V) attention to extract local patch tokens from CLIP's visual encoder.
  • Design a unified domain-aware contrastive state prompting template to enhance vision-language alignment.
  • Propose a fast test-time adaptation (TTA) adapter to refine patch tokens using pseudo-labels and synthetic noise during inference.
  • Utilize a dual-task loss in TTA combining discriminative token disruption and pseudo-label-based localization.
  • Evaluate zero-shot anomaly detection and localization on MVTecAD and VisA with AUROC, F1Max, PRO, and AUPR metrics.

Experimental results

Research questions

  • RQ1Can CLIP be extended to provide precise patch-level localization for anomalies in a zero-shot setting?
  • RQ2Do training-free local token extraction and domain-aware prompting improve zero-shot anomaly localization compared to vanilla CLIP?
  • RQ3Does a lightweight test-time adaptation further refine localization without labeled data?
  • RQ4How does the proposed pipeline perform on standard anomaly datasets (MVTecAD, VisA) in zero-shot settings?
  • RQ5What is the impact of prompt design and adapter optimization on performance? امت?

Key findings

  • Zero-shot anomaly localization with CLIP is significantly boosted by the proposed TFA and TTA, outperforming prior CLIP-based methods.
  • On MVTecAD, the method achieves AUROC 90.6, F1Max 36.5, and PRO 77.8 with TTA, and AUROC 86.6, F1Max 30.1, PRO 70.4 with TFA alone.
  • On VisA, the method achieves AUROC 91.4, F1Max 17.4, PRO 75.0 with TTA, and AUROC 85.9, F1Max 14.7, PRO 65.1 with TFA alone.
  • For anomaly detection (AD), Ours reaches AUROC 92.5, F1Max 93.2, AUPR 96.7 on MVTecAD and AUROC 79.2, F1Max 79.7, AUPR 81.7 on VisA, outperforming several baselines.
  • Test-time adaptation incurs additional computation (about 3x vs TFA alone) but remains more efficient than multi-scale methods like WinCLIP, with Time per image around 20 ms for TTA.
  • Ablation shows the importance of multi-layer V-V attention for local token extraction and the effectiveness of domain-aware prompts and contrastive-state prompts in improving zero-shot performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.