atlas

Research map / Detection and segmentation / Open-set and few-shot detection

AnomalyCLIP: Object-agnostic Prompt Learning for Zero-shot Anomaly Detection

ICLR 2024 · Detection and segmentation › Open-set and few-shot detection · approach: Zero-shot segmentation and detection · 32 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Adapts CLIP for zero-shot anomaly detection by learning two object-agnostic learnable text prompts (normal/abnormal) with glocal image- and pixel-level losses, plus a diagonally prominent attention modification for local features.

Problem

Zero-shot anomaly detection and segmentation across domains with very different foreground objects, where CLIP's object-centric alignment yields weak anomaly recognition.

Approach

Learn object-agnostic normality and abnormality text prompts (class name replaced by the word "object") using global and local (focal + Dice) losses on auxiliary data, with a frozen CLIP and a Diagonally Prominent Attention Map (DPAM) that replaces Q-K attention with V-V attention for sharper local features.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use object-agnostic rather than object-aware text prompts (ablation)AnomalyCLIP · ZSAD image- and pixel-level datasetsAUROCHelped
remove DPAM (ablation)AnomalyCLIP · Anomaly segmentationsegmentation performanceHurt
remove object-agnostic text prompts (ablation)AnomalyCLIP · diverse unseen objectsanomaly detection performanceHurt
remove learnable tokens in text encoder (ablation)AnomalyCLIP · ZSADoverall performanceHurt
remove global context optimization (ablation)AnomalyCLIP · image-level anomaly detectiondetection performanceHurt
remove local context optimization (ablation)AnomalyCLIP · pixel-level anomaly detectionsegmentation performanceHurt
use global and local context optimization together instead of either alone (ablation)AnomalyCLIP · ZSADoverall performanceHelped
replace V-V attention with Q-Q attention (ablation)AnomalyCLIP · image-level anomaly detectiondetection performanceHurt
replace V-V attention with K-K attention (ablation)AnomalyCLIP · pixel-level anomaly detectionsegmentation performanceHurt
increase prompt length beyond 12 to 16 (ablation)AnomalyCLIP · ZSADdetection and segmentation performanceHurt
replace 'damaged' with similar anomaly words (ablation)AnomalyCLIP · MVTec AD, VisA, MPDD, BTAD, SDD, DAGM, DTD-Synthetic and medical datasetsAUROC: 91.5 -> 91.4 (MVTec AD image-level); 82.1 -> 80.7 (VisA image-level); 93.4 -> 93.1 (HeadCT image-level)No clear effect
replace 'object' with the target class name (ablation)AnomalyCLIP · ZSADperformanceHurt

Surprising findings

Limitations

Experimental setup

Datasets: MVTec AD VisA MPDD BTAD SDD DAGM DTD-Synthetic ISIC CVC-ClinicDB CVC-ColonDB Kvasir Endo

Benchmarks: MVTec AD VisA MPDD BTAD SDD DAGM DTD-Synthetic ISIC CVC-ClinicDB CVC-ColonDB Kvasir Endo

Metrics: AUROC AP AUPRO

Baselines: CLIP CLIP-AC WinCLIP VAND CoOp PatchCore RD4AD

Builds on: CLIP CoOp WinCLIP VAND

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy