Abstract
Contrastive Language--Image Pre-training (CLIP) has shown remarkable success in learning with cross-modal supervision from extensive amounts of image--text pairs collected online. Thus far, the effectiveness of CLIP has been investigated primarily in general-domain multimodal problems. This work evaluates the effectiveness of CLIP for the task of Medical Visual Question Answering (MedVQA). To this end, we present PubMedCLIP, a fine-tuned version of CLIP for the medical domain based on PubMed articles. Our experiments are conducted on two MedVQA benchmark datasets and investigate two MedVQA methods, MEVF (Mixture of Enhanced Visual Features) and QCR (Question answering via Conditional Reasoning). For each of these, we assess the merits of visual representation learning using PubMedCLIP, the original CLIP, and state-of-the-art MAML (Model-Agnostic Meta-Learning) networks pre-trained only on visual data. CLIP and PubMedCLIP achieve improvements in comparison to MAML's visual encoder. PubMedCLIP achieves the best results with gains in the overall accuracy of up to 3%. Individual examples illustrate the strengths of PubMedCLIP in comparison to the previously widely used MAML networks. Visual representation learning with language supervision in PubMedCLIP leads to noticeable improvements for MedVQA.
Introduction
Visual Question Answering (VQA) is a multimodal challenge requiring a system to interpret visual data and answer natural language questions. In the medical domain (MedVQA), this task is particularly demanding, requiring expert-level knowledge to identify specific organs, pathologies, or imaging modalities. Historically, MedVQA models relied on visual encoders pre-trained only on images, often using techniques like Model-Agnostic Meta-Learning (MAML) to handle small datasets. However, these models lack the rich semantic context that language provides. This research investigates whether the "CLIP effect"—leveraging captions to teach a model visual concepts—can translate to the specialized medical field where data is scarce and labels are expensive.
Methodology: PubMedCLIP
The authors introduced PubMedCLIP, a domain-specific version of CLIP. The approach involved two primary stages:
- Fine-tuning CLIP: The original CLIP model (pre-trained on 400 million general internet images) was fine-tuned using the ROCO dataset, which contains over 80,000 medical image-caption pairs from PubMed articles. Three vision backbones were tested: ViT-B/32, ResNet-50, and ResNet-50x4.
- Integration into MedVQA: The traditional MAML-based visual encoders in two popular MedVQA architectures—MEVF and QCR—were replaced with the new PubMedCLIP encoder.
By maintaining the rest of the VQA architecture (question encoders and attention mechanisms), the researchers could isolate the performance improvements attributable to the new visual representation.
Datasets and Evaluation
The study utilized three key datasets:
- ROCO (Radiology Objects in COntext): Used for pre-training PubMedCLIP, featuring diverse modalities like MRI, CT, and X-Ray.
- VQA-RAD: A gold-standard evaluation dataset with 3,515 question-answer pairs generated by clinicians.
- SLAKE: A larger bilingual dataset with over 7,000 pairs and rich annotations.
Key Results and Insights
PubMedCLIP achieved consistent gains across all benchmarks, with overall accuracy improvements of up to 3% over previous state-of-the-art methods. On VQA-RAD, the QCR model with a PubMedCLIP-RN50 backbone reached 72.1% accuracy, while on SLAKE, the PubMedCLIP-ViT backbone reached 80.1%.
An important finding was the architectural split: ResNet-50 performed better on VQA-RAD, where questions focus on local abnormalities requiring fine-grained spatial features. Conversely, Vision Transformers (ViT) excelled on SLAKE, where questions often require global context to identify organs. Qualitatively, PubMedCLIP significantly reduced hallucinations, correctly identifying structures like lateral ventricles where previous models might suggest unrelated organs like the colon.
Conclusion
While PubMedCLIP demonstrates that language-based supervision is powerful even in specialized domains, the model still struggles with complex spatial reasoning and non-visual metadata. Future work will focus on explainable AI techniques like Grad-CAM to visualize model attention and extending the model to automated radiology report generation.
Summary updated