A Single Image Is All You Need: Zero-Shot Anomaly Localization Without Training Data

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Moradi, Mehrdad, Chen, Shengzhe, Yan, Hao, Paynabar, Kamran
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866915507014205440
author Moradi, Mehrdad
Chen, Shengzhe
Yan, Hao
Paynabar, Kamran
author_facet Moradi, Mehrdad
Chen, Shengzhe
Yan, Hao
Paynabar, Kamran
contents Anomaly detection in images is typically addressed by learning from collections of training data or relying on reference samples. In many real-world scenarios, however, such training data may be unavailable, and only the test image itself is provided. We address this zero-shot setting by proposing a single-image anomaly localization method that leverages the inductive bias of convolutional neural networks, inspired by Deep Image Prior (DIP). Our method is named Single Shot Decomposition Network (SSDnet). Our key assumption is that natural images often exhibit unified textures and patterns, and that anomalies manifest as localized deviations from these repetitive or stochastic patterns. To learn the deep image prior, we design a patch-based training framework where the input image is fed directly into the network for self-reconstruction, rather than mapping random noise to the image as done in DIP. To avoid the model simply learning an identity mapping, we apply masking, patch shuffling, and small Gaussian noise. In addition, we use a perceptual loss based on inner-product similarity to capture structure beyond pixel fidelity. Our approach needs no external training data, labels, or references, and remains robust in the presence of noise or missing pixels. SSDnet achieves 0.99 AUROC and 0.60 AUPRC on MVTec-AD and 0.98 AUROC and 0.67 AUPRC on the fabric dataset, outperforming state-of-the-art methods. The implementation code will be released at https://github.com/mehrdadmoradi124/SSDnet
format Preprint
id arxiv_https___arxiv_org_abs_2509_18354
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle A Single Image Is All You Need: Zero-Shot Anomaly Localization Without Training Data
Moradi, Mehrdad
Chen, Shengzhe
Yan, Hao
Paynabar, Kamran
Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
Image and Video Processing
62H35, 68T07, 62M40, 68T45
I.2.6; I.2.10; I.4.6; I.4.8; I.5.1; I.5.4
Anomaly detection in images is typically addressed by learning from collections of training data or relying on reference samples. In many real-world scenarios, however, such training data may be unavailable, and only the test image itself is provided. We address this zero-shot setting by proposing a single-image anomaly localization method that leverages the inductive bias of convolutional neural networks, inspired by Deep Image Prior (DIP). Our method is named Single Shot Decomposition Network (SSDnet). Our key assumption is that natural images often exhibit unified textures and patterns, and that anomalies manifest as localized deviations from these repetitive or stochastic patterns. To learn the deep image prior, we design a patch-based training framework where the input image is fed directly into the network for self-reconstruction, rather than mapping random noise to the image as done in DIP. To avoid the model simply learning an identity mapping, we apply masking, patch shuffling, and small Gaussian noise. In addition, we use a perceptual loss based on inner-product similarity to capture structure beyond pixel fidelity. Our approach needs no external training data, labels, or references, and remains robust in the presence of noise or missing pixels. SSDnet achieves 0.99 AUROC and 0.60 AUPRC on MVTec-AD and 0.98 AUROC and 0.67 AUPRC on the fabric dataset, outperforming state-of-the-art methods. The implementation code will be released at https://github.com/mehrdadmoradi124/SSDnet
title A Single Image Is All You Need: Zero-Shot Anomaly Localization Without Training Data
topic Computer Vision and Pattern Recognition
Artificial Intelligence
Machine Learning
Image and Video Processing
62H35, 68T07, 62M40, 68T45
I.2.6; I.2.10; I.4.6; I.4.8; I.5.1; I.5.4
url https://arxiv.org/abs/2509.18354