Toward Generalist Anomaly Detection via In-context Residual Learning with Few-shot Sample Prompts
Jiawen Zhu, Guansong Pang

TL;DR
This paper introduces InCTRL, a novel few-shot residual learning approach for generalist anomaly detection that can adapt to diverse datasets without additional training, outperforming existing methods across multiple domains.
Contribution
The paper proposes InCTRL, a residual learning model trained on an auxiliary dataset that enables zero-shot anomaly detection across various domains using few-shot normal samples.
Findings
InCTRL outperforms state-of-the-art methods on nine diverse anomaly detection datasets.
The approach effectively detects industrial, medical, and semantic anomalies without domain-specific training.
InCTRL demonstrates strong generalization capabilities in one-vs-all and multi-class settings.
Abstract
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,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAnomaly Detection Techniques and Applications · Fault Detection and Control Systems · Adversarial Robustness in Machine Learning
MethodsFast Attention Via Positive Orthogonal Random Features · Performer · Contrastive Language-Image Pre-training
