atlas

Research map / Vision-language and multimodal / CLIP and zero-shot

AnomalyGPT: Detecting Industrial Anomalies Using Large Vision-Language Models

AAAI 2024 · Vision-language and multimodal › CLIP and zero-shot · approach: Adapting VLMs for zero-shot classification · 279 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 AnomalyGPT, which fine-tunes a PandaGPT-initialized vision-language model with prompt embeddings and a feature-matching decoder on simulated anomaly data to detect and localize industrial anomalies without manual thresholds.

Problem

Industrial anomaly detection methods output only anomaly scores that need per-class manual thresholds, and general LVLMs lack domain knowledge and fine-grained localization for detecting defects.

Approach

Combine a frozen ImageBind image encoder and Vicuna-7B LLM with a lightweight patch-text feature-matching decoder whose localization maps are converted into prompt embeddings by a learnable prompt learner, trained with simulated (Poisson-edited cut-paste) anomalies and alternated with PandaGPT pre-training data so the LLM directly judges anomaly presence and grid location.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add the lightweight feature-matching decoder (ablation)AnomalyGPT · MVTec-AD (unsupervised)Pixel-AUC: from ~72.2 accuracy-only baseline to 90.9 pixel-AUC with decoderHelped
replace LLM output with max-normal-score threshold (remove LLM) (ablation)AnomalyGPT decoder · MVTec-AD (unsupervised)Accuracy: 90.3 without LLM vs 93.3 fullHurt
use prompt tuning (prompt learner) instead of LoRA for LLM fine-tuning (ablation)AnomalyGPT · VisA (1-shot)Accuracy: 72.7 with prompt learner+LoRA vs 64.7 decoder+LoRA; 77.4 full (prompt tuning, no LoRA)Helped
add LoRA fine-tuning of LLM (ablation)AnomalyGPT without decoder · MVTec-AD (unsupervised)Accuracy: 72.2 -> 79.8 accuracyHelped
add prompt learner to decoder+LLM with LoRA (ablation)AnomalyGPT · MVTec-AD (unsupervised)Accuracy: 84.2 -> 83.9 accuracy; image-AUC 97.1 -> 96.0Hurt
add prompt learner with LLM (no LoRA) and decoder (ablation)AnomalyGPT · VisA (1-shot)Accuracy: 56.5 -> 56.6 without decoder; 75.4 -> 77.4 with decoder configuration in full modelHelped
AnomalyGPT vs WinCLIP one-shot transferAnomalyGPT · MVTec-AD 1-shot (trained on VisA)Accuracy: 86.1 accuracy; WinCLIP reports no accuracy (threshold-based scores only)Helped
AnomalyGPT vs PatchCore/WinCLIP few-shot image-level AUCAnomalyGPT · MVTec-AD 1-shotImage-AUC: 94.1 vs WinCLIP 93.1 and PatchCore 83.4Helped
AnomalyGPT vs WinCLIP few-shot pixel-AUCAnomalyGPT · VisA 1-shotPixel-AUC: 96.2 vs WinCLIP 96.4No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: MVTec-AD VisA PandaGPT pre-training data NSA-simulated anomaly images

Benchmarks: MVTec-AD VisA

Metrics: image-level AUC pixel-level AUC accuracy

Baselines: SPADE PaDiM PatchCore WinCLIP UniAD JNLD MiniGPT-4 LLaVA PandaGPT

Builds on: PandaGPT WinCLIP PatchCore NSA LLaVA

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