Paper page - Swin Transformer: Hierarchical Vision Transformer using Shifted Windows (original) (raw)

Published on Mar 25, 2021

Abstract

Swin Transformer, a hierarchical vision Transformer with shifted windowing, achieves state-of-the-art performance across various computer vision tasks with efficient and flexible representation.

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 Shifted windows. 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 a broad range of vision tasks, including image classification (87.3 top-1 accuracy on ImageNet-1K) and dense prediction tasks such as object detection (58.7 box AP and 51.1 mask APon COCO test-dev) and semantic segmentation (53.5 mIoU on ADE20K val). Its performance surpasses the previous state-of-the-art by a large margin of +2.7box AP and +2.6 mask AP on COCO, and +3.2 mIoU on ADE20K, demonstrating the potential of Transformer-based models as vision backbones. The hierarchical design and the shifted window approach also prove beneficial for all-MLP architectures. The code and models are publicly available at~https://github.com/microsoft/Swin-[Transformer](/papers?q=Transformer).

View arXiv page View PDF Add to collection

Get this paper in your agent:

hf papers read 2103.14030

Don't have the latest CLI?

curl -LsSf https://hf.co/cli/install.sh | bash

Models citing this paper 90

microsoft/swin-tiny-patch4-window7-224 Image Classification • 28.3M • Updated Sep 15, 2023 • 29.9k • 53

microsoft/swin-base-patch4-window7-224 Image Classification • 87.8M • Updated Sep 10, 2023 • 45.8k • 26

microsoft/swin-base-patch4-window7-224-in22k Image Classification • 0.1B • Updated Jun 27, 2023 • 3.68k • 17

BVRA/MegaDescriptor-L-384 Image Classification • Updated Oct 14, 2024 • 7.28k • 17

Browse 90 models citing this paper

Datasets citing this paper 0

No dataset linking this paper

Cite arxiv.org/abs/2103.14030 in a dataset README.md to link it from this page.

Spaces citing this paper 184

Collections including this paper 9

Browse 9 collections that include this paper