[Paper Review] Swin MAE: Masked Autoencoders for Small Datasets
Swin MAE proposes a masked autoencoder with a Swin Transformer backbone for unsupervised representation learning on small medical image datasets. Without pre-trained weights, it achieves transfer learning performance equal to or slightly better than ImageNet-supervised Swin Transformer models, demonstrating strong feature learning from only a few thousand images using masked image reconstruction.
The development of deep learning models in medical image analysis is majorly limited by the lack of large-sized and well-annotated datasets. Unsupervised learning does not require labels and is more suitable for solving medical image analysis problems. However, most of the current unsupervised learning methods need to be applied to large datasets. To make unsupervised learning applicable to small datasets, we proposed Swin MAE, which is a masked autoencoder with Swin Transformer as its backbone. Even on a dataset of only a few thousand medical images and without using any pre-trained models, Swin MAE is still able to learn useful semantic features purely from images. It can equal or even slightly outperform the supervised model obtained by Swin Transformer trained on ImageNet in terms of the transfer learning results of downstream tasks. The code is publicly available at https://github.com/Zian-Xu/Swin-MAE.
Motivation & Objective
- Address the challenge of limited, well-annotated medical image datasets in deep learning.
- Overcome the dependency of Vision Transformers on large-scale pre-training by introducing inductive bias via Swin Transformer.
- Enable effective unsupervised representation learning on small datasets without data augmentation, which is often infeasible for medical images.
- Achieve competitive transfer learning performance on downstream tasks using only self-supervised pre-training on small-scale medical images.
- Demonstrate that masked autoencoding with Swin MAE can match or exceed supervised models fine-tuned on ImageNet, even without any pre-trained weights.
Proposed method
- Adopt a masked autoencoder (MAE) framework where 75% of image patches are randomly masked during pre-training.
- Use a Swin Transformer as the encoder backbone, which introduces local inductive bias through shifted windows, improving training stability on small datasets.
- Apply a patch-based image tokenization with 4×4 non-overlapping patches, differing from MAE’s 16×16 patches, to better suit medical image characteristics.
- Implement a window-based masking strategy that masks entire 4×4 patches as units, maintaining spatial coherence in the reconstruction task.
- Train the model using mean squared error (MSE) loss between the original and reconstructed images, focusing on predicting masked regions.
- Use a lightweight decoder head to reconstruct the full image from the masked latent representation, with shared architecture between MAE and Swin MAE for fair comparison.
Experimental results
Research questions
- RQ1Can a masked autoencoder with a Swin Transformer backbone learn useful semantic features from small medical image datasets without any pre-trained weights?
- RQ2How does Swin MAE compare to standard MAE in terms of convergence speed and training stability on small datasets?
- RQ3To what extent can unsupervised pre-training with Swin MAE improve downstream transfer learning performance compared to supervised ImageNet fine-tuning?
- RQ4Does the inductive bias of Swin Transformer improve self-supervised learning on small, low-resource medical image datasets compared to standard Vision Transformers?
- RQ5Can masked autoencoding be effectively applied to medical images without relying on data augmentation, which is often impractical for single-channel, intact medical scans?
Key findings
- Swin MAE achieves transfer learning performance on downstream tasks that is equal to or slightly better than a supervised Swin Transformer model pre-trained on ImageNet, despite training on only a few thousand medical images.
- The model converges faster, achieves lower training loss, and exhibits smoother training curves compared to standard MAE when trained on the same small dataset with identical hyperparameters.
- Swin MAE outperforms MAE on small datasets due to the inductive bias of the Swin Transformer, which stabilizes training and improves feature learning without pre-training.
- The reconstruction results show that Swin MAE effectively restores missing image regions, including boundary contours and color consistency, even with a 75% masking ratio.
- The absence of pre-trained weights does not hinder performance—Swin MAE learns robust representations purely from self-supervised reconstruction on small-scale data.
- The upstream training loss curves demonstrate that Swin MAE achieves better optimization stability and faster convergence than MAE on small datasets, indicating superior unsupervised learning capability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.