AnomalyDINO: Boosting Patch-based Few-shot Anomaly Detection with DINOv2

Simon Damm, Mike Laszkiewicz, Johannes Lederer, Asja Fischer
5/23/2024
cs.CV

No official code found. Best implementation: dammsi/AnomalyDINO (260 stars, Apache-2.0, last commit 2025-12-17).

Abstract

Recent advances in multimodal foundation models have set new standards in few-shot anomaly detection. This paper explores whether high-quality visual features alone are sufficient to rival existing state-of-the-art vision-language models. We affirm this by adapting DINOv2 for one-shot and few-shot anomaly detection, with a focus on industrial applications. We show that this approach does not only rival existing techniques but can even outmatch them in many settings. Our proposed vision-only approach, AnomalyDINO, follows the well-established patch-level deep nearest neighbor paradigm, and enables both image-level anomaly prediction and pixel-level anomaly segmentation. The approach is methodologically simple and training-free and, thus, does not require any additional data for fine-tuning or meta-learning. The approach is methodologically simple and training-free and, thus, does not require any additional data for fine-tuning or meta-learning. Despite its simplicity, AnomalyDINO achieves state-of-the-art results in one- and few-shot anomaly detection (e.g., pushing the one-shot performance on MVTec-AD from an AUROC of 93.1% to 96.6%). The reduced overhead, coupled with its outstanding few-shot performance, makes AnomalyDINO a strong candidate for fast deployment, e.g., in industrial contexts.

View on arXivView PDF

Code Implementations(1)

dammsi/AnomalyDINOCommunity100%
Apache-2.0

[WACV2025] AnomalyDINO: Boosting Patch-based Few-shot Anomaly Detection with DINOv2

26042Python, Jupyter NotebookJul 30, 202410 months agoApache-2.0
anomaly-detectiondinov2foundation-modelsvision-transformer

Similar Papers

Cite this paper

@article{damm2024anomalydino,
  title  = {AnomalyDINO: Boosting Patch-based Few-shot Anomaly Detection with DINOv2},
  author = {Simon Damm and Mike Laszkiewicz and Johannes Lederer and Asja Fischer},
  year   = {2024},
  eprint = {2405.14529},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.14529v3}
}

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/2405.14529.svg)](https://codeofpaper.com/paper/2405.14529)

Discussion