MVC: A Multi-Task Vision Transformer Network for COVID-19 Diagnosis from Chest X-ray Images

Huyen Tran, Duc Thanh Nguyen, John YearwoodarXiv 2023

TL;DR

The Multi-task Vision Transformer (MVC) is a unified framework designed to simultaneously diagnose COVID-19 from chest X-rays (CXR) and precisely localize the affected lung regions. By jointly optimizing for both disease classification and patch-level identification, the model achieves superior diagnostic accuracy while providing clear, interpretable evidence for clinicians.

What Problem Does This Paper Address?

Diagnosing lung diseases like COVID-19 from CXR images is notoriously difficult. Disease patterns—such as ground-glass opacities or patchy consolidations—are often subtle, vary wildly in size and shape, and can be easily confused with normal anatomical structures.

While deep learning has made strides in this area, the authors identify three major gaps in existing research:

  1. Task Isolation: Most models focus either on classification (what is the disease?) or localization (where is it?), but rarely both in a unified, mutually reinforcing way.
  2. CNN Limitations: Traditional Convolutional Neural Networks (CNNs) are excellent at capturing local patterns but often struggle to model long-range spatial correlations across the entire lung.
  3. Interpretability Issues: Common methods for "explaining" AI decisions, like Grad-CAM heatmaps, are often noisy and fail to accurately cover the actual affected regions, making them less useful for radiologists.

Methods

The authors propose the Multi-task Vision Transformer (MVC), which leverages the inherent strengths of Vision Transformers (ViT) in modeling both local patches and global relationships.

Overview of the MVC architecture showing the flow from image patches to joint classification and localization.

The architecture consists of four key modules:

  • Local Representation Extraction: The input CXR is divided into $16 \times 16$ pixel patches. A pre-trained ViT backbone extracts high-dimensional embedding vectors for each patch.
  • Patch Classification: A dedicated module classifies each patch as "positive" (affected) or "negative" (normal). This provides explicit supervision for localization.
  • Self-Attention: This module calculates an attention score for each patch, determining its relative importance to the overall diagnosis.
  • Image Classification: The model combines the patch embeddings, their classification probabilities, and their attention scores into a single global representation. This "weighted" feature vector is then used to classify the entire image into one of four categories (Typical, Atypical, Indeterminate, or Negative for COVID-19).

The "secret sauce" is the multi-task learning approach: the network is trained end-to-end using a combined loss function that penalizes both incorrect image-level diagnoses and incorrect patch-level identifications.

Datasets

The model was evaluated on the COVID-19 Chest-X-ray dataset, which is currently the largest public dataset of its kind. It contains 5,937 images categorized into four classes:

  • Typical: Classic COVID-19 presentation.
  • Atypical: Unusual features.
  • Indeterminate: Features that could be COVID-19 or something else.
  • Negative: No signs of pneumonia.

Crucially, this dataset includes expert-provided bounding boxes for affected regions, which the authors used to generate ground-truth labels for their patch classification task.

Key Insights and Ideas

  • Dual-Task Synergy: The authors found that training the model to localize affected regions actually improves its ability to classify the disease. The two tasks are "dually related," meaning the evidence found at the patch level reinforces the global decision.
  • Beyond Heatmaps: Unlike post-hoc interpretation methods (like Grad-CAM) that try to guess what a model looked at after the fact, MVC is explicitly trained to identify affected regions. This results in much cleaner and more clinically relevant localization.
  • ViT Superiority: The study reinforces the growing consensus that Transformers are better suited for CXR analysis than CNNs because they can naturally relate distant regions of the lungs (e.g., bilateral involvement) through self-attention.

Key Results

The MVC model outperformed several heavy-hitting CNN baselines (including ResNet-50, DenseNet, and VGG) as well as standard ViT models.

  • Classification Accuracy: MVC achieved an overall accuracy of 61.6%, surpassing the best-performing CNN (VGG at 59.1%) and the standard ViT-16 (60.7%).
  • Localization Quality: Qualitatively, MVC produced localization maps that were significantly more precise than Grad-CAM outputs from other models. As shown in the figure below, MVC's identified patches (top row) align much more closely with expert bounding boxes than the diffuse heatmaps of other architectures.
Comparison of affected region identification between MVC and baseline methods using Grad-CAM.
  • Ablation Success: The authors proved that using pre-trained weights (from ImageNet) was vital, boosting accuracy from 53.1% (trained from scratch) to 61.6%.

Limitations and Future Work

The primary limitation of the current MVC framework is its reliance on supervised learning for localization. Obtaining patch-level labels (bounding boxes) requires significant effort from expert radiologists, which limits the scale at which such models can be trained.

To address this, the authors suggest that Multiple-Instance Learning (MIL) could be a promising future direction. MIL would allow the model to learn from image-level labels alone, treating the image as a "bag" of patches and automatically identifying which patches contribute to the positive diagnosis without needing explicit bounding boxes during training.

Summary updated

BibTeX
@misc{tran2023mvc,
  author = {Huyen Tran and Duc Thanh Nguyen and John Yearwood},
  title = {{MVC: A Multi-Task Vision Transformer Network for COVID-19 Diagnosis from Chest X-ray Images}},
  year = {2023},
  eprint = {2310.00418},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.00418},
}
Figure