Introduction
Standard Visual Question Answering (VQA) tasks require models to reason about information explicitly contained within image pixels. However, Outside-Knowledge VQA (OK-VQA) presents a more significant challenge: answering questions that require external information not present in the visual input. For instance, identifying a car model is a standard VQA task, but determining the year that specific model was first produced requires external knowledge.
Current state-of-the-art (SOTA) systems typically address this through a decoupled two-stage pipeline: a retrieval stage using Dense Passage Retrieval (DPR) to find relevant documents (e.g., from Wikipedia), followed by a generation stage where a language model processes the image and retrieved text. This separation often leads to a "coordination gap" where the retriever is unaware of the generator's needs, and the generator must process irrelevant or misleading documents. To compensate, these models often require retrieving a massive number of documents during training, leading to high computational overhead.
The RA-VQA Framework
To bridge this gap, researchers at the University of Cambridge introduced RA-VQA (Retrieval Augmented Visual Question Answering). This framework jointly trains the document retriever and the answer generator, allowing for a synergistic learning process that improves both accuracy and efficiency.
The RA-VQA architecture is built upon three core innovations:
1. Vision-to-Language Transformation
Rather than processing raw pixels directly through a Transformer, RA-VQA converts the image into a comprehensive text description. This is achieved by combining multiple vision experts:
- VinVL for object and attribute detection.
- Oscar+ for generating descriptive image captions.
- Google OCR to extract any textual information present in the image. By mapping the image into the same "language space" as the question and the knowledge base, the model simplifies the cross-modal alignment problem.
2. Joint Training Scheme
The primary innovation of RA-VQA is its differentiable joint training. By integrating a DPR retriever with a T5 answer generator, the system optimizes a unified loss function. The retriever is not merely rewarded for finding documents that contain the answer string ("pseudo-relevance"); it is specifically rewarded for retrieving documents that enable the generator to produce the correct answer. This feedback loop ensures the retriever learns to prioritize contextually relevant information over simple keyword matches.
3. Customized Generation Targets
To provide a clearer supervision signal, the authors implemented customized generation targets. Instead of forcing the model to predict a single "gold standard" human answer regardless of the retrieved context, the target is adapted based on the specific document being processed. If a retrieved document contains a valid (though perhaps less frequent) answer, the generator is trained to produce that specific answer, reducing noise during the learning process.
Experimental Results
The framework was evaluated primarily on the OK-VQA dataset, utilizing a knowledge corpus of approximately 168,000 documents (GS-full).
Performance and Efficiency
RA-VQA achieved a SOTA VQA score of 54.48, surpassing previous models like KAT and TRiG. Notably, RA-VQA (utilizing a T5-large backbone with 770M parameters) outperformed systems based on GPT-3 (175B parameters). This suggests that the structural integration of knowledge is more impactful than raw model scale for this task.
Furthermore, the joint training approach significantly improved computational efficiency. RA-VQA reached peak performance by retrieving only 5 documents during training ($K_{train}=5$), whereas previous decoupled systems often required between 40 and 100 documents to achieve comparable results.
Diagnostic Metrics: HSR and FSR
The researchers introduced two new metrics to better understand the role of retrieval:
- Hit Success Ratio (HSR): Measures how often the model correctly utilizes external knowledge.
- Free Success Rate (FSR): Measures the model's ability to answer correctly using only its internal "closed-book" knowledge. These metrics confirmed that the joint training approach specifically enhances the model's ability to leverage external documents rather than just relying on memorized facts.
Discussion and Future Work
While RA-VQA represents a significant advancement, several challenges remain. The conversion of images to text descriptions can lead to the loss of fine-grained spatial relationships. Additionally, while training is more efficient, the system still requires maintaining a large-scale document index (FAISS).
Future research may explore iterative retrieval or "chain-of-thought" reasoning to handle questions requiring complex, multi-step logic. Nevertheless, RA-VQA demonstrates that joint optimization of retrieval and generation is a powerful paradigm for knowledge-intensive visual tasks.
Summary updated