Lune

AAAI2022Top-tier venue

An Empirical Study of GPT-3 for Few-Shot Knowledge-Based VQA

Zhengyuan Yang, Zhe Gan, Jianfeng Wang, Xiaowei Hu, Yumao Lu, Zicheng Liu, Lijuan Wang

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 GPT-3 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. 1 Question: What do you call the device that keeps boats in place at sea? (d) Wh vehicle Contex train tra tracks. Answe GT An 'train s 'station Acc.: 1 (e) W hav doin Con surf bea Ans GT 'sha 'sha Acc plant, sitting, flower, indoor, table, drinkware, flower arranging, floral design, garden roses, champagne stemware, centrepiece, wine glass, ikebana, stemware, artificial flower, cut flowers, petal, rose, bouquet, floristry, tableware, tablecloth, vase, wedding

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

119 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • What does a platypus look like? Generating customized prompts for zero-shot image classification cites Learning Transferable Visual Models From Natural Language Supervision
  • MM-Vet: Evaluating Large Multimodal Models for Integrated Capabilities cites Language Models are Few-Shot Learners
  • MM-Vet: Evaluating Large Multimodal Models for Integrated Capabilities cites Learning Transferable Visual Models From Natural Language Supervision
  • MM-Vet: Evaluating Large Multimodal Models for Integrated Capabilities cites Flamingo: a Visual Language Model for Few-Shot Learning
  • MM-Vet: Evaluating Large Multimodal Models for Integrated Capabilities cites Multimodal Few-Shot Learning with Frozen Language Models
  • LayoutGPT: Compositional Visual Planning and Generation with Large Language Models cites ViperGPT: Visual Inference via Python Execution for Reasoning
  • LayoutGPT: Compositional Visual Planning and Generation with Large Language Models cites Learning Transferable Visual Models From Natural Language Supervision
  • LayoutGPT: Compositional Visual Planning and Generation with Large Language Models cites Flamingo: a Visual Language Model for Few-Shot Learning
  • ViperGPT: Visual Inference via Python Execution for Reasoning cites Learning Transferable Visual Models From Natural Language Supervision
  • ViperGPT: Visual Inference via Python Execution for Reasoning cites Flamingo: a Visual Language Model for Few-Shot Learning
  • Learning Transferable Visual Models From Natural Language Supervision cites Language Models are Few-Shot Learners
  • Flamingo: a Visual Language Model for Few-Shot Learning cites Language Models are Few-Shot Learners
  • Flamingo: a Visual Language Model for Few-Shot Learning cites Learning Transferable Visual Models From Natural Language Supervision
  • Flamingo: a Visual Language Model for Few-Shot Learning cites Multimodal Few-Shot Learning with Frozen Language Models
  • Multi-Modal Answer Validation for Knowledge-Based VQA cites ConceptBert: Concept-Aware Representation for Visual Question Answering
  • Multimodal Few-Shot Learning with Frozen Language Models cites Language Models are Few-Shot Learners
  • Multimodal Few-Shot Learning with Frozen Language Models cites Learning Transferable Visual Models From Natural Language Supervision
  • Multimodal Few-Shot Learning with Frozen Language Models cites Multi-Modal Answer Validation for Knowledge-Based VQA
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers119

  1. Flamingo: a Visual Language Model for Few-Shot LearningJean-Baptiste Alayrac, Jeff Donahue, Pauline Luc, Antoine Miech et al.NeurIPS 2022 · 6,707 citations
  2. MM-Vet: Evaluating Large Multimodal Models for Integrated CapabilitiesWeihao Yu, Zhengyuan Yang, Linjie Li, Jianfeng Wang et al.ICML 2024 · 1,191 citations
  3. ViperGPT: Visual Inference via Python Execution for ReasoningDídac Surís, Sachit Menon, Carl VondrickICCV 2023 · 732 citations
  4. LayoutGPT: Compositional Visual Planning and Generation with Large Language ModelsWeixi Feng, Wanrong Zhu, Tsu-Jui Fu, Varun Jampani et al.NeurIPS 2023 · 462 citations
  5. What does a platypus look like? Generating customized prompts for zero-shot image classificationSarah M. Pratt, Ian Covert, Rosanne Liu, Ali FarhadiICCV 2023 · 343 citations

Builds on8

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Learning Transferable Visual Models From Natural Language SupervisionAlec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh et al.ICML 2021 · 47,906 citations
  3. Multimodal Few-Shot Learning with Frozen Language ModelsMaria Tsimpoukelli, Jacob Menick, Serkan Cabi, S. M. Ali Eslami et al.NeurIPS 2021 · 1,020 citations
  4. Multi-Modal Answer Validation for Knowledge-Based VQAJialin Wu, Jiasen Lu, Ashish Sabharwal, Roozbeh MottaghiAAAI 2022 · 183 citations
  5. ConceptBert: Concept-Aware Representation for Visual Question AnsweringFrançois Gardères, Maryam Ziaeefard, Baptiste Abeloos, Freddy LécuéEMNLP Findings 2020 · 150 citations

Related papers

  1. Prompting Large Language Models with Answer Heuristics for Knowledge-Based Visual Question AnsweringZhenwei Shao, Zhou Yu, Meng Wang, Jun YuCVPR 2023
  2. PromptCap: Prompt-Guided Image Captioning for VQA with GPT-3Yushi Hu, Hang Hua, Zhengyuan Yang, Weijia Shi et al.ICCV 2023 · 91 citations
  3. TOA: Task-oriented Active VQAXiaoying Xing, Mingfu Liang, Ying WuNeurIPS 2023 · 20 citations
  4. Breaking the Barrier Between Pre-training and Fine-tuning: A Hybrid Prompting Model for Knowledge-Based VQAZhongfan Sun, Yongli Hu, Qingqing Gao, Huajie Jiang et al.ACM MM 2023 · 6 citations
  5. Separation of Powers: On Segregating Knowledge from Observation in LLM-enabled Knowledge-based Visual Question AnsweringZhen Yang, Zhuo Tao, Qi Chen, Liang Li et al.CVPR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines