[Paper Review] Natural Synthetic Anomalies for Self-Supervised Anomaly Detection and Localization
The paper introduces Natural Synthetic Anomalies (NSA), a Poisson-blending self-supervised task to train end-to-end anomaly detection and localization models using only normal data, achieving state-of-the-art results on MVTec AD without extra data.
We introduce a simple and intuitive self-supervision task, Natural Synthetic Anomalies (NSA), for training an end-to-end model for anomaly detection and localization using only normal training data. NSA integrates 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 without the use of additional datasets. Code available at https://github.com/hmsch/natural-synthetic-anomalies.
Motivation & Objective
- Motivate and design a simple self-supervised task for anomaly detection and localization using only normal training data.
- Create diverse, natural-like synthetic anomalies via Poisson image editing to improve generalization to real defects.
- Develop an end-to-end model that outputs pixel-wise anomaly maps without relying on pre-trained encoders.
- Evaluate NSA on natural and medical imaging to demonstrate cross-domain applicability.
Proposed method
- Use Poisson image editing to seamlessly blend rescaled patches from source images into destination images, creating synthetic anomalies.
- Sample patch sizes with a truncated Gamma distribution and enforce object-overlap constraints to ensure patches affect the object.
- Provide pixel-wise labels derived from the intensity difference between blended and destination images, with options for binary, continuous, or logistic targets.
- Train an encoder–decoder network with a pixel-wise loss (binary cross-entropy for bounded labels, mean squared error for unbounded continuous labels).
- Allow multiple patches per image and use object/background masks to ensure realistic anomaly contexts.
Experimental results
Research questions
- RQ1Can NSA generate diverse, realistic synthetic anomalies that improve end-to-end anomaly detection and localization without external data?
- RQ2How does NSA compare to prior self-supervised augmentation schemes (CutPaste, FPI, PII) in terms of detection and localization accuracy?
- RQ3Does NSA trained on natural images generalize to medical imaging tasks (e.g., chest X-ray anomaly detection) without extra datasets?
Key findings
- NSA achieves an overall image-level AUROC of 97.2 on MVTec AD, outperforming CutPaste (3-way) by 2.0 and rivaling methods using additional datasets.
- Pixel-level localization with NSA (logistic) reaches an average AUROC of 96.3, comparable to DRAEM and higher than several baselines without extra data.
- NSA-trained models show strong generalization to real-world defects beyond synthetic anomalies, and can perform competitively with ImageNet-pretrained approaches on some tasks.
- In chest X-ray experiments (rCXR), NSA outperforms end-to-end FPI and CutPaste, and also outperforms PII, demonstrating cross-domain applicability.
- Continuous (logistic) labeling often yields better localization for objects, while binary labeling delivers robust results for many classes; unbounded continuous labels can be less stable.
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.