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

基于知识引导的上下文优化的视觉语言提示微调

Visual-Language Prompt Tuning with Knowledge-guided Context Optimization

Institute of Automation, CAS(中国科学院自动化研究所);Institute of Computing Technology, CAS(中国科学院计算技术研究所);University of Chinese Academy of Sciences(CAS)(中国科学院大学)

Hantao Yao, Rui Zhang, Changsheng Xu

摘要:

提示微调是一种使用任务相关文本标记使预训练的视觉语言模型(VLM)适应下游任务的有效方法。代表性的合作为基础的工作相结合的学习文本令牌类令牌,以获得特定的文本知识。然而,具体的文本知识是最差的泛化看不见的类,因为它忘记了本质的一般文本知识具有很强的泛化能力。为了解决这个问题,我们引入了一种新的知识引导的上下文优化(KgCoOp),以增强不可见类的可学习提示的泛化能力。KgCoOp的关键见解是,通过减少可学习提示和手工制作提示之间的差异,可以减轻对基本知识的遗忘。特别是,KgCoOp最大限度地减少了由学习提示和手工制作的提示生成的文本嵌入之间的差异。最后,在对比损失上添加KgCoOp可以对可见和不可见任务进行区分性提示。多个基准测试结果表明,该方法是一种有效的提示微调方法,\emph{i.e.,}以更少的训练时间获得了更好的性能。

英文摘要:

Prompt tuning is an effective way to adapt the pre-trained visual-language model (VLM) to the downstream task using task-related textual tokens. Representative CoOp-based work combines the learnable textual tokens with the class tokens to obtain specific textual knowledge. However, the specific textual knowledge is the worse generalization to the unseen classes because it forgets the essential general textual knowledge having a strong generalization ability. To tackle this issue, we introduce a novel Knowledge-guided Context Optimization (KgCoOp) to enhance the generalization ability of the learnable prompt for unseen classes. The key insight of KgCoOp is that forgetting about essential knowledge can be alleviated by reducing the discrepancy between the learnable prompt and the hand-crafted prompt. Especially, KgCoOp minimizes the discrepancy between the textual embeddings generated by learned prompts and the hand-crafted prompts. Finally, adding the KgCoOp upon the contrastive loss can make a discriminative prompt for both seen and unseen tasks. Extensive evaluation of several benchmarks demonstrates that the proposed Knowledge-guided Context Optimization is an efficient method for prompt tuning, \emph{i.e.,} achieves better performance with less training time.

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

↑