Skip to main content
QUICK REVIEW

[Paper 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 Science46 citations
TL;DR

The paper introduces PICa, a prompting-based method that uses GPT-3 with image captions/tags and few-shot in-context learning to perform knowledge-based VQA, achieving state-of-the-art few-shot results on OK-VQA without fine-tuning.

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.

Motivation & Objective

  • Motivate a simple, non-fine-tuned approach to knowledge-based VQA that leverages GPT-3's implicit knowledge and reasoning abilities.
  • Eliminate the mismatch risk of explicit knowledge retrieval by using GPT-3 as an implicit KB through textual image representations.
  • Systematically study how image textual representations, example selection, and multi-query ensembles affect few-shot VQA performance.
  • Demonstrate the potential and limitations of GPT-3 for multimodal tasks via rigorous ablations and qualitative analyses.

Proposed method

  • Convert images to textual descriptions (captions or tags) to feed GPT-3.
  • Prompt GPT-3 in a few-shot setting using a prompt head and a small set of in-context VQA examples.
  • Enhance performance with careful image representation choices (captions vs tags) and multi-query ensemble across prompts.
  • Implement in-context example selection to choose the most relevant questions/images via similarity (CLIP/RoBERTa) and optionally perform multi-query ensembling to aggregate multiple answers.
  • Avoid fine-tuning by leveraging GPT-3’s few-shot capabilities and open-ended text generation for answers.
  • Provide ablations on textual representations, in-context example selection, and multi-query ensemble to understand their impact on performance.

Experimental results

Research questions

  • RQ1Can GPT-3 be used as an implicit, unstructured knowledge base for vision-based reasoning when provided with textual image descriptions?
  • RQ2How do image textual representations (captions, tags, or combinations) affect few-shot knowledge-based VQA performance?
  • RQ3Do in-context example selection and multi-query ensembles meaningfully improve GPT-3-based VQA in a few-shot regime?
  • RQ4What are the limits of GPT-3-based few-shot VQA on standard benchmarks like OK-VQA and VQAv2?

Key findings

  • PICa surpasses the supervised state of the art on OK-VQA in a few-shot setting (48.0% with 16 in-context examples using caption+tags).
  • Using only captions, PICa-Full reaches 46.9% on OK-VQA with 16 shots, outperforming prior supervised methods.
  • Image representations as rich textual descriptions (captions, tags, or both) significantly outpace the blind baseline (question only).
  • In-context example selection and multi-query ensemble consistently improve OK-VQA performance, with oracle-like selections approaching 49.1% on OK-VQA when ideal examples are chosen.
  • On VQAv2, PICa-Full achieves 56.1% with captions+tags in a few-shot setting, substantially better than Frozen and prior baselines, though still below Oscar’s supervised 73.8%.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.