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

用于异常分类与分割的少样本异常驱动生成

Few-Shot Anomaly-Driven Generation for Anomaly Classification and Segmentation

Tencent YouTu Lab(腾讯优图实验室);Shanghai Jiao Tong University(上海交通大学)

Guan Gui, Bin-Bin Gao, Jun Liu, Chengjie Wang, Yunsheng Wu

AI总结:

针对工业异常样本稀缺及合成异常语义失真问题,提出少样本 AnoGen 框架,通过学习真实异常分布并引导扩散模型生成多样异常,以弱监督方式提升 DRAEM 与 DesTSeg 的分类和分割性能。

摘要:

异常检测是一项实用且具有挑战性的任务,原因在于工业检测中异常样本稀缺。一些现有异常检测方法通过利用噪声或外部数据合成异常来解决该问题。然而,合成异常与真实世界异常之间始终存在较大的语义鸿沟,导致异常检测性能较弱。为解决这一问题,我们提出了一种少样本异常驱动生成(Anomaly-driven Generation,AnoGen)方法,该方法仅利用少量真实异常即可引导扩散模型生成逼真且多样的异常,从而为训练异常检测模型提供帮助。具体而言,我们的工作分为三个阶段。第一阶段,我们基于给定的少量真实异常学习异常分布,并将所学到的知识注入到一个嵌入中。第二阶段,我们使用该嵌入和给定的边界框,引导扩散模型在特定物体(或纹理)上生成逼真且多样的异常。最后阶段,我们提出一种弱监督异常检测方法,利用生成的异常训练更强大的模型。我们的方法以 DRAEM 和 DesTSeg 作为基础模型,并在常用的工业异常检测数据集 MVTec 上进行了实验。实验表明,我们生成的异常能够同时有效提升模型在异常分类和分割任务上的性能,例如,DRAEM 和 DseTSeg 在分割任务的 AU-PR 指标上分别取得了 5.8% 和 1.5% 的提升。代码和生成的异常数据可在 https://github.com/gaobb/AnoGen 获取。

英文摘要:

Anomaly detection is a practical and challenging task due to the scarcity of anomaly samples in industrial inspection. Some existing anomaly detection methods address this issue by synthesizing anomalies with noise or external data. However, there is always a large semantic gap between synthetic and real-world anomalies, resulting in weak performance in anomaly detection. To solve the problem, we propose a few-shot Anomaly-driven Generation (AnoGen) method, which guides the diffusion model to generate realistic and diverse anomalies with only a few real anomalies, thereby benefiting training anomaly detection models. Specifically, our work is divided into three stages. In the first stage, we learn the anomaly distribution based on a few given real anomalies and inject the learned knowledge into an embedding. In the second stage, we use the embedding and given bounding boxes to guide the diffusion model to generate realistic and diverse anomalies on specific objects (or textures). In the final stage, we propose a weakly-supervised anomaly detection method to train a more powerful model with generated anomalies. Our method builds upon DRAEM and DesTSeg as the foundation model and conducts experiments on the commonly used industrial anomaly detection dataset, MVTec. The experiments demonstrate that our generated anomalies effectively improve the model performance of both anomaly classification and segmentation tasks simultaneously, \eg, DRAEM and DseTSeg achieved a 5.8\% and 1.5\% improvement in AU-PR metric on segmentation task, respectively. The code and generated anomalous data are available at https://github.com/gaobb/AnoGen.

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

↑