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

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

TL;DR

This paper tackles the chronic data scarcity in medical Visual Question Answering (VQA) by introducing a Multi-Task Pre-Training (MTPT) strategy that aligns image features with question relevance before the main training even begins. Combined with a novel Cross-Modal Self-Attention (CMSA) module for smarter feature fusion, the approach achieves new state-of-the-art results on the VQA-RAD radiology benchmark.

What Problem Does This Paper Address?

Medical VQA—where a system must answer questions about clinical images like X-rays or MRIs—is significantly harder than general-purpose VQA. While datasets like VQA-v2 have hundreds of thousands of images, medical datasets like VQA-RAD are tiny (only 315 images).

To compensate, researchers usually "borrow" features from models pre-trained on general images (like ImageNet). However, the authors argue this creates a "compatibility gap": features optimized to distinguish a cat from a dog aren't necessarily good at helping a model understand if a specific medical question is even relevant to a specific scan. Furthermore, medical images often suffer from low contrast, making it difficult for standard fusion techniques to "see" the relevant clinical features described in a question.

Methods

The authors propose a two-part solution:

  1. Multi-Task Pre-Training (MTPT): Instead of just pre-training on image classification, the authors add a "question-image compatibility test." During pre-training on large external medical datasets (CT, MRI, X-ray), the model is forced to determine if a given question is "suitable" for a given image. This forces the image encoder to learn features that are specifically useful for the downstream VQA task.
  2. Cross-Modal Self-Attention (CMSA): To fuse the visual and text data, the model uses a self-attention mechanism (Query, Key, Value). It concatenates visual features, spatial coordinates (to help with localization), and linguistic features (from a BioWordVec LSTM). The CMSA module then captures long-range dependencies across these modalities, allowing the model to use global context to compensate for weak local features in low-contrast scans.
  3. Soft-Weighting Image Encoders: Since medical images come in different flavors (MRI vs. CT), the model uses three separate ResNet-34 backbones. An "Image Type Classifier" determines the probability of the input being a certain modality and weights the features from the three encoders accordingly.

Datasets

  • VQA-RAD: The primary benchmark, containing 315 radiology images and 3,064 questions manually created by clinicians.
  • External Pre-training Datasets:
    • Abdominal CT: 2,178 images for multi-organ segmentation.
  • Brain MRI: 3,604 images for tumor classification.
  • Chest X-Ray: 5,232 images for pneumonia detection.

Key Insights and Ideas

  • Pre-training is a "Relationship" Problem: The most significant insight is that pre-training for VQA shouldn't just be about understanding images in isolation. By introducing the compatibility test, the model learns to extract visual features that are "primed" for linguistic queries.
  • Context as a Compensator: In medical imaging, a single pixel or small patch might be ambiguous due to noise or low contrast. The CMSA module's ability to look at "long-range contextual relevance" allows the model to use the surrounding anatomy to better interpret a specific region mentioned in a question.
  • The Power of Domain-Specific Embeddings: Using BioWordVec (pre-trained on PubMed and MeSH) proved essential for the model to understand complex medical terminology that standard word embeddings would miss.

Key Results

The proposed model set a new high bar on the VQA-RAD dataset:

  • Overall Accuracy: Achieved 68.8%, a significant jump over the previous state-of-the-art (BAN-MEVF at 62.6%).
  • Open-Ended Questions: Showed a massive improvement, reaching 56.1% compared to the previous 43.9%.
  • Ablation Success: The MTPT strategy alone improved the "All" accuracy from 61.0% (standard pre-training) to 68.8%, proving that how you pre-train is just as important as what you pre-train on.

Limitations and Future Work

The authors identify two main areas for growth:

  1. Domain Knowledge Integration: While the model is good at pattern matching, it doesn't "know" medicine. The authors suggest integrating medical knowledge graphs to provide formal clinical reasoning.
  2. Interpretability: In a clinical setting, a "black box" answer isn't enough. Future iterations need to provide better visual or textual justifications for why the model chose a specific answer to build trust with clinicians.

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},
}

Loading related content...

Figure