Skip to main content
QUICK REVIEW

[Paper Review] Investigating Prompting Techniques for Zero- and Few-Shot Visual Question Answering

Rabiul Awal, Le Zhang|arXiv (Cornell University)|Jun 16, 2023
Multimodal Machine Learning ApplicationsComputer Science5 citations
TL;DR

This paper investigates prompting techniques to boost zero- and few-shot Visual Question Answering (VQA) performance in vision-language models (VLMs) without fine-tuning. It demonstrates that strategic question templates, image captions as visual cues, self-consistent chain-of-thought reasoning, and text-only few-shot examples significantly improve accuracy, while LLM-guided pre-processing stabilizes evaluation metrics, especially for verbose models like LLaVa.

ABSTRACT

In this paper, we explore effective prompting techniques to enhance zero- and few-shot Visual Question Answering (VQA) performance in contemporary Vision-Language Models (VLMs). Central to our investigation is the role of question templates in guiding VLMs to generate accurate answers. We identify that specific templates significantly influence VQA outcomes, underscoring the need for strategic template selection. Another pivotal aspect of our study is augmenting VLMs with image captions, providing them with additional visual cues alongside direct image features in VQA tasks. Surprisingly, this augmentation significantly improves the VLMs' performance in many cases, even though VLMs "see" the image directly! We explore chain-of-thought (CoT) reasoning and find that while standard CoT reasoning causes drops in performance, advanced methods like self-consistency can help recover it. Furthermore, we find that text-only few-shot examples enhance VLMs' alignment with the task format, particularly benefiting models prone to verbose zero-shot answers. Lastly, to mitigate the challenges associated with evaluating free-form open-ended VQA responses using string-matching based VQA metrics, we introduce a straightforward LLM-guided pre-processing technique to adapt the model responses to the expected ground-truth answer distribution. In summary, our research sheds light on the intricacies of prompting strategies in VLMs for VQA, emphasizing the synergistic use of captions, templates, and pre-processing to enhance model efficacy.

Motivation & Objective

  • To systematically evaluate prompting techniques for zero- and few-shot VQA in vision-language models (VLMs) without task-specific fine-tuning.
  • To identify which prompting strategies—such as question templates, image captions, chain-of-thought reasoning, and few-shot exemplars—most effectively improve VQA accuracy.
  • To address the limitations of traditional string-matching VQA metrics by introducing LLM-guided pre-processing to align model outputs with reference answers.
  • To evaluate state-of-the-art VLMs (e.g., LLaVa, BLIP2, OpenFlamingo, Kosmos2) across diverse benchmarks including VQAv2, GQA, OKVQA, AOKVQA, and Winoground-VQA.
  • To uncover model-specific sensitivities, such as template preferences and performance drops in compositional reasoning tasks, to guide effective prompting.

Proposed method

  • Systematically tested question templates with varying phrasings and structures to assess their impact on answer accuracy across multiple VLMs.
  • Augmented VLM inputs with image captions of varying detail and relevance to provide additional visual context beyond raw image features.
  • Applied chain-of-thought (CoT) prompting by prompting models to generate step-by-step reasoning before answers, and evaluated variants like CoT-iterative, CoT-context, and CoT-consistency.
  • Introduced text-only few-shot exemplars to improve model alignment with task format, especially for models prone to verbose zero-shot outputs.
  • Implemented LLM-guided pre-processing to refine model-generated answers before evaluation, aligning them with reference answer styles and improving metric reliability.
  • Evaluated models on six benchmarks including VQAv2, Visual7w, GQA, OKVQA, AOKVQA, and Winoground-VQA, using both standard and refined metrics.
Figure 1 : Overview of prompting techniques explored with various VLMs, encompassing Standard, Caption, Chain-of-thought VQA and Text-only Few-shot, and the use of LLM-guided pre-processing.
Figure 1 : Overview of prompting techniques explored with various VLMs, encompassing Standard, Caption, Chain-of-thought VQA and Text-only Few-shot, and the use of LLM-guided pre-processing.

Experimental results

Research questions

  • RQ1How do different question templates affect zero- and few-shot VQA performance across diverse vision-language models?
  • RQ2To what extent do image captions improve VQA accuracy when used as additional visual context, despite direct image input?
  • RQ3Can chain-of-thought reasoning improve VQA performance, and which variants (e.g., self-consistency) are most effective in mitigating performance drops?
  • RQ4How effective are text-only few-shot exemplars in improving model alignment with task format, especially in combination with captions or CoT?
  • RQ5To what extent does LLM-guided pre-processing stabilize and improve the reliability of traditional VQA evaluation metrics?

Key findings

  • Different VLMs exhibit distinct preferences for question templates, indicating no universal template is optimal across models.
  • Incorporating image captions as additional context significantly improved VQA performance across multiple models and benchmarks, even though images were directly visible.
  • Standard chain-of-thought prompting reduced performance, but self-consistent CoT (30 samples, majority vote) restored performance to near-baseline levels.
  • Text-only few-shot exemplars improved model alignment with task format, particularly reducing verbosity in models like LLaVa and Kosmos2, but benefits diminished when LLM pre-processing was applied.
  • LLM-guided pre-processing corrected metric inaccuracies, especially for verbose models like LLaVa, and stabilized evaluation across all models, revealing that traditional metrics often misrepresent true performance.
  • The Winoground-VQA benchmark exposed significant challenges for most VLMs, highlighting limitations in visio-linguistic compositionality and reasoning under distribution shift.
Figure 4 : Example images from the AOKVQA dataset with their respective Q&A.
Figure 4 : Example images from the AOKVQA dataset with their respective Q&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.