arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.07487cs.CV
收藏

GLAD:面向无监督异常检测、利用全局与局部自适应扩散模型实现更佳重建

GLAD: Towards Better Reconstruction with Global and Local Adaptive Diffusion Models for Unsupervised Anomaly Detection

Harbin Institute of Technology(哈尔滨工业大学);Pazhou Lab(琶洲实验室)

Hang Yao, Ming Liu, Haolin Wang, Zhicun Yin, Zifei Yan, Xiaopeng Hong, Wangmeng Zuo

AI总结:

本文提出 GLAD,通过样本级自适应去噪步骤、合成异常训练与空间自适应特征融合,实现无监督异常检测中的无异常且保留正常信息的重建。

摘要:

扩散模型已在无监督异常检测任务上展现出卓越性能。由于仅使用正常数据进行训练,扩散模型往往会对添加了一定噪声的测试图像重建其正常对应版本。然而,这些方法对所有潜在异常一视同仁,这可能导致两个主要问题。从全局角度看,重建包含不同异常的图像,其难度并不均衡。因此,我们并非对所有样本采用相同设置,而是通过评估图像内容与从扩散模型提取的先验之间的差异,为每个样本预测一个特定的去噪步骤。从局部角度看,即使在同一图像中,异常区域的重建也不同于正常区域。理论上,扩散模型在每一步预测一个噪声,该噪声通常服从标准高斯分布。然而,由于异常与其潜在正常对应版本之间存在差异,异常区域中预测的噪声将不可避免地偏离标准高斯分布。为此,我们提出在训练中引入合成异常样本,以促使扩散模型突破标准高斯分布的限制,并在推理过程中采用一种空间自适应特征融合方案。基于上述改进,我们提出了一种用于无监督异常检测的全局与局部自适应扩散模型(缩写为 GLAD),它引入了有吸引力的灵活性,在保留尽可能多正常信息的同时实现无异常重建。我们在三个常用异常检测数据集(MVTec-AD、MPDD 和 VisA)以及我们整合的一个印刷电路板数据集(PCB-Bank)上进行了大量实验,结果表明了所提方法的有效性。

英文摘要:

Diffusion models have shown superior performance on unsupervised anomaly detection tasks. Since trained with normal data only, diffusion models tend to reconstruct normal counterparts of test images with certain noises added. However, these methods treat all potential anomalies equally, which may cause two main problems. From the global perspective, the difficulty of reconstructing images with different anomalies is uneven. Therefore, instead of utilizing the same setting for all samples, we propose to predict a particular denoising step for each sample by evaluating the difference between image contents and the priors extracted from diffusion models. From the local perspective, reconstructing abnormal regions differs from normal areas even in the same image. Theoretically, the diffusion model predicts a noise for each step, typically following a standard Gaussian distribution. However, due to the difference between the anomaly and its potential normal counterpart, the predicted noise in abnormal regions will inevitably deviate from the standard Gaussian distribution. To this end, we propose introducing synthetic abnormal samples in training to encourage the diffusion models to break through the limitation of standard Gaussian distribution, and a spatial-adaptive feature fusion scheme is utilized during inference. With the above modifications, we propose a global and local adaptive diffusion model (abbreviated to GLAD) for unsupervised anomaly detection, which introduces appealing flexibility and achieves anomaly-free reconstruction while retaining as much normal information as possible. Extensive experiments are conducted on three commonly used anomaly detection datasets (MVTec-AD, MPDD, and VisA) and a printed circuit board dataset (PCB-Bank) we integrated, showing the effectiveness of the proposed method.

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

↑