EfficientAD: Accurate Visual Anomaly Detection at Millisecond-Level Latencies

Kilian Batzner, Lars Heckler, Rebecca König
3/25/2023
499 citations
cs.CV

No official code found. Best implementation: nelson1425/EfficientAD (462 stars, Python, Apache-2.0, last commit 2023-08-03). 1 more below.

Abstract

Detecting anomalies in images is an important task, especially in real-time computer vision applications. In this work, we focus on computational efficiency and propose a lightweight feature extractor that processes an image in less than a millisecond on a modern GPU.

Show full abstract

We then use a student-teacher approach to detect anomalous features. We train a student network to predict the extracted features of normal, i.e., anomaly-free training images. The detection of anomalies at test time is enabled by the student failing to predict their features. We propose a training loss that hinders the student from imitating the teacher feature extractor beyond the normal images. It allows us to drastically reduce the computational cost of the student-teacher model, while improving the detection of anomalous features. We furthermore address the detection of challenging logical anomalies that involve invalid combinations of normal local features, for example, a wrong ordering of objects. We detect these anomalies by efficiently incorporating an autoencoder that analyzes images globally. We evaluate our method, called EfficientAD, on 32 datasets from three industrial anomaly detection dataset collections. EfficientAD sets new standards for both the detection and the localization of anomalies. At a latency of two milliseconds and a throughput of six hundred images per second, it enables a fast handling of anomalies. Together with its low error rate, this makes it an economical solution for real-world applications and a fruitful basis for future research.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
nelson1425/EfficientADCommunity462PythonApache-2.02023-08-03
abbass-zain-eddine/EfficientADCommunity0–Apache-2.02025-03-24
Apache-2.0

Unofficial implementation of EfficientAD https://arxiv.org/abs/2303.14535

462104PythonApr 21, 20233 years agoApache-2.0
anomaly-classificationanomaly-detectionanomaly-localizationanomaly-segmentationefficientad+1 more
Apache-2.0

Implementing EfficientAD https://doi.org/10.48550/arXiv.2303.14535

01Jan 6, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{batzner2023efficientad,
  title  = {EfficientAD: Accurate Visual Anomaly Detection at Millisecond-Level Latencies},
  author = {Kilian Batzner and Lars Heckler and Rebecca König},
  year   = {2023},
  eprint = {2303.14535},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.14535v3}
}

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

Discussion