Skip to main content
QUICK REVIEW

[Paper Review] Plug-and-Play VQA: Zero-shot VQA by Conjoining Large Pretrained Models with Zero Training

Anthony Meng Huat Tiong, Junnan Li|arXiv (Cornell University)|Oct 17, 2022
Multimodal Machine Learning ApplicationsComputer Science6 citations
TL;DR

PnP-VQA is a plug-and-play framework for zero-shot visual question answering that combines a pretrained vision-language model, a question-guided captioning module, and a pretrained language model without any additional training. By generating informative, answer-relevant captions using network interpretability and fusing them into a decoder, it achieves state-of-the-art performance—surpassing Flamingo (80B) by 8.5% on VQAv2 and FewVLM by 9.1% on GQA—demonstrating the power of modular, zero-training integration of foundation models.

ABSTRACT

Visual question answering (VQA) is a hallmark of vision and language reasoning and a challenging task under the zero-shot setting. We propose Plug-and-Play VQA (PNP-VQA), a modular framework for zero-shot VQA. In contrast to most existing works, which require substantial adaptation of pretrained language models (PLMs) for the vision modality, PNP-VQA requires no additional training of the PLMs. Instead, we propose to use natural language and network interpretation as an intermediate representation that glues pretrained models together. We first generate question-guided informative image captions, and pass the captions to a PLM as context for question answering. Surpassing end-to-end trained baselines, PNP-VQA achieves state-of-the-art results on zero-shot VQAv2 and GQA. With 11B parameters, it outperforms the 80B-parameter Flamingo model by 8.5% on VQAv2. With 738M PLM parameters, PNP-VQA achieves an improvement of 9.1% on GQA over FewVLM with 740M PLM parameters. Code is released at https://github.com/salesforce/LAVIS/tree/main/projects/pnp-vqa

Motivation & Objective

  • To enable zero-shot visual question answering without fine-tuning or architectural modifications to pretrained language models.
  • To address the challenge of bridging vision and language modalities in zero-shot settings using only off-the-shelf, pretrained components.
  • To develop a modular, flexible framework that dynamically integrates advances in vision and language foundation models without retraining.
  • To improve performance on VQA benchmarks by leveraging informative, question-relevant image captions as an intermediate representation.

Proposed method

  • Utilizes a pretrained vision-language model (BLIP) to generate image captions that are relevant to the input question.
  • Applies Grad-CAM-based network interpretability to identify image patches most relevant to the question.
  • Generates diverse, stochastic captions from the question-relevant image patches using a vision encoder and decoder.
  • Employs a pretrained language model (UnifiedQAv2) to answer questions based on the generated captions.
  • Uses a fusion-in-decoder mechanism to combine up to 100 question-guided captions for improved answer generation.
  • Relies solely on inference from pretrained models, with no additional training or architectural changes.

Experimental results

Research questions

  • RQ1Can a zero-shot VQA system be built using only off-the-shelf, unmodified pretrained models without any fine-tuning or architectural modifications?
  • RQ2How effective is using natural language and network interpretability as an interface to connect vision and language models for VQA?
  • RQ3To what extent can question-guided, informative image captions improve zero-shot VQA performance compared to generic captions?
  • RQ4How does the number of generated captions affect answer accuracy and model robustness in a plug-and-play setting?
  • RQ5Can a modular, zero-training framework outperform end-to-end trained models like Flamingo and FewVLM on zero-shot VQA benchmarks?

Key findings

  • PnP-VQA with 11B parameters achieves 63.3% accuracy on VQAv2, outperforming the 80B-parameter Flamingo model by 8.5%.
  • On the GQA benchmark, PnP-VQA (738M parameters) achieves 41.9% accuracy, surpassing FewVLM (740M parameters) by 9.1%.
  • The use of question-guided captioning increases the answer hallucination rate (AHR) from 71.8% to 84.0% as the number of captions increases from 20 to 100, indicating higher answer relevance.
  • Stochastic caption decoding methods (e.g., nucleus sampling) outperform deterministic beam search, which produces repetitive and less diverse captions.
  • The choice of the question-answering model significantly impacts performance, with task-specific models like UnifiedQAv2 yielding superior results compared to general-purpose models like T0 or GPT-J.
  • The framework demonstrates that high performance in zero-shot VQA is achievable through modular composition of pretrained models, without any end-to-end training.

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.