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 View this paper on Syntology, its page in Syntology's graph. That page lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

SwinTransformer/Transformer-SSL officialmentioned in papermentioned on GitHubpytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Swin Transformer: Hierarchical Vision Transformer using Shifted Windows (arXiv:2103.14030; that paper's own run record: 123 ran (of which 45 constructed an object rather than computing a result; 79 with no instrument failure: 6 honoured, 3 violated, 70 with no contract checked; 44 where Syntology's instrument failed) · 84 unverified); nothing checks that they implement this paper's method. report
2023-MindSpore-4/Code10 mindsporeSyntology: not harvested report
2023-MindSpore-4/Code9 mindsporeSyntology: not harvested report
2024-MindSpore-1/Code4 mindsporeSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to DeepTextMark: A Deep Learning-Driven Text Watermarking Approach for Identifying Large... (arXiv:2305.05773; that paper's own run record: 1 ran (of which 0 constructed an object rather than computing a result; 1 with no instrument failure: 0 honoured, 0 violated, 1 with no contract checked; 0 where Syntology's instrument failed) · 0 unverified); nothing checks that they implement this paper's method. report
alibaba/EasyCV pytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to End-to-End Object Detection with Transformers (arXiv:2005.12872; that paper's own run record: 70 ran (of which 45 constructed an object rather than computing a result; 62 with no instrument failure: 2 honoured, 1 violated, 59 with no contract checked; 8 where Syntology's instrument failed) · 22 unverified), Training data-efficient image transformers & distillation through attention (arXiv:2012.12877; that paper's own run record: 12 ran (of which 1 constructed an object rather than computing a result; 9 with no instrument failure: 1 honoured, 0 violated, 8 with no contract checked; 3 where Syntology's instrument failed) · 7 unverified), Masked Autoencoders Are Scalable Vision Learners (arXiv:2111.06377; that paper's own run record: 86 ran (of which 40 constructed an object rather than computing a result; 68 with no instrument failure: 8 honoured, 0 violated, 60 with no contract checked; 18 where Syntology's instrument failed) · 51 unverified) and 1 more (every one in this page's JSON twin); nothing checks that they implement this paper's method. report
microsoft/Swin-Transformer pytorchSyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Swin Transformer: Hierarchical Vision Transformer using Shifted Windows (arXiv:2103.14030; that paper's own run record: 123 ran (of which 45 constructed an object rather than computing a result; 79 with no instrument failure: 6 honoured, 3 violated, 70 with no contract checked; 44 where Syntology's instrument failed) · 84 unverified); nothing checks that they implement this paper's method. 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.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

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