Skip to main content
QUICK REVIEW

[Paper Review] Prophet: Prompting Large Language Models with Complementary Answer Heuristics for Knowledge-based Visual Question Answering

Yu Zhou, Ouyang, Xuecheng|arXiv (Cornell University)|Mar 3, 2023
Multimodal Machine Learning ApplicationsComputer Science6 citations
TL;DR

Prophet introduces a novel prompting framework that enhances knowledge-based visual question answering by extracting and integrating complementary answer heuristics—answer candidates and answer-aware examples—from a fine-tuned VQA model into a structured prompt for large language models (LLMs). By leveraging these heuristics, Prophet significantly improves answer accuracy across four knowledge-based VQA benchmarks, outperforming state-of-the-art methods when combined with GPT-3.

ABSTRACT

Knowledge-based visual question answering (VQA) requires external knowledge beyond the image to answer the question. Early studies retrieve required knowledge from explicit knowledge bases (KBs), which often introduces irrelevant information to the question, hence restricting the performance of their models. Recent works have resorted to using a powerful large language model (LLM) as an implicit knowledge engine to acquire the necessary knowledge for answering. Despite the encouraging results achieved by these methods, we argue that they have not fully activated the capacity of the \emph{blind} LLM as the provided textual input is insufficient to depict the required visual information to answer the question. In this paper, we present Prophet -- a conceptually simple, flexible, and general framework designed to prompt LLM with answer heuristics for knowledge-based VQA. Specifically, we first train a vanilla VQA model on a specific knowledge-based VQA dataset without external knowledge. After that, we extract two types of complementary answer heuristics from the VQA model: answer candidates and answer-aware examples. The two types of answer heuristics are jointly encoded into a formatted prompt to facilitate the LLM's understanding of both the image and question, thus generating a more accurate answer. By incorporating the state-of-the-art LLM GPT-3, Prophet significantly outperforms existing state-of-the-art methods on four challenging knowledge-based VQA datasets. Prophet is general that can be instantiated with the combinations of different VQA models (i.e., both discriminative and generative ones) and different LLMs (i.e., both commercial and open-source ones). Moreover, Prophet can also be integrated with modern large multimodal models in different stages, which is named Prophet++, to further improve the capabilities on knowledge-based VQA tasks.

Motivation & Objective

  • To address the limitation of existing LLM-based VQA methods that fail to fully activate the LLM's reasoning capacity due to insufficient visual and task-specific context.
  • To improve knowledge-based VQA performance by extracting task-specific heuristics from a fine-tuned VQA model to enrich the LLM prompt.
  • To design a generalizable framework that works with diverse combinations of VQA models (discriminative and generative) and LLMs (commercial and open-source).
  • To reduce reliance on explicit knowledge bases by enabling LLMs to reason effectively using implicit knowledge, guided by curated heuristics.
  • To mitigate issues from irrelevant knowledge retrieval and poor answer alignment in retrieval-based and LLM-only approaches.

Proposed method

  • Train a vanilla VQA model on a knowledge-based VQA dataset without external knowledge to learn visual-linguistic representations.
  • Extract two types of complementary answer heuristics: (1) answer candidates from the model’s top-k predictions and (2) answer-aware examples from high-confidence predictions.
  • Construct a structured prompt that integrates the image caption, question, answer candidates, and answer-aware examples in a format optimized for LLM reasoning.
  • Use a frozen, powerful LLM (e.g., GPT-3) to generate answers based on the enriched prompt, leveraging both visual and knowledge-aware signals.
  • Design the prompt to support zero-shot and few-shot inference, enabling generalization across different VQA datasets and LLM types.
  • Support both multiple-choice and open-ended answer formats by adapting the prompt structure accordingly.
Figure 2 : Our Prophet framework has two stages: answer heuristics generation and heuristics-enhanced prompting. In the answer heuristics generation stage, a vanilla VQA model trained on specific knowledge-based VQA dataset is employed to generate two types of complementary answer heuristics, i.e. ,
Figure 2 : Our Prophet framework has two stages: answer heuristics generation and heuristics-enhanced prompting. In the answer heuristics generation stage, a vanilla VQA model trained on specific knowledge-based VQA dataset is employed to generate two types of complementary answer heuristics, i.e. ,

Experimental results

Research questions

  • RQ1Can answer heuristics extracted from a fine-tuned VQA model improve the performance of LLM-based knowledge-based VQA?
  • RQ2How do complementary heuristics—answer candidates and answer-aware examples—impact LLM reasoning in visual question answering?
  • RQ3To what extent can a general-purpose prompting framework like Prophet outperform retrieval-based and LLM-only baselines across diverse knowledge-based VQA benchmarks?
  • RQ4Does the framework generalize across different VQA model architectures (discriminative vs. generative) and LLM types (commercial vs. open-source)?

Key findings

  • Prophet achieves state-of-the-art performance on four challenging knowledge-based VQA benchmarks: OK-VQA, A-OKVQA, ScienceQA, and TextVQA, significantly outperforming existing methods.
  • On the OK-VQA dataset, Prophet improves accuracy by 11.09 percentage points over MCAN (from 52.58% to 63.67%) in the 'Plants and Animals' category, with consistent gains across all categories.
  • The method reduces failure due to incorrect knowledge reasoning (44.1%) and insufficient visual understanding (27.3%), indicating improved reasoning and perception alignment.
  • The model achieves a 68.37% accuracy on the 'Weather and Climate' category, showing strong performance on specialized knowledge domains.
  • The ablation study confirms that the proposed finetuning strategy with parameter inheritance for overlapping answers improves performance over standard finetuning.
  • Human evaluation shows that 22.8% of failures stem from correct but differently expressed answers, highlighting the role of annotation variability in evaluation metrics.
Figure 3 : Discriminative vs. generative VQA models. Taking an image (V) and a question (Q) as inputs, a typical discriminative VQA model like MCAN [ 18 ] performs multi-class classification to predict the most relevant answer (may contain multiple words) from a predefined answer vocabulary, while a
Figure 3 : Discriminative vs. generative VQA models. Taking an image (V) and a question (Q) as inputs, a typical discriminative VQA model like MCAN [ 18 ] performs multi-class classification to predict the most relevant answer (may contain multiple words) from a predefined answer vocabulary, while a

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.