Skip to main content
QUICK REVIEW

[论文解读] An Empirical Study of GPT-3 for Few-Shot Knowledge-Based VQA

Zhengyuan Yang, Zhe Gan|arXiv (Cornell University)|Sep 10, 2021
Multimodal Machine Learning ApplicationsComputer Science被引用 46
一句话总结

本文提出 PICa,一种基于提示的方法,使用 GPT-3 结合图像标题/标签,并通过少量示例在上下文中学习,用于基于知识的视觉问答,在不进行微调的情况下在 OK-VQA 上达到最先进的少样本结果。

ABSTRACT

Knowledge-based visual question answering (VQA) involves answering questions that require external knowledge not present in the image. Existing methods first retrieve knowledge from external resources, then reason over the selected knowledge, the input image, and question for answer prediction. However, this two-step approach could lead to mismatches that potentially limit the VQA performance. For example, the retrieved knowledge might be noisy and irrelevant to the question, and the re-embedded knowledge features during reasoning might deviate from their original meanings in the knowledge base (KB). To address this challenge, we propose PICa, a simple yet effective method that Prompts GPT3 via the use of Image Captions, for knowledge-based VQA. Inspired by GPT-3's power in knowledge retrieval and question answering, instead of using structured KBs as in previous work, we treat GPT-3 as an implicit and unstructured KB that can jointly acquire and process relevant knowledge. Specifically, we first convert the image into captions (or tags) that GPT-3 can understand, then adapt GPT-3 to solve the VQA task in a few-shot manner by just providing a few in-context VQA examples. We further boost performance by carefully investigating: (i) what text formats best describe the image content, and (ii) how in-context examples can be better selected and used. PICa unlocks the first use of GPT-3 for multimodal tasks. By using only 16 examples, PICa surpasses the supervised state of the art by an absolute +8.6 points on the OK-VQA dataset. We also benchmark PICa on VQAv2, where PICa also shows a decent few-shot performance.

研究动机与目标

  • 激励一种简单的、非微调的知识基 VQA 方法,利用 GPT-3 的隐性知识与推理能力。
  • 通过将 GPT-3 作为隐式知识库,通过文本形式的图像表示,消除显式知识检索的不匹配风险。
  • 系统性研究图像文本表示、示例选择和多查询集成如何影响少样本 VQA 的性能。
  • 通过严格的消融实验和定性分析,展示 GPT-3 在多模态任务中的潜力与局限。

提出的方法

  • 将图像转换为文本描述(标题或标签),以输入给 GPT-3。
  • 在少样本设置中使用提示头和一小组上下文 VQA 例子对 GPT-3 进行提示。
  • 通过仔细选择图像表示(标题 vs 标签)以及跨提示的多查询集成来提升性能。
  • 实现上下文内示例选择,通过相似性(CLIP/RoBERTa)挑选最相关的问题/图像,并可选地执行多查询集成以聚合多个答案。
  • 通过利用 GPT-3 的少样本能力及对答案的开放式文本生成,避免微调。
  • 提供对文本表示、上下文内示例选择和多查询集成的消融研究,以理解它们对性能的影响。

实验结果

研究问题

  • RQ1当提供文本图像描述时,GPT-3 是否可以用作一个隐式、非结构化的知识库来进行基于视觉的推理?
  • RQ2图像文本表示(标题、标签或组合)如何影响少样本知识基 VQA 的性能?
  • RQ3上下文内示例选择和多查询集成在少样本情境下是否显著提升基于 GPT-3 的 VQA?
  • RQ4在像 OK-VQA 和 VQAv2 这样的标准基准上,基于 GPT-3 的少样本 VQA 的极限是什么?

主要发现

  • PICa 在少样本设定下超越 OK-VQA 的有监督最新方法(使用 caption+tags 的 16 个上下文示例时达 48.0%)。
  • 仅使用标题,PICa-Full 在 OK-VQA 的 16 次尝试中达到 46.9%,超过先前的有监督方法。
  • 将图像表示为丰富的文本描述(标题、标签,或两者)显著超越盲基线(仅问题)。
  • 上下文内示例选择和多查询集成在 OK-VQA 上持续提升性能,当选择理想示例时,接近 49.1% 的成绩。
  • 在 VQAv2 上,PICa-Full 在少样本设定下以 captions+tags 达到 56.1%,显著优于 Frozen 和以往基线,尽管仍低于 Oscar 的有监督 73.8%。

阅读本论文

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

在 Nubint 中阅读本论文

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