[Paper Review] MST: Masked Self-Supervised Transformer for Visual Representation
MST introduces an attention-guided masking strategy for Transformers to learn both local and global visual representations, aided by a global image decoder to preserve spatial structure, achieving strong performance on ImageNet linear evaluation and competitive results on dense prediction tasks.
Transformer has been widely used for self-supervised pre-training in Natural Language Processing (NLP) and achieved great success. However, it has not been fully explored in visual self-supervised learning. Meanwhile, previous methods only consider the high-level feature and learning representation from a global perspective, which may fail to transfer to the downstream dense prediction tasks focusing on local features. In this paper, we present a novel Masked Self-supervised Transformer approach named MST, which can explicitly capture the local context of an image while preserving the global semantic information. Specifically, inspired by the Masked Language Modeling (MLM) in NLP, we propose a masked token strategy based on the multi-head self-attention map, which dynamically masks some tokens of local patches without damaging the crucial structure for self-supervised learning. More importantly, the masked tokens together with the remaining tokens are further recovered by a global image decoder, which preserves the spatial information of the image and is more friendly to the downstream dense prediction tasks. The experiments on multiple datasets demonstrate the effectiveness and generality of the proposed method. For instance, MST achieves Top-1 accuracy of 76.9% with DeiT-S only using 300-epoch pre-training by linear evaluation, which outperforms supervised methods with the same epoch by 0.4% and its comparable variant DINO by 1.0\%. For dense prediction tasks, MST also achieves 42.7% mAP on MS COCO object detection and 74.04% mIoU on Cityscapes segmentation only with 100-epoch pre-training.
Motivation & Objective
- Motivate improving visual self-supervised learning by capturing local patch context while retaining global semantics for better transfer to dense prediction tasks.
- Develop a masking scheme guided by multi-head self-attention to selectively mask patches without destroying crucial regions.
- Incorporate a global image decoder to recover spatial information and boost performance on downstream dense prediction tasks.
- Demonstrate the method’s effectiveness across ImageNet classification and downstream tasks like object detection and semantic segmentation.
Proposed method
- Propose MST, a masked self-supervised transformer framework that uses an attention-guided masking strategy derived from the teacher network’s self-attention maps.
- Mask tokens corresponding to patches with low attention while preserving important regions, using a Bernoulli process conditioned on an attention-based threshold.
- Recover masked and unmasked tokens with a global image decoder to reconstruct the original image and encourage spatial fidelity.
- Train with a combination of self-supervised cross-entropy loss (contrastive-like objective) and a restoring loss for image reconstruction, guided by a momentum teacher-student setup and standard self-supervised augmentations.
- Use a CNN-based decoder to restore image pixels from masked transformer representations, ensuring compatibility with downstream dense prediction tasks.
- Evaluate on ImageNet with DeiT-S and Swin-T backbones using linear and k-NN probes, and assess transferability to MS COCO object detection and Cityscapes semantic segmentation.
Experimental results
Research questions
- RQ1Can an attention-guided masking strategy preserve crucial image regions while masking less informative patches during self-supervised pre-training?
- RQ2Does incorporating a global image decoder to reconstruct spatial information improve performance on dense prediction tasks without increasing training time?
- RQ3How does MST perform compared with state-of-the-art self-supervised methods on ImageNet linear accuracy and downstream dense prediction benchmarks?
- RQ4Is the method robust across different transformer architectures (e.g., DeiT-S, Swin-T) and training budgets?
Key findings
- MST achieves 76.9% top-1 accuracy on ImageNet linear evaluation with DeiT-S at 300 epochs, outperforming DINO and approaching longer-training results.
- On MS COCO object detection, MST attains 42.7% bbox mAP and 38.8% mask mAP with 100 epochs, surpassing ImageNet-supervised baselines.
- For Cityscapes semantic segmentation, MST yields 74.04% mIoU and 82.35% mAcc, defeating both supervised and DINO-pretrained baselines under comparable settings.
- An attention-guided mask strategy markedly improves linear-probe performance (73.7% vs 63.2% with random masking) and demonstrates robustness to mask hyperparameters.
- In ablations, using the attention-guided mask strategy with appropriate settings sustains strong performance across 100/300 epochs and shows BN handling nuances in the projection head can influence gains.
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.