[Paper Review] SiT: Self-supervised vIsion Transformer
SiT introduces Group Masked Model Learning (GMML) for self-supervised pretraining of Vision Transformers, using masked token reconstruction and contrastive learning to outperform supervised pretraining on small/medium datasets and compete on large-scale data.
Self-supervised learning methods are gaining increasing traction in computer vision due to their recent success in reducing the gap with supervised learning. In natural language processing (NLP) self-supervised learning and transformers are already the methods of choice. The recent literature suggests that the transformers are becoming increasingly popular also in computer vision. So far, the vision transformers have been shown to work well when pretrained either using a large scale supervised data or with some kind of co-supervision, e.g. in terms of teacher network. These supervised pretrained vision transformers achieve very good results in downstream tasks with minimal changes. In this work we investigate the merits of self-supervised learning for pretraining image/vision transformers and then using them for downstream classification tasks. We propose Self-supervised vIsion Transformers (SiT) and discuss several self-supervised training mechanisms to obtain a pretext model. The architectural flexibility of SiT allows us to use it as an autoencoder and work with multiple self-supervised tasks seamlessly. We show that a pretrained SiT can be finetuned for a downstream classification task on small scale datasets, consisting of a few thousand images rather than several millions. The proposed approach is evaluated on standard datasets using common protocols. The results demonstrate the strength of the transformers and their suitability for self-supervised learning. We outperformed existing self-supervised learning methods by large margin. We also observed that SiT is good for few shot learning and also showed that it is learning useful representation by simply training a linear classifier on top of the learned features from SiT. Pretraining, finetuning, and evaluation codes will be available under: https://github.com/Sara-Ahmed/SiT.
Motivation & Objective
- Motivate reducing reliance on labeled data for vision transformers by leveraging self-supervised learning (SSL).
- Propose GMML to enable ViTs to learn local inductive bias from limited data.
- Develop a transformer-based autoencoder that supports multi-task self-supervised objectives (reconstruction and contrastive learning).
- Demonstrate that SSL with SiT can outperform supervised pretraining across multiple datasets and transfer scenarios.
Proposed method
- Adopt Vision Transformer (ViT) backbone with a light decoder to form a transformer autoencoder.
- Apply Group Masked Model Learning (GMML) by masking groups of tokens to reconstruct local image content.
- Jointly optimize reconstruction loss (L_recons) and a contrastive loss (L_contr) between augmented views.
- Utilize a momentum encoder for contrastive learning to improve representation stability.
- End-to-end training uses L_total = alpha * L_recons + L_contr, with alpha tuned for small vs. large datasets.
Experimental results
Research questions
- RQ1Can GMML enable Vision Transformers to learn effective representations from unlabeled data with limited supervision?
- RQ2Does self-supervised pretraining with SiT outperform supervised pretraining on small/medium datasets?
- RQ3How does SiT perform under domain transfer and finetuning on downstream tasks?
- RQ4What is the impact of combining reconstruction and contrastive objectives for ViTs?
- RQ5Is a lightweight transformer decoder sufficient for effective SSL in ViTs?
Key findings
- SiT consistently outperforms supervised pretraining and prior SSL methods on several small/medium datasets when pretrained without external data.
- On small datasets, SiT achieves notable gains (e.g., outperforming alternatives on multiple fine-tuning tasks).
- When pretrained on larger data, SiT reaches parity or surpasses state-of-the-art SSL methods that use larger models or data.
- GMML enables ViTs to learn local inductive bias from partial token corruption, improving generalization on downstream tasks.
- SiT demonstrates strong domain transfer capabilities and competitive performance when finetuned on target datasets.
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.