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

面向视觉语言模型的可微提示学习

Differentiable Prompt Learning for Vision Language Models

Rensselaer Polytechnic Institute(伦斯勒理工学院);IBM Research(IBM研究院)

Zhenhan Huang, Tejaswini Pedapati, Pin-Yu Chen, Jianxi Gao

AI总结:

本文提出可微提示学习(DPL)方法,将深度连续提示的每层上下文长度自动优化问题形式化,在 CLIP 上仅用有限数据即可自动找到高置信度提示配置,并在 11 个数据集上平均提升 2.60% 测试准确率。

摘要:

提示学习是发挥大规模预训练基础模型潜力的一种有效方式。连续提示通过将提示中的上下文 token 参数化为可微向量来实现。深度连续提示不仅在输入中插入提示,还在中间隐藏表示中插入提示。与零样本预训练模型相比,手工设计的深度连续提示在下游任务上表现出显著提升。如何自动化连续提示设计是一个尚未充分探索的领域,由此产生一个根本性问题:手工设计的深度提示策略是否是最优的?为回答这一问题,我们提出了一种称为可微提示学习(DPL)的方法。DPL 方法被形式化为一个优化问题,以自动确定需要添加到每一层的提示的最优上下文长度,其目标是最大化性能。我们在预训练的 CLIP 上测试了 DPL 方法。我们通过实验发现,仅使用有限数据,我们的 DPL 方法就能以高置信度找到深度连续提示配置。下游任务上的性能展现了自动设计的优越性:与基线方法相比,我们的方法在 11 个数据集上将平均测试准确率提升了 2.60%。此外,我们的方法只关注提示配置(即每一层的上下文长度),这意味着我们的方法与那些具有复杂设计以提升性能的基线方法兼容。DPL 方法可以零成本地部署到大型语言模型或计算机视觉模型上。

英文摘要:

Prompt learning is an effective way to exploit the potential of large-scale pre-trained foundational models. Continuous prompts parameterize context tokens in prompts by turning them into differentiable vectors. Deep continuous prompts insert prompts not only in the input but also in the intermediate hidden representations. Manually designed deep continuous prompts exhibit a remarkable improvement compared to the zero-shot pre-trained model on downstream tasks. How to automate the continuous prompt design is an underexplored area, and a fundamental question arises, is manually designed deep prompt strategy optimal? To answer this question, we propose a method dubbed differentiable prompt learning (DPL). The DPL method is formulated as an optimization problem to automatically determine the optimal context length of the prompt to be added to each layer, where the objective is to maximize the performance. We test the DPL method on the pre-trained CLIP. We empirically find that by using only limited data, our DPL method can find deep continuous prompt configuration with high confidence. The performance on the downstream tasks exhibits the superiority of the automatic design: our method boosts the average test accuracy by 2.60% on 11 datasets compared to baseline methods. Besides, our method focuses only on the prompt configuration (i.e. context length for each layer), which means that our method is compatible with the baseline methods that have sophisticated designs to boost the performance. The DPL method can be deployed to large language models or computer vision models at no cost.

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

↑