Abstract
Zero-shot Knowledge-based Visual Question Answering (K-VQA) requires models to reason using external information not present in the image pixels. We present KGENVQA, a framework that leverages Large Language Models (LLMs) to explicitly generate and diversify relevant knowledge statements before answering. This "Generate and Answer" paradigm improves both accuracy and interpretability, outperforming existing zero-shot methods on major benchmarks like OK-VQA and A-OKVQA without requiring task-specific training.
Introduction
Standard Visual Question Answering (VQA) typically involves describing visible elements (e.g., "What color is the car?"). In contrast, Knowledge-based VQA (K-VQA) requires information external to the image (e.g., "In what year was this model of car first produced?").
Existing approaches generally follow two paradigms: Retrieve and Answer, which relies on searching massive external databases like Wikipedia, and Directly Answer, which prompts an LLM to provide an answer based on implicit knowledge. The former is computationally expensive and dependent on database quality, while the latter lacks transparency and often fails to activate the correct facts within the LLM. KGENVQA introduces a third paradigm: Generate and Answer.
The KGENVQA Framework
The KGENVQA framework operates in three distinct stages to bridge the gap between visual input and external knowledge:
- Question-Aware Captioning: The system generates image captions specifically tailored to the question, ensuring that relevant visual details are converted into text for the LLM.
- Two-Step Knowledge Generation:
- Initial Generation: Using a few manual examples, the model generates an initial knowledge statement for the image-question pair.
- Self-supervised Diversification: To prevent repetitive or narrow facts, the system uses K-means clustering on initial statements to select diverse demonstrations for a second round of generation. This ensures the LLM produces a set of distinct, relevant facts (e.g., geographical vs. biological facts).
- Knowledge Integration: The question, captions, and the generated set of facts are fed into a separate QA model (such as UnifiedQA or OPT) to produce the final answer.
Key Insights and Results
The researchers evaluated KGENVQA on the OK-VQA and A-OKVQA benchmarks. A primary finding was that making knowledge explicit significantly boosts performance; for instance, GPT-3 accuracy on a subset of OK-VQA rose from 27.4% to 34.1% simply by including five generated facts.
However, the study also identified a "Goldilocks zone" for knowledge: performance typically peaks at 5 to 10 statements. Exceeding 20 statements often introduces noise that confuses the QA model, leading to decreased accuracy. Furthermore, the diversification step using K-means was found to be significantly more effective than random selection, ensuring a broader reasoning path.
As shown in the results, KGENVQA (using UnifiedQA-11B) achieved 45.4% accuracy on OK-VQA, surpassing previous leading zero-shot models like Img2LLM (41.8%). On the more challenging A-OKVQA dataset, it reached 39.1%, demonstrating robust performance across different knowledge domains.
Conclusion and Future Work
KGENVQA demonstrates that for complex visual reasoning, explicit "pre-reflection" by an LLM is highly effective. Beyond performance gains, the framework provides an interpretable reasoning path, allowing users to verify the facts the model used to reach its conclusion.
Future work may address the "captioning bottleneck," where missing visual details in the initial text conversion can lead to irrelevant knowledge generation. Integrating more advanced vision-language models that process images directly could further refine this promising "Generate and Answer" paradigm.
Summary updated