Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

RAID: Retrieval-Augmented Anomaly Detection

About

Unsupervised Anomaly Detection (UAD) aims to identify abnormal regions by establishing correspondences between test images and normal templates. Existing methods primarily rely on image reconstruction or template retrieval but face a fundamental challenge: matching between test images and normal templates inevitably introduces noise due to intra-class variations, imperfect correspondences, and limited templates. Observing that Retrieval-Augmented Generation (RAG) leverages retrieved samples directly in the generation process, we reinterpret UAD through this lens and introduce \textbf{RAID}, a retrieval-augmented UAD framework designed for noise-resilient anomaly detection and localization. Unlike standard RAG that enriches context or knowledge, we focus on using retrieved normal samples to guide noise suppression in anomaly map generation. RAID retrieves class-, semantic-, and instance-level representations from a hierarchical vector database, forming a coarse-to-fine pipeline. A matching cost volume correlates the input with retrieved exemplars, followed by a guided Mixture-of-Experts (MoE) network that leverages the retrieved samples to adaptively suppress matching noise and produce fine-grained anomaly maps. RAID achieves state-of-the-art performance across full-shot, few-shot, and multi-dataset settings on MVTec, VisA, MPDD, and BTAD benchmarks. \href{https://github.com/Mingxiu-Cai/RAID}{https://github.com/Mingxiu-Cai/RAID}.

Mingxiu Cai, Zhe Zhang, Gaochang Wu, Tianyou Chai, Xiatian Zhu• 2026

Related benchmarks

TaskDatasetResultRank
Anomaly LocalizationMVTec AD
Pixel AUROC98.6
369
Anomaly DetectionVisA
AUROC94.9
199
Anomaly LocalizationVisA
P-AUROC0.988
119
Anomaly DetectionMPDD--
62
Anomaly DetectionMVTec AD
I-AUROC99.4
43
Anomaly LocalizationVisA
AUROC99
23
Anomaly DetectionMVTec AD
I-AUROC0.969
21
Anomaly DetectionBTAD
AUROC95.2
20
Anomaly LocalizationBTAD
Pixel-level AUROC97.8
20
Anomaly DetectionMPDD
AUROC96.3
18
Showing 10 of 16 rows

Other info

Follow for update