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

一至多:基于注意力控制的高保真无训练异常生成

One-to-More: High-Fidelity Training-Free Anomaly Generation with Attention Control

Nanjing University(南京大学);China Mobile Zijin Innovation Institute(中国移动紫金创新研究院);Shandong University of Science and Technology(山东科技大学)

Haoxiang Rao, Zhao Wang, Chenyang Si, Yan Lyu, Yuanyi Duan, Fang Zhao, Caifeng Shan

AI总结:

本文提出O2MAG方法,通过自注意力机制生成更真实的异常,解决传统方法训练耗时且分布不真实的问题,实验表明其在下游任务中表现更优。

摘要:

工业异常检测(AD)的特点是正常图像丰富但异常图像稀缺。尽管已提出多种少样本异常合成方法来增强异常数据,但大多数方法需要耗时训练且难以学习真实异常的分布,限制了基于此类数据训练的AD模型效果。为解决这些问题,我们提出一种无需训练的少样本异常生成方法O2MAG,利用单个参考异常图像的自注意力机制生成更多真实的异常,支持有效的下游异常检测。具体而言,O2MAG通过自注意力嫁接操控三个并行扩散过程,并结合异常掩码缓解前景-背景查询混淆,生成文本引导的异常,紧密贴合真实异常分布。为弥合编码的异常文本提示与真实异常语义之间的语义差距,进一步引入异常引导优化,使合成过程对齐目标异常分布,引导生成更真实且文本一致的异常。此外,为缓解异常掩码内部的淡薄异常生成,采用双注意力增强机制在生成过程中强化掩码区域的自注意力和跨注意力。大量实验验证了O2MAG的有效性,证明其在下游AD任务中优于现有最先进方法。

英文摘要:

Industrial anomaly detection (AD) is characterized by an abundance of normal images but a scarcity of anomalous ones. Although numerous few-shot anomaly synthesis methods have been proposed to augment anomalous data for downstream AD tasks, most existing approaches require time-consuming training and struggle to learn distributions that are faithful to real anomalies, thereby restricting the efficacy of AD models trained on such data. To address these limitations, we propose a training-free few-shot anomaly generation method, namely O2MAG, which leverages the self-attention in One reference anomalous image to synthesize More realistic anomalies, supporting effective downstream anomaly detection. Specifically, O2MAG manipulates three parallel diffusion processes via self-attention grafting and incorporates the anomaly mask to mitigate foreground-background query confusion, synthesizing text-guided anomalies that closely adhere to real anomalous distributions. To bridge the semantic gap between the encoded anomaly text prompts and the true anomaly semantics, Anomaly-Guided Optimization is further introduced to align the synthesis process with the target anomalous distribution, steering the generation toward realistic and text-consistent anomalies. Moreover, to mitigate faint anomaly synthesis inside anomaly masks, Dual-Attention Enhancement is adopted during generation to reinforce both self- and cross-attention on masked regions. Extensive experiments validate the effectiveness of O2MAG, demonstrating its superior performance over prior state-of-the-art methods on downstream AD tasks.

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

↑