Skip to main content
QUICK REVIEW

[论文解读] Learning Combinatorial Prompts for Universal Controllable Image Captioning

Zhen Wang, Jun Xiao|arXiv (Cornell University)|Mar 11, 2023
Multimodal Machine Learning ApplicationsComputer Science被引用 3
一句话总结

本文提出 ComPro,一种基于提示的通用可控图像字幕框架,通过单一的 GPT-2 基架构学习组合提示,以联合处理多种控制信号(如内容与结构)。通过生成任务特定提示并采用新型掩码注意力机制,ComPro 在 COCO Entities 和 Flickr30K Entities 基准测试中,于单重与组合控制信号任务上均达到最先进性能。

ABSTRACT

Controllable Image Captioning (CIC) -- generating natural language descriptions about images under the guidance of given control signals -- is one of the most promising directions towards next-generation captioning systems. Till now, various kinds of control signals for CIC have been proposed, ranging from content-related control to structure-related control. However, due to the format and target gaps of different control signals, all existing CIC works (or architectures) only focus on one certain control signal, and overlook the human-like combinatorial ability. By ``combinatorial", we mean that our humans can easily meet multiple needs (or constraints) simultaneously when generating descriptions. To this end, we propose a novel prompt-based framework for CIC by learning Combinatorial Prompts, dubbed as ComPro. Specifically, we directly utilize a pretrained language model GPT-2 as our language model, which can help to bridge the gap between different signal-specific CIC architectures. Then, we reformulate the CIC as a prompt-guide sentence generation problem, and propose a new lightweight prompt generation network to generate the combinatorial prompts for different kinds of control signals. For different control signals, we further design a new mask attention mechanism to realize the prompt-based CIC. Due to its simplicity, our ComPro can be further extended to more kinds of combined control signals by concatenating these prompts. Extensive experiments on two prevalent CIC benchmarks have verified the effectiveness and efficiency of our ComPro on both single and combined control signals.

研究动机与目标

  • 为解决现有可控图像字幕(CIC)模型在组合泛化方面的不足,这些模型仅针对单一控制信号设计。
  • 实现统一框架,同时支持多种控制类型(如与内容相关的控制,例如目标区域;与结构相关的控制,例如句子长度)。
  • 通过使用单一预训练语言模型(GPT-2)和基于提示的控制,弥合信号特定 CIC 模型之间的架构差距。
  • 开发一种轻量级提示生成网络,为多样化控制信号生成有效且任务特定的提示。
  • 通过提示拼接,展示框架在未见控制信号组合上的可扩展性。

提出的方法

  • 该框架将 CIC 重新表述为提示引导的句子生成问题,使用 GPT-2 作为底层语言模型,以统一不同控制信号格式。
  • 引入一种轻量级提示生成网络,用于生成针对不同控制信号(如目标区域或句子结构)的组合提示。
  • 设计一种新型掩码注意力机制,根据控制信号类型动态关注提示的相关部分,实现有效的条件控制。
  • 通过拼接不同信号类型的提示,支持多模态控制,实现对内容与结构的联合控制。
  • 在两个基准测试(COCO Entities 和 Flickr30K Entities)上端到端训练模型,并对提示长度和视觉特征进行消融实验以获得最佳性能。
  • 视觉特征采用自下而上的(来自 Faster R-CNN)或 CLIP 特征(使用 ResNet/ViT 编码器),消融实验表明自下而上的特征在内容控制方面优于 CLIP 特征。

实验结果

研究问题

  • RQ1统一框架能否有效同时处理图像字幕中的多种控制信号类型(如内容与结构)?
  • RQ2学习组合提示是否相比信号特定模型,能实现对未见控制信号组合的更好泛化?
  • RQ3提示长度如何影响所提出的 ComPro 框架在内容与结构控制任务上的性能?
  • RQ4不同视觉特征表示(自下而上 vs. CLIP)对模型生成准确可控字幕的能力有何影响?
  • RQ5在用户研究中,模型性能在可控性与准确性方面与人类判断的契合度如何?

主要发现

  • ComPro 在 COCO Entities 和 Flickr30K Entities 基准测试中均达到最先进性能,内容控制下 CIDEr 得分为 23.6,B-4 得分为 27.1。
  • 模型在提示长度为 10 个 token 时达到最优性能,更长的提示(如 20 个)表现出性能饱和或轻微下降。
  • 用户研究表明,ComPro 在人类判断中优于 SCT,100 次试验中有 86 次被优先选择,表明其具备更优的可控性与准确性。
  • ComPro 与人类判断高度一致(与 CIDEr 一致率达 80%,与 NW 一致率达 84%),证实了评估指标的可靠性。
  • 自下而上的视觉特征在内容相关控制中显著优于 CLIP 特征,而 CLIP 特征在结构相关控制中已足够。
  • 通过提示拼接,框架成功泛化至组合控制信号,证明其具备通用性与可扩展性。

阅读本论文

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

在 Nubint 中阅读本论文

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