Abstract
Knowledge-Based Visual Question Answering (KB-VQA) requires models to integrate visual information with external world knowledge. Current state-of-the-art approaches often rely on proprietary large language models (LLMs), expensive APIs, and complex external database retrieval systems. This paper introduces a simple, training-free baseline for KB-VQA that utilizes the open-source LLaMA-13B model. By focusing on "question-informative" image captions and a similarity-based in-context learning strategy, the proposed pipeline achieves state-of-the-art results on the OK-VQA and A-OK-VQA benchmarks. Our findings suggest that the quality of visual-to-text translation is a more significant bottleneck than model size or explicit knowledge retrieval.
Introduction
Standard Visual Question Answering (VQA) tasks typically require a model to describe visible attributes of an image (e.g., "What color is the car?"). In contrast, Knowledge-Based VQA (KB-VQA) demands reasoning that extends beyond the image frame (e.g., "In what era was this style of car popular?").
Historically, the most successful solutions for KB-VQA have been computationally heavy and difficult to reproduce. They generally rely on three pillars: proprietary LLMs like GPT-3, complex pipelines to query external databases like Wikipedia or Wikidata, and specialized training to fuse visual and textual data. This research seeks to establish a "simple baseline"—a method that is easy to implement, uses open-source tools, and requires zero additional training or fine-tuning.
Methodology
The proposed pipeline is a plug-and-play system that relies on three primary components: question-informative captioning, smart in-context learning, and an open-source LLM backbone.
1. Question-Informative Captions
Generic image captions often fail to capture the specific details necessary to answer a knowledge-based question. For instance, a generic caption might describe "a man in a kitchen," while the question asks about the specific brand of appliance visible in the background. To solve this, the authors utilize the PNPVQA framework to generate 50 captions specifically guided by the question. These captions are then ranked using BLIP (Bootstrapping Language-Image Pre-training) to select the most relevant visual descriptions. This ensures the LLM receives the precise visual context required for reasoning.
2. Smart In-Context Learning (ICL)
To guide the LLM, the system provides a few-shot prompt containing example question-answer pairs. Rather than selecting these examples at random, the authors use BLIP embeddings to identify training examples where the image and question are most similar to the current test case. This similarity-based selection helps the model better understand the specific domain of the query.
3. LLaMA as the Knowledge Backbone
The authors replace the industry-standard GPT-3 (175B parameters) with the open-source LLaMA-13B. Despite its smaller size, LLaMA serves as an effective implicit knowledge base. The final inference process uses a "multi-query ensemble," where the model is prompted multiple times with different sets of examples, and the final answer is determined by a majority vote.
Experimental Results
The model was evaluated on two primary benchmarks: OK-VQA and A-OK-VQA.
Performance on OK-VQA
The simple baseline achieved an accuracy of 61.2%, setting a new state-of-the-art (SOTA) record. This performance narrowly surpassed the previous leader, Prophet (61.1%), which relies on the much larger, proprietary GPT-3 model.
Performance on A-OK-VQA
On the Direct Answer (DA) task of the A-OK-VQA benchmark, the method achieved 58.6% (Val) and 57.5% (Test). These results outperformed significantly more complex, supervised systems that require extensive training.
Efficiency and Reproducibility
By utilizing LLaMA-13B, the entire pipeline can be run on a single 40GB VRAM GPU (such as an NVIDIA A100). This makes the research significantly more accessible and reproducible compared to methods dependent on expensive third-party APIs.
Discussion and Key Insights
Context Quality vs. Model Size
A primary finding of this research is that context quality is more critical than raw parameter count. LLaMA-13B, when provided with question-specific captions, outperformed models many times its size—such as the 80B parameter Flamingo—that utilized generic captions.
The Visual-to-Text Bottleneck
The transition from generic captions to question-informative captions resulted in a massive accuracy jump on OK-VQA, from 43.35% to 57.56%. This suggests that the primary bottleneck in KB-VQA is often the "visual-to-text" translation rather than the LLM's internal reasoning capabilities.
Implicit vs. Explicit Knowledge
Interestingly, the authors found that adding an explicit external knowledge base (retrieving passages from Wikipedia) did not improve results. This indicates that modern LLMs already possess sufficient implicit knowledge to handle these benchmarks, provided the visual context is clearly articulated in the prompt.
Limitations and Future Work
While the baseline is highly effective, it remains sensitive to prompt construction and the number of "shots" included in the context. Furthermore, the system is still limited by the intermediate captioning step; if the captioner fails to describe a critical visual detail, the LLM cannot recover that information. Future research may explore tighter integration between vision and language components while maintaining the simplicity and training-free nature of this baseline.
Summary updated