Towards Total Recall in Industrial Anomaly Detection
Karsten RothLatha PemulaJoaquin ZepedaBernhard SchölkopfThomas BroxPeter Gehler
Introduces PatchCore, an industrial anomaly detection method that leverages a representative memory bank of patch features to more than halve error rates on the standard MVTec AD benchmark while maintaining fast inference speeds.
Visual defect inspection is essential in manufacturing, but modern production environments frequently face a cold-start problem where normal product images are abundant while defect examples are rare and unpredictable. Existing machine learning methods often struggle to detect diverse, subtle defects or suffer from slow processing speeds, heavy bias toward general natural image datasets, and rigid alignment constraints.
To address these operational challenges, the article evaluates PatchCore, a memory-bank anomaly detection and localization algorithm. The objective was to demonstrate that extracting and compressing representative, locally aware visual features from normal images can maximize defect detection accuracy while maintaining fast inference speeds and high sample efficiency.
The authors conducted comprehensive evaluations primarily on the widely used MVTec Anomaly Detection benchmark, consisting of 5,354 industrial images across 15 product categories, alongside secondary benchmarks on magnetic tile surface defects and campus surveillance footage. The approach leverages intermediate feature representations from standard pre-trained vision models, aggregates surrounding local spatial context, and applies a greedy subset selection method to drastically reduce memory usage and runtime without losing detection power.
The analysis produced several critical findings. First, PatchCore achieved state-of-the-art image-level anomaly detection accuracy on the MVTec benchmark, reaching up to a 99.6% detection score and reducing classification error by over 50% compared to previous leading methods. Second, it delivered superior pixel-level defect localization, accurately outlining flaws ranging from fine scratches to missing structural components. Third, the data reduction technique allowed the model to discard up to 99% of the stored features while preserving full detection performance and cutting inference time to under 0.2 seconds per image. Fourth, the system showed remarkable sample efficiency, matching previous benchmark performance while requiring as little as one-fifth of the standard training sample size.
These results demonstrate that industrial facilities can deploy highly sensitive quality inspection systems without requiring time-consuming defect data collection, costly manual model tuning, or specialized retraining for each production line. By operating directly on mid-level visual features, PatchCore minimizes false alarms and inspection latency, offering significant opportunities to lower operational costs, improve quality assurance, and shorten line-deployment timelines.
Organizations evaluating automated visual inspection should consider piloting this patch-based framework for cold-start production scenarios. For operational deployments, teams can utilize aggressive feature subsampling to achieve fast, low-latency processing on standard hardware, or scale to higher image resolutions and model ensembles when maximum defect recall is paramount.
While confidence in these findings is reinforced by rigorous testing across diverse object and texture datasets, the system’s performance fundamentally relies on the visual representations learned by the underlying pre-trained network. Practitioners should exercise caution in specialized domains where surface appearances deviate drastically from standard visual features, and future development should explore combining this patch retrieval approach with domain-specific feature adaptation.
- Paper: A Simple Unified Framework for Detecting Out-of-Distribution Samples and Adversarial Attacks, Kimin Lee et al. (2018). Establishes the foundation of using pre-trained deep representation embeddings and distance-based outlier scoring for detecting abnormal samples.
- Paper: Deep Learning for Anomaly Detection: A Survey, Raghavendra Chalapathy et al. (2019). Surveys deep learning anomaly detection paradigms, providing critical taxonomy and context for embedding-based and unsupervised industrial defect detection approaches.
- Paper: Deep One-Class Classification, Lukas Ruff et al. (2018). Introduces deep one-class classification principles that form the conceptual basis for fitting anomaly detection models strictly on nominal, non-defective samples.
- Paper: Support Vector Method for Novelty Detection, B. Schölkopf et al. (1999). Presents foundational support vector novelty detection theory, which underpins modern outlier detection methodologies operating in feature spaces.
- Paper: Isolation-Based Anomaly Detection, Fei Tony Liu et al. (2012). Details classic outlier isolation mechanics that inform modern memory bank and nearest-neighbor based anomaly scoring mechanisms.
No sufficiently relevant recommendations were found.
