Is Training Necessary for Anomaly Detection?

Xingwu Zhang, Guanxuan Li, Paul Henderson, Gerardo Aragon-Camarasa, Zijun Long
1/30/2026
cs.CV

Official code: longkukuhi/RAD (78 stars, last commit 2026-01-29).

Abstract

Current state-of-the-art multi-class unsupervised anomaly detection (MUAD) methods rely on training encoder-decoder models to reconstruct anomaly-free features. We first show these approaches have an inherent fidelity-stability dilemma in how they detect anomalies via reconstruction residuals. We then abandon the reconstruction paradigm entirely and propose Retrieval-based Anomaly Detection (RAD). RAD is a training-free approach that stores anomaly-free features in a memory and detects anomalies through multi-level retrieval, matching test patches against the memory. Experiments demonstrate that RAD achieves state-of-the-art performance across four established benchmarks (MVTec-AD, VisA, Real-IAD, 3D-ADAM) under both standard and few-shot settings. On MVTec-AD, RAD reaches 96.7\% Pixel AUROC with just a single anomaly-free image compared to 98.5\% of RAD's full-data performance. We further prove that retrieval-based scores theoretically upper-bound reconstruction-residual scores. Collectively, these findings overturn the assumption that MUAD requires task-specific training, showing that state-of-the-art anomaly detection is feasible with memory-based retrieval. Our code is available at https://github.com/longkukuhi/RAD.

View on arXivView PDF

Code Implementations(1)

longkukuhi/RADOfficial100%

Official PyTorch implementation for paper: "Is Training Necessary for Anomaly Detection?"

7811PythonJan 27, 20268 months ago

Similar Papers

Cite this paper

@article{zhang2026training,
  title  = {Is Training Necessary for Anomaly Detection?},
  author = {Xingwu Zhang and Guanxuan Li and Paul Henderson and Gerardo Aragon-Camarasa and Zijun Long},
  year   = {2026},
  eprint = {2601.22763},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.22763v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.22763.svg)](https://codeofpaper.com/paper/2601.22763)

Discussion