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

FA:面向分布外检测的视觉-语言模型强制提示学习

FA: Forced Prompt Learning of Vision-Language Models for Out-of-Distribution Detection

Sun Yat-sen University(中山大学);Peng Cheng Laboratory(鹏城实验室);Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Key Laboratory of Machine Intelligence and Advanced Computing(人工智能与先进计算重点实验室)

Xinhua Lu, Runhe Lai, Yanqi Wu, Kanghao Chen, Wei-Shi Zheng, Ruixuan Wang

AI总结:

本文提出基于 CLIP 的强制提示学习框架 FA,通过充分挖掘 ID 类别语义并引入强制系数,在无需外部辅助数据且参数量与 CoOp 相同的情况下提升 OOD 检测性能。

摘要:

预训练视觉-语言模型(VLM)近来推动了分布外(OOD)检测的发展。然而,现有基于 CLIP 的方法通常侧重于学习与 OOD 相关的知识以改进 OOD 检测,表现出有限的泛化能力,或依赖外部大规模辅助数据集。在本研究中,我们不再深入探究复杂的 OOD 相关知识,而是提出一种基于 Forced prompt leArning(FA,强制提示学习)的创新 CLIP 框架,旨在充分利用分布内(ID)知识并最终提升 OOD 检测的有效性。我们的关键洞见是学习一个提示(即强制提示),其中包含比类别标签文本语义更加多样和丰富的 ID 类别描述。具体而言,该方法通过强制 ID 图像与可学习强制提示之间形成更显著的语义相似性,提升对 ID 图像的辨别能力。此外,我们引入一个强制系数,鼓励强制提示学习更全面、细致的 ID 类别描述。通过这种方式,即使在不使用任何外部辅助数据集进行训练的情况下,FA 也能在 OOD 检测上取得显著提升,同时保持与 CoOp 相同数量的可训练参数。大量实证评估证实,我们的方法持续优于当前最先进的方法。代码可在 https://github.com/00xFAFA/FA 获取。

英文摘要:

Pre-trained vision-language models (VLMs) have advanced out-of-distribution (OOD) detection recently. However, existing CLIP-based methods often focus on learning OOD-related knowledge to improve OOD detection, showing limited generalization or reliance on external large-scale auxiliary datasets. In this study, instead of delving into the intricate OOD-related knowledge, we propose an innovative CLIP-based framework based on Forced prompt leArning (FA), designed to make full use of the In-Distribution (ID) knowledge and ultimately boost the effectiveness of OOD detection. Our key insight is to learn a prompt (i.e., forced prompt) that contains more diversified and richer descriptions of the ID classes beyond the textual semantics of class labels. Specifically, it promotes better discernment for ID images, by forcing more notable semantic similarity between ID images and the learnable forced prompt. Moreover, we introduce a forced coefficient, encouraging the forced prompt to learn more comprehensive and nuanced descriptions of the ID classes. In this way, FA is capable of achieving notable improvements in OOD detection, even when trained without any external auxiliary datasets, while maintaining an identical number of trainable parameters as CoOp. Extensive empirical evaluations confirm our method consistently outperforms current state-of-the-art methods. Code is available at https://github.com/0xFAFA/FA.

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

↑