[Paper Review] Towards Total Recall in Industrial Anomaly Detection
PatchCore proposes a novel, memory-efficient approach for industrial anomaly detection using a maximally representative bank of mid-level patch features from ImageNet-pretrained models. By leveraging locally aggregated features and greedy coreset subsampling, it achieves state-of-the-art performance—up to 99.6% AUROC on MVTec AD—while maintaining fast inference and high sample efficiency, even with only one nominal sample.
Being able to spot defective parts is a critical component in large-scale industrial manufacturing. A particular challenge that we address in this work is the cold-start problem: fit a model using nominal (non-defective) example images only. While handcrafted solutions per class are possible, the goal is to build systems that work well simultaneously on many different tasks automatically. The best performing approaches combine embeddings from ImageNet models with an outlier detection model. In this paper, we extend on this line of work and propose extbf{PatchCore}, which uses a maximally representative memory bank of nominal patch-features. PatchCore offers competitive inference times while achieving state-of-the-art performance for both detection and localization. On the challenging, widely used MVTec AD benchmark PatchCore achieves an image-level anomaly detection AUROC score of up to $99.6\%$, more than halving the error compared to the next best competitor. We further report competitive results on two additional datasets and also find competitive results in the few samples regime.\freefootnote{$^*$ Work done during a research internship at Amazon AWS.} Code: github.com/amazon-research/patchcore-inspection.
Motivation & Objective
- Address the cold-start problem in industrial anomaly detection, where only nominal (non-defective) images are available for training.
- Overcome limitations of existing methods that rely on high-level features with poor alignment to industrial defect patterns.
- Maximize available nominal context at test time while minimizing computational cost and inference latency.
- Enable high-performance anomaly detection and localization with minimal or no fine-tuning on new industrial datasets.
- Achieve strong performance even in low-shot regimes, where only a few nominal examples are available.
Proposed method
- Construct a memory bank of mid-level, locally aggregated patch features from a pretrained ImageNet backbone, capturing both fine-grained and structural patterns.
- Use greedy coreset subsampling to reduce redundancy in the memory bank, significantly lowering storage and inference time.
- Perform anomaly detection by computing feature matching scores between test patches and the memory bank, with higher scores indicating anomalies.
- Apply spatially aware feature aggregation to preserve local context, improving localization accuracy.
- Leverage multi-scale features from different layers of the backbone to detect both subtle and structural defects.
- Use a non-adaptive, transfer-based approach that avoids domain-specific fine-tuning, enabling rapid deployment across diverse industrial tasks.
Experimental results
Research questions
- RQ1Can a non-adaptive, transfer-based method achieve state-of-the-art performance in industrial anomaly detection without fine-tuning?
- RQ2How does a memory bank of mid-level patch features compare to high-level feature representations in detecting subtle and structural defects?
- RQ3To what extent can coreset subsampling reduce memory and inference cost without degrading detection performance?
- RQ4How effective is the method in low-shot regimes, where only a few nominal samples are available?
- RQ5Does PatchCore generalize well to diverse industrial benchmarks beyond MVTec AD?
Key findings
- PatchCore achieves an image-level anomaly detection AUROC of 99.6% on the MVTec AD benchmark, more than halving the error of the next best competitor.
- On the MTD benchmark, PatchCore achieves an AUROC of 97.9%, matching or slightly outperforming prior state-of-the-art methods.
- On the mSTC dataset, PatchCore achieves a pixel-wise AUROC of 91.8%, setting a new state-of-the-art for unsupervised anomaly localization.
- With only one nominal sample, PatchCore matches the performance of prior state-of-the-art methods, demonstrating exceptional sample efficiency.
- Inference speed remains competitive due to coreset subsampling, making the method practical for real-time industrial deployment.
- PatchCore outperforms methods like SPADE and PaDiM in both detection and localization, especially in low-shot settings.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.