Abstract
In this work, we address multi-modal information needs that contain text questions and images by focusing on passage retrieval for outside-knowledge visual question answering. This task requires access to outside knowledge, which in our case we define to be a large unstructured passage collection. We first conduct sparse retrieval with BM25 and study expanding the question with object names and image captions. We verify that visual clues play an important role and captions tend to be more informative than object names in sparse retrieval. We then construct a dual-encoder dense retriever, with the query encoder being LXMERT, a multi-modal pre-trained transformer. We further show that dense retrieval significantly outperforms sparse retrieval that uses object expansion. Moreover, dense retrieval matches the performance of sparse retrieval that leverages human-generated captions.
Introduction
Standard Visual Question Answering (VQA) tasks typically focus on questions that can be answered by analyzing the visual content of an image directly (e.g., "How many chairs are there?"). In contrast, Outside-Knowledge VQA (OK-VQA) presents a more complex challenge: answering questions that require information not present in the pixels themselves. For instance, identifying the specific breed of an animal or the historical era of an architectural style requires external knowledge.
To address this, systems must implement a "retrieve-and-read" pipeline. The primary bottleneck is the retrieval phase: searching a massive library—such as 11 million Wikipedia passages—using a query composed of both text and an image. This research investigates how to effectively integrate visual signals into both traditional sparse and modern dense retrieval models.
Methodology
The study explores two primary retrieval paradigms to bridge the gap between visual queries and text-based knowledge sources.
Sparse Retrieval (BM25)
Since traditional sparse retrieval models like BM25 are text-only, the researchers "translate" images into descriptive text to expand the query. Two methods were tested:
- Object Names: Appending names of detected objects (e.g., "bear," "tree").
- Image Captions: Appending descriptive sentences (e.g., "A large brown bear standing in a forest"). Rank Fusion techniques, such as CombMAX and Reciprocal Rank Fusion, were then used to merge results from these different expanded queries.
Dense Retrieval (Dual-Encoders)
The dense retrieval approach represents both the multi-modal query and the text passages as high-dimensional vectors in a shared embedding space.
- Query Encoder: The model utilizes LXMERT, a transformer-based architecture pre-trained on both images and text, to generate a unified representation of the visual and textual query components.
- Passage Encoder: BERT is used to encode the Wikipedia passages.
- Training: The system is trained to minimize the distance between the query vector and the "positive" passage (containing the answer) while maximizing the distance to "negative" passages. The researchers found that incorporating in-batch negatives—using passages from other questions within the same training batch—was essential for training efficiency and accuracy.
Key Insights and Results
The performance was evaluated using Mean Reciprocal Rank (MRR@5) and Precision (P@5) against a collection of 11 million Wikipedia passages.
- Visual Context is Crucial: In sparse retrieval, image captions proved significantly more effective than simple object lists. Captions provide the necessary context and relational data (e.g., "bear catching a fish") to filter out irrelevant information.
- Dense Retrieval Superiority: The multi-modal dense retriever (Dense-LXMERT) significantly outperformed sparse retrieval based on object names. This indicates that the model successfully learns complex visual-textual relationships that keyword expansion fails to capture.
- Matching Human Performance: Remarkably, the automated Dense-LXMERT model achieved an MRR@5 of 0.4526, nearly doubling the performance of the text-only baseline (0.2637) and matching the performance of sparse retrieval using human-annotated captions (0.4622). This suggests that learned multi-modal encoders can extract retrieval signals from raw pixels as effectively as humans can through written descriptions.
- Ablation Study: Using a text-only BERT encoder for the query (ignoring the image) resulted in lower performance, confirming that the visual signal is indispensable for accurate retrieval in OK-VQA.
Conclusion
This work demonstrates that multi-modal dense retrievers are highly effective for outside-knowledge retrieval tasks. By leveraging pre-trained transformers like LXMERT, systems can effectively search massive text corpora using visual queries, closing the gap between automated systems and human-level descriptive capabilities. Future work will focus on integrating these retrievers with "reader" models to extract precise answers and exploring the performance of automatically generated captions in the retrieval pipeline.
Summary updated