arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2407.08966cs.CVcs.AIcs.LG
收藏

LAPT:面向视觉语言模型分布外检测的标签驱动自动提示调优

LAPT: Label-driven Automated Prompt Tuning for OOD Detection with Vision-Language Models

The Hong Kong Polytechnic University(香港理工大学);OPPO Research Institute(OPPO研究院)

Yabin Zhang, Wenjie Zhu, Chenhang He, Lei Zhang

AI总结:

针对视觉语言模型OOD检测依赖手动提示工程的问题,提出仅需分布内类名即可自动构建提示、完成训练的LAPT框架,性能优于人工提示,还提升了分类准确率与泛化鲁棒性。

摘要:

分布外(OOD)检测对模型可靠性至关重要,它能识别来自未知类别的样本,减少因意外输入导致的错误。CLIP等视觉语言模型(VLM)通过整合多模态信息,正成为OOD检测的强大工具。然而,这类系统的实际应用面临手动提示工程的挑战,该过程需要领域专业知识,且对语言细微差别很敏感。\n本文提出标签驱动自动提示调优(LAPT),这是一种新型OOD检测方法,可减少对手动提示工程的依赖。我们构建了分布感知提示,其中包含分布内(ID)类名以及自动挖掘的负标签。通过图像合成和检索方法自主收集与这些类标签关联的训练样本,无需人工操作即可实现提示学习。我们采用简单的交叉熵损失进行提示优化,同时使用跨模态混合策略降低图像噪声,采用跨分布混合策略探索分布间的中间空间。\nLAPT框架可自主运行,仅需输入ID类名,无需人工干预。大量实验表明,LAPT的性能始终优于人工设计的提示,为OOD检测树立了新基准。此外,LAPT不仅增强了ID与OOD样本的区分度,还提升了ID分类准确率,并增强了对协变量偏移的泛化鲁棒性,在具有挑战性的全谱OOD检测任务中表现出色。代码可在https://github.com/YBZh/LAPT获取。

英文摘要:

Out-of-distribution (OOD) detection is crucial for model reliability, as it identifies samples from unknown classes and reduces errors due to unexpected inputs. Vision-Language Models (VLMs) such as CLIP are emerging as powerful tools for OOD detection by integrating multi-modal information. However, the practical application of such systems is challenged by manual prompt engineering, which demands domain expertise and is sensitive to linguistic nuances. In this paper, we introduce Label-driven Automated Prompt Tuning (LAPT), a novel approach to OOD detection that reduces the need for manual prompt engineering. We develop distribution-aware prompts with in-distribution (ID) class names and negative labels mined automatically. Training samples linked to these class labels are collected autonomously via image synthesis and retrieval methods, allowing for prompt learning without manual effort. We utilize a simple cross-entropy loss for prompt optimization, with cross-modal and cross-distribution mixing strategies to reduce image noise and explore the intermediate space between distributions, respectively. The LAPT framework operates autonomously, requiring only ID class names as input and eliminating the need for manual intervention. With extensive experiments, LAPT consistently outperforms manually crafted prompts, setting a new standard for OOD detection. Moreover, LAPT not only enhances the distinction between ID and OOD samples, but also improves the ID classification accuracy and strengthens the generalization robustness to covariate shifts, resulting in outstanding performance in challenging full-spectrum OOD detection tasks. Codes are available at \url{https://github.com/YBZh/LAPT}.

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

↑