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

面向视觉语言异常检测的无人工自动化提示工程:采用元引导提示方案的提示优化

Human-Free Automated Prompting for Vision-Language Anomaly Detection: Prompt Optimization with Meta-guiding Prompt Scheme

National Cheng Kung University(成功大学);BakuAI AS;NVIDIA(英伟达公司)

Pi-Wei Chen, Jerry Chun-Wei Lin, Jia Ji, Feng-Hao Yeh, Zih-Ching Chen, Chao-Chun Chen

AI总结:

针对视觉语言异常检测依赖人工提示、缺异常样本及ViT编码器局部分割效果差的问题,提出含OAGM合成异常、MPTS防过拟合、局部感知注意力的无人工提示优化框架,提升分割精度。

摘要:

预训练视觉语言模型(VLM)可通过小样本学习高度适配各类下游任务,因此基于提示的异常检测成为一种颇具前景的方法。传统方法依赖人工设计的提示,需要具备特定异常类型的先验知识。我们的目标是构建一个无需人工参与的基于提示的异常检测框架,通过数据驱动方法最优地学习提示,消除人工干预的需求。该方法面临的首要挑战是训练阶段缺乏异常样本。此外,VLM中基于Vision Transformer(ViT)的图像编码器,由于原始图像与输出特征图之间存在局部特征不匹配问题,并不适合像素级异常分割任务。为解决第一个挑战,我们开发了对象注意力异常生成模块(Object-Attention Anomaly Generation Module, OAGM)来合成异常样本用于训练。此外,我们提出的元引导提示调优方案(Meta-Guiding Prompt-Tuning Scheme, MPTS)会迭代调整可学习提示的基于梯度的优化方向,避免对合成异常产生过拟合。针对第二个挑战,我们提出了局部感知注意力(Locality-Aware Attention),确保每个局部块特征仅关注邻近的块特征,保留对应原始位置的局部特征。该框架可通过反向传播在连续潜空间中搜索,得到最优提示嵌入,不受人工语义约束。此外,改进后的局部感知注意力提升了像素级异常分割的精度。

英文摘要:

Pre-trained vision-language models (VLMs) are highly adaptable to various downstream tasks through few-shot learning, making prompt-based anomaly detection a promising approach. Traditional methods depend on human-crafted prompts that require prior knowledge of specific anomaly types. Our goal is to develop a human-free prompt-based anomaly detection framework that optimally learns prompts through data-driven methods, eliminating the need for human intervention. The primary challenge in this approach is the lack of anomalous samples during the training phase. Additionally, the Vision Transformer (ViT)-based image encoder in VLMs is not ideal for pixel-wise anomaly segmentation due to a locality feature mismatch between the original image and the output feature map. To tackle the first challenge, we have developed the Object-Attention Anomaly Generation Module (OAGM) to synthesize anomaly samples for training. Furthermore, our Meta-Guiding Prompt-Tuning Scheme (MPTS) iteratively adjusts the gradient-based optimization direction of learnable prompts to avoid overfitting to the synthesized anomalies. For the second challenge, we propose Locality-Aware Attention, which ensures that each local patch feature attends only to nearby patch features, preserving the locality features corresponding to their original locations. This framework allows for the optimal prompt embeddings by searching in the continuous latent space via backpropagation, free from human semantic constraints. Additionally, the modified locality-aware attention improves the precision of pixel-wise anomaly segmentation.

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

↑