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

理解预训练视觉语言模型的多模态提示

Understanding the Multi-modal Prompts of the Pre-trained Vision-Language Model

Northeast University(东北大学);Alibaba Group(阿里巴巴集团);CASIA(中国科学院自动化研究所)

Shuailei Ma, Chen-Wei Xie, Ying Wei, Siyang Sun, Jiaqi Fan, Xiaoyi Bao, Yuxin Guo, Yun Zheng

AI总结:

该研究针对多模态提示工作机制缺乏全面解释的问题,分析提示影响自注意力的两种方式,经11个数据集实验验证其主要通过数据集偏置提升性能,并提出偏置调优方法验证结论,为相关研究提供启发。

摘要:

提示学习已成为针对CLIP等基础模型进行下游任务微调的高效替代方案。然而,目前尚无研究对多模态提示的工作机制提供全面解释。本文通过提出以下问题对多模态提示展开直接分析:(i) 学习到的多模态提示如何提升识别性能?(ii) 多模态提示学习到了什么?为解答这些问题,我们首先分离出公式中提示以两种不同方式影响每一层自注意力计算的组件:(1) 引入提示嵌入使<[BOS_never_used_51bce0c785ca2f68081bfa7d91973934]> token聚焦于前景目标。(2) 提示在token嵌入更新过程中学习到一个偏置项,让模型能够适配目标域。随后,我们在11个不同的下游识别数据集上开展了大量可视化与统计实验。实验结果表明,学习到的提示主要通过第二种方式提升性能,即作为数据集偏置来提升预训练模型在对应数据集上的识别性能。同时,我们提出偏置调优方法以验证我们的发现。通过对多模态提示的更深入理解,我们希望本工作能为该方向的全新扎实研究带来启发。

英文摘要:

Prompt learning has emerged as an efficient alternative for fine-tuning foundational models, such as CLIP, for various downstream tasks. However, there is no work that provides a comprehensive explanation for the working mechanism of the multi-modal prompts. In this paper, we conduct a direct analysis of the multi-modal prompts by asking the following questions: $(i)$ How do the learned multi-modal prompts improve the recognition performance? $(ii)$ What do the multi-modal prompts learn? To answer these questions, we begin by isolating the component of the formula where the prompt influences the calculation of self-attention at each layer in two distinct ways, \ie, $(1)$ introducing prompt embeddings makes the $[cls]$ token focus on foreground objects. $(2)$ the prompts learn a bias term during the update of token embeddings, allowing the model to adapt to the target domain. Subsequently, we conduct extensive visualization and statistical experiments on the eleven diverse downstream recognition datasets. From the experiments, we reveal that the learned prompts improve the performance mainly through the second way, which acts as the dataset bias to improve the recognition performance of the pre-trained model on the corresponding dataset. Meanwhile, we propose the bias tuning way to validate our finding. With a deeper understanding of the multi-modal prompt, we hope our work can inspire new and solid research in this direction.

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

↑