A Symmetric Dual Encoding Dense Retrieval Framework for Knowledge-Intensive Visual Question Answering

Alireza Salemi, Juan Altmayer Pizzorno, Hamed Zamani

Introduction

Knowledge-Intensive Visual Question Answering (KI-VQA) represents a significant advancement over standard VQA tasks. While traditional VQA focuses on identifying visual attributes within an image (e.g., "What color is the car?"), KI-VQA requires the integration of external world knowledge to answer questions that cannot be solved by visual inspection alone (e.g., "In what year was this model of car first produced?").

To address this, modern systems typically employ a two-stage "Retriever-Reader" pipeline. A retriever identifies relevant text passages from a massive corpus, such as Wikipedia, and a reader then processes the image, the question, and the retrieved passages to generate an answer. However, these systems often suffer from a "modality gap": the query is multi-modal (image and text), while the knowledge base is uni-modal (text only). Previous approaches used mismatched encoders for these different modalities, leading to sub-optimal retrieval due to a fundamental semantic gap. Researchers from UMass Amherst have proposed a new framework to bridge this gap using a symmetric retriever called DEDR and a multi-modal reader called MM-FiD.

The DEDR Framework: Achieving Retrieval Symmetry

The core innovation of the Symmetric Dual Encoding Dense Retrieval (DEDR) framework is ensuring that both sides of the retrieval process—the query and the document—are mapped into the same embedding space by symmetric encoders. The researchers explored two primary paths to achieve this symmetry:

1. Unified Uni-Modal Encoding

In this approach, the image is converted into a text caption using ExpansionNet v2. This transforms the multi-modal query into a purely textual representation, allowing a standard BERT encoder to be used for both the query and the knowledge passages. By reducing the problem to a text-to-text retrieval task, the model avoids the modality gap entirely.

2. Unified Multi-Modal Encoding

Alternatively, the framework uses a multi-modal encoder (LXMERT). To make text-only passages compatible with this encoder, the researchers developed a technique called Passage Expansion using Masked Image Representation (PEMIR). PEMIR essentially provides a "masked" or blank visual input for the text passages, allowing the multi-modal encoder to process them as if they were multi-modal inputs.

Iterative Knowledge Distillation

To further refine these models, the researchers employed Iterative Knowledge Distillation. By alternating the roles of "teacher" and "student" between the uni-modal and multi-modal models, the framework forces both to learn from each other’s perspectives. This alignment tool helps different encoding strategies converge on a superior shared representation, capturing both text-heavy and visual-heavy nuances.

MM-FiD: Multi-Modal Fusion-in-Decoder

Once the relevant passages are retrieved, the Multi-Modal Fusion-in-Decoder (MM-FiD) acts as the reader. MM-FiD extends the popular Fusion-in-Decoder architecture to handle visual data by encoding the question, the image, and each retrieved passage as separate triplets. These representations are concatenated and fed into a single decoder to generate the final answer. This approach is computationally efficient and allows the model to consider dozens of passages simultaneously, providing a broader context for the final answer generation.

Experimental Results

The DEDR/MM-FiD pipeline was evaluated on two benchmark datasets: OK-VQA (Outside-Knowledge VQA) and FVQA (Fact-based VQA). The results demonstrated significant improvements over previous state-of-the-art models:

  • Retrieval Performance: DEDR improved the Mean Reciprocal Rank (MRR) by 11.6% on OK-VQA and a remarkable 30.9% on FVQA.
  • End-to-End Accuracy: The full pipeline achieved a 5.5% improvement in answering accuracy on OK-VQA and an 8.5% improvement on FVQA.

Interestingly, the researchers found that uni-modal and multi-modal encoders provide complementary perspectives. While 50% of queries were handled well by both, the remaining 50% were split between those requiring a text-heavy view and those requiring a visual-heavy view, justifying the use of distillation to merge these strengths.

Limitations and Future Directions

Despite the performance gains, the researchers identified several areas for future work. In datasets like FVQA, where only one specific fact is usually correct, retrieving too many passages can sometimes confuse the reader. Future iterations may focus on "learning when to stop" or predicting the optimal number of passages for a given query. Additionally, while MM-FiD is efficient, processing numerous image-text-passage triplets remains computationally intensive. The team aims to explore more "universal" models that can handle multi-modal inputs natively without the need for intermediate modules like image captioners.

Summary updated

BibTeX
@inproceedings{salemi2023symmetric,
  author = {Alireza Salemi and Juan Altmayer Pizzorno and Hamed Zamani},
  title = {{A Symmetric Dual Encoding Dense Retrieval Framework for Knowledge-Intensive Visual Question Answering}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2023},
}
Figure