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

MRAD: Zero-Shot Anomaly Detection with Memory-Driven Retrieval

About

Zero-shot anomaly detection (ZSAD) often leverages pretrained vision or vision-language models, but many existing methods use prompt learning or complex modeling to fit the data distribution, resulting in high training or inference cost and limited cross-domain stability. To address these limitations, we propose Memory-Retrieval Anomaly Detection method (MRAD), a unified framework that replaces parametric fitting with a direct memory retrieval. The train-free base model, MRAD-TF, freezes the CLIP image encoder and constructs a two-level memory bank (image-level and pixel-level) from auxiliary data, where feature-label pairs are explicitly stored as keys and values. During inference, anomaly scores are obtained directly by similarity retrieval over the memory bank. Based on the MRAD-TF, we further propose two lightweight variants as enhancements: (i) MRAD-FT fine-tunes the retrieval metric with two linear layers to enhance the discriminability between normal and anomaly; (ii) MRAD-CLIP injects the normal and anomalous region priors from the MRAD-FT as dynamic biases into CLIP's learnable text prompts, strengthening generalization to unseen categories. Across 16 industrial and medical datasets, the MRAD framework consistently demonstrates superior performance in anomaly classification and segmentation, under both train-free and training-based settings. Our work shows that fully leveraging the empirical distribution of raw data, rather than relying only on model fitting, can achieve stronger anomaly detection performance. The code will be publicly released at https://github.com/CROVO1026/MRAD.

Chaoran Xu, Chengkan Lv, Qiyu Chen, Feng Zhang, Zhengtao Zhang• 2026

Related benchmarks

TaskDatasetResultRank
Anomaly ClassificationMVTec-AD (test)
AUROC (Image)94
50
Anomaly SegmentationBTAD
Average Pixel AUROC95.4
41
Anomaly SegmentationMVTec AD
AUROC (Pixelwise)0.93
33
Anomaly SegmentationMPDD
AUROC0.979
31
Anomaly SegmentationDAGM
AUROC97.4
27
Anomaly ClassificationVisA (test)--
20
Anomaly SegmentationKvasir
PRO0.527
19
Anomaly DetectionSDD (test)
AUC-ROC83.9
19
Anomaly SegmentationKSDD2
AUROC98.9
14
Anomaly SegmentationCVC-ColonDB
AUROC84.7
13
Showing 10 of 25 rows

Other info

Follow for update