Adapting Pre-Trained Visual and Language Models for Medical Image Question Answering

Siqi Wang, Wenshuo Zhou, Yehui Yang, Haifeng Huang, Zhiyu Ye, Tong Zhang, Dalu YangCLEF (Working Notes) 2023

Introduction

Visual Question Answering (VQA) in the medical domain presents unique challenges compared to general contexts. While standard models excel at identifying everyday objects, medical VQA requires navigating specialized terminology and subtle visual cues, such as identifying polyp types or anatomical landmarks in endoscopic imagery. Researchers from Baidu and Peng Cheng Laboratory addressed three primary hurdles: domain shift from natural to medical images, complex clinical semantics, and the scarcity of expert-annotated data.

Methodology

The proposed approach utilizes a variant of the BLIP-2 framework to bridge the gap between frozen Large Language Models (LLMs) and visual encoders. The architecture consists of three main components:

  • Vision Encoder: A "giant" Vision Transformer (ViT-g/14) from EVA-CLIP.
  • Language Model: GLM-6B, an open-source, prefix-based decoder-only model.
  • Q-Former: A Querying Transformer that acts as an information bottleneck, extracting relevant visual features to serve as "soft prompts" for the LLM.
Architecture of the adapted BLIP-2 model for medical VQA.

The training strategy involved a two-stage fine-tuning process. While the LLM remained frozen to preserve linguistic capabilities, the ViT-g and Q-Former were fine-tuned concurrently. This allowed the model's visual perception to adapt to endoscopic textures without losing the ability to generate coherent natural language. Additionally, specialized ResNet34 classification models were integrated to handle technical details like polyp size and type, significantly boosting performance in those specific categories.

Dataset and Experimental Setup

The model was evaluated using the ImageCLEFmedical 2023 dataset, which focuses on the gastrointestinal tract. The dataset includes images from gastroscopy, colonoscopy, and capsule endoscopy, with at least 2,000 samples paired with 18 questions each. The images exhibit significant variation in resolution (from <500 to >1000 pixels), reflecting real-world clinical complexity.

Results and Discussion

The team achieved a global accuracy of 0.7396 on the test set. Ablation studies highlighted several key insights:

  1. Scaling and Freezing Strategies: Increasing model parameters from 715M to 7.2B led to consistent accuracy gains. Furthermore, unfreezing the vision encoder during fine-tuning was essential for bridging the domain shift.
Accuracy gains relative to model parameter scaling and freezing strategies.
  1. Specialized Classifiers: Offloading specific questions to dedicated ResNet classifiers improved accuracy for "size" and "type" categories from ~80% to ~99%.
  2. Performance Disparity: The model performed exceptionally well on procedure identification (0.9912) and color-based anatomical landmarks (1.0). However, it struggled with fine-grained spatial and chromatic localization of abnormalities, with accuracy dropping to ~0.11 for questions regarding the color or location of abnormalities.

Conclusion

The study demonstrates that adapting large-scale pre-trained models via a bottlenecked bridge like the Q-Former is effective for medical VQA. While scaling and domain-specific fine-tuning provide significant benefits, current architectures still face limitations in precise spatial and chromatic reasoning within medical topographies. Future work will focus on enhancing the visual encoder's sensitivity to these features through architectural refinements or multi-task learning objectives.

Summary updated

BibTeX
@inproceedings{wang2023adapting,
  author = {Siqi Wang and Wenshuo Zhou and Yehui Yang and Haifeng Huang and Zhiyu Ye and Tong Zhang and Dalu Yang},
  title = {{Adapting Pre-Trained Visual and Language Models for Medical Image Question Answering}},
  booktitle = {CLEF (Working Notes)},
  year = {2023},
  url = {https://openreview.net/forum?id=DfU84qogT3},
}
Figure