Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng, Zhang, Stephen Lin, Baining Guo

TL;DR
The Swin Transformer introduces a hierarchical vision Transformer with shifted windows, enabling efficient, scalable, and versatile vision tasks, surpassing previous models in accuracy and efficiency.
Contribution
It proposes a novel hierarchical Transformer architecture with shifted windows, improving efficiency and performance across various vision tasks.
Findings
Achieved 87.3% top-1 accuracy on ImageNet-1K
Surpassed state-of-the-art by +2.7 box AP on COCO
Demonstrated effectiveness on multiple dense prediction tasks
Abstract
This paper presents a new vision Transformer, called Swin Transformer, that capably serves as a general-purpose backbone for computer vision. Challenges in adapting Transformer from language to vision arise from differences between the two domains, such as large variations in the scale of visual entities and the high resolution of pixels in images compared to words in text. To address these differences, we propose a hierarchical Transformer whose representation is computed with \textbf{S}hifted \textbf{win}dows. The shifted windowing scheme brings greater efficiency by limiting self-attention computation to non-overlapping local windows while also allowing for cross-window connection. This hierarchical architecture has the flexibility to model at various scales and has linear computational complexity with respect to image size. These qualities of Swin Transformer make it compatible with…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
- 🤗keras-io/swin-transformersmodel· 23 dl· ♡ 423 dl♡ 4
- 🤗microsoft/swin-base-patch4-window12-384-in22kmodel· 12k dl· ♡ 212k dl♡ 2
- 🤗microsoft/swin-base-patch4-window12-384model· 3.8k dl· ♡ 43.8k dl♡ 4
- 🤗microsoft/swin-base-patch4-window7-224-in22kmodel· 3.2k dl· ♡ 173.2k dl♡ 17
- 🤗microsoft/swin-base-patch4-window7-224model· 32k dl· ♡ 2532k dl♡ 25
- 🤗microsoft/swin-large-patch4-window12-384-in22kmodel· 364 dl· ♡ 9364 dl♡ 9
- 🤗microsoft/swin-large-patch4-window12-384model· 1.3k dl· ♡ 41.3k dl♡ 4
- 🤗microsoft/swin-large-patch4-window7-224-in22kmodel· 3.1k dl· ♡ 23.1k dl♡ 2
- 🤗microsoft/swin-large-patch4-window7-224model· 2.5k dl· ♡ 12.5k dl♡ 1
- 🤗microsoft/swin-small-patch4-window7-224model· 1.3k dl· ♡ 21.3k dl♡ 2
Videos
Swin Transformer paper animated and explained· youtube
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows· youtube
Taxonomy
TopicsAdvanced Neural Network Applications · Domain Adaptation and Few-Shot Learning · Advanced Image and Video Retrieval Techniques
MethodsLinear Layer · Absolute Position Encodings · Position-Wise Feed-Forward Layer · Cosine Annealing · AdamW · Stochastic Depth · Swin Transformer · Refunds@Expedia|||How do I get a full refund from Expedia? · Byte Pair Encoding · Dense Connections
