arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2208.08340cs.CV
收藏

视觉-语言预训练模型的双模态提示微调

Dual Modality Prompt Tuning for Vision-Language Pre-Trained Model

Northwestern Polytechnical University(西北工业大学);Research & Development Institute of Northwestern Polytechnical University in Shenzhen(西北工业大学深圳研究院);Xidian University(西安电子科技大学)

Yinghui Xing, Qirui Wu, De Cheng, Shizhou Zhang, Guoqiang Liang, Peng Wang, Yanning Zhang

AI总结:

本文提出双模态提示微调(DPT)范式,同时学习文本和视觉提示,并通过类感知视觉提示微调(CAVPT)动态生成视觉提示,在11个数据集上验证了其有效性和泛化能力。

摘要:

随着CLIP等大型预训练视觉-语言模型的出现,可迁移表示可以通过提示微调适应广泛的下游任务。提示微调试图从预训练模型中存储的通用知识中探查对下游任务有益的信息。最近提出的一种名为Context Optimization(CoOp)的方法从语言侧引入一组可学习向量作为文本提示。然而,仅微调文本提示只能调整合成的“分类器”,而图像编码器计算得到的视觉特征无法受到影响,从而导致次优解。本文提出了一种新颖的双模态提示微调(DPT)范式,通过同时学习文本提示和视觉提示来解决该问题。为了使最终图像特征更集中于目标视觉概念,我们在DPT中进一步提出了类感知视觉提示微调(CAVPT)方案,其中类感知视觉提示通过在文本提示特征与图像块token嵌入之间执行交叉注意力来动态生成,以同时编码下游任务相关信息和视觉实例信息。在11个数据集上的大量实验结果表明了所提方法的有效性和泛化能力。代码可在https://github.com/fanrena/DPT获取。

英文摘要:

With the emergence of large pre-trained vison-language model like CLIP, transferable representations can be adapted to a wide range of downstream tasks via prompt tuning. Prompt tuning tries to probe the beneficial information for downstream tasks from the general knowledge stored in the pre-trained model. A recently proposed method named Context Optimization (CoOp) introduces a set of learnable vectors as text prompt from the language side. However, tuning the text prompt alone can only adjust the synthesized "classifier", while the computed visual features of the image encoder can not be affected , thus leading to sub-optimal solutions. In this paper, we propose a novel Dual-modality Prompt Tuning (DPT) paradigm through learning text and visual prompts simultaneously. To make the final image feature concentrate more on the target visual concept, a Class-Aware Visual Prompt Tuning (CAVPT) scheme is further proposed in our DPT, where the class-aware visual prompt is generated dynamically by performing the cross attention between text prompts features and image patch token embeddings to encode both the downstream task-related information and visual instance information. Extensive experimental results on 11 datasets demonstrate the effectiveness and generalization ability of the proposed method. Our code is available in https://github.com/fanrena/DPT.

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

↑