EfficientAD
A millisecond-scale student-teacher anomaly detector with an autoencoder for logical defects.
Segmentation · 99 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Segmentation
- Parameters
- 8.1M
- Operations
- 99
- Framework
- PyTorch
- Recurrent
- No
- Published
- WACV 2024
- Cited by
- 435 (as of 4 October 2026)
- Authors
- Kilian Batzner, Lars Heckler, Rebecca König
- License
- Apache-2.0
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m14348
- Graph hash
- fa6847dbe43506e813caf6cc293d6be5ee572cd767d7b89de7be292c5b9aa039
- Skeleton hash
- 9d4274d181c48be13a5d25ca4dfe7008b15fd71250bb83a0d81ea967bf29ef82
- Architecture hash
- bd1e169f290dd9b8bd4c0932f8afa6b16f1807f83f16fdc08d0fc6e7eb69d867
- Diagram SHA-256
- be539503f9f0de982a7c8306c4a8780204c2b8c0616bd9393658159ef3265de9
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
EfficientAD is an image anomaly detector built around speed: a lightweight feature extractor that processes an image in less than a millisecond on a modern GPU. It then uses a student-teacher approach, training a student network to predict the extracted features of normal, anomaly-free training images. At test time anomalies show up where the student fails to predict the teacher's features.
A training loss hinders the student from imitating the teacher feature extractor beyond the normal images. That loss lets the authors drastically reduce the computational cost of the student-teacher model while improving the detection of anomalous features. The paper also addresses logical anomalies that involve invalid combinations of normal local features, for example a wrong ordering of objects. Those are caught by efficiently incorporating an autoencoder that analyzes images globally.
EfficientAD was evaluated on 32 datasets from three industrial anomaly detection dataset collections. At a latency of two milliseconds and a throughput of six hundred images per second, it enables fast handling of anomalies. The saved third-party port reports EfficientAD-M at 99.1 on MVTec AD, the same figure as the paper. The other saved code base is Anomalib, a library that collects state-of-the-art anomaly detection algorithms for benchmarking on both public and private datasets.
Key idea. A lightweight feature extractor that processes an image in less than a millisecond on a modern GPU, paired with a student-teacher scheme and an autoencoder for logical anomalies.
- EfficientAD
- EfficientAD-S
- EfficientAD-M
- anomaly detection
- industrial anomaly detection
- MVTec AD
- student-teacher
- anomalib
- logical anomalies
AI-written summary, checked automatically against its sources; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{batzner2024efficientadaccuratevisualanomaly,
title={EfficientAD: Accurate Visual Anomaly Detection at Millisecond-Level Latencies},
author={Kilian Batzner and Lars Heckler and Rebecca König},
year={2024},
eprint={2303.14535},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2303.14535},
}