CutPaste: Self-Supervised Learning for Anomaly Detection and Localization
About
We aim at constructing a high performance model for defect detection that detects unknown anomalous patterns of an image without anomalous data. To this end, we propose a two-stage framework for building anomaly detectors using normal training data only. We first learn self-supervised deep representations and then build a generative one-class classifier on learned representations. We learn representations by classifying normal data from the CutPaste, a simple data augmentation strategy that cuts an image patch and pastes at a random location of a large image. Our empirical study on MVTec anomaly detection dataset demonstrates the proposed algorithm is general to be able to detect various types of real-world defects. We bring the improvement upon previous arts by 3.1 AUCs when learning representations from scratch. By transfer learning on pretrained representations on ImageNet, we achieve a new state-of-theart 96.6 AUC. Lastly, we extend the framework to learn and extract representations from patches to allow localizing defective areas without annotations during training.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Anomaly Localization | MVTec AD | Pixel AUROC99.5 | 369 | |
| Anomaly Detection | MVTec-AD (test) | I-AUROC96.1 | 226 | |
| Anomaly Localization | MVTec-AD (test) | Pixel AUROC96 | 181 | |
| Anomaly Detection | CIFAR-10 | -- | 120 | |
| Anomaly Detection | VisA (test) | I-AUROC81.9 | 91 | |
| Anomaly Segmentation | MVTec-AD (test) | AUROC (Pixel)88.3 | 85 | |
| Anomaly Detection | MVTec AD | Overall AUROC97.1 | 83 | |
| Anomaly Localization | MVTec | AUC99.5 | 70 | |
| Image-level Anomaly Detection | MVTec-AD (test) | Overall AUROC96.1 | 68 | |
| Anomaly Localization | MPDD (test) | Pixel AUROC0.9883 | 60 |