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

面向视觉-语言模型的提示变体建模

Modeling Variants of Prompts for Vision-Language Models

Shandong University(山东大学);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学)

Ao Li, Zongfang Liu, Xinhua Li, Jinghui Zhang, Pengwei Wang, Hu Wang

AI总结:

本文提出RobustPrompt Benchmark基准和提示变体建模方法MVP,通过将提示解耦为模板与类别名称并用VAE建模其分布,在不损失性能的前提下显著提升视觉-语言模型对提示模板变化的鲁棒性。

摘要:

大型预训练视觉-语言模型(VLMs)为利用人类语言增强下游任务提供了一种有前景的方法。然而,诸如CLIP之类的VLM面临显著局限:其性能对提示模板设计高度敏感。尽管提示学习方法可以通过用可学习的提示替换自然语言提示来解决敏感性问题,但这些方法对人类而言不可理解。确保在各种提示模板上保持一致的性能,能够使模型无缝适应多样化的表述方式,从而增强其处理下游任务的能力,而无需进行大量的提示工程。在这项工作中,我们引入了RobustPrompt Benchmark,这是一个系统性的基准,用于评估VLM对不同提示模板的鲁棒性。它包含一个数据集,其中有数百个精心设计的提示模板,分为六种类型,涵盖了广泛使用的各类模板。除了该基准之外,我们提出了提示变体建模(MVP),这是一种简单而有效的方法,通过对提示结构的变体进行建模来缓解敏感性问题。MVP的创新之处在于将提示解耦为模板和类别名称,并使用变分自编码器(VAE)对多样化提示结构的分布进行建模。在11个数据集上的实验表明,MVP能够大幅提升模型对输入提示变化的鲁棒性,而不会导致性能下降。代码可在https://github.com/liaolea/MVP获取。

英文摘要:

Large pre-trained vision-language models (VLMs) offer a promising approach to leveraging human language for enhancing downstream tasks. However, VLMs such as CLIP face significant limitation: its performance is highly sensitive to prompt template design. Although prompt learning methods can address the sensitivity issue by replacing natural language prompts with learnable ones, they are incomprehensible to humans. Ensuring consistent performance across various prompt templates enables models to adapt seamlessly to diverse phrasings, enhancing their ability to handle downstream tasks without requiring extensive prompt engineering. In this work, we introduce the RobustPrompt Benchmark, a systematic benchmark to evaluate robustness to different prompt templates for VLMs. It includes a dataset with hundreds of carefully designed prompt templates, divided into six types, covering a wide variety of commonly used templates. Beside the benchmark, we propose Modeling Variants of Prompts (MVP), a simple yet effective method that mitigates sensitivity by modeling variants of prompt structures. The innovation of MVP lies in decoupling prompts into templates and class names, and using Variational Autoencoders (VAE) to model the distribution of diverse prompt structures. Experiments across 11 datasets demonstrate that MVP can greatly enhance model robustness to variations in input prompts without a drop in performance. The code is available at https://github.com/liaolea/MVP.

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

↑