arXiv:2509.18354cs.CVcs.AI2025-09

仅用一张图就能定位异常,无需训练数据

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

  • 用图像自重建学习深层先验,不依赖外部数据
  • 在MVTec-AD上达0.99 AUROC,优于现有方法
  • 适合无标注数据的工业质检场景

图像异常检测通常依赖训练数据或参考样本,但在许多实际场景中,仅有待测图像可用。本文提出单图像异常定位方法SSDnet,基于卷积神经网络的归纳偏置,受Deep Image Prior启发。核心假设是自然图像具有统一纹理和模式,异常表现为局部偏离。方法通过将输入图像直接送入网络进行自重建,设计基于块的训练框架,并引入掩码、块随机打乱和微小高斯噪声防止模型学习恒等映射。采用基于内积相似性的感知损失以捕捉结构信息。该方法无需外部训练数据、标签或参考样本,在噪声或缺损情况下仍保持鲁棒。在MVTec-AD数据集上取得0.99 AUROC、0.60 AUPRC,Fabric数据集上0.98 AUROC、0.67 AUPRC,优于当前最先进方法。代码将在https://github.com/mehrdadmoradi124/SSDnet发布。

原文摘要 · Abstract (English)

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

异常检测零样本自监督图像重建

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。