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

面向零样本异常检测的细粒度异常提示学习

Fine-grained Abnormality Prompt Learning for Zero-shot Anomaly Detection

Singapore Management University(新加坡管理学院);Nanyang Technological University(南洋理工大学);Zhejiang University(浙江大学)

Jiawen Zhu, Yew-Soon Ong, Chunhua Shen, Guansong Pang

AI总结:

针对现有零样本异常检测方法仅捕捉粗粒度异常语义、泛化性不足的问题,提出含复合异常提示学习与数据依赖异常先验学习的FAPrompt框架,在19个数据集的图像及像素级任务上均优于SOTA方法。

摘要:

当前零样本异常检测(ZSAD)方法在提示大型预训练视觉语言模型无需使用任何数据集特定训练或示例即可检测目标数据集中的异常方面取得了显著成效。然而,这些方法通常专注于构建/学习仅捕捉粗粒度异常语义的提示,例如“损坏的”“有瑕疵的”或“有缺陷的”物体这类高层语义,因此它们在识别以各种方式偏离这些通用异常模式的多样异常细节方面能力有限。为解决这一局限,我们提出FAPrompt,这是一种旨在学习细粒度异常提示以实现精准零样本异常检测的新型框架。为此,FAPrompt中引入了一种新型复合异常提示学习(CAP)模块,用于学习一组互补的、分解的异常提示,其中异常提示被强制用于建模源自同一正常语义的多样异常模式。另一方面,不同数据集的细粒度异常模式可能存在差异。为增强跨数据集泛化能力,FAPrompt中还引入了另一个新型模块,即数据依赖异常先验学习(DAP),用于从每张测试图像的异常特征中学习样本级异常先验,使异常提示动态适配单张测试图像。在涵盖工业缺陷和医学异常的19个真实世界数据集上开展的综合实验表明,FAPrompt在图像级和像素级零样本异常检测任务中均显著优于现有最优方法。代码可在https://github.com/mala-lab/FAPrompt获取。

英文摘要:

Current zero-shot anomaly detection (ZSAD) methods show remarkable success in prompting large pre-trained vision-language models to detect anomalies in a target dataset without using any dataset-specific training or demonstration. However, these methods often focus on crafting/learning prompts that capture only coarse-grained semantics of abnormality, e.g., high-level semantics like "damaged", "imperfect", or "defective" objects. They therefore have limited capability in recognizing diverse abnormality details that deviate from these general abnormal patterns in various ways. To address this limitation, we propose FAPrompt, a novel framework designed to learn Fine-grained Abnormality Prompts for accurate ZSAD. To this end, a novel Compound Abnormality Prompt learning (CAP) module is introduced in FAPrompt to learn a set of complementary, decomposed abnormality prompts, where abnormality prompts are enforced to model diverse abnormal patterns derived from the same normality semantic. On the other hand, the fine-grained abnormality patterns can be different from one dataset to another. To enhance the cross-dataset generalization, another novel module, namely Data-dependent Abnormality Prior learning (DAP), is introduced in FAPrompt to learn a sample-wise abnormality prior from abnormal features of each test image to dynamically adapt the abnormality prompts to individual test images. Comprehensive experiments on 19 real-world datasets, covering both industrial defects and medical anomalies, demonstrate that FAPrompt substantially outperforms state-of-the-art methods in both image- and pixel-level ZSAD tasks. Code is available at https://github.com/mala-lab/FAPrompt.

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

↑