Toward Generalist Anomaly Detection via In-context Residual Learning with Few-shot Sample Prompts
Not on the map. Why?
Abstract (arXiv)
This paper explores the problem of Generalist Anomaly Detection (GAD), aiming to train one single detection model that can generalize to detect anomalies in diverse datasets from different application domains without any further training on the target data. Some recent studies have shown that large pre-trained Visual-Language Models (VLMs) like CLIP have strong generalization capabilities on detecting industrial defects from various datasets, but their methods rely heavily on handcrafted text prompts about defects, making them difficult to generalize to anomalies in other applications, e.g., medical image anomalies or semantic anomalies in natural images. In this work, we propose to train a GAD model with few-shot normal images as sample prompts for AD on diverse datasets on the fly. To this end, we introduce a novel approach that learns an in-context residual learning model for GAD, termed InCTRL. It is trained on an auxiliary dataset to discriminate anomalies from normal samples based on a holistic evaluation of the residuals between query images and few-shot normal sample prompts. Regardless of the datasets, per definition of anomaly, larger residuals are expected for anomalies than normal samples, thereby enabling InCTRL to generalize across different domains without further training. Comprehensive experiments on nine AD datasets are performed to establish a GAD benchmark that encapsulate the detection of industrial defect anomalies, medical anomalies, and semantic anomalies in both one-vs-all and multi-class setting, on which InCTRL is the best performer and significantly outperforms state-of-the-art competing methods. Code is available at https://github.com/mala-lab/InCTRL.
Key facts. Cited by 88 papers in the map (data through 7 Oct 2026). Builds on 56 of its 76 references that are in the map. First posted on arXiv 11 Mar 2024.
Builds on
56 of 76 references.
References · 56
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,337
- 2022Conditional Prompt Learning for Vision-Language Modelscited by 1,427
- 2021Towards Total Recall in Industrial Anomaly Detectioncited by 772
- 2022OFA: Unifying Architectures, Tasks, and Modalities Through a Simple Sequence-to-Sequence Learning Frameworkcited by 742
- 2020PaDiM: a Patch Distribution Modeling Framework for Anomaly Detection and Localizationcited by 591
- 2021DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detectioncited by 510
- 2022Unified-IO: A Unified Model for Vision, Language, and Multi-Modal Taskscited by 420
- 2022Anomaly Detection via Reverse Distillation from One-Class Embeddingcited by 419
- 2018GANomaly: Semi-Supervised Anomaly Detection via Adversarial Trainingcited by 409
- 2022SPot-the-Difference Self-Supervised Pre-training for Anomaly Detection and Segmentationcited by 397
38 more
- 2019Uninformed Students: Student-Teacher Anomaly Detection with Discriminative Latent Embeddingscited by 386
- 2021Pix2seq: A Language Modeling Framework for Object Detectioncited by 345
- 2022Images Speak in Images: A Generalist Painter for In-Context Visual Learningcited by 317
- 2023WinCLIP: Zero-/Few-Shot Anomaly Classification and Segmentationcited by 311
- 2020Sub-Image Anomaly Detection with Deep Pyramid Correspondencescited by 297
- 2019Deep Semi-Supervised Anomaly Detectioncited by 290
- 2020Multiresolution Knowledge Distillation for Anomaly Detectioncited by 285
- 2020Learning Memory-guided Normality for Anomaly Detectioncited by 278
- 2023AnomalyCLIP: Object-agnostic Prompt Learning for Zero-shot Anomaly Detectioncited by 270
- 2022Visual Prompting via Image Inpaintingcited by 248
- 2020Patch SVDD: Patch-level SVDD for Anomaly Detection and Segmentationcited by 212
- 2020Classification-Based Anomaly Detection for General Datacited by 210
- 2023SegGPT: Segmenting Everything In Contextcited by 193
- 2022A Unified Sequence Interface for Vision Taskscited by 152
- 2019Segmentation-Based Deep-Learning Approach for Surface-Defect Detectioncited by 145
- 2021Student-Teacher Feature Pyramid Matching for Anomaly Detectioncited by 145
- 2022Registration based Few-Shot Anomaly Detectioncited by 133
- 2023VadCLIP: Adapting Vision-Language Models for Weakly Supervised Video Anomaly Detectioncited by 121
- 2020Old is Gold: Redefining the Adversarially Learned One-Class Classifier Training Paradigmcited by 115
- 2022Catching Both Gray and Black Swans: Open-set Supervised Anomaly Detectioncited by 104
- 2022Language Models are General-Purpose Interfacescited by 96
- 2021Divide-and-Assemble: Learning Block-wise Memory for Unsupervised Anomaly Detectioncited by 83
- 2018Learning Representations of Ultrahigh-dimensional Data for Random Distance-based Outlier Detectioncited by 79
- 2022UViM: A Unified Modeling Approach for Vision with Learned Guiding Codescited by 77
- 2019Attention Based Glaucoma Detection: A Large-scale Database and CNN Modelcited by 75
- 2023Pushing the Limits of Fewshot Anomaly Detection in Industry Vision: Graphcorecited by 75
- 2024A Survey on Visual Anomaly Detection: Challenge, Approach, and Prospectcited by 69
- 2021Deep One-Class Classification via Interpolated Gaussian Descriptorcited by 67
- 2020Few-shot Scene-adaptive Anomaly Detectioncited by 62
- 2021A Hierarchical Transformation-Discriminating Generative Model for Few Shot Anomaly Detectioncited by 60
- 2019Deep Weakly-supervised Anomaly Detectioncited by 59
- 2023Open-Vocabulary Video Anomaly Detectioncited by 57
- 2021Constrained Contrastive Distribution Learning for Unsupervised Anomaly Detection and Localisation in Medical Imagescited by 45
- 2023Diversity-Measurable Anomaly Detectioncited by 41
- 2018Automatic Classification of Defective Photovoltaic Module Cells in Electroluminescence Imagescited by 35
- 2023Anomaly Detection under Distribution Shiftcited by 35
- 2021SQUID: Deep Feature In-Painting for Unsupervised Anomaly Detectioncited by 34
- 2023Focus the Discrepancy: Intra- and Inter-Correlation Learning for Image Anomaly Detectioncited by 32
50 most cited of 56 All 56 (JSON)
Built on by
Citing papers per year: 2024: 20; 2025: 38; 2026: 30.
88 papers.
Sort:
By area:
- 2025Towards Zero-Shot Anomaly Detection and Reasoning with Multimodal Large Language Modelscited by 54
- 2025Exploring Intrinsic Normal Prototypes within a Single Image for Universal Anomaly Detectioncited by 47
- 2024ARC: A Generalist Graph Anomaly Detector with In-Context Learningcited by 46
- 2024MMAD: A Comprehensive Benchmark for Multimodal Large Language Models in Industrial Anomaly Detectioncited by 46
- 2024Learning Transferable Negative Prompts for Out-of-Distribution Detectioncited by 43
- 2024Weakly Supervised Video Anomaly Detection and Localization with Spatio-Temporal Promptscited by 40
- 2024Deep Graph Anomaly Detection: A Survey and New Perspectivescited by 40
- 2024Generalized Out-of-Distribution Detection and Beyond in Vision Language Model Era: A Surveycited by 36
- 2024Do LLMs Understand Visual Anomalies? Uncovering LLM's Capabilities in Zero-shot Anomaly Detectioncited by 35
- 2025AdaptCLIP: Adapting CLIP for Universal Visual Anomaly Detectioncited by 28
- 2024Deep Learning for Video Anomaly Detection: A Reviewcited by 27
- 2024MANTA: A Large-Scale Multi-View and Visual-Text Anomaly Detection Dataset for Tiny Objectscited by 26
38 more
- 2024Large Language Models for Anomaly and Out-of-Distribution Detection: A Surveycited by 24
- 2024Zero-shot Generalist Graph Anomaly Detection with Unified Neighborhood Promptscited by 24
- 2024ResAD: A Simple Framework for Class Generalizable Anomaly Detectioncited by 24
- 2024Fine-grained Abnormality Prompt Learning for Zero-shot Anomaly Detectioncited by 22
- 2024Learning Feature Inversion for Multi-class Anomaly Detection under General-purpose COCO-AD Benchmarkcited by 15
- 2025MultiADS: Defect-aware Supervision for Multi-type Anomaly Detection and Segmentation in Zero-Shot Learningcited by 12
- 2025MetaUAS: Universal Anomaly Segmentation with One-Prompt Meta-Learningcited by 12
- 2025Normal-Abnormal Guided Generalist Anomaly Detectioncited by 10
- 2026VisualAD: Language-Free Zero-Shot Anomaly Detection via Vision Transformercited by 10
- 2025Taming Vision-Language Models for Medical Image Analysis: A Comprehensive Reviewcited by 9
- 2025DictAS: A Framework for Class-Generalizable Few-Shot Anomaly Segmentation via Dictionary Lookupcited by 9
- 2025Foundation Models and Transformers for Anomaly Detection: A Surveycited by 8
- 2026From Few-Shot to Zero-Shot: Towards Generalist Graph Anomaly Detectioncited by 8
- 2025One-to-Normal: Anomaly Personalization for Few-shot Anomaly Detectioncited by 7
- 2025INP-Former++: Advancing Universal Anomaly Detection via Intrinsic Normal Prototypes and Residual Learningcited by 7
- 2025AF-CLIP: Zero-Shot Anomaly Detection via Anomaly-Focused CLIP Adaptationcited by 7
- 2025Dinomaly2: A Unified Framework for Unsupervised Image Anomaly Detectioncited by 6
- 2025Commonality in Few: Few-Shot Multimodal Anomaly Detection via Hypergraph-Enhanced Memorycited by 6
- 2024Zero-Shot Out-of-Distribution Detection with Outlier Label Exposurecited by 5
- 2024Small Object Few-shot Segmentation for Vision-based Industrial Inspectioncited by 5
- 2025Foundation Visual Encoders Are Secretly Few-Shot Anomaly Detectorscited by 5
- 2026Towards One-for-All Anomaly Detection for Tabular Datacited by 5
- 2025Continual-MEGA: A Large-scale Benchmark for Generalizable Continual Anomaly Detectioncited by 4
- 2025DP-DGAD: A Generalist Dynamic Graph Anomaly Detector with Dynamic Prototypescited by 4
- 2026One Language-Free Foundation Model Is Enough for Universal Vision Anomaly Detectioncited by 4
- 2024Bidirectional Multimodal Prompt Learning with Scale-Aware Training for Few-Shot Multi-Class Anomaly Detectioncited by 3
- 2025Foundation Models for Anomaly Detection: Vision and Challengescited by 3
- 2025Crane: Context-Guided Prompt Learning and Attention Refinement for Zero-Shot Anomaly Detectioncited by 3
- 2025Learning Event Completeness for Weakly Supervised Video Anomaly Detectioncited by 3
- 2025Towards Fine-Grained Vision-Language Alignment for Few-Shot Anomaly Detectioncited by 3
- 2025MuSc-V2: Zero-Shot Multimodal Industrial Anomaly Classification and Segmentation with Mutual Scoring of Unlabeled Samplescited by 3
- 2026Weakly Supervised Video Anomaly Detection with Anomaly-Connected Components and Intention Reasoningcited by 3
- 2026Dual Distillation for Few-Shot Anomaly Detectioncited by 3
- 2024SOWA: Adapting Hierarchical Frozen Window Self-Attention to Visual-Language Models for Better Anomaly Detectioncited by 2
- 2025A Comprehensive Survey for Real-World Industrial Defect Detection: Challenges, Approaches, and Prospectscited by 2
- 2025ResAD++: Towards Class Agnostic Anomaly Detection via Residual Feature Learningcited by 2
- 2026VTFusion: A Vision-Text Multimodal Fusion Network for Few-Shot Anomaly Detectioncited by 2
- 2026AnomalyVFM -- Transforming Vision Foundation Models into Zero-Shot Anomaly Detectorscited by 2
50 most cited of 88 All 88 (JSON)
- 2026VD-DeepStack: Bridging Visual Comparison and Language Reasoning for Few-Shot Anomaly Detection28 Sep 2026
- 2026How Many Categories Are Enough? Distribution-Free Certification Limits for Few-Shot Anomaly Thresholds23 Sep 2026
- 2026PL-SCEA: Reconfiguring Pretrained Attention for Few-Shot Industrial Anomaly Detection3 Sep 2026
- 2026PADFormer: Pose-agnostic Anomaly Detection from Sparse View Images4 Aug 2026
- 2026DuoAD: Leveraging [CLS] Dual Characteristics for Training-Free Few-Shot Anomaly Detection27 Jul 2026
- 2026Robust Zero-shot Anomaly Detection under Limited Auxiliary Anomaly Priors28 Jun 2026
- 2026Value-order Decomposition for Generalist Anomaly Detection12 Jun 2026
- 2026Normality-Preserving Continual Industrial Anomaly Detection via Orthogonal LoRA Banks1 Jun 2026
- 2026AnomalyAgent: Training-Free Agentic Models for Zero-/Few-Shot Anomaly Detection28 May 2026
- 2026Anomaly as Non-Conformity via Training-Free Graph Laplacian Energy Minimization27 May 2026
- 2026Generalist Graph Anomaly Detection via Prototype-Based Distillation26 May 2026
- 2026Rethinking Continual Anomaly Detection on the Edge: Benchmarking Under Realistic Industrial Conditions22 May 2026
38 more
- 2026Beyond Normal References: Discriminative Few-Shot Anomaly Detection22 May 2026
- 2026Res2CLIP: Few-Shot Generalist Anomaly Detection with Residual-to-Residual Alignment15 May 2026
- 2026MTL-MAD: Multi-Task Learners are Effective Medical Anomaly Detectors7 May 2026
- 2026MMR-AD: A Large-Scale Multimodal Dataset for Benchmarking General Anomaly Detection with Multimodal Large Language Models13 Apr 2026
- 2026InCTRLv2: Generalist Residual Models for Few-Shot Anomaly Detection and Segmentation6 Apr 2026
- 2026Unleashing Vision-Language Semantics for Deepfake Video Detection25 Mar 2026
- 2026Semantic Iterative Reconstruction: One-Shot Universal Anomaly Detection24 Mar 2026
- 2026GATE-AD: Graph Attention Network Encoding For Few-Shot Industrial Visual Anomaly Detection16 Mar 2026
- 2026Towards One-for-All Anomaly Detection for Tabular Data15 Mar 2026
- 2026VisualAD: Language-Free Zero-Shot Anomaly Detection via Vision Transformer9 Mar 2026
- 2026Dual Distillation for Few-Shot Anomaly Detection2 Mar 2026
- 2026Weakly Supervised Video Anomaly Detection with Anomaly-Connected Components and Intention Reasoning28 Feb 2026
- 2026From Few-Shot to Zero-Shot: Towards Generalist Graph Anomaly Detection21 Feb 2026
- 2026AnomalyVFM -- Transforming Vision Foundation Models into Zero-Shot Anomaly Detectors28 Jan 2026
- 2026HAAF: Hierarchical Adaptation and Alignment of Foundation Models for Few-Shot Pathology Anomaly Detection24 Jan 2026
- 2026VTFusion: A Vision-Text Multimodal Fusion Network for Few-Shot Anomaly Detection23 Jan 2026
- 2026DevPrompt: Deviation-Based Prompt Learning for One-Normal ShotImage Anomaly Detection21 Jan 2026
- 2026One Language-Free Foundation Model Is Enough for Universal Vision Anomaly Detection9 Jan 2026
- 2025Physic-HM: Restoring Physical Generative Logic in Multimodal Anomaly Detection via Hierarchical Modulation25 Dec 2025
- 2025ABounD: Adversarial Boundary-Driven Few-Shot Learning for Multi-Class Anomaly Detection27 Nov 2025
- 2025MuSc-V2: Zero-Shot Multimodal Industrial Anomaly Classification and Segmentation with Mutual Scoring of Unlabeled Samples13 Nov 2025
- 2025UniADC: A Unified Framework for Anomaly Detection and Classification10 Nov 2025
- 2025Commonality in Few: Few-Shot Multimodal Anomaly Detection via Hypergraph-Enhanced Memory8 Nov 2025
- 2025Cross-Task Generalization in Handwriting-Based Alzheimer's Screening via Vision Language Adaptation8 Nov 2025
- 2025ADPretrain: Advancing Industrial Anomaly Detection via Anomaly Representation Pretraining7 Nov 2025
- 2025Towards Fine-Grained Vision-Language Alignment for Few-Shot Anomaly Detection30 Oct 2025
- 2025Dinomaly2: A Unified Framework for Unsupervised Image Anomaly Detection20 Oct 2025
- 2025Adversarially Robust Few-Shot Anomaly Detection with Vision Foundation Models15 Oct 2025
- 2025Foundation Visual Encoders Are Secretly Few-Shot Anomaly Detectors2 Oct 2025
- 2025Normal-Abnormal Guided Generalist Anomaly Detection1 Oct 2025
- 2025PatchEAD: Unifying Industrial Visual Prompting Frameworks for Patch-Exclusive Anomaly Detection30 Sep 2025
- 2025Generalist Multi-Class Anomaly Detection via Distillation to Two Heterogeneous Student Networks29 Sep 2025
- 2025ResAD++: Towards Class Agnostic Anomaly Detection via Residual Feature Learning28 Sep 2025
- 2025Double Helix Diffusion for Cross-Domain Anomaly Image Generation16 Sep 2025
- 2025Normal and Abnormal Pathology Knowledge-Augmented Vision-Language Model for Anomaly Detection in Pathology Images21 Aug 2025
- 2025DictAS: A Framework for Class-Generalizable Few-Shot Anomaly Segmentation via Dictionary Lookup19 Aug 2025
- 2025DP-DGAD: A Generalist Dynamic Graph Anomaly Detector with Dynamic Prototypes1 Aug 2025
- 2025AF-CLIP: Zero-Shot Anomaly Detection via Anomaly-Focused CLIP Adaptation26 Jul 2025
50 newest of 88 All 88 (JSON)
- 2024MMAD: A Comprehensive Benchmark for Multimodal Large Language Models in Industrial Anomaly Detectioncited by 46
- 2024Generalized Out-of-Distribution Detection and Beyond in Vision Language Model Era: A Surveycited by 36
- 2024Do LLMs Understand Visual Anomalies? Uncovering LLM's Capabilities in Zero-shot Anomaly Detectioncited by 35
- 2025MetaUAS: Universal Anomaly Segmentation with One-Prompt Meta-Learningcited by 12
- 2025Taming Vision-Language Models for Medical Image Analysis: A Comprehensive Reviewcited by 9
- 2025DictAS: A Framework for Class-Generalizable Few-Shot Anomaly Segmentation via Dictionary Lookupcited by 9
- 2024SOWA: Adapting Hierarchical Frozen Window Self-Attention to Visual-Language Models for Better Anomaly Detectioncited by 2
- 2026MMR-AD: A Large-Scale Multimodal Dataset for Benchmarking General Anomaly Detection with Multimodal Large Language Modelscited by 1
- 2026AnomalyAgent: Training-Free Agentic Models for Zero-/Few-Shot Anomaly Detectioncited by 1
- 2026DevPrompt: Deviation-Based Prompt Learning for One-Normal ShotImage Anomaly Detectioncited by 0
- 2026Unleashing Vision-Language Semantics for Deepfake Video Detectioncited by 0
- 2026AnomalyAgent: Training-Free Agentic Models for Zero-/Few-Shot Anomaly Detection28 May 2026
- 2026MMR-AD: A Large-Scale Multimodal Dataset for Benchmarking General Anomaly Detection with Multimodal Large Language Models13 Apr 2026
- 2026Unleashing Vision-Language Semantics for Deepfake Video Detection25 Mar 2026
- 2026DevPrompt: Deviation-Based Prompt Learning for One-Normal ShotImage Anomaly Detection21 Jan 2026
- 2025DictAS: A Framework for Class-Generalizable Few-Shot Anomaly Segmentation via Dictionary Lookup19 Aug 2025
- 2025Taming Vision-Language Models for Medical Image Analysis: A Comprehensive Review23 Jun 2025
- 2025MetaUAS: Universal Anomaly Segmentation with One-Prompt Meta-Learning14 May 2025
- 2024MMAD: A Comprehensive Benchmark for Multimodal Large Language Models in Industrial Anomaly Detection12 Oct 2024
- 2024Generalized Out-of-Distribution Detection and Beyond in Vision Language Model Era: A Survey31 Jul 2024
- 2024SOWA: Adapting Hierarchical Frozen Window Self-Attention to Visual-Language Models for Better Anomaly Detection4 Jul 2024
- 2024Do LLMs Understand Visual Anomalies? Uncovering LLM's Capabilities in Zero-shot Anomaly Detection15 Apr 2024
- 2025Exploring Intrinsic Normal Prototypes within a Single Image for Universal Anomaly Detectioncited by 47
- 2024ARC: A Generalist Graph Anomaly Detector with In-Context Learningcited by 46
- 2024Learning Transferable Negative Prompts for Out-of-Distribution Detectioncited by 43
- 2024Weakly Supervised Video Anomaly Detection and Localization with Spatio-Temporal Promptscited by 40
- 2024Deep Graph Anomaly Detection: A Survey and New Perspectivescited by 40
- 2025AdaptCLIP: Adapting CLIP for Universal Visual Anomaly Detectioncited by 28
- 2024Deep Learning for Video Anomaly Detection: A Reviewcited by 27
- 2024MANTA: A Large-Scale Multi-View and Visual-Text Anomaly Detection Dataset for Tiny Objectscited by 26
- 2024Large Language Models for Anomaly and Out-of-Distribution Detection: A Surveycited by 24
- 2024Zero-shot Generalist Graph Anomaly Detection with Unified Neighborhood Promptscited by 24
- 2024ResAD: A Simple Framework for Class Generalizable Anomaly Detectioncited by 24
- 2024Fine-grained Abnormality Prompt Learning for Zero-shot Anomaly Detectioncited by 22
12 most cited of 72 All 72 (JSON)
- 2026How Many Categories Are Enough? Distribution-Free Certification Limits for Few-Shot Anomaly Thresholds23 Sep 2026
- 2026PL-SCEA: Reconfiguring Pretrained Attention for Few-Shot Industrial Anomaly Detection3 Sep 2026
- 2026PADFormer: Pose-agnostic Anomaly Detection from Sparse View Images4 Aug 2026
- 2026DuoAD: Leveraging [CLS] Dual Characteristics for Training-Free Few-Shot Anomaly Detection27 Jul 2026
- 2026Robust Zero-shot Anomaly Detection under Limited Auxiliary Anomaly Priors28 Jun 2026
- 2026Value-order Decomposition for Generalist Anomaly Detection12 Jun 2026
- 2026Anomaly as Non-Conformity via Training-Free Graph Laplacian Energy Minimization27 May 2026
- 2026Generalist Graph Anomaly Detection via Prototype-Based Distillation26 May 2026
- 2026Rethinking Continual Anomaly Detection on the Edge: Benchmarking Under Realistic Industrial Conditions22 May 2026
- 2026Beyond Normal References: Discriminative Few-Shot Anomaly Detection22 May 2026
- 2026Res2CLIP: Few-Shot Generalist Anomaly Detection with Residual-to-Residual Alignment15 May 2026
- 2026InCTRLv2: Generalist Residual Models for Few-Shot Anomaly Detection and Segmentation6 Apr 2026
12 newest of 72 All 72 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2023AnomalyGPT: Detecting Industrial Anomalies Using Large Vision-Language Models
- 2024FADE: Few-shot/zero-shot Anomaly Detection Engine using Large Vision-Language Model
- 2024PromptAD: Learning Prompts with only Normal Samples for Few-Shot Anomaly Detection
- 2024VL4AD: Vision-Language Models Improve Pixel-wise Anomaly Detection
- 2025IAD-GPT: Advancing Visual Knowledge in Multimodal Large Language Model for Industrial Anomaly Detection
- 2025CoPS: Conditional Prompt Synthesis for Zero-Shot Anomaly Detection
- 2026Analyzing VLM-Based Approaches for Anomaly Classification and Segmentation
- 2024VMAD: Visual-enhanced Multimodal Large Language Model for Zero-Shot Anomaly Detection