Skip to main content
QUICK REVIEW

[Paper Review] Delving into Masked Autoencoders for Multi-Label Thorax Disease Classification

Junfei Xiao, Yutong Bai|arXiv (Cornell University)|Oct 23, 2022
COVID-19 diagnosis using AIMedicine6 citations
TL;DR

This paper proposes a strong pre-training and fine-tuning recipe for Vision Transformers (ViT) using Masked Autoencoders (MAE) on 266,340 unlabeled chest X-rays, achieving performance comparable to or better than state-of-the-art CNNs (e.g., DenseNet-121) in multi-label thorax disease classification across three benchmark datasets, with mAUC scores of 82.3%, 89.2%, and 99.3% on NIH ChestX-ray14, CheXpert, and COVIDx, respectively.

ABSTRACT

Vision Transformer (ViT) has become one of the most popular neural architectures due to its great scalability, computational efficiency, and compelling performance in many vision tasks. However, ViT has shown inferior performance to Convolutional Neural Network (CNN) on medical tasks due to its data-hungry nature and the lack of annotated medical data. In this paper, we pre-train ViTs on 266,340 chest X-rays using Masked Autoencoders (MAE) which reconstruct missing pixels from a small part of each image. For comparison, CNNs are also pre-trained on the same 266,340 X-rays using advanced self-supervised methods (e.g., MoCo v2). The results show that our pre-trained ViT performs comparably (sometimes better) to the state-of-the-art CNN (DenseNet-121) for multi-label thorax disease classification. This performance is attributed to the strong recipes extracted from our empirical studies for pre-training and fine-tuning ViT. The pre-training recipe signifies that medical reconstruction requires a much smaller proportion of an image (10% vs. 25%) and a more moderate random resized crop range (0.5~1.0 vs. 0.2~1.0) compared with natural imaging. Furthermore, we remark that in-domain transfer learning is preferred whenever possible. The fine-tuning recipe discloses that layer-wise LR decay, RandAug magnitude, and DropPath rate are significant factors to consider. We hope that this study can direct future research on the application of Transformers to a larger variety of medical imaging tasks.

Motivation & Objective

  • To evaluate the potential of vanilla Vision Transformers (ViT) in medical imaging, particularly for multi-label thorax disease classification.
  • To address the data-hungry nature of ViTs by pre-training on a large-scale collection of 266,340 unlabeled chest X-rays using Masked Autoencoders (MAE).
  • To develop a customized pre-training and fine-tuning recipe tailored to the unique characteristics of medical images, such as low-contrast anatomy and small pathological features.
  • To provide a fair benchmark comparing ViT with state-of-the-art CNNs, including those pre-trained via self-supervised methods on the same data.
  • To release code and pre-trained models (ViT-Small, ViT-Base) to support reproducibility and future research in medical vision.

Proposed method

  • Pre-train Vision Transformers using Masked Autoencoders (MAE), where 90% of image patches are masked and the model reconstructs the missing pixels from the visible patches.
  • Use a modified data augmentation strategy with a random resized crop range of 0.5–1.0, significantly narrower than the standard 0.2–1.0 used in natural image pre-training.
  • Apply a high masking ratio (90%) to better suit medical image reconstruction, as opposed to the 75% used in natural image MAE.
  • Fine-tune the pre-trained ViT using layer-wise learning rate decay, RandAug augmentation with a magnitude of 15, and a DropPath rate of 0.1.
  • Compare ViT performance against state-of-the-art CNNs (e.g., DenseNet-121) fine-tuned on the same data and using the same evaluation protocols.
  • Use Grad-CAM to analyze and compare attention maps between ViT and CNNs for interpretability and localization performance.

Experimental results

Research questions

  • RQ1Can a vanilla Vision Transformer, when pre-trained with MAE on a large medical dataset, achieve performance comparable to or better than state-of-the-art CNNs in multi-label thorax disease classification?
  • RQ2What are the optimal pre-training hyperparameters (masking ratio, crop range, data scale) for MAE when applied to medical imaging, particularly chest X-rays?
  • RQ3How do fine-tuning hyperparameters—layer-wise learning rate decay, RandAug magnitude, and DropPath rate—influence ViT performance on medical classification tasks?
  • RQ4How does the localization capability of ViT compare to CNNs in detecting small pathological regions, as measured by Grad-CAM and bounding box IoU?
  • RQ5Is in-domain transfer learning (pre-training on medical data) more effective than ImageNet pre-training for medical vision tasks?

Key findings

  • The pre-trained ViT achieved an mAUC of 82.3% on NIH ChestX-ray14, matching the performance of the state-of-the-art DenseNet-121.
  • On the Stanford CheXpert dataset, the ViT achieved an mAUC of 89.2%, outperforming the best-reported CNN results in the literature.
  • On the COVIDx dataset, the ViT achieved an mAUC of 99.3%, demonstrating exceptional performance on a challenging, small, and diverse dataset.
  • ViT showed superior localization for small lesions (e.g., Nodule) compared to CNNs, which were better at localizing larger abnormalities (e.g., Cardiomegaly).
  • The use of in-domain pre-training (on 266,340 chest X-rays) significantly improved ViT performance over ImageNet pre-training, highlighting the importance of domain-specific data.
  • Layer-wise learning rate decay, RandAug magnitude 15, and a DropPath rate of 0.1 were identified as critical hyperparameters for effective ViT fine-tuning in multi-label classification.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.