Cited by 35,534Advanced Neural Network ApplicationsDomain Adaptation and Few-Shot LearningVisual Attention and Saliency Detection

Swin Transformer: Hierarchical Vision Transformer using Shifted Windows

Open access
Liu, Ze, Lin, Yutong, Cao, Yue, Hu, Han, Wei, Yixuan, Zhang, Zheng, Lin, Stephen, Guo, Baining·2021·2021 IEEE/CVF International Conference on Computer Vision (ICCV)

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 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.

AI snapshot

Written from the paper’s full text.

TL;DR

Swin Transformer is a hierarchical vision Transformer that computes self-attention within non-overlapping local windows and alternates regular and shifted window partitions to enable cross-window connections with linear complexity to image size. It achieves strong results as a general-purpose vision backbone on ImageNet-1K classification, COCO object detection/instance segmentation, and ADE20K semantic segmentation.

Key findings

  • Image classification: Swin-L reaches 87.3 top-1 accuracy on ImageNet-1K with ImageNet-22K pre-training; regular ImageNet-1K training gives Swin-T 81.3, Swin-S 83.0, and Swin-B 83.5 top-1 at 224² input.
  • COCO object detection/instance segmentation: Swin-L (HTC++) achieves 58.7 box AP and 51.1 mask AP on COCO test-dev, surpassing previous state-of-the-art by +2.7 box AP and +2.6 mask AP.
  • ADE20K semantic segmentation: Swin-L with ImageNet-22K pre-training achieves 53.5 mIoU on the val set, an improvement of +3.2 mIoU over the previous state-of-the-art (SETR).
  • Ablation: shifted windows improve Swin-T by +1.1% top-1 on ImageNet-1K, +2.8 box AP/+2.2 mask AP on COCO, and +2.8 mIoU on ADE20K over no shifting; relative position bias also improves results across the three tasks.

Methods

  • Architecture: input RGB image split into 4×4 non-overlapping patches, linearly embedded; four stages with patch merging to produce hierarchical feature maps. Swin Transformer blocks replace standard multi-head self-attention with window-based MSA using regular and shifted window partitioning; default window size M=7, query dimension d=32, MLP expansion α=4, and relative position bias.
  • Data and tasks: ImageNet-1K classification (1.28M training images, 50K validation images, 1,000 classes), ImageNet-22K pre-training (14.2M images, 22K classes), COCO 2017 detection/instance segmentation (118K train, 5K val, 20K test-dev), and ADE20K semantic segmentation (25K images: 20K train, 2K val, 3K test; 150 categories).
  • Analysis: reports top-1 accuracy, COCO box/mask AP, and ADE20K mIoU; compares against ViT/DeiT and ResNe(X)t backbones; ablates shifted windows, position embedding methods, and self-attention computation methods.

Limitations

  • The paper states that “a thorough kernel optimization is beyond the scope of this paper” and notes that Swin Transformer is implemented with built-in PyTorch functions that are not all well-optimized, which affects inference-speed comparisons against highly optimized Cudnn-based ResNe(X)t.
  • The paper states that SoftMax computation is omitted when determining computational complexity.
  • No dedicated limitations section is present; evident from the text, the main design ablations are conducted with Swin-T, and the COCO system-level comparison uses HTC++ with additional components (instaboost, stronger multi-scale training, soft-NMS, ImageNet-22K initialization), so those gains are not solely attributable to the backbone.

Model-written summary. Check it against the paper before relying on it.

Integrity signals

Registry

Crossref · 10.1109/iccv48922.2021.00986

Cites

96 of 96 references verified0 citation errors · 0 not checkable

Statistics

Nothing to recompute.

Claims the paper makes

36 of 41 cited sources checked · 17 supported · 2 flagged · accuracy not yet measured

  • Premisecitation
    § 2. Related Work

    ViT's architecture is unsuitable for use as a general-purpose backbone network on dense vision tasks or when the input image resolution is high, due to its low-resolution feature maps and the quadratic increase in complexity with image size.

    “The results of ViT on image classification are encouraging, but its architecture is unsuitable for use as a general-purpose backbone network on dense vision tasks or when the input image resolution is high, due to its low-resolution feature maps and the quadratic increase in complexity with image size.”
    Quote in the paperSubstantial claim1 of 1 sources checked
    • cites [20] [20] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations , 2021. 1, 2, 3, 4, 5, 6, 9 - source

      Split into 2 atoms — 0 confirmed, 1 partially supported, 1 disputed, 0 misattributed, 0 unverifiable. Expand the claim to see per-atom verdicts.

      Checked by a reasoning model — may be wrong.

      Experimental — accuracy not yet measured
  • Premisecitation
    § 1. Introduction

    Visual elements can vary substantially in scale, unlike word tokens in language Transformers.

    “Unlike the word tokens that serve as the basic elements of processing in language Transformers, visual elements can vary substantially in scale, a problem that receives attention in tasks such as object detection [42, 53, 54].”
    Quote in the paperSubstantial claim2 of 3 sources checked
    • cites [42] [42] Tsung-Yi Lin, Piotr Dollar, Ross Girshick, Kaiming He, Bharath Hariharan, and Serge Belongie. Feature pyramid networks for object detection. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) , July 2017. 2 - source
    • cites [53] [53] Bharat Singh and Larry S Davis. An analysis of scale invariance in object detection snip. In Proceedings of the IEEE conference on computer vision and pattern recognition , pages 3578-3587, 2018. 2 - source
    • cites [54] [54] Bharat Singh, Mahyar Najibi, and Larry S Davis. Sniper: Efficient multi-scale training. In Advances in Neural Information Processing Systems , volume 31. Curran Associates, Inc., 2018. 2 - source
  • Findingown data
    § Abstract

    Swin Transformer's performance surpasses previous state-of-the-art by +3.2 mIoU on ADE20K.

    “Its performance surpasses the previous state-of-theart 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.”
    • Also stated in: § 1. Introduction · plain
      “On ADE20K semantic segmentation, it obtains 53.5 mIoU on the val set, an improvement of +3.2 mIoU over the previous state-of-the-art (SETR [81]).”
    Quote in the paperSubstantial claim1 of 1 sources checked
    • cites [81] [81] Sixiao Zheng, Jiachen Lu, Hengshuang Zhao, Xiatian Zhu, Zekun Luo, Yabiao Wang, Yanwei Fu, Jianfeng Feng, Tao Xiang, Philip HS Torr, et al. Rethinking semantic segmentation from a sequence-to-sequence perspective with transformers. arXiv preprint arXiv:2012.15840 , 2020. 2, 3, 7, 8 - source

      Section 4.3 reports that SETR-MLA achieved 50.28% mIoU on ADE20K with multi-scale inference. Searches for Swin Transformer and a +3.2 mIoU improvement found no passage in our copy addressing the attributed claim; the SETR result does not establish or refute Swin Transformer's performance. (LLM, conf=0.76)

      Experimental — accuracy not yet measured
  • Findingown data
    § 3.2. Shifted Window based Self-Attention

    Adding absolute position embedding to the input drops performance slightly.

    “Further adding absolute position embedding to the input as in [20] drops performance slightly, thus it is not adopted in our implementation.”
    Quote in the paperNot a substantial claim1 of 1 sources checked
    • cites [20] [20] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations , 2021. 1, 2, 3, 4, 5, 6, 9 - source
  • Findingown data
    § 4.1. Image Classification on ImageNet-1K

    Swin Transformer achieves a slightly better speed-accuracy trade-off than state-of-the-art ConvNets RegNet and EfficientNet.

    “Compared with the state-of-the-art ConvNets, i.e. RegNet [48] and EfficientNet [58], the Swin Transformer achieves a slightly better speed-accuracy trade-off.”
    Quote in the paperSubstantial claim2 of 2 sources checked
    • cites [48] [48] Ilija Radosavovic, Raj Prateek Kosaraju, Ross Girshick, Kaiming He, and Piotr Doll´ ar. Designing network design spaces. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition , pages 1042810436, 2020. 6 - source
    • cites [58] [58] Mingxing Tan and Quoc Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In International Conference on Machine Learning , pages 6105-6114. PMLR, 2019. 3, 6 - source

      The cited paper’s experiment setup and ablation study (pp. 8–9) compare deformable ConvNets with other convolutional models. Searches for Swin Transformer, RegNet, EfficientNet, and the claimed speed–accuracy trade-off found no passage addressing that comparison. (LLM, conf=0.78)

      Experimental — accuracy not yet measured
  • Classified as probably not a substantial claim. 11
  • May combine two claims. 28
  • Classified as probably not a substantial claim.

    Study design and conductcitation
    § 4.2. Object Detection on COCO

    For fair comparison, hierarchical feature maps for DeiT are constructed using deconvolution layers following [81].

    “For fair comparison, we follow [81] to construct hierarchical feature maps for DeiT using deconvolution layers.”
    Quote in the paperSubstantial claim1 of 1 sources checked
    • cites [81] [81] Sixiao Zheng, Jiachen Lu, Hengshuang Zhao, Xiatian Zhu, Zekun Luo, Yabiao Wang, Yanwei Fu, Jianfeng Feng, Tao Xiang, Philip HS Torr, et al. Rethinking semantic segmentation from a sequence-to-sequence perspective with transformers. arXiv preprint arXiv:2012.15840 , 2020. 2, 3, 7, 8 - source

      Section 3.3 (Decoder designs; page unavailable) says SETR’s transformer-layer features share the same resolution, rather than forming a resolution pyramid. It describes bilinear upsampling, not deconvolution layers, so the cited method does not construct hierarchical feature maps in the way claimed. (LLM, conf=0.87)

      Checked by a reasoning model — may be wrong.

      Experimental — accuracy not yet measured
  • May combine two claims.

    Premisecitation
    § 1. Introduction

    The computational complexity of self-attention in Transformer is quadratic to image size, making dense prediction on high-resolution images intractable.

    “There exist many vision tasks such as semantic segmentation that require dense prediction at the pixel level, and this would be intractable for Transformer on high-resolution images, as the computational complexity of its self-attention is quadratic to image size.”
    Quote in the paperSubstantial claim2 of 2 sources checked
    • cites [64] [64] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems , pages 5998-6008, 2017. 1, 2, 4 - source

      Table 1 (p. 5) gives self-attention complexity as O(n²d), where n is sequence length. Section 4 (p. 6) also notes a computational concern for very long sequences. The paper does not address image size, dense prediction, or whether high-resolution image tasks are intractable. (LLM, conf=0.88)

      Experimental — accuracy not yet measured
    • cites [20] [20] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations , 2021. 1, 2, 3, 4, 5, 6, 9 - source

      Related Work (p. 2) says that naive pixel-level self-attention has quadratic cost in the number of pixels and does not scale to realistic image sizes. It does not say dense prediction is intractable for Transformers generally; the same passage discusses approximations, while the Conclusion (p. 9) identifies segmentation as a future application of ViT. (LLM, conf=0.86)

      Experimental — accuracy not yet measured
  • Probably not a substantial claim: may not pass S3 (load-bearing). May combine two claims.

    Findingcitation
    § Abstract

    The hierarchical design and the shifted window approach prove beneficial for all-MLP architectures.

    “The hierarchical design and the shifted window approach also prove beneficial for all-MLP architectures.”
    • Also stated in: § 1. Introduction · plain
      “The shifted window approach also proves beneficial for all-MLP architectures [61].”
    Quote in the paperNot a substantial claim1 of 1 sources checked
    • cites [61] [61] Ilya Tolstikhin, Neil Houlsby, Alexander Kolesnikov, Lucas Beyer, Xiaohua Zhai, Thomas Unterthiner, Jessica Yung, Andreas Steiner, Daniel Keysers, Jakob Uszkoreit, Mario Lucic, and Alexey Dosovitskiy. Mlp-mixer: An all-mlp architecture for vision, 2021. 2, 10, 11 - source

      The passages in ‘Bag of specials’ (p. 4) and ‘Selection of architecture’ (p. 5) discuss multi-scale feature integration and YOLOv4’s detector design, not all-MLP architectures. Searches for shifted windows and hierarchical design found no passage addressing whether those approaches benefit all-MLP architectures. (LLM, conf=0.76)

      Experimental — accuracy not yet measured
  • May combine two claims.

    Findingown data
    § Abstract

    Swin Transformer's performance surpasses previous state-of-the-art by +2.7 box AP and +2.6 mask AP on COCO.

    “Its performance surpasses the previous state-of-theart 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.”
    • Also stated in: § 1. Introduction · plain
      “Its 58.7 box AP and 51.1 mask AP on the COCO test-dev set surpass the previous state-of-the-art results by +2.7 box AP (Copy-paste [26] without external data) and +2.6 mask AP (DetectoRS [46]).”
    Quote in the paperSubstantial claim1 of 2 sources checked
    • cites [26] [26] Golnaz Ghiasi, Yin Cui, Aravind Srinivas, Rui Qian, TsungYi Lin, Ekin D Cubuk, Quoc V Le, and Barret Zoph. Simple copy-paste is a strong data augmentation method for instance segmentation. arXiv preprint arXiv:2012.07177 , 2020. 2, 7 -

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [46] [46] Siyuan Qiao, Liang-Chieh Chen, and Alan Yuille. Detectors: Detecting objects with recursive feature pyramid and switchable atrous convolution. arXiv preprint arXiv:2006.02334 , 2020. 2, 7 - source

      The Abstract (p. 1) describes Long-Range Arena as a benchmark for efficient Transformers, and §2.2.4 (p. 4) describes an image-classification task using CIFAR-10. Searches for Swin Transformer, COCO, box AP, and mask AP found no passage addressing the claimed performance gains. (LLM, conf=0.78)

      Experimental — accuracy not yet measured
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation
    § 1. Introduction

    The Transformer is notable for its use of attention to model long-range dependencies in the data.

    “Designed for sequence modeling and transduction tasks, the Transformer is notable for its use of attention to model long-range dependencies in the data.”
    Quote in the paperNot a substantial claim1 of 1 sources checked
    • cites [64] [64] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems , pages 5998-6008, 2017. 1, 2, 4 - source
  • May combine two claims.

    Premisereasoning
    § 1. Introduction

    In existing Transformer-based models, tokens are all of a fixed scale, a property unsuitable for vision applications.

    “In existing Transformer-based models [64, 20], tokens are all of a fixed scale, a property unsuitable for these vision applications.”
    Quote in the paperSubstantial claim2 of 2 sources checked
    • cites [64] [64] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems , pages 5998-6008, 2017. 1, 2, 4 - source

      Section 3.4 (p. 5) says the Transformer converts tokens to vectors of a common dimension, but it does not describe tokens as having a fixed spatial scale. The passages on model architecture and applications (pp. 2–5), and searches for fixed-scale tokens and vision applications, do not address whether that property makes Transformers unsuitable for vision. (LLM, conf=0.72)

      Experimental — accuracy not yet measured
    • cites [20] [20] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations , 2021. 1, 2, 3, 4, 5, 6, 9 - source

      Section 3.1 (p. 3) describes dividing each image into patches of a specified size, supporting the fixed-scale token point for ViT. But the Abstract (p. 1) says this patch-based Transformer performs very well on image classification, so the paper does not support calling fixed-scale tokens unsuitable for vision applications. (LLM, conf=0.88)

      Experimental — accuracy not yet measured
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Interpretationcitation
    § 3.2. Shifted Window based Self-Attention

    The learnt relative position bias in pre-training can be used to initialize a model for fine-tuning with a different window size through bi-cubic interpolation.

    “The learnt relative position bias in pre-training can be also used to initialize a model for fine-tuning with a different window size through bi-cubic interpolation [20, 63].”
    Quote in the paperNot a substantial claim2 of 2 sources checked
    • cites [20] [20] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations , 2021. 1, 2, 3, 4, 5, 6, 9 - source

      Section 3.2 (p. 4) says ViT uses 2D interpolation of pre-trained position embeddings when fine-tuning at a higher image resolution. Appendix D.4 (p. 17) describes relative positional embeddings that contribute an attention bias, but our copy does not say that this bias is interpolated for a different window size or specify bi-cubic interpolation. (LLM, conf=0.88)

      Experimental — accuracy not yet measured
    • cites [63] [63] Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Herv´ e J´ egou. Training data-efficient image transformers & distillation through attention. arXiv preprint arXiv:2012.12877 , 2020. 2, 3, 5, 6, 9, 11 - source

      Section 6 (p. 16) says the authors use bicubic interpolation of positional embeddings before fine-tuning at a different image resolution; Section 3 (p. 6) explains that the number of patch embeddings changes with resolution. The cited paper does not say this works for a learnt relative position bias or a different window size. (LLM, conf=0.88)

      Experimental — accuracy not yet measured
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation
    § 2. Related Work

    DeiT introduces training strategies that allow ViT to be effective using the smaller ImageNet-1K dataset.

    “While ViT requires large-scale training datasets (i.e., JFT-300M) to perform well, DeiT [63] introduces several training strategies that allow ViT to also be effective using the smaller ImageNet-1K dataset.”
    Quote in the paperNot a substantial claim1 of 1 sources checked
    • cites [63] [63] Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Herv´ e J´ egou. Training data-efficient image transformers & distillation through attention. arXiv preprint arXiv:2012.12877 , 2020. 2, 3, 5, 6, 9, 11 - source
  • May combine two claims.

    Findingown data
    § 4.1. Image Classification on ImageNet-1K

    Swin Transformers noticeably surpass counterpart DeiT architectures with similar complexities: +1.5% for Swin-T over DeiT-S using 224^2 input, and +1.5%/1.4% for Swin-B over DeiT-B using 224^2/384^2 input.

    “Compared to the previous state-of-the-art Transformerbased architecture, i.e. DeiT [63], Swin Transformers noticeably surpass the counterpart DeiT architectures with similar complexities: +1.5% for Swin-T (81.3%) over DeiT-S (79.8%) using 224 2 input, and +1.5%/1.4% for Swin-B (83.3%/84.5%) over DeiT-B (81.8%/83.1%) using 224 2 /384 2 input, respectively.”
    Quote in the paperSubstantial claim1 of 1 sources checked
    • cites [63] [63] Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Herv´ e J´ egou. Training data-efficient image transformers & distillation through attention. arXiv preprint arXiv:2012.12877 , 2020. 2, 3, 5, 6, 9, 11 - source
  • May combine two claims.

    Findingown data
    § 4.1. Image Classification on ImageNet-1K

    Swin-B obtains 86.4% top-1 accuracy, which is 2.4% higher than ViT with similar inference throughput and slightly lower FLOPs.

    “Swin-B obtains 86.4% top-1 accuracy, which is 2.4% higher than that of ViT with similar inference throughput (84.7 vs. 85.9 images/sec) and slightly lower FLOPs (47.0G vs. 55.4G).”
    Quote in the paperSubstantial claim1 of 1 sources checked
    • cites [20] [20] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations , 2021. 1, 2, 3, 4, 5, 6, 9 - source

      The comparison to the state of the art (pp. 5–6) reports ViT results, and the empirical computational costs section (p. 18) discusses ViT inference speed. Neither those passages nor searches for Swin-B, 86.4%, the stated throughput, and the FLOP figures found the claimed Swin-B–ViT comparison in our copy. (LLM, conf=0.76)

      Experimental — accuracy not yet measured
  • May combine two claims.

    Findingown data
    § 1. Introduction

    Swin Transformer outperforms ViT/DeiT and ResNe(X)t models significantly with similar latency on image classification, object detection and semantic segmentation.

    “It outperforms the ViT / DeiT [20, 63] and ResNe(X)t models [30, 70] significantly with similar latency on the three tasks.”
    Quote in the paperSubstantial claim3 of 4 sources checked
    • cites [20] [20] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations , 2021. 1, 2, 3, 4, 5, 6, 9 - source
    • cites [63] [63] Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Herv´ e J´ egou. Training data-efficient image transformers & distillation through attention. arXiv preprint arXiv:2012.12877 , 2020. 2, 3, 5, 6, 9, 11 - source
    • cites [30] [30] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition , pages 770-778, 2016. 1, 2, 4 -

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [70] [70] Saining Xie, Ross Girshick, Piotr Doll´ ar, Zhuowen Tu, and Kaiming He. Aggregated residual transformations for deep neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition , pages 14921500, 2017. 1, 2, 3 - source
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation
    § 2. Related Work

    ViT requires large-scale training datasets (i.e., JFT-300M) to perform well.

    “While ViT requires large-scale training datasets (i.e., JFT-300M) to perform well, DeiT [63] introduces several training strategies that allow ViT to also be effective using the smaller ImageNet-1K dataset.”
    Quote in the paperNot a substantial claim1 of 1 sources checked
    • cites [20] [20] Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations , 2021. 1, 2, 3, 4, 5, 6, 9 - source
  • May combine two claims.

    Findingown data
    § 4.2. Object Detection on COCO

    Our best model achieves 58.7 box AP and 51.1 mask AP on COCO test-dev, surpassing previous best results by +2.7 box AP (Copy-paste without external data) and +2.6 mask AP (DetectoRS).

    “Our best model achieves 58.7 box AP and 51.1 mask AP on COCO test-dev, surpassing the previous best results by +2.7 box AP (Copy-paste [26] without external data) and +2.6 mask AP (DetectoRS [46]).”
    Quote in the paperSubstantial claim1 of 2 sources checked
    • cites [26] [26] Golnaz Ghiasi, Yin Cui, Aravind Srinivas, Rui Qian, TsungYi Lin, Ekin D Cubuk, Quoc V Le, and Barret Zoph. Simple copy-paste is a strong data augmentation method for instance segmentation. arXiv preprint arXiv:2012.07177 , 2020. 2, 7 -

      Couldn’t be matched to a paper in Crossref, so it can’t be checked.

    • cites [46] [46] Siyuan Qiao, Liang-Chieh Chen, and Alan Yuille. Detectors: Detecting objects with recursive feature pyramid and switchable atrous convolution. arXiv preprint arXiv:2006.02334 , 2020. 2, 7 - source

      The Quantitative Results (p. 7) report Long Range Arena Transformer benchmarks, not COCO test-dev box or mask AP. Searches for the stated AP scores, Copy-paste, and DetectoRS found no passage in our copy addressing the claimed results or comparisons. (LLM, conf=0.78)

      Experimental — accuracy not yet measured
  • Probably not a substantial claim: may not pass S1 (asserted), S3 (load-bearing).

    Premisecitation
    § A2.1. Image classification on ImageNet-1K

    Repeated augmentation is crucial to stabilize the training of ViT.

    “Note that this is contrary to [63] where repeated augmentation is crucial to stabilize the training of ViT.”
    Quote in the paperNot a substantial claim1 of 1 sources checked
    • cites [63] [63] Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Herv´ e J´ egou. Training data-efficient image transformers & distillation through attention. arXiv preprint arXiv:2012.12877 , 2020. 2, 3, 5, 6, 9, 11 - source

      In “Training details & ablation” (p. 16), the paper calls repeated augmentation a key ingredient of its DeiT training procedure and says it significantly boosts performance. It does not say repeated augmentation is crucial for stabilizing training; Table 9 (p. 16) also lists it for DeiT-B but not for the original ViT-B training procedure. (LLM, conf=0.86)

      Experimental — accuracy not yet measured
  • May combine two claims.

    Findingown data
    § 4.3. Semantic Segmentation on ADE20K

    Swin-L with ImageNet-22K pre-training achieves 53.5 mIoU on ADE20K val set, surpassing previous best by +3.2 mIoU (50.3 mIoU by SETR which has a larger model size).

    “Our Swin-L model with ImageNet-22K pre-training achieves 53.5 mIoU on the val set, surpassing the previous best model by +3.2 mIoU (50.3 mIoU by SETR [81] which has a larger model size).”
    Quote in the paperSubstantial claim1 of 1 sources checked
    • cites [81] [81] Sixiao Zheng, Jiachen Lu, Hengshuang Zhao, Xiatian Zhu, Zekun Luo, Yabiao Wang, Yanwei Fu, Jianfeng Feng, Tao Xiang, Philip HS Torr, et al. Rethinking semantic segmentation from a sequence-to-sequence perspective with transformers. arXiv preprint arXiv:2012.15840 , 2020. 2, 3, 7, 8 - source
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Premisecitation
    § 4.4. Ablation Study

    Performer is one of the fastest Transformer architectures.

    “Compared to Performer [14], which is one of the fastest Transformer architectures (see [60])”
    Quote in the paperNot a substantial claim2 of 2 sources checked
    • cites [14] [14] Krzysztof Marcin Choromanski, Valerii Likhosherstov, David Dohan, Xingyou Song, Andreea Gane, Tamas Sarlos, Peter Hawkins, Jared Quincy Davis, Afroz Mohiuddin, Lukasz Kaiser, David Benjamin Belanger, Lucy J Colwell, and Adrian Weller. Rethinking attention with performers. In International Conference on Learning Representations , 2021. 8, 9 - source
    • cites [60] [60] Yi Tay, Mostafa Dehghani, Samira Abnar, Yikang Shen, Dara Bahri, Philip Pham, Jinfeng Rao, Liu Yang, Sebastian Ruder, and Donald Metzler. Long range arena : A bench- 14. mark for efficient transformers. In International Conference on Learning Representations , 2021. 8 - source

      The Scaling Study (p. 8) compares Vision Transformer compute with ResNets, and the Axial Attention appendix (p. 19) discusses speed for other models. Searches for Performer and Transformer speed comparisons found no passage assessing Performer or ranking it among the fastest architectures. (LLM, conf=0.78)

      Experimental — accuracy not yet measured
  • May combine two claims.

    Findingreasoning
    § 3.2. Shifted Window based Self-Attention

    With the cyclic-shift, the number of batched windows remains the same as that of regular window partitioning, and thus is also efficient.

    “With the cyclic-shift, the number of batched windows remains the same as that of regular window partitioning, and thus is also efficient.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data
    § 2. Related Work

    Swin Transformer achieves state-of-the-art accuracy on both COCO object detection and ADE20K semantic segmentation.

    “Our approach is both efficient and effective, achieving state-of-the-art accuracy on both COCO object detection and ADE20K semantic segmentation.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingreasoning
    § 3.2. Shifted Window based Self-Attention

    The computational complexity of a global MSA module is quadratic to patch number hw, and the window based one is linear when M is fixed.

    “where the former is quadratic to patch number hw , and the latter is linear when M is fixed (set to 7 by default).”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data
    § 1. Introduction

    The shifted window approach has much lower latency than the sliding window method, yet is similar in modeling power.

    “Our experiments show that the proposed shifted window approach has much lower latency than the sliding window method, yet is similar in modeling power (see Tables 5 and 6).”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data
    § 3.2. Shifted Window based Self-Attention

    The shifted window partitioning approach introduces connections between neighboring non-overlapping windows in the previous layer and is effective in image classification, object detection, and semantic segmentation.

    “The shifted window partitioning approach introduces connections between neighboring non-overlapping windows in the previous layer and is found to be effective in image classification, object detection, and semantic segmentation, as shown in Table 4.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingreasoning
    § 3.2. Shifted Window based Self-Attention

    Global self-attention computation is generally unaffordable for a large hw, while the window based self-attention is scalable.

    “Global self-attention computation is generally unaffordable for a large hw , while the window based self-attention is scalable.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingnone given
    § 5. Conclusion

    Swin Transformer achieves state-of-the-art performance on COCO object detection and ADE20K semantic segmentation, significantly surpassing previous best methods.

    “Swin Transformer achieves the state-of-the-art performance on COCO object detection and ADE20K semantic segmentation, significantly surpassing previous best methods.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data
    § A3.3. Swin MLP-Mixer

    Swin-Mixer performs significantly better than MLP-Mixer (81.3% vs. 76.4%) using slightly smaller computation budget (10.4G vs. 12.7G).

    “Swin-Mixer performs significantly better than MLP-Mixer (81.3% vs. 76.4%) using slightly smaller computation budget (10.4G vs. 12.7G).”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingnone given
    § A2.1. Image classification on ImageNet-1K

    Repeated augmentation and Exponential Moving Average (EMA) do not enhance performance.

    “but not repeated augmentation [31] and Exponential Moving Average (EMA) [45] which do not enhance performance.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data
    § 4.4. Ablation Study

    Proposed shifted window based self-attention computation and overall Swin Transformer architectures are slightly faster than Performer.

    “the proposed shifted window based self-attention computation and the overall Swin Transformer architectures are slightly faster (see Table 5)”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data
    § 4.2. Object Detection on COCO

    Swin-T results are +2.5 box AP and +2.3 mask AP higher than DeiT-S with similar model size (86M vs. 80M) and significantly higher inference speed (15.3 FPS vs. 10.4 FPS).

    “The results of Swin-T are +2.5 box AP and +2.3 mask AP higher than DeiT-S with similar model size (86M vs. 80M) and significantly higher inference speed (15.3 FPS vs. 10.4 FPS).”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data
    § 5. Conclusion

    Shifted window based self-attention is effective and efficient on vision problems.

    “As a key element of Swin Transformer, the shifted window based self-attention is shown to be effective and efficient on vision problems”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data
    § 4.4. Ablation Study

    Relative position bias is effective, yielding improvements on COCO and ADE20K relative to no position encoding and absolute position embedding, respectively.

    “on COCO, and +2.3/+2.9 mIoU on ADE20K in relation to those without position encoding and with absolute position embedding, respectively, indicating the effectiveness of the relative position bias.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Findingown data
    § 4.2. Object Detection on COCO

    Swin Transformer achieves 51.9 box AP and 45.0 mask AP under Cascade Mask R-CNN, gains of +3.6 box AP and +3.3 mask AP over ResNeXt10164x4d with similar model size, FLOPs and latency.

    “Swin Transformer achieves a high detection accuracy of 51.9 box AP and 45.0 mask AP, which are significant gains of +3.6 box AP and +3.3 mask AP over ResNeXt10164x4d, which has similar model size, FLOPs and latency.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data
    § 4.2. Object Detection on COCO

    Swin-T brings consistent +3.4 ∼ 4.2 box AP gains over ResNet-50 on the four object detection frameworks, with slightly larger model size, FLOPs and latency.

    “Our Swin-T architecture brings consistent +3.4 ∼ 4.2 box AP gains over ResNet-50, with slightly larger model size, FLOPs and latency.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Findingown data
    § A3.1. Image classification with different input size

    Larger input resolution leads to better top-1 accuracy but slower inference speed.

    “In general, a larger input resolution leads to better top-1 accuracy but with slower inference speed.”
    Quote in the paperNot a substantial claim
  • Probably not a substantial claim: may not pass S4 (based).

    Premisenone given
    § Abstract

    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.

    “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.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Interpretationnone given
    § Abstract

    The shifted windowing scheme brings greater efficiency by limiting self-attention computation to non-overlapping local windows while also allowing for cross-window connection.

    “The shifted windowing scheme brings greater efficiency by limiting self-attention computation to non-overlapping local windows while also allowing for cross-window connection.”
    Quote in the paperSubstantial claim
  • Classified as probably not a substantial claim.

    Study design and conductnone given
    § 4.2. Object Detection on COCO

    The comparisons in object detection are conducted by changing only the backbones with other settings unchanged.

    “The comparisons are conducted by changing only the backbones with other settings unchanged.”
    Quote in the paperSubstantial claim
  • May combine two claims.

    Premisereasoning
    § 4.2. Object Detection on COCO

    Swin Transformer and ResNe(X)t are directly applicable to all the above object detection frameworks because of their hierarchical feature maps, while DeiT only produces a single resolution of feature maps and cannot be directly applied.

    “Note that while Swin Transformer and ResNe(X)t are directly applicable to all the above frameworks because of their hierarchical feature maps, DeiT only produces a single resolution of feature maps and cannot be directly applied.”
    Quote in the paperSubstantial claim
  • Probably not a substantial claim: may not pass S3 (load-bearing).

    Study design and conductnone given
    § 4.2. Object Detection on COCO

    Our architecture is implemented with built-in PyTorch functions that are not all well-optimized.

    “our architecture is implemented with built-in PyTorch functions that are not all well-optimized.”
    Quote in the paperNot a substantial claim
  • May combine two claims.

    Interpretationown data
    § A3.3. Swin MLP-Mixer

    Proposed hierarchical design and shifted window approach are generalizable.

    “These results indicate the proposed hierarchical design and the shifted window approach are generalizable.”
    Quote in the paperSubstantial claim
38 of 38

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Swin Transformer uses shifted window-based self-attention to compute multi-scale spatial features efficiently, improving performance in crowded or cluttered scenes.

    “Swin Transformer: Uses shifted window-based selfattention to compute multi-scale spatial features efficiently, improving performance in crowded or cluttered scenes [31].”

    From A Comprehensive Survey of Transformer-Based Models for Video Anomaly Detection in Surveillance Systems (2025) · cites this paper as [31]

    The Introduction describes hierarchical, multi-scale feature maps and efficient self-attention within shifted windows; the Ablation Study reports performance gains from shifted windows on general vision benchmarks. The paper does not establish that those gains occur specifically in crowded or cluttered scenes (searched for those conditions). (LLM, conf=0.88)

    Experimental — accuracy not yet measured
  • Local MSAs, which calculate self-attention only within small windows, achieve better performance than global MSAs on small datasets and large datasets.

    “For example, local MSAs (Yang et al., 2019; Liu et al., 2021; Chu et al., 2021), which calculate self-attention only within small windows, achieve better performance than global MSAs not only on small datasets but also on large datasets, e.g., ImageNet-21K.”

    From How Do Vision Transformers Work? (2022) · cites this paper as Liu et al., 2021

    Section 3.2 (page not available) confirms that Swin computes self-attention within local windows. Section 4.1 (page not available) reports better ImageNet-1K accuracy than the global-attention DeiT and better results than ViT after ImageNet-22K pre-training. It does not establish better performance on small datasets or on ImageNet-21K; the reported large-scale pre-training dataset is ImageNet-22K. (LLM, conf=0.87)

    Experimental — accuracy not yet measured
  • Vision Transformers have an inherent tendency to prioritize global features.

    “Vision Transformer is known for its inherent tendency to prioritize global features [8], [242]”

    From Evolving from Single-modal to Multi-modal Facial Deepfake Detection: Progress and Challenges (2024) · cites this paper as [242]

    Section 3.2 says standard Vision Transformers compute global self-attention, relating each token to all other tokens. That supports access to global information, but the paper does not establish an inherent tendency to prioritize global features over local ones. (LLM, conf=0.83)

    Experimental — accuracy not yet measured
  • Swin-Transformer enhances the ViT framework by integrating a hierarchical structure with shifted windows, improving local feature capture while maintaining global context.

    “Furthermore, Swin-Transformer [7] saw another significant advancement. This model enhances the ViT framework by integrating a hierarchical structure with shifted windows, a design choice that substantially improves the model's ability to capture local features while still maintaining a global context.”

    From Model Quantization and Hardware Acceleration for Vision Transformers: A Comprehensive Survey (2024) · cites this paper as [7]

    The Abstract and Section 3.1 describe a hierarchical Transformer that computes attention within local windows, while Section 3.2 says shifted windows connect neighboring windows and enhance modeling power. These passages support the architectural description, but they do not establish that the design substantially improves local-feature capture while maintaining global context as claimed. (LLM, conf=0.80)

    Experimental — accuracy not yet measured
  • Models such as DINOv2, Vision Transformers (ViT), and Swin Transformers have demonstrated outstanding transfer learning performance across a wide range of domains, often achieving state-of-the-art results with only minimal fine-tuning.

    “Models such as DINOv2 [7], Vision Transformers (ViT) [8], and Swin Transformers [9] have demonstrated outstanding transfer learning performance across a wide range of domains, often achieving state-of-the-art results with only minimal fine-tuning.”

    From Trustworthy Celestial Eye: Calibrated and Robust Planetary Classification via Self-Supervised Vision Transformers (2026) · cites this paper as [9]

    The Abstract reports that Swin Transformer surpasses previous state-of-the-art results on COCO object detection and ADE20K semantic segmentation, supporting strong performance across several vision tasks. It does not establish performance across a wide range of domains or with minimal fine-tuning; Appendix A2.2–A2.3 describes substantial task-specific training. (LLM, conf=0.87)

    Experimental — accuracy not yet measured

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

Each contradiction between two passages listed here was confirmed by an independent check.

  • Conflicting Swin-B accuracy at 2242 resolution

    Minor

    The text reports 83.3% top-1 accuracy for the regularly trained Swin-B at 2242 resolution, but Table 1 reports 83.5% for the same model and resolution. Table 8 also reports 83.3%.

1 of 1

Cites

Flagged first, then by citations

43 of the 139 references couldn’t be matched to a known paper.

Cited by

Sorted by citations

Authors
Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., & Guo, B.
Affiliations
  • University of Science and Technology of China (CN)
  • Microsoft Research Asia (China) (CN)
Venue
2021 IEEE/CVF International Conference on Computer Vision (ICCV)
Publisher
IEEE
Published
2021-10
Pages
9992-10002
OpenAlex
W3138516171
Cited by
35,534
References
139
Citations by year
2026: 6175 · 2025: 10280 · 2024: 9238 · 2023: 6683 · 2022: 2761 · 2021: 389 · 2020: 5 · 2012: 1
FWCI
1556.28
Type
conference paper
Language
en
Open access
Locations
  • IEEE/CVF International Conference on Computer Vision (ICCV) (publishedVersion)
  • arXiv (Cornell University) (submittedVersion, cc-by)
  • arXiv (Cornell University) (cc-by)
Topics
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Advanced Neural Network Applications
  • Physical Sciences › Computer Science › Artificial Intelligence › Domain Adaptation and Few-Shot Learning
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Visual Attention and Saliency Detection
Keywords
Swin Transformer, vision transformer, hierarchical vision transformer, self-attention, linear computational complexity, image classification, object detection, semantic segmentation, dense prediction

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Claims read under definition version 3 (extract-v3) on 2026-09-28.

Classified by jev-1.13-20260917 (gold-guideline-v0.2) on 2026-09-28.

Cited sources are checked by gpt-6-sol.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review