Cross-Modal Self-Attention with Multi-Task Pre-Training for Medical Visual Question Answering

Haifan Gong, Guanqi Chen, Sishuo Liu, Yizhou Yu, Guanbin Li

Abstract

Due to the severe lack of labeled data, existing methods of medical visual question answering usually rely on transfer learning to obtain effective image feature representation and use cross-modal fusion of visual and linguistic features to achieve question-related answer prediction. These two phases are performed independently and without considering the compatibility and applicability of the pre-trained features for cross-modal fusion. Thus, we reformulate image feature pre-training as a multi-task learning paradigm and witness its extraordinary superiority, forcing it to take into account the applicability of features for the specific image comprehension task. Furthermore, we introduce a cross-modal self-attention (CMSA) module to selectively capture the long-range contextual relevance for more effective fusion of visual and linguistic features. Experimental results demonstrate that the proposed method outperforms existing state-of-the-art methods.

Introduction

Medical Visual Question Answering (VQA) is a specialized domain where systems must interpret clinical images—such as X-rays, CT scans, or MRIs—to answer natural language questions. Unlike general-purpose VQA, which benefits from massive datasets like VQA-v2, medical VQA suffers from chronic data scarcity. For instance, the VQA-RAD benchmark contains only 315 images.

Standard approaches typically utilize features from models pre-trained on general datasets like ImageNet. However, this creates a "compatibility gap": features optimized for general object recognition (e.g., distinguishing a cat from a dog) are often ill-suited for the subtle clinical nuances required to determine if a specific medical question is relevant to a scan. Additionally, the low contrast inherent in many medical images makes it difficult for standard fusion techniques to isolate relevant clinical features described in a query.

Proposed Methodology

To address these challenges, we propose a framework consisting of two primary innovations: Multi-Task Pre-Training (MTPT) and a Cross-Modal Self-Attention (CMSA) module.

Multi-Task Pre-Training (MTPT)

Rather than relying solely on image classification for pre-training, we introduce a "question-image compatibility test." During pre-training on large external medical datasets (Abdominal CT, Brain MRI, and Chest X-Ray), the model is tasked with determining if a given question is suitable for a specific image. This forces the image encoder to learn features that are inherently relevant to downstream VQA tasks.

Cross-Modal Self-Attention (CMSA)

To effectively fuse visual and linguistic data, we introduce the CMSA module. This module utilizes a self-attention mechanism (Query, Key, Value) to process concatenated visual features, spatial coordinates, and linguistic features derived from a BioWordVec LSTM. By capturing long-range dependencies across these modalities, the model can leverage global context to compensate for weak local features in low-contrast medical scans.

The proposed CMSA-MTPT architecture, featuring soft-weighted ResNet-34 encoders and the CMSA fusion module.

Soft-Weighting Image Encoders

Given the diversity of medical imaging modalities, the model employs three separate ResNet-34 backbones. An "Image Type Classifier" determines the probability of the input modality and weights the features from these encoders accordingly, ensuring the most relevant features are prioritized.

Experimental Results

The proposed model was evaluated on the VQA-RAD radiology benchmark, achieving a new state-of-the-art performance.

  • Overall Accuracy: The model achieved 68.8%, a significant improvement over the previous state-of-the-art (BAN-MEVF at 62.6%).
  • Open-Ended Questions: Performance on open-ended questions saw a substantial jump to 56.1%, compared to the previous 43.9%.
  • Ablation Study: The MTPT strategy alone improved overall accuracy from 61.0% (with standard pre-training) to 68.8%, validating the importance of task-specific pre-training.
Comparison of the proposed MTPT-CMSA method against other configurations on the VQA-RAD dataset.

Conclusion

By aligning image feature pre-training with the requirements of cross-modal fusion, our MTPT-CMSA framework effectively overcomes the data scarcity and compatibility issues prevalent in medical VQA. Future work will focus on integrating medical knowledge graphs to enhance clinical reasoning and improving model interpretability to provide clinicians with clear justifications for predicted answers.

Summary updated

BibTeX
@inproceedings{gong2021cross,
  author = {Haifan Gong and Guanqi Chen and Sishuo Liu and Yizhou Yu and Guanbin Li},
  title = {{Cross-Modal Self-Attention with Multi-Task Pre-Training for Medical Visual Question Answering}},
  booktitle = {ICMR},
  year = {2021},
  url = {https://openreview.net/forum?id=qcVWQKWDNEe},
}
Figure