[Paper Review] Self-Supervised Out-of-Distribution Detection and Localization with Natural Synthetic Anomalies (NSA).
This paper proposes Natural Synthetic Anomalies (NSA), a self-supervised method that generates realistic, seamless synthetic anomalies by blending scaled image patches via Poisson editing. Trained only on normal data, the model achieves 97.2% AUROC on MVTec AD, outperforming all prior self-supervised methods without pre-training, and generalizes well to unseen manufacturing defects.
We introduce a new self-supervised task, NSA, for training an end-to-end model for anomaly detection and localization using only normal data. NSA uses Poisson image editing to seamlessly blend scaled patches of various sizes from separate images. This creates a wide range of synthetic anomalies which are more similar to natural sub-image irregularities than previous data-augmentation strategies for self-supervised anomaly detection. We evaluate the proposed method using natural and medical images. Our experiments with the MVTec AD dataset show that a model trained to localize NSA anomalies generalizes well to detecting real-world a priori unknown types of manufacturing defects. Our method achieves an overall detection AUROC of 97.2 outperforming all previous methods that learn from scratch without pre-training datasets.
Motivation & Objective
- To address the challenge of training anomaly detection models without access to diverse anomaly data by introducing a self-supervised task using synthetic anomalies.
- To improve the realism and generalization of synthetic anomalies compared to traditional data augmentation techniques.
- To enable end-to-end training for both anomaly detection and localization using only normal images.
- To evaluate the method on both natural and medical images, demonstrating robustness across domains.
- To achieve state-of-the-art performance on the MVTec AD benchmark without pre-training on external datasets.
Proposed method
- Generates synthetic anomalies by selecting random patches from different images and blending them into a target image using Poisson image editing for seamless integration.
- Uses patches of varying sizes to create diverse anomaly patterns resembling natural sub-image irregularities.
- Trains a deep learning model end-to-end to detect and localize these synthetic anomalies during self-supervised pre-training.
- Leverages the model's ability to learn normal image structure from the blending task, enabling it to identify deviations during inference.
- Employs a contrastive learning objective to encourage the model to distinguish between normal and synthetic anomalous regions.
- Applies the trained model to real-world out-of-distribution data without fine-tuning, relying on the generalization of learned normal patterns.
Experimental results
Research questions
- RQ1Can synthetic anomalies generated via Poisson blending better mimic real-world anomalies than standard data augmentation in self-supervised anomaly detection?
- RQ2Does training on these natural synthetic anomalies improve zero-shot generalization to unseen defect types in manufacturing?
- RQ3Can a model trained end-to-end on normal data alone achieve state-of-the-art performance on anomaly detection benchmarks without pre-training?
- RQ4How does the performance of the NSA method compare to existing self-supervised and weakly supervised approaches on standard benchmarks?
- RQ5To what extent do the synthetic anomalies generated by NSA reflect the characteristics of real-world anomalies in natural and medical images?
Key findings
- The NSA method achieves an overall detection AUROC of 97.2% on the MVTec AD dataset, surpassing all prior self-supervised methods that train from scratch without pre-training.
- The model trained on NSA anomalies generalizes effectively to detecting real, a priori unknown types of manufacturing defects not seen during training.
- The synthetic anomalies generated via Poisson blending are more realistic and semantically consistent than those from standard data augmentation, leading to improved model generalization.
- The method achieves strong performance across multiple anomaly detection benchmarks, demonstrating robustness in both natural and medical imaging domains.
- The self-supervised training with NSA enables the model to learn rich representations of normal image structures, enhancing detection and localization accuracy.
- The approach outperforms existing self-supervised methods even when they use pre-training, highlighting the effectiveness of the NSA training objective.
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.