Multi-Level Information Retrieval Augmented Generation for Knowledge-based Visual Question Answering

Omar Adjali, Olivier Ferret, Sahar Ghannay, Hervé Le BorgneEMNLP 2024

Introduction

Knowledge-based Visual Question Answering (KB-VQA) represents a significant challenge in multimodal AI, requiring systems to answer questions about images by retrieving facts from external databases like Wikipedia. Traditional Retrieval Augmented Generation (RAG) systems often struggle with this task because initial queries—typically a combination of an image and a short text string—are inherently ambiguous. If a retriever selects irrelevant information, the subsequent answer generator is prone to hallucination or failure. Furthermore, most existing systems decouple the training of the retriever and the generator, preventing the retriever from receiving feedback on the utility of the documents it finds.

The MiRAG Framework

To address these limitations, we introduce MiRAG (Multi-level information Retrieval Augmented Generation), a framework that implements a "coarse-to-fine" retrieval hierarchy. Instead of attempting to find specific passages in a single step, MiRAG breaks the process into distinct stages:

  1. Entity Retrieval: Utilizing a CLIP-based dual encoder, the system first identifies the primary named entity (e.g., a specific person, landmark, or object) depicted in the image and referenced in the question.
  2. Query Entity Expansion: The identified entity's name is appended to the original text question. This expansion "anchors" the search, providing a precise context for the subsequent retrieval step.
  3. Passage Retrieval: A BERT-based retriever uses the expanded query to search a Knowledge Base (KB) for specific 100-word passages.
  4. Answer Generation: An encoder-decoder model (such as T5-large or BLIP-2) processes the original question, the image, and the retrieved passages to generate a final answer.
Overview of the MiRAG architecture, highlighting the two-stage retrieval process and end-to-end backpropagation.

A core innovation of MiRAG is its joint training capability. By formulating a joint loss function, gradients can flow back through the entire pipeline. This allows the entity and passage retrievers to be updated based on the generator's performance, effectively "teaching" the retrievers to find the specific types of information that the generator finds most useful for producing correct answers.

Experimental Evaluation

We evaluated MiRAG on the ViQuAE (Visual Question Answering about Entities) benchmark. This dataset is particularly challenging as it involves a massive external knowledge base of 1.5 million entities and 11.8 million passages. Crucially, 95.2% of the questions in ViQuAE require external knowledge, making it a robust test for retrieval-augmented systems.

Results and Analysis

MiRAG achieved new state-of-the-art results on the ViQuAE test set. The MiRAG (BLIP-2) configuration reached an Exact Match (EM) score of 36.6 and an F1 score of 41.2, representing a substantial improvement over previous literature baselines like DPR$_{V+T}$.

Comparison of MiRAG with state-of-the-art baselines on the ViQuAE dataset.

Ablation studies confirmed the importance of joint training; when retrievers were kept frozen, the EM score dropped from 36.6 to 35.3. Additionally, the hierarchical retrieval approach significantly improved retrieval quality, achieving a Precision@1 of 30.0% compared to 22.6% for standard Dense Passage Retrieval (DPR).

One of the most striking findings is that MiRAG-enhanced models, such as BLIP-2 (approx. 4.3B parameters), can outperform significantly larger models like few-shot PaLM (540B parameters). This suggests that for knowledge-intensive multimodal tasks, a sophisticated, hierarchical retrieval strategy is more effective than simply increasing model scale.

Conclusion and Future Work

MiRAG demonstrates that hierarchical, multi-level retrieval combined with end-to-end training provides a powerful framework for KB-VQA. By first identifying the subject of a query before searching for details, the system dramatically improves precision. Future work will focus on extending this framework to handle complex scenes with multiple relevant entities and improving the efficiency of joint training for even larger model architectures.

Summary updated

BibTeX
@inproceedings{adjali2024multi,
  author = {Omar Adjali and Olivier Ferret and Sahar Ghannay and Hervé Le Borgne},
  title = {{Multi-Level Information Retrieval Augmented Generation for Knowledge-based Visual Question Answering}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.922},
}
Figure