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

PromptAD:仅使用正常样本学习提示用于少样本异常检测

PromptAD: Learning Prompts with only Normal Samples for Few-Shot Anomaly Detection

East China Normal University(华东师范大学);Chongqing Institute of East China Normal University(华东师范大学重庆研究院);The Navy Military Medical University(海军军医大学);Xiamen University(厦门大学)

Xiaofan Li, Zhizhong Zhang, Xin Tan, Chengwei Chen, Yanyun Qu, Yuan Xie, Lizhuang Ma

AI总结:

针对少样本工业异常检测,提出一类提示学习方法PromptAD,通过语义拼接生成负样本并引入显式异常间隔,在MVTec和VisA上取得11/12个少样本设置的第一名。

摘要:

视觉语言模型为少样本工业异常检测带来了巨大改进,这通常需要通过提示工程设计数百个提示。对于自动化场景,我们首先使用具有多类别范式的常规提示学习作为基线来自动学习提示,但发现它在一类异常检测中效果不佳。为了解决上述问题,本文提出了一种用于少样本异常检测的一类提示学习方法,称为PromptAD。首先,我们提出了语义拼接方法,通过将正常提示与异常后缀拼接,将正常提示转换为异常提示,从而构建大量负样本,用于在一类设置中指导提示学习。此外,为了缓解由于缺乏异常图像而导致的训练挑战,我们引入了显式异常间隔的概念,通过一个超参数显式控制正常提示特征与异常提示特征之间的间隔。对于图像级/像素级异常检测,PromptAD在MVTec和VisA上的11/12个少样本设置中取得了第一名。

英文摘要:

The vision-language model has brought great improvement to few-shot industrial anomaly detection, which usually needs to design of hundreds of prompts through prompt engineering. For automated scenarios, we first use conventional prompt learning with many-class paradigm as the baseline to automatically learn prompts but found that it can not work well in one-class anomaly detection. To address the above problem, this paper proposes a one-class prompt learning method for few-shot anomaly detection, termed PromptAD. First, we propose semantic concatenation which can transpose normal prompts into anomaly prompts by concatenating normal prompts with anomaly suffixes, thus constructing a large number of negative samples used to guide prompt learning in one-class setting. Furthermore, to mitigate the training challenge caused by the absence of anomaly images, we introduce the concept of explicit anomaly margin, which is used to explicitly control the margin between normal prompt features and anomaly prompt features through a hyper-parameter. For image-level/pixel-level anomaly detection, PromptAD achieves first place in 11/12 few-shot settings on MVTec and VisA.

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

↑