TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/DRAEM -- A discriminatively trained reconstruction embeddi...

DRAEM -- A discriminatively trained reconstruction embedding for surface anomaly detection

Vitjan Zavrtanik, Matej Kristan, Danijel Skočaj

2021-08-17Anomaly LocalizationAnomaly SegmentationUnsupervised Anomaly DetectionDefect DetectionAnomaly DetectionAnomaly Classification
PaperPDFCodeCodeCode(official)

Abstract

Visual surface anomaly detection aims to detect local image regions that significantly deviate from normal appearance. Recent surface anomaly detection methods rely on generative models to accurately reconstruct the normal areas and to fail on anomalies. These methods are trained only on anomaly-free images, and often require hand-crafted post-processing steps to localize the anomalies, which prohibits optimizing the feature extraction for maximal detection capability. In addition to reconstructive approach, we cast surface anomaly detection primarily as a discriminative problem and propose a discriminatively trained reconstruction anomaly embedding model (DRAEM). The proposed method learns a joint representation of an anomalous image and its anomaly-free reconstruction, while simultaneously learning a decision boundary between normal and anomalous examples. The method enables direct anomaly localization without the need for additional complicated post-processing of the network output and can be trained using simple and general anomaly simulations. On the challenging MVTec anomaly detection dataset, DRAEM outperforms the current state-of-the-art unsupervised methods by a large margin and even delivers detection performance close to the fully-supervised methods on the widely used DAGM surface-defect detection dataset, while substantially outperforming them in localization accuracy.

Results

TaskDatasetMetricValueModel
Anomaly DetectionMVTec ADDetection AUROC98DRAEM
Anomaly DetectionMVTec ADSegmentation AP68.4DRAEM
Anomaly DetectionMVTec ADSegmentation AUROC97.3DRAEM
Anomaly DetectionVisASegmentation AUPRO (until 30% FPR)73.1DRAEM
Anomaly DetectionMVTec LOCO ADAvg. Detection AUROC73.6DRAEM
Anomaly DetectionMVTec LOCO ADDetection AUROC (only logical)72.8DRAEM
Anomaly DetectionMVTec LOCO ADDetection AUROC (only structural)74.4DRAEM
Anomaly DetectionMVTec LOCO ADSegmentation AU-sPRO (until FPR 5%)42.6DRAEM
Anomaly DetectionGoodsADAUPR71DRAEM
Anomaly DetectionGoodsADAUROC65.9DRAEM
2D ClassificationGoodsADAUPR71DRAEM
2D ClassificationGoodsADAUROC65.9DRAEM
Anomaly ClassificationGoodsADAUPR71DRAEM
Anomaly ClassificationGoodsADAUROC65.9DRAEM

Related Papers

Multi-Stage Prompt Inference Attacks on Enterprise LLM Systems2025-07-213DKeyAD: High-Resolution 3D Point Cloud Anomaly Detection via Keypoint-Guided Point Clustering2025-07-17A Semi-Supervised Learning Method for the Identification of Bad Exposures in Large Imaging Surveys2025-07-17A Privacy-Preserving Framework for Advertising Personalization Incorporating Federated Learning and Differential Privacy2025-07-16Bridge Feature Matching and Cross-Modal Alignment with Mutual-filtering for Zero-shot Anomaly Detection2025-07-15Adversarial Activation Patching: A Framework for Detecting and Mitigating Emergent Deception in Safety-Aligned Transformers2025-07-12Towards High-Resolution 3D Anomaly Detection: A Scalable Dataset and Real-Time Framework for Subtle Industrial Defects2025-07-10Semi-Supervised Defect Detection via Conditional Diffusion and CLIP-Guided Noise Filtering2025-07-08