Towards Multimodal Retrieval-Augmented Generation for Medical Visual Question Answering

Mai A. Shaaban, Mohammad Reza Zarei, Adnan Khan, Abbas Akkasi, Mohammad Yaqub, Majid KomeiliResearch Square 2025

Abstract

Medical visual question answering (MedVQA) is a critical AI healthcare task that combines medical image analysis with natural language understanding to assist clinicians in decision-making. While medical vision-language models have shown promise in this domain, they struggle with factual inaccuracies and hallucinations. Retrieval-augmented generation (RAG) improves the factual accuracy by grounding responses in external knowledge, yet text-only or image-only retrieval systems struggle with the inherently multimodal nature of medical data, leading to information loss. This paper proposes a novel multimodal RAG framework tailored for MedVQA, which leverages multimodal data, including medical images, reports, and generated captions, to provide more accurate clinical answers. We introduce a training paradigm that uses captions as auxiliary supervision, enhancing cross-modal alignment via contrastive learning. Comprehensive evaluations on MedVQA benchmarks demonstrate the framework’s effectiveness, achieving a 7% average accuracy improvement over unimodal RAG baselines. Our study has the potential to better support clinicians in delivering accurate, timely, and trustworthy patient care by improving the reliability of MedVQA systems.

Introduction

Medical Visual Question Answering (MedVQA) requires AI systems to interpret complex medical imagery, such as X-rays or CT scans, to answer specific clinical queries. Despite the advancements in Vision-Language Models (VLMs), these systems frequently suffer from "hallucinations"—generating responses that are linguistically fluent but medically inaccurate. While standard Retrieval-Augmented Generation (RAG) addresses this by grounding models in external knowledge, traditional RAG often faces a "unimodal bottleneck." Text-only retrieval may miss visual nuances, while image-only retrieval lacks the expert context found in radiology reports. This research introduces MM-RAG-MedVQA, a framework designed to fuse these modalities for more reliable clinical support.

Methodology

The proposed MM-RAG-MedVQA framework utilizes a three-stage pipeline to ensure high-fidelity cross-modal alignment.

The MM-RAG-MedVQA architecture featuring captioning, multimodal retrieval, and answer generation stages.
  1. Caption Generation: A frozen medical VLM (MAIRA-2) generates a descriptive caption for the query image. This caption serves as a semantic bridge, converting visual features into standardized clinical terminology.
  2. Multimodal Retrieval: Using a fine-tuned BioMedCLIP model, the system creates joint embeddings of the image and its caption. It then queries a vector database (Qdrant) to retrieve the most relevant image-report pairs.
  3. Auxiliary Supervision: The retrieval encoders are fine-tuned using contrastive learning (InfoNCE loss), with generated captions acting as auxiliary signals to align specific image regions with medical descriptors.
  4. Answer Generation: The final answer is produced by a frozen medical VLM (LLaVA-Med), which processes the query image, the generated caption, the question, and the retrieved reports.

Experimental Setup

The framework was evaluated using several cornerstone datasets:

  • MIMIC-CXR-JPG: A knowledge base was constructed from 1,400 sampled image-report pairs across 14 diagnostic classes.
  • MIMIC-CXR-VQA: A standard benchmark for chest X-ray questions.
  • Medical-Diff-VQA: A challenging dataset focused on comparative abnormalities (e.g., changes in severity), where multimodal integration is particularly crucial.

Results and Discussion

MM-RAG-MedVQA demonstrated a significant performance leap over both standalone generation and unimodal RAG baselines, achieving a 7% average accuracy improvement.

Qualitative comparison showing how multimodal retrieval correctly identifies conditions that text-only or image-only systems miss.

Key performance metrics include:

  • Accuracy: 53.48% on MIMIC-CXR-VQA and 67.98% on Medical-Diff-VQA.
  • Reliability: G-Eval scores reached 61.90% for faithfulness and 86.54% for completeness, indicating grounded and thorough responses.
  • Qualitative Success: The multimodal approach excelled at localizing specific conditions, such as a "small left apical pneumothorax," which unimodal systems often misidentified or overlooked.

The use of captions as "semantic proxies" proved vital. By providing spatially aligned findings, captions allowed the retriever to identify relevant documents that raw image embeddings might ignore. Furthermore, the "cross-modal verification" prompting strategy helped the LLM prioritize information where reports and image descriptions converged, further mitigating hallucinations.

Limitations and Future Outlook

While promising, the study identified several areas for improvement. Performance was found to degrade when retrieving more than 10 reports, suggesting that excessive "noise" can confuse the generative model. Future work will explore more sophisticated semantic matching beyond cosine similarity and investigate ways to bridge the remaining faithfulness gap to reach human-expert levels. Currently, the system is intended as a clinical adjunct rather than a replacement for professional judgment.

Summary updated

BibTeX
@inproceedings{shaaban2025towards,
  author = {Mai A. Shaaban and Mohammad Reza Zarei and Adnan Khan and Abbas Akkasi and Mohammad Yaqub and Majid Komeili},
  title = {{Towards Multimodal Retrieval-Augmented Generation for Medical Visual Question Answering}},
  booktitle = {Research Square},
  year = {2025},
  doi = {10.21203/rs.3.rs-7752202/v1},
}
Figure