Abstract
Retrieval-augmented generation (RAG) has emerged to address the knowledge-intensive visual question answering (VQA) task. Current methods mainly employ separate retrieval and generation modules to acquire external knowledge and generate answers, respectively. We propose ReAuSE, an alternative to the previous RAG model for the knowledge-based VQA task, which seamlessly integrates knowledge retriever into the generative multi-modal large language model, serving as a built-in search engine. Specifically, our model functions both as a generative retriever and an accurate answer generator. It not only helps retrieve documents from the knowledge base by producing identifier for each document, but it also answers visual questions based on the retrieved documents. Furthermore, we also propose a reinforced retrieval calibration module from relevance feedback to improve retrieval performance and align with the preferences for accurate answer generation. Extensive experiments on two representative OKVQA and A-OKVQA datasets demonstrate significant improvements ranging from 2.9% to 9.6% across all evaluation metrics when compared to strong baselines.
Introduction: The "Two-Island" Problem in KBVQA
Knowledge-based Visual Question Answering (KBVQA) requires models to interpret visual information and query external knowledge bases (like Wikipedia) to provide accurate answers. Traditional Retrieval-Augmented Generation (RAG) pipelines for this task are often fragmented, stitching together heterogeneous models: a discriminative retriever to calculate similarity scores and a generative engine to produce the final answer.
This "two-island" approach suffers from two major flaws. First, there is an optimization gap; it is difficult to train a separate retriever to improve based on whether the answer engine actually finds the retrieved document useful. Second, the architectural complexity of managing image-to-text, text-to-text, and multi-modal models makes these systems cumbersome and difficult to scale.
The ReAuSE Framework
The proposed ReAuSE (Retrieval-Augmented with Built-in Autoregressive Search Engines) framework transforms retrieval into a generative task. Instead of calculating similarity vectors, the model—based on MiniGPT4-v2—is trained to "write out" the unique identifier of a relevant document.
Generative Retrieval and Constrained Decoding
ReAuSE treats retrieval as a sequence-to-sequence task. Given an image and a question, the model generates a "Document Identifier." To prevent the model from hallucinating non-existent IDs, the authors employ an FM-Index data structure. This ensures that at each decoding step, the model is restricted to tokens that form a valid identifier within the knowledge base.
Reinforced Retrieval Calibration (RRC)
A core innovation of ReAuSE is the Reinforced Retrieval Calibration module. Using Direct Preference Optimization (DPO), the model is fine-tuned to prefer documents that lead to higher answer accuracy.
The RRC module utilizes three specific reward signals to calibrate the retriever:
- VQA Score: Direct feedback on whether the document led to the correct answer.
- Keyword Hit: Whether the document contains tokens from the ground-truth answer.
- Semantic Similarity: The traditional measure of how closely the document matches the query.
Experimental Results
ReAuSE was evaluated on the OKVQA and A-OKVQA datasets using knowledge bases ranging from 112,000 passages (GS112K) to 21 million entries (Wiki21M).
- State-of-the-Art Performance: ReAuSE achieved a VQA score of 65.7 on OKVQA, outperforming the previous best retrieval method (FLMR) by 2.9% and surpassing GPT-4V (64.3).
- Scalability: On the massive Wiki21M corpus, traditional discriminative methods often see performance drops of up to 20%. ReAuSE maintained robustness, with only a 4.6% drop, demonstrating that generative retrieval scales more effectively with corpus size.
- Efficiency: Despite the autoregressive nature of the search, ReAuSE remains computationally viable, adding only approximately 440ms of latency compared to faster but significantly less accurate baselines.
Conclusion
ReAuSE demonstrates that Multi-modal Large Language Models (MLLMs) can serve as effective built-in search engines. By unifying retrieval and generation into a single architecture and closing the feedback loop via DPO, the framework achieves significant performance gains. Future work will focus on adapting this autoregressive search approach to specialized domains and further optimizing the speed of token-by-token identifier generation.
Summary updated