arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2208.13474cs.CVcs.AI
收藏

用于视觉语言模型的软上下文共享提示调优

Prompt Tuning with Soft Context Sharing for Vision-Language Models

State Key Laboratory of Multimodal Artificial Intelligence Systems, CASIA(中国科学院自动化研究所多模态人工智能系统国家重点实验室);Engineering Laboratory for Intelligent Industrial Vision, CASIA(中国科学院自动化研究所智能工业视觉工程实验室);Research Center of Aerospace Information, CASIA(中国科学院自动化研究所航天信息研究中心)

Kun Ding, Ying Wang, Pengzhang Liu, Qiang Yu, Haojian Zhang, Shiming Xiang, Chunhong Pan

AI总结:

针对视觉语言模型提示调优忽视少样本任务相关性的问题,提出SoftCPT方法,通过任务共享元网络生成软共享提示上下文,联合调优多任务,在多数据集上显著优于单任务提示调优。

摘要:

视觉语言模型最近在计算机视觉的许多任务中展现出巨大潜力。同时,先前的研究表明,为视觉语言模型设计的提示调优在少样本图像识别任务上能获得比强基线线性探针更优的性能。实际中,许多少样本任务本质上是相关的,尤其在专业领域内,但这类信息此前被忽视。受多任务学习通过建模任务关系通常能提升性能的启发,我们提出一种新方法SoftCPT(提示调优的软上下文共享),用于在多个目标少样本任务上联合调优预训练视觉语言模型。具体而言,我们设计了一个任务共享的元网络,以任务名称和可学习的任务上下文为输入,为每个任务生成提示上下文。该元网络的参数以及任务上下文在所有任务的联合训练集上进行调优,从而使所有任务的提示上下文以软方式共享。在涵盖44个任务和1593个类别的4个多任务少样本数据集上的大量实验表明,SoftCPT显著优于单任务提示调优方法,凸显了多任务学习在视觉语言提示调优中的有效性。代码可在https://github.com/kding1225/softcpt获取。

英文摘要:

Vision-language models have recently shown great potential on many tasks in computer vision. Meanwhile, prior work demonstrates prompt tuning designed for vision-language models could acquire superior performance on few-shot image recognition compared to linear probe, a strong baseline. In practice, many few-shot tasks are inherently correlated, particularly within specialized domains. However, such information is overlooked previously. Inspired by the fact that modeling task relationship by multi-task learning can usually boost performance, we propose a novel method SoftCPT (Soft Context Sharing for Prompt Tuning) to tune pre-trained vision-language models on multiple target few-shot tasks jointly. Specifically, we design a task-shared meta network to generate prompt context for each task using task name together with a learnable task context as input. The parameters of this meta network as well as the task context are tuned on the joint training set of all tasks. As such, the prompt context of all tasks will be shared in a soft manner. Extensive experiments across four multi-task few-shot datasets covering 44 tasks and 1593 categories demonstrate that SoftCPT significantly outperforms single-task prompt tuning methods, highlighting the effectiveness of multi-task learning for vision-language prompt tuning. Code is available at https://github.com/kding1225/softcpt.

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

↑