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(人工智能与先进计算重点实验室)
本文提出基于 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.
Pro-tuning: Unified Prompt Tuning for Vision Tasks
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);University of Chinese Academy of Sciences(中国科学院大学);Huawei Cloud & AI(华为云与计算BG);CAS Centre for Artificial Intelligence and Robotics, HK Institute of Science and Innovation(中国科学院香港创新研究院人工智能与机器人创新中心)
A Systematic Survey of Prompt Engineering on Vision-Language Foundation Models
University of Oxford(牛津大学);Ludwig Maximilian University of Munich(慕尼黑大学);Google Research(谷歌研究院);Munich Center for Machine Learning(慕尼黑机器学习中心);University of California, Santa Barbara(加州大学圣巴巴拉分校)
Learning Visual Prompts for Guiding the Attention of Vision Transformers
School of Computation, Information and Technology(计算、信息与技术学院);Technical University of Munich(慕尼黑工业大学);AI Innovation, Data:Lab Munich(慕尼黑人工智能创新数据实验室);Volkswagen AG(大众汽车集团);Department of Engineering Science(工程科学系);University of Oxford(牛津大学)
National Engineering Research Center for Software Engineering, Peking University(北京大学软件工程国家工程研究中心);Huawei Cloud & AI(华为云计算与人工智能);School of Mathematical Sciences, Peking University(北京大学数学科学学院);National Key Lab of General AI, School of Intelligence Science and Technology, Peking University(北京大学智能科学与技术学院通用人工智能国家重点实验室);Peng Cheng Laboratory(鹏城实验室)
FedMVP: Federated Multimodal Visual Prompt Tuning for Vision-Language Models
University of Trento(特伦托大学);University of Bergamo(贝拉姆奥大学);Indian Institute of Technology Bombay(印度班加罗尔理工学院);LNMIIT Jaipur(斋普尔LNMIIT);The University of Queensland(昆士兰大学);Fondazione Bruno Kessler(布鲁诺·凯塞勒基金会)
Accelerating Conditional Prompt Learning via Masked Image Modeling for Vision-Language Models
Convergence Research Institute, Sungkyunkwan University(convergence research institute, 首尔大学);School of Information Technology, Deakin University(信息科技学院, 德金大学);Department of Electrical and Computer Engineering, Sungkyunkwan University(电气与计算机工程系, 首尔大学)
MetaTPT: Meta Test-time Prompt Tuning for Vision-Language Models
UCAS-Terminus AI Lab, University of Chinese Academic of Sciences(中国科学院大学Terminus AI实验室,中国科学院大学);AIM Lab, University of Amsterdam(阿姆斯特丹大学AIM实验室);Jarvis Research Center, Tencent Youtu Lab(腾讯优图实验室 Jarvis 研究中心);Central Research Institue, United Imaging Healthcare Co., Ltd(联合影像医疗科技有限公司中央研究所)