atlas

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

Toward Generalist Anomaly Detection via In-context Residual Learning with Few-shot Sample Prompts

CVPR 2024 · Label-efficient and robust learning › OOD and anomaly detection · approach: Unified multi-class anomaly detection · 78 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.

Trains a single CLIP-based in-context residual model (InCTRL) on MVTec AD/VisA auxiliary data that detects anomalies in unseen domains by comparing queries against few-shot normal sample prompts, with no target-data training.

Problem

Generalist anomaly detection: one model that detects anomalies across industrial defect, medical, and semantic anomaly datasets without any training on target data, using only a few normal images at inference.

Approach

Learn in-context residuals (patch-level nearest-neighbor residuals and image-level prototype residuals) between a query and few-shot normal prompts on an auxiliary dataset, with adapter layers on a frozen CLIP and text-prompt features fused into a holistic anomaly score, so the learned residual scoring transfers across domains.</https://>

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use InCTRL instead of CoOpgeneralist anomaly detection · ELPV (2-shot)AUROC: 0.781±0.002 -> 0.839±0.003Helped
Use InCTRL instead of WinCLIPgeneralist anomaly detection · SDD (2-shot)AUROC: 0.943±0.004 -> 0.972±0.011Helped
Use InCTRL instead of WinCLIPgeneralist anomaly detection · AITEX (2-shot)AUROC: 0.764±0.025 -> 0.761±0.029No clear effect
Use InCTRL instead of WinCLIPgeneralist anomaly detection · VisA (2-shot)AUROC: 0.858±0.025 -> 0.858±0.022No clear effect
Use InCTRL instead of WinCLIPgeneralist anomaly detection · MVTec AD (2-shot)AUROC: 0.940±0.021 -> 0.940±0.015No clear effect
Use InCTRL instead of WinCLIPgeneralist anomaly detection · BrainMRI (2-shot)AUROC: 0.941±0.002 -> 0.973±0.027Helped
Use InCTRL instead of WinCLIPgeneralist anomaly detection · HeadCT (2-shot)AUROC: 0.912±0.003 -> 0.929±0.025Helped
Use InCTRL instead of WinCLIPgeneralist anomaly detection · MNIST one-vs-all (2-shot)AUROC: 0.851±0.010 -> 0.892±0.009Helped
Use InCTRL instead of WinCLIPgeneralist anomaly detection · CIFAR-10 one-vs-all (2-shot)AUROC: 0.927±0.001 -> 0.935±0.002Helped
Use InCTRL instead of WinCLIPgeneralist anomaly detection · MNIST multi-class (2-shot)AUROC: 0.632±0.004 -> 0.635±0.010No clear effect
Use InCTRL instead of WinCLIPgeneralist anomaly detection · CIFAR-10 multi-class (2-shot)AUROC: 0.915±0.003 -> 0.924±0.005Helped
Add patch-level and image-level residual learning to text prompt features (ablation)InCTRL · ELPV (2-shot)AUROC: 0.733 -> 0.839Helped

Surprising findings

Limitations

Experimental setup

Datasets: MVTec AD VisA ELPV SDD AITEX BrainMRI HeadCT MNIST CIFAR-10

Benchmarks: ELPV SDD AITEX VisA MVTec AD BrainMRI HeadCT MNIST CIFAR-10

Metrics: AUROC AUPRC

Baselines: SPADE PaDiM PatchCore RegAD CoOp WinCLIP

Builds on: CLIP WinCLIP CoOp SPADE PatchCore

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