arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.09264cs.CVcs.AI
收藏

仅用一张正常图像提示学习检测多类异常

Learning to Detect Multi-class Anomalies with Just One Normal Image Prompt

Tencent YouTu Lab(腾讯优图实验室)

Bin-Bin Gao

AI总结:

本文提出 OneNIP,仅用一张正常图像提示即可重建正常特征并恢复异常特征,同时通过监督式细化器提升像素级分割,在 MVTec、BTAD 和 VisA 上取得优于以往方法的统一异常检测性能。

摘要:

使用自注意力 Transformer 的无监督重建网络,已在通过单一模型进行多类(统一)异常检测方面取得最先进性能。然而,这些自注意力重建模型主要作用于目标特征,由于其与上下文具有高度一致性,可能会对正常特征和异常特征都实现完美重建,从而导致异常检测失败。此外,由于在低空间分辨率的潜在空间中执行重建,这些模型往往会产生不准确的异常分割。为了使重建模型在保持高效率的同时增强其在统一异常检测中的泛化能力,我们提出了一种简单而有效的方法,仅用一张正常图像提示(One Normal Image Prompt,OneNIP)来重建正常特征并恢复异常特征。与以往工作不同,OneNIP 首次使得仅用一张正常图像提示即可重建或恢复异常,有效提升了统一异常检测性能。此外,我们提出了一种监督式细化器,通过同时使用真实正常图像和合成异常图像对重建误差进行回归,显著改善了像素级异常分割。OneNIP 在三个工业异常检测基准 MVTec、BTAD 和 VisA 上优于以往方法。代码和预训练模型可在 https://github.com/gaobb/OneNIP 获取。

英文摘要:

Unsupervised reconstruction networks using self-attention transformers have achieved state-of-the-art performance for multi-class (unified) anomaly detection with a single model. However, these self-attention reconstruction models primarily operate on target features, which may result in perfect reconstruction for both normal and anomaly features due to high consistency with context, leading to failure in detecting anomalies. Additionally, these models often produce inaccurate anomaly segmentation due to performing reconstruction in a low spatial resolution latent space. To enable reconstruction models enjoying high efficiency while enhancing their generalization for unified anomaly detection, we propose a simple yet effective method that reconstructs normal features and restores anomaly features with just One Normal Image Prompt (OneNIP). In contrast to previous work, OneNIP allows for the first time to reconstruct or restore anomalies with just one normal image prompt, effectively boosting unified anomaly detection performance. Furthermore, we propose a supervised refiner that regresses reconstruction errors by using both real normal and synthesized anomalous images, which significantly improves pixel-level anomaly segmentation. OneNIP outperforms previous methods on three industry anomaly detection benchmarks: MVTec, BTAD, and VisA. The code and pre-trained models are available at https://github.com/gaobb/OneNIP.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑