Skip to main content
QUICK REVIEW

[论文解读] A Systematic Survey of Prompt Engineering on Vision-Language Foundation Models

Jindong Gu, Zhen Han|arXiv (Cornell University)|Jul 24, 2023
Multimodal Machine Learning ApplicationsComputer Science被引用 63
一句话总结

本论文全面综述了视觉-语言基础模型的提示工程,将方法按多模态到文本生成、图像-文本匹配和文本到图像生成分门别类,并讨论了应用与负责任AI的考量。

ABSTRACT

Prompt engineering is a technique that involves augmenting a large pre-trained model with task-specific hints, known as prompts, to adapt the model to new tasks. Prompts can be created manually as natural language instructions or generated automatically as either natural language instructions or vector representations. Prompt engineering enables the ability to perform predictions based solely on prompts without updating model parameters, and the easier application of large pre-trained models in real-world tasks. In past years, Prompt engineering has been well-studied in natural language processing. Recently, it has also been intensively studied in vision-language modeling. However, there is currently a lack of a systematic overview of prompt engineering on pre-trained vision-language models. This paper aims to provide a comprehensive survey of cutting-edge research in prompt engineering on three types of vision-language models: multimodal-to-text generation models (e.g. Flamingo), image-text matching models (e.g. CLIP), and text-to-image generation models (e.g. Stable Diffusion). For each type of model, a brief model summary, prompting methods, prompting-based applications, and the corresponding responsibility and integrity issues are summarized and discussed. Furthermore, the commonalities and differences between prompting on vision-language models, language models, and vision models are also discussed. The challenges, future directions, and research opportunities are summarized to foster future research on this topic.

研究动机与目标

  • 对视觉-语言基础模型(VLMs)的提示研究提供系统性综述。
  • 将提示方法分为硬提示和软提示,覆盖三种模型类型:多模态到文本生成、图像-文本匹配、文本到图像生成。
  • 总结每种模型类型的提示技术、应用及AI责任考量。
  • 讨论语言模型与视觉模型提示的异同,并提出未来研究方向。

提出的方法

  • 将提示方法分类为硬提示(任务指令、上下文学习、基于检索的提示、链式思维)和软提示(提示微调、前缀微调)
  • 就VLMs中的融合模块提供编码器-解码器与解码器-单一(decoder-only)两种视角,并将提示方法映射到这些架构
  • 在三种VL模型类型上综述提示技术及应用,附有示例与代表性模型(如 Flamingo、CLIP、Stable Diffusion)
  • 总结编码器-解码器融合模块与解码器-只有融合模块在提示方面的进展,并讨论鲁棒性、数据集效应和训练策略
  • 讨论负责任的AI考量,包括在VLMs中提示相关的偏见、鲁棒性与完整性问题
  • 发布一个项目页面,汇编相关论文以帮助文献检索。

实验结果

研究问题

  • RQ1在视觉-语言基础模型中使用了哪些提示方法?这些方法在不同模型类型之间有何差异?
  • RQ2硬提示与软提示如何影响多模态到文本生成、图像-文本匹配以及文本到图像生成中的性能、鲁棒性与安全性?
  • RQ3视觉-语言模型中的提示与单模态语言/视觉模型之间有哪些共性与差异?
  • RQ4视觉-语言模型提示工程的挑战与未来方向是什么?

主要发现

  • 提示方法分为硬提示(任务指令、上下文学习、基于检索的提示、链式思维)和软提示(提示微调、前缀令牌微调)。
  • 采用编码器-解码器融合的视觉-语言模型常使用任务特定的提示和特殊令牌,而解码器-只有融合的模型则利用视觉前缀或提示策略来引导生成。
  • 少样本和零样本提示在VLM任务如VQA、图像描述和定位问答中表现出色,覆盖如Flamingo、Kosmos、BLIP-2等模型。
  • 冻结语言模型是保持语言能力同时集成视觉信息的常用策略。
  • 在某些场景中,提示微调相对于全面微调可提供鲁棒性优势,较长的提示在到达某个点前能带来提升。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。