Papers › EfficientAD: Accurate Visual Anomaly Detection at Millisecond-Level Latencies

EfficientAD: Accurate Visual Anomaly Detection at Millisecond-Level Latencies

25 Mar 2023arXiv:2303.14535archive 2025-07-28

Kilian Batzner, Lars Heckler, Rebecca König

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. 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.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2303.14535")

Code

Syntology Ran 1 of 35 code samples harvested from 8 repositories linked to this paper; 34 have no recorded run. Of those that ran: 1 ran with no contract checked.

By repository: community (archive-listed): 35 samples from 8 repositories, 1 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

33 repositories listed; official and paper-mentioned ones first.

openvinotoolkit/anomalib mentioned in paperpytorchApache-2.0 report
Eacient/EfficientAD mentioned on GitHubpytorchApache-2.0 report
Emyyr/EfficientAD mentioned on GitHubpytorchApache-2.0 report
FourthM/EfficientAD mentioned on GitHubpytorchApache-2.0 report
LeapMind/PUAD mentioned on GitHubpytorchApache-2.0 report
MohammedEltoum/EfficientAD mentioned on GitHubpytorchApache-2.0 report
SimonThomine/DistillationAD mentioned on GitHubpytorch report
VealFang/EfficientAD_realdata mentioned on GitHubpytorchApache-2.0 report
WS-W/EfficientAD mentioned on GitHubpytorchnot reachable when probed 2026-09-17 — repositories for recent papers often appear after camera-ready report
Zaza-97/EfficientAD mentioned on GitHubpytorchApache-2.0 report
arungansi/EfficientAD mentioned on GitHubpytorchApache-2.0 report
cinout/EfficientAD mentioned on GitHubpytorchApache-2.0 report
crimama/EfficientAD mentioned on GitHubpytorchApache-2.0 report
danielsoy/EfficientAD-1 mentioned on GitHubpytorchApache-2.0 report
dellysursh/EfficientAD mentioned on GitHubpytorchApache-2.0 report
guome/EfficientAD mentioned on GitHubpytorchApache-2.0 report
henry1985/EfficientAD mentioned on GitHubpytorchApache-2.0 report
lemonxiaohei/EfficientAD mentioned on GitHubpytorchApache-2.0 report
liutongkun/EfficientAD mentioned on GitHubpytorchApache-2.0 report
lorenzomammana/EfficientAD mentioned on GitHubpytorchApache-2.0 report
mjack3/EfficientAD mentioned on GitHubpytorchApache-2.0 report
nelson1425/EfficientAD mentioned on GitHubpytorchApache-2.0 report
ntkhoa95/EfficientAD mentioned on GitHubpytorchApache-2.0 report
zhn6818/EfficientAD mentioned on GitHubpytorchApache-2.0 report
ziyouzheilu/EfficientAD mentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

35 samples harvested; 1 ran; 0 honoured the contract we drafted; 34 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran
34unverified

Licence: 0 of the 35 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 8 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

read_tiff henry1985/EfficientAD/mvtec_ad_evaluation/generic_util.py community (archive-listed) ran Apache-2.0 (permissive) · 4986e9bea3ab5f62 · report
compute_classification_roc henry1985/EfficientAD/mvtec_ad_evaluation/roc_curve_util.py community (archive-listed) unverified Apache-2.0 (permissive) · 1171ab65a42cb909 · report
compute_pro henry1985/EfficientAD/mvtec_ad_evaluation/pro_curve_util.py community (archive-listed) unverified Apache-2.0 (permissive) · 65ccd9c3a0376427 · report
feature_normalization Eacient/EfficientAD/pretraining.py community (archive-listed) unverified Apache-2.0 (permissive) · ded046c9ee356f89 · report
feature_normalization cinout/EfficientAD/pretraining.py community (archive-listed) unverified Apache-2.0 (permissive) · b0ac6b6a8e05c91a · report
generate_toy_dataset henry1985/EfficientAD/mvtec_ad_evaluation/generic_util.py community (archive-listed) unverified Apache-2.0 (permissive) · 92626665be140960 · report
get_autoencoder Eacient/EfficientAD/common.py community (archive-listed) unverified Apache-2.0 (permissive) · a2984f3ccda7db18 · report
get_autoencoder Zaza-97/EfficientAD/common.py community (archive-listed) unverified Apache-2.0 (permissive) · a3bf841cdd61584a · report
get_autoencoder dellysursh/EfficientAD/common.py community (archive-listed) unverified Apache-2.0 (permissive) · cf1eea789ca4d810 · report
get_autoencoder_small Zaza-97/EfficientAD/common.py community (archive-listed) unverified Apache-2.0 (permissive) · 45760bcd8da72e6f · report
get_pdn Eacient/EfficientAD/benchmark.py community (archive-listed) unverified Apache-2.0 (permissive) · 3c3ed7dd6e348895 · report
get_pdn_medium Eacient/EfficientAD/common.py community (archive-listed) unverified Apache-2.0 (permissive) · f55436fae7d32859 · report
get_pdn_small Eacient/EfficientAD/common.py community (archive-listed) unverified Apache-2.0 (permissive) · cb104f86feb3ef61 · report
get_pdn_small_max Zaza-97/EfficientAD/common.py community (archive-listed) unverified Apache-2.0 (permissive) · 5820f47382ce8e2e · report
inference ntkhoa95/EfficientAD/inference.py community (archive-listed) unverified Apache-2.0 (permissive) · 8766003511e1dc5c · report
inference_onnx ntkhoa95/EfficientAD/inference.py community (archive-listed) unverified Apache-2.0 (permissive) · dfe0b32f2056683b · report
lid_mle cinout/EfficientAD/efficientad.py community (archive-listed) unverified Apache-2.0 (permissive) · f85e08a3d3105e5c · report
lid_mle_modified cinout/EfficientAD/efficientad.py community (archive-listed) unverified Apache-2.0 (permissive) · e5349e913e0cf837 · report
load_model ntkhoa95/EfficientAD/inference.py community (archive-listed) unverified Apache-2.0 (permissive) · a849040c6073d454 · report
make_layer cinout/EfficientAD/common.py community (archive-listed) unverified Apache-2.0 (permissive) · 144d898a5033505c · report
map_normalization dellysursh/EfficientAD/efficientad.py community (archive-listed) unverified Apache-2.0 (permissive) · 23bcd10959f6f3db · report
normalizeData cinout/EfficientAD/efficientad.py community (archive-listed) unverified Apache-2.0 (permissive) · f1a2a9757a1d351a · report
predict Eacient/EfficientAD/efficientad.py community (archive-listed) unverified Apache-2.0 (permissive) · 27ada34ea43ef9cb · report
split_dataset LeapMind/PUAD/puad/dataset.py community (archive-listed) unverified Apache-2.0 (permissive) · 079e540378c4e38e · report
stg2_transform cinout/EfficientAD/efficientad_twosteps.py community (archive-listed) unverified Apache-2.0 (permissive) · 1a23741c704a331b · report
test Eacient/EfficientAD/efficientad.py community (archive-listed) unverified Apache-2.0 (permissive) · 21a6b1479ce8651c · report
test Zaza-97/EfficientAD/efficientad.py community (archive-listed) unverified Apache-2.0 (permissive) · bde900c03717312f · report
test danielsoy/EfficientAD-1/efficientaddrive.py community (archive-listed) unverified Apache-2.0 (permissive) · fc52334326eef520 · report
train_transform Eacient/EfficientAD/efficientad.py community (archive-listed) unverified Apache-2.0 (permissive) · 65449a6185e6dc7f · report
train_transform Eacient/EfficientAD/pretraining.py community (archive-listed) unverified Apache-2.0 (permissive) · 077ad902098508f5 · report
train_transform Zaza-97/EfficientAD/efficientad.py community (archive-listed) unverified Apache-2.0 (permissive) · a213bdb9746b0401 · report
train_transform Zaza-97/EfficientAD/pretraining.py community (archive-listed) unverified Apache-2.0 (permissive) · 08b41ec7d5727026 · report
train_transform cinout/EfficientAD/efficientad_twosteps.py community (archive-listed) unverified Apache-2.0 (permissive) · b831876f274e1ec4 · report
train_transform cinout/EfficientAD/pretraining.py community (archive-listed) unverified Apache-2.0 (permissive) · d1db9216b1ac0ae2 · report
trapezoid henry1985/EfficientAD/mvtec_ad_evaluation/generic_util.py community (archive-listed) unverified Apache-2.0 (permissive) · 92db361050fcd08d · report

Tasks

Anomaly DetectionComputational EfficiencySemi-supervised Anomaly DetectionUnsupervised Anomaly Detection

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Anomaly Detection MVTec AD EfficientAD (early stopping) Detection AUROC 99.8 #7 of 148 Archive leaderboard report
Anomaly Detection MVTec AD EfficientAD (early stopping) FPS 269 #7 of 148 Archive leaderboard report
Anomaly Detection MVTec AD EfficientAD-M Detection AUROC 99.1 #45 of 148 Archive leaderboard report
Anomaly Detection MVTec AD EfficientAD-M FPS 269 #45 of 148 Archive leaderboard report
Anomaly Detection MVTec AD EfficientAD-M Segmentation AUPRO 93.5 #45 of 148 Archive leaderboard report
Anomaly Detection MVTec AD EfficientAD-S Detection AUROC 98.7 #51 of 148 Archive leaderboard report
Anomaly Detection MVTec AD EfficientAD-S FPS 614 #51 of 148 Archive leaderboard report
Anomaly Detection MVTec AD EfficientAD-S Segmentation AP 65.9 #51 of 148 Archive leaderboard report
Anomaly Detection MVTec AD EfficientAD-S Segmentation AUPRO 93.1 #51 of 148 Archive leaderboard report
Anomaly Detection MVTec LOCO AD EfficientAD-M Avg. Detection AUROC 90.7 #6 of 40 Archive leaderboard report
Anomaly Detection MVTec LOCO AD EfficientAD-M Detection AUROC (only logical) 86.8 #6 of 40 Archive leaderboard report
Anomaly Detection MVTec LOCO AD EfficientAD-M Detection AUROC (only structural) 94.7 #6 of 40 Archive leaderboard report
Anomaly Detection MVTec LOCO AD EfficientAD-M Segmentation AU-sPRO (until FPR 5%) 79.8 #6 of 40 Archive leaderboard report
Anomaly Detection MVTec LOCO AD EfficientAD-S Avg. Detection AUROC 90.0 #10 of 40 Archive leaderboard report
Anomaly Detection MVTec LOCO AD EfficientAD-S Detection AUROC (only logical) 85.8 #10 of 40 Archive leaderboard report
Anomaly Detection MVTec LOCO AD EfficientAD-S Detection AUROC (only structural) 94.1 #10 of 40 Archive leaderboard report
Anomaly Detection MVTec LOCO AD EfficientAD-S Segmentation AU-sPRO (until FPR 5%) 77.8 #10 of 40 Archive leaderboard report
Anomaly Detection VisA EfficientAD-M Detection AUROC 98.1 #10 of 50 Archive leaderboard report
Anomaly Detection VisA EfficientAD-M Segmentation AUPRO (until 30% FPR) 94.0 #10 of 50 Archive leaderboard report
Anomaly Detection VisA EfficientAD-S Detection AUROC 97.5 #15 of 50 Archive leaderboard report
Anomaly Detection VisA EfficientAD-S Segmentation AUPRO (until 30% FPR) 93.1 #15 of 50 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections