Papers › Self-Supervised Learning with Swin Transformers

Self-Supervised Learning with Swin Transformers

10 May 2021arXiv:2105.04553archive 2025-07-28

Zhenda Xie, Yutong Lin, Zhuliang Yao, Zheng Zhang, Qi Dai, Yue Cao, Han Hu

We are witnessing a modeling shift from CNN to Transformers in computer vision. In this work, we present a self-supervised learning approach called MoBY, with Vision Transformers as its backbone architecture. The approach basically has no new inventions, which is combined from MoCo v2 and BYOL and tuned to achieve reasonably high accuracy on ImageNet-1K linear evaluation: 72.8% and 75.0% top-1 accuracy using DeiT-S and Swin-T, respectively, by 300-epoch training. The performance is slightly better than recent works of MoCo v3 and DINO which adopt DeiT as the backbone, but with much lighter tricks. More importantly, the general-purpose Swin Transformer backbone enables us to also evaluate the learnt representations on downstream tasks such as object detection and semantic segmentation, in contrast to a few recent approaches built on ViT/DeiT which only report linear evaluation results on ImageNet-1K due to ViT/DeiT not tamed for these dense prediction tasks. We hope our results can facilitate more comprehensive evaluation of self-supervised learning methods designed for Transformer architectures. Our code and models are available at https://github.com/SwinTransformer/Transformer-SSL, which will be continually enriched.

PaperPDFCode

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

Code

SwinTransformer/Transformer-SSL officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Linear evaluationObject DetectionSelf-Supervised Image ClassificationSelf-Supervised LearningSemantic Segmentationobject-detection

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Self-Supervised Image Classification ImageNet MoBY (Swin-T) Number of Params 29M #79 of 144 Archive leaderboard report
Self-Supervised Image Classification ImageNet MoBY (Swin-T) Top 1 Accuracy 75% #79 of 144 Archive leaderboard report
Self-Supervised Image Classification ImageNet MoBY (DeiT-S) Number of Params 22M #94 of 144 Archive leaderboard report
Self-Supervised Image Classification ImageNet MoBY (DeiT-S) Top 1 Accuracy 72.8% #94 of 144 Archive leaderboard report
Semantic Segmentation ADE20K Swin-T (UPerNet) MoBY Validation mIoU 45.58 #189 of 235 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAdamWAttentionAttention DropoutBPEBYOLBatch NormalizationDeiTDense ConnectionsDropPathDropoutFeedforward NetworkInfoNCELabel SmoothingLayer NormalizationLinear LayerMoBYMoCoMoCo v2MoCo v3Multi-Head AttentionPosition-Wise Feed-Forward LayerRandom Gaussian BlurResidual ConnectionSoftmaxStochastic DepthSwin TransformerTransformerVision Transformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections