Introduction
Visual Question Answering (VQA) in the medical domain presents unique challenges compared to general-purpose VQA. Most contemporary models are discriminative, constrained to selecting answers from a fixed vocabulary. This limitation becomes apparent when models encounter new datasets with different label distributions or when free-form textual responses are required. Furthermore, medical AI faces a significant "domain shift" problem; models trained on specific institutional data often struggle to generalize to different imaging modalities or patient demographics.
To address these issues, this research introduces a generative VQA framework enhanced by Multimodal Prompt Retrieval (MPR). By leveraging in-context learning through the retrieval of relevant image-question pairs, the system achieves substantial performance gains in domain adaptation without requiring extensive retraining.
Methodology
The proposed framework shifts the VQA task from a classification problem to a generative one, utilizing a retrieval-augmented pipeline.
The pipeline consists of three primary stages:
- Multimodal Encoding: The input image and question are processed using a pre-trained CLIP model. This creates a joint feature vector that captures the semantic relationship between the visual and textual inputs.
- Multimodal Prompt Retrieval (MPR): The system maintains a "retrieval set"—a memory bank of previously seen VQA examples. Using K-Nearest Neighbors (KNN), the model identifies the most similar image-question pairs from this set based on the encoded features.
- Generative Prompting: The retrieved examples are converted into embeddings and concatenated with the current input. This combined "multimodal prompt" is fed into a T5-small encoder-decoder model, which generates the final answer as free-form text.
To bolster the retrieval set, the authors employed a data augmentation strategy using the ROCO dataset, converting radiology captions into synthetic VQA pairs via rule-based templates.
Datasets
The study evaluated the framework across three key datasets:
- VQA-RAD: A specialized dataset containing 315 patient scans and 3,515 high-quality questions.
- SLAKE: A larger, semantically labeled dataset with over 14,000 VQA pairs.
- ROCO (Radiology Objects in Context): A massive collection of over 81,000 image-caption pairs, used to generate a synthetic VQA dataset of 50,000+ pairs for retrieval augmentation.
Results and Discussion
The MPR framework demonstrated superior performance in domain adaptation tasks, particularly when moving from the SLAKE dataset to VQA-RAD.
Key Performance Insights
- Domain Adaptation and Zero-Shot Learning: In few-shot scenarios, the MPR model outperformed non-retrieval baselines by up to 30% in accuracy. Even in zero-shot settings, the model showed strong generalization by retrieving relevant context from its memory bank.
- Specialized Encoders: Utilizing PubMedCLIP (a version of CLIP fine-tuned on medical literature) provided a significant boost over standard CLIP, as seen in the
MPR_Gen_PMresults in Figure 2. - Mitigating Catastrophic Forgetting: Unlike standard fine-tuning, which often causes a model to "forget" previous knowledge when learning new data, the in-context retrieval approach maintains performance across both source and target domains.
Challenges in Medical Reasoning
Despite these advancements, the model faces difficulties with complex reasoning tasks. As shown in Figure 2, while the model excels at identifying "Presence" or "Modality," it struggles with "Position" (spatial relationships) and "Abnormality" (detecting subtle pathological features). Questions requiring Knowledge Graphs (KG) for external medical logic also remain a hurdle.
Conclusion
The integration of multimodal retrieval into a generative VQA framework offers a robust path forward for medical AI. By treating VQA as a text generation task and providing relevant context through retrieval, the model achieves high adaptability and resilience to domain shift. Future work will focus on scaling to larger language models and developing more sophisticated retrieval mechanisms to tackle multi-step medical reasoning and spatial awareness. Given the high stakes of medical diagnostics, these systems are intended as decision-support tools for clinicians rather than autonomous diagnostic engines.
Summary updated