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

视觉语言模型的提示学习混合方法

Mixture of Prompt Learning for Vision Language Models

Center for Brain-Inspired Computing Research(脑启发计算研究中心);Department of Precision Instrument, Tsinghua University(清华大学精密仪器系)

Yu Du, Tong Niu, Rong Zhao

AI总结:

针对视觉语言模型中软提示学习难以捕捉多样风格且易过拟合的问题,提出含路由模块的软提示混合方法,并引入门控机制和语义分组文本监督,在11个数据集上提升少样本、领域泛化等性能。

摘要:

随着像CLIP这样强大的预训练视觉语言模型(VLM)日益受到重视,许多研究尝试将VLM结合用于下游任务。其中,提示学习已被验证为一种适应新任务的有效方法,仅需少量参数。然而,当前的提示学习方法面临两个挑战:首先,单个软提示难以捕捉数据集内的多样风格和模式;其次,微调软提示容易过拟合。为解决这些挑战,我们提出了一种结合路由模块的软提示学习混合方法。该模块能够捕捉数据集的多样风格,并为每个实例动态选择最合适的提示。此外,我们引入了一种新颖的门控机制,以确保路由器基于提示与硬提示模板的相似性来选择提示,既保留了硬提示的知识,又提高了选择准确性。我们还实现了语义分组的文本级监督,使用来自其分组的手动设计模板的令牌嵌入来初始化每个软提示,并在结果文本特征与硬提示编码的文本特征之间应用对比损失。这种监督确保从软提示导出的文本特征保持接近其对应硬提示的特征,从而保留初始知识并缓解过拟合。我们的方法已在11个数据集上验证,在少样本学习、领域泛化和基类到新类泛化场景中,与现有基线相比表现出明显改进。代码将在\(\url{https://anonymous.4open.science/r/mocoop-6387}\)提供。

英文摘要:

As powerful pre-trained vision-language models (VLMs) like CLIP gain prominence, numerous studies have attempted to combine VLMs for downstream tasks. Among these, prompt learning has been validated as an effective method for adapting to new tasks, which only requiring a small number of parameters. However, current prompt learning methods face two challenges: first, a single soft prompt struggles to capture the diverse styles and patterns within a dataset; second, fine-tuning soft prompts is prone to overfitting. To address these challenges, we propose a mixture of soft prompt learning method incorporating a routing module. This module is able to capture a dataset's varied styles and dynamically selects the most suitable prompts for each instance. Additionally, we introduce a novel gating mechanism to ensure the router selects prompts based on their similarity to hard prompt templates, which both retaining knowledge from hard prompts and improving selection accuracy. We also implement semantically grouped text-level supervision, initializing each soft prompt with the token embeddings of manually designed templates from its group and applied a contrastive loss between the resulted text feature and hard prompt encoded text feature. This supervision ensures that the text features derived from soft prompts remain close to those from their corresponding hard prompts, preserving initial knowledge and mitigating overfitting. Our method has been validated on 11 datasets, demonstrating evident improvements in few-shot learning, domain generalization, and base-to-new generalization scenarios compared to existing baselines. The code will be available at \url{https://anonymous.4open.science/r/mocoop-6387}

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

↑