Zero-shot Visual Question Answering with Language Model Feedback

Yifan Du, Junyi Li, Tianyi Tang, Wayne Xin Zhao, Ji-Rong Wen

Abstract

Knowledge-based Visual Question Answering (VQA) requires models to integrate visual information with external world knowledge. Current zero-shot approaches often struggle because image captioning models generate generic descriptions that lack the specific details necessary for reasoning. This paper introduces LAMOC (LAnguage MOdel guided Captioning), a framework that uses a Pre-trained Language Model (PLM) to provide feedback to a captioning model. By optimizing the captioner to produce question-aware descriptions through adaptation and reinforcement learning, LAMOC achieves state-of-the-art zero-shot performance on benchmarks like OK-VQA and A-OKVQA.

Introduction: The Information Gap in Zero-shot VQA

In the domain of Visual Question Answering, "knowledge-based" tasks represent a significant challenge. These tasks require a model to not only identify objects in an image but also reason about them using outside world knowledge. For instance, answering "What is the white substance on top of these cupcakes?" requires identifying "icing" or "frosting," which may not be present in a standard image description.

Current zero-shot methods typically employ a pipeline where a captioning model describes the image, and a PLM uses that text to answer the question. However, a major bottleneck exists: the captioning model is often "blind" to the specific question being asked. It might generate a generic description such as "A person taking a picture of cupcakes," which omits the critical visual cues needed by the PLM. This "information gap" prevents the reasoning engine from accessing the necessary context.

Figure 1: Generic captioning models often fail to capture the specific visual details required for knowledge-based reasoning.

The LAMOC Framework

To address this gap, the authors propose LAMOC, which optimizes a captioning model (BLIP) using feedback from a prediction model (FLAN-T5). The framework operates in two distinct stages:

Stage I: Captioning Adaptation

In this stage, the system generates multiple candidate captions for image-question pairs. The PLM (FLAN-T5) acts as a "grader," scoring these captions based on their relevance to the question. The captioning model is then fine-tuned on this filtered, "informative" dataset, learning to prioritize task-relevant details over generic descriptions.

Stage II: Feedback-based Learning

The second stage utilizes Reinforcement Learning (RL) to further refine the model. The captioning model acts as the agent, while the PLM serves as the environment providing two types of rewards:

  1. Prompt-based Reward: A heuristic score indicating how well a caption aligns with the question's context.
  2. Confidence-based Reward: The probability score the PLM assigns to its most confident answer. If a specific caption increases the PLM's certainty, the captioner receives a higher reward.
Figure 5: The complete LAMOC architecture, showing the two-stage training process and the final zero-shot inference strategy.

During inference, LAMOC generates diverse captions for different image patches and employs a majority voting strategy across the PLM's predicted answers to determine the final output.

Experimental Results

The framework was evaluated on two primary benchmarks for knowledge-based VQA: OK-VQA and A-OKVQA. LAMOC achieved state-of-the-art results for zero-shot methods:

  • OK-VQA: Achieved a score of 40.3, surpassing previous models like PNP-VQA (35.9) and Img2Prompt (39.9).
  • A-OKVQA: Reached 37.9, a significant improvement over the previous best of 36.0.

The study also found that performance scales positively with the size of the PLM (tested up to 11B parameters), suggesting that more powerful "coaches" lead to better captioning performance.

Key Insights and Discussion

A central finding of this research is that ground-truth human answers are not strictly necessary to train effective VQA systems. The "frozen" internal knowledge of a large-scale PLM can effectively guide a vision model toward generating more useful descriptions. Furthermore, the authors identified a strong correlation between PLM confidence and actual VQA accuracy, validating the use of confidence-based rewards in the RL loop.

Qualitative analysis showed that LAMOC generates more comprehensive captions containing specific keywords (e.g., "uniforms," "white sheets") that generic models miss. This task-awareness bridges the semantic gap between raw pixels and linguistic reasoning.

Limitations and Future Work

Despite its success, LAMOC faces challenges such as linguistic bias, where the PLM might provide a correct answer based on word associations rather than visual evidence. Additionally, RL-optimized captions can sometimes sacrifice grammatical correctness for utility. Future work will explore the scalability of this approach to "frontier" models like GPT-4 and investigate methods to mitigate potential hallucinations where the captioner might invent details to satisfy the PLM's reward signal.

Summary updated

BibTeX
@inproceedings{du2023zero,
  author = {Yifan Du and Junyi Li and Tianyi Tang and Wayne Xin Zhao and Ji-Rong Wen},
  title = {{Zero-shot Visual Question Answering with Language Model Feedback}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.590},
}
Figure