Swin Transformer: Hierarchical Vision Transformer using Shifted Windows

被引:20724
作者
Liu, Ze [1 ,2 ]
Lin, Yutong [1 ,3 ]
Cao, Yue [1 ]
Hu, Han [1 ]
Wei, Yixuan [1 ,4 ]
Zhang, Zheng [1 ]
Lin, Stephen [1 ]
Guo, Baining [1 ]
机构
[1] Microsoft Res Asia, Beijing, Peoples R China
[2] Univ Sci & Technol China, Hefei, Peoples R China
[3] Xi An Jiao Tong Univ, Xian, Peoples R China
[4] Tsinghua Univ, Beijing, Peoples R China
来源
2021 IEEE/CVF INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV 2021) | 2021年
关键词
D O I
10.1109/ICCV48922.2021.00986
中图分类号
TP18 [人工智能理论];
学科分类号
140502 [人工智能];
摘要
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 AP on 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.7 box 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.
引用
收藏
页码:9992 / 10002
页数:11
相关论文
共 76 条
[1]
[Anonymous], 2017, P IEEE INT C COMP VI
[2]
[Anonymous], 2019, P EUR C COMP VIS ECC, DOI DOI 10.1007/S13143-018-0064-5
[3]
[Anonymous], 2020, P IEEE CVF C COMP VI, DOI DOI 10.1109/ICCWAMTIP51612.2020.9317476
[4]
[Anonymous], 2015, IEEE C COMPUTER VISI
[5]
Bao HB, 2020, PR MACH LEARN RES, V119
[6]
Beal Josh, 2020, P 35 C NEURAL INFORM, DOI DOI 10.48550/ARXIV.2012.09958
[7]
Bello Irwan, 2020, ATTENTION AUGMENTED
[8]
Bochkovskiy A., 2020, Technical Report
[9]
Cao Yue, 2019, P IEEE CVF INT C COM
[10]
End-to-End Object Detection with Transformers [J].
Carion, Nicolas ;
Massa, Francisco ;
Synnaeve, Gabriel ;
Usunier, Nicolas ;
Kirillov, Alexander ;
Zagoruyko, Sergey .
COMPUTER VISION - ECCV 2020, PT I, 2020, 12346 :213-229