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

通过外部层推进提示学习

Advancing Prompt Learning through an External Layer

Shanghai Jiaotong University(上海交通大学);University of Science and Technology of China(中国科学技术大学);Zhejiang University(浙江大学);Defense Innovation Institute(国防科技创新研究院)

Fangming Cui, Xun Yang, Chao Wu, Liang Xiao, Xinmei Tian

AI总结:

提出EnPrompt范式及外部层(EnLa),通过文本外部层与可学习视觉嵌入适应VLMs,结合最优传输和增强特征对齐双模态,在15个数据集上显著提升泛化与少样本学习性能。

摘要:

提示学习代表了一种有前景的方法,通过学习一组文本嵌入,将预训练的视觉-语言模型(VLMs)适应到各种下游任务中。这些方法固有的一个挑战是泛化性能差,因为学习到的文本嵌入对于未见任务无效。弥合这一差距的直接方法是冻结提示中的文本嵌入,这导致缺乏将VLMs适应下游任务的能力。为了解决这一困境,我们提出了一种名为EnPrompt的范式,带有一个新颖的外部层(EnLa)。具体来说,我们提出了一个文本外部层和可学习的视觉嵌入,用于将VLMs适应到下游任务。可学习的外部层建立在预训练CLIP的有效嵌入之上。这种设计考虑了两个分支之间学习能力的平衡。为了对齐文本和视觉特征,我们提出了一种新颖的双管齐下的方法:i)我们引入最优传输作为差异度量来对齐视觉和文本模态,以及ii)我们引入一种新颖的增强特征来增强这两种模态之间的交互。在15个数据集上的四个代表性实验(即基础到新颖泛化、少样本学习、跨数据集泛化、域偏移泛化)表明,我们的方法优于现有的提示学习方法。

英文摘要:

Prompt learning represents a promising method for adapting pre-trained vision-language models (VLMs) to various downstream tasks by learning a set of text embeddings. One challenge inherent to these methods is the poor generalization performance due to the invalidity of the learned text embeddings for unseen tasks. A straightforward approach to bridge this gap is to freeze the text embeddings in prompts, which results in a lack of capacity to adapt VLMs for downstream tasks. To address this dilemma, we propose a paradigm called EnPrompt with a novel External Layer (EnLa). Specifically, we propose a textual external layer and learnable visual embeddings for adapting VLMs to downstream tasks. The learnable external layer is built upon valid embeddings of pre-trained CLIP. This design considers the balance of learning capabilities between the two branches. To align the textual and visual features, we propose a novel two-pronged approach: i) we introduce the optimal transport as the discrepancy metric to align the vision and text modalities, and ii) we introduce a novel strengthening feature to enhance the interaction between these two modalities. Four representative experiments (i.e., base-to-novel generalization, few-shot learning, cross-dataset generalization, domain shifts generalization) across 15 datasets demonstrate that our method outperforms the existing prompt learning method.

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

↑