atlas

Research map / Label-efficient and robust learning / OOD and anomaly detection

PromptAD: Learning Prompts with only Normal Samples for Few-Shot Anomaly Detection

CVPR 2024 · Label-efficient and robust learning › OOD and anomaly detection · approach: Deep one-class and tabular anomaly detection · 135 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.

Proposes PromptAD, a one-class prompt learning method for few-shot industrial anomaly detection that builds negative prompts via semantic concatenation and enforces a margin via an explicit anomaly margin loss on a VV-CLIP backbone.

Problem

Automatically learning prompts for CLIP-based few-shot anomaly detection when only normal training samples are available; conventional many-class prompt learning fails in the one-class setting due to lack of negative samples and margin control.

Approach

Semantic concatenation turns learnable normal prompts into anomaly prompts by appending anomaly suffixes (manual and learnable) to create negatives, and an explicit anomaly margin loss controls the distance between normal and anomaly prompt features via a hyper-parameter; combined with VV-attention CLIP and WinCLIP+-style vision-guided memory scoring.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use PromptAD instead of RWDAfew-shot anomaly detection · MVTec 1-shotimage-level AUROC: 93.3±0.5 -> 94.6±1.7Helped
Use PromptAD instead of WinCLIP+few-shot anomaly detection · VisA 1-shotimage-level AUROC: 83.8±4.0 -> 86.9±2.3Helped
Use PromptAD instead of WinCLIP+few-shot anomaly detection · MVTec 1-shotpixel-level AUROC: 95.2±0.5 -> 95.9±0.5Helped
Use PromptAD instead of FastReconfew-shot anomaly detection · MVTec 4-shotpixel-level AUROC: 97.0 -> 96.5±0.2Hurt
Add semantic concatenation to conventional prompt learning (ablation)PromptAD · MVTec 1-shotimage-level AUROC: 81.5 -> 90.4Helped
Add semantic concatenation to conventional prompt learning (ablation)PromptAD · VisA 1-shotpixel-level AUROC: 85.5 -> 90.5Helped
Add explicit anomaly margin after semantic concatenation (ablation)PromptAD · MVTec 1-shotimage-level AUROC: 90.4 -> 91.3Helped
Add explicit anomaly margin after semantic concatenation (ablation)PromptAD · VisA 1-shotpixel-level AUROC: 90.5 -> 91.8Helped
Fuse prompt-guided and vision-guided anomaly detection (ablation)PromptAD · MVTec 1-shotimage-level AUROC: 91.3 -> 94.6Helped
Fuse prompt-guided and vision-guided anomaly detection (ablation)PromptAD · VisA 1-shotpixel-level AUROC: 91.8 -> 96.7Helped
Apply prompt learning to original CLIP (ablation)CLIP · MVTec 1-shotpixel-level AUROC: 22.5 -> 79.9Helped
Apply prompt learning to original CLIP (ablation)CLIP · VisA 1-shotpixel-level AUROC: 24.6 -> 80.4Helped

Surprising findings

Limitations

Experimental setup

Datasets: MVTec VisA

Benchmarks: MVTec VisA

Metrics: AUROC

Baselines: WinCLIP+ RWDA FastRecon SPADE PaDiM PatchCore CoOp

Builds on: CoOp CLIP WinCLIP CLIP Surgery MaskCLIP

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