RAMQA: A Unified Framework for Retrieval-Augmented Multi-Modal Question Answering

Yang Bai, Christan Grant, Daisy Zhe WangNAACL 2025

Introduction

Multi-modal Retrieval-Augmented Question Answering (MRAQA) is a complex task that requires systems to navigate vast collections of text and images to find relevant information and synthesize it into a coherent answer. Current systems often face architectural mismatches between traditional encoder-based rankers and modern decoder-only generative Large Language Models (LLMs). Furthermore, processing multiple images simultaneously remains a significant bottleneck due to sequence length constraints and the high computational cost of visual features.

An example of the multi-modal retrieval task, where the system must distinguish between various sheep breeds across text and image documents.

The RAMQA Framework

RAMQA introduces a unified two-stage pipeline designed to bridge these gaps by combining specialized ranking with generative power.

Stage 1: RankLLaVA (Pointwise Ranking)

The first stage employs RankLLaVA, a pointwise ranker built on the LLaVA-1.5-7B architecture. Unlike traditional encoders, RankLLaVA uses the hidden representation of the end-of-sequence token to generate relevance scores for (Question, Document) pairs. This stage effectively narrows the search space from a massive corpus to the top-k most relevant candidates.

Data Unification via Image-to-Text

To handle multiple images without exceeding context limits, RAMQA performs zero-shot image-to-text generation. By converting images into detailed textual descriptions using LLaVA, the framework "compresses" visual information. This allows the model to process up to 20 documents simultaneously within a standard LLM context window, leveraging the model's extensive pre-trained textual reasoning capabilities.

Stage 2: RAMLLaMA (Generative Re-ranking & QA)

The final stage utilizes a fine-tuned LLaMA-3-70B model. This model is trained on a multi-task objective: it must perform generative ranking by outputting relevant document IDs and simultaneously generate the final answer. To mitigate document order bias—a common issue where LLMs favor information at the beginning or end of a sequence—the authors implemented permutation-based training, shuffling candidate documents during the fine-tuning process.

Evaluation and Results

The framework was rigorously tested on the WebQA and MultimodalQA benchmarks, which require complex multi-hop reasoning across modalities.

A successful identification of a Manx Loaghtan Ram, demonstrating the model's ability to pinpoint specific attributes like horn count.

RAMQA achieved state-of-the-art results across the board:

  • WebQA: Reached a QA score of 48.1, an 8.3% improvement over the previous state-of-the-art (PERQA).
  • MultimodalQA: Improved Exact Match (EM) scores by 14.0% for text questions and 15.1% for image questions compared to existing baselines.

Ablation studies highlighted the importance of the training strategy; permutation-based training alone contributed a 4.1% boost to the QA score, proving its necessity for robust ranking.

Conclusion and Future Directions

RAMQA demonstrates that "data unification" through image-to-text conversion is a powerful strategy for multi-modal reasoning. While highly effective, the model's performance remains tied to the quality of initial data and the accuracy of zero-shot descriptions. Future work aims to expand the framework to include tables, video, and audio, and to explore more flexible evaluation metrics like LLM-as-a-judge to better capture nuanced, correct answers that may differ from fixed reference sets.

Summary updated

BibTeX
@inproceedings{bai2025ramqa,
  author = {Yang Bai and Christan Grant and Daisy Zhe Wang},
  title = {{RAMQA: A Unified Framework for Retrieval-Augmented Multi-Modal Question Answering}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.findings-naacl.60},
}
Figure