Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
Open accessAbstract
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 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~\url{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 uses shifted local windows for self-attention, giving linear complexity with respect to input image size. The paper reports strong results on ImageNet-1K, COCO, and ADE20K, including 87.3 top-1 accuracy on ImageNet-1K, 58.7 box AP/51.1 mask AP on COCO test-dev, and 53.5 mIoU on ADE20K val.
## Key findings
- The shifted-window design improves over regular window partitioning by +1.1% top-1 accuracy on ImageNet-1K, +2.8 box AP / +2.2 mask AP on COCO, and +2.8 mIoU on ADE20K (Table 4 / ablation text).
- With regular ImageNet-1K training, Swin-T reaches 81.3% top-1, beating DeiT-S (79.8%) by +1.5%; Swin-B reaches 83.3% at 224² and 84.5% at 384², both ahead of DeiT-B (81.8% / 83.1%).
- With ImageNet-22K pre-training, Swin-B reaches 86.4% top-1 and Swin-L reaches 87.3% top-1 on ImageNet-1K fine-tuning.
- On COCO, Swin-L (HTC++)* reports 58.0 box AP / 50.4 mask AP on mini-val and 58.7 box AP / 51.1 mask AP on test-dev; the paper says this is +2.7 box AP and +2.6 mask AP over prior best methods.
- On ADE20K, Swin-L achieves 53.5 mIoU on val, which the paper states is +3.2 mIoU over the previous best (50.3 mIoU by SETR).
## Methods
- The model splits an input RGB image into non-overlapping 4×4 patches, embeds them linearly, and then processes them with Swin Transformer blocks while progressively merging patches to build a hierarchical feature pyramid.
- Self-attention is computed within local non-overlapping windows of size 7×7 by default, and consecutive blocks use shifted window partitioning to create cross-window connections.
- Experiments are run on ImageNet-1K (1.28M train, 50K val, 1,000 classes), ImageNet-22K (14.2M images, 22K classes), COCO 2017 (118K train, 5K val, 20K test-dev), and ADE20K (25K images; 20K train, 2K val, 3K test), with classification, detection, and segmentation benchmarks using standard backbone swaps and UperNet / Cascade Mask R-CNN / HTC++ settings.
## Limitations
- The paper states that Swin Transformer is implemented with built-in PyTorch functions that are not all well-optimized, and that a “thorough kernel optimization is beyond the scope of this paper.”
- It also notes that inference speed is lower for DeiT because of quadratic complexity, but this is a comparison point rather than a limitation of Swin itself.
- Evident from the text: several reported gains rely on specific pre-training and fine-tuning regimes (notably ImageNet-22K pre-training and multi-scale test/training), so the strongest numbers are not from a single training setup.
Model-written summary. Check it against the paper before relying on it.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
0 of 52 cited sources checked · 0 supported · 0 flagged
- Findingnone given§ 1. Introduction
Swin Transformer achieves 87.3% top-1 accuracy on ImageNet-1K image classification.
“It also achieves a top-1 accuracy of 87.3% on ImageNet-1K image classification.”
Quote in the paperSubstantial claim - Findingreasoning§ 3.2. Shifted Window based Self-Attention
Window-based self-attention has linear computational complexity 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 - Findingown data§ 1. Introduction
Swin Transformer obtains 53.5 mIoU on ADE20K val.
“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 claim0 of 1 sources checked- cites [81]
Not checked in the free run.
- Findingown data§ 4.1. Image Classification on ImageNet-1K
For Swin-B, ImageNet-22K pre-training brings 1.8%-1.9% gains over training on ImageNet-1K from scratch.
“For Swin-B, the ImageNet22K pre-training brings 1.8% ∼ 1.9% gains over training on ImageNet-1K from scratch.”
Quote in the paperNot a substantial claim - Findingown data§ 1. Introduction
The shifted windows bridge the windows of the preceding layer, providing connections among them that significantly enhance modeling power.
“The shifted windows bridge the windows of the preceding layer, providing connections among them that significantly enhance modeling power (see Table 4).”
Quote in the paperSubstantial claim
- Findingown data§ 3.2. Shifted Window based Self-Attention
The cyclic-shift approach has low latency.
“The low latency of this approach is shown in Table 5.”
Quote in the paperSubstantial claim - Findingown data§ 1. Introduction
Swin Transformer outperforms ViT/DeiT and ResNe(X)t models significantly with similar latency on the three tasks.
“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 claim0 of 4 sources checked- cites [20]
Not checked in the free run.
- cites [63]
Not checked in the free run.
- cites [30]
Not checked in the free run.
- cites [70]
Not checked in the free run.
- Findingown data§ 1. Introduction
Swin Transformer achieves 58.7 box AP and 51.1 mask AP on COCO test-dev.
“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 claim0 of 2 sources checked- cites [26]
Not checked in the free run.
- cites [46]
Not checked in the free run.
- Findingnone given§ 3.3. Architecture Variants
Swin-B has model size and computation complexity similar to ViT-B/DeiT-B.
“We build our base model, called Swin-B, to have of model size and computation complexity similar to ViTB/DeiT-B.”
Quote in the paperNot a substantial claim - Findingown data§ 1. Introduction
Swin Transformer achieves strong performance on image classification, object detection and semantic segmentation.
“The proposed Swin Transformer achieves strong performance on the recognition tasks of image classification, object detection and semantic segmentation.”
Quote in the paperSubstantial claim - 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 claim0 of 1 sources checked- cites [20]
Not checked in the free run.
- Findingown data§ 3.2. Shifted Window based Self-Attention
Relative position bias yields significant improvements over counterparts without this bias term or that use absolute position embedding.
“We observe significant improvements over counterparts without this bias term or that use absolute position embedding, as shown in Table 4.”
Quote in the paperNot a substantial claim - Findingown data§ 1. Introduction
Swin Transformer improves over previous state-of-the-art on ADE20K by +3.2 mIoU.
“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 claim0 of 1 sources checked- cites [81]
Not checked in the free run.
- Findingown data§ 2. Related Work
Swin Transformer achieves the best speed-accuracy trade-off among these methods on image classification.
“Empirically, we find our Swin Transformer architecture to achieve the best speedaccuracy trade-off among these methods on image classification, even though our work focuses on general-purpose performance rather than specifically on classification.”
Quote in the paperNot a substantial claim - 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 claim0 of 2 sources checked- cites [48]
Not checked in the free run.
- cites [58]
Not checked in the free run.
- Findingown data§ 4.2. Object Detection on COCO
Our best model achieves 51.1 mask AP on COCO test-dev.
“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 claim - Findingown data§ 4.2. Object Detection on COCO
Swin-T brings consistent +3.4 to +4.2 box AP gains over ResNet-50 across four object detection frameworks.
“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 - 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.
“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 - Findingreasoning§ 4.2. Object Detection on COCO
Swin-T has significantly higher inference speed than DeiT-S (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 paperNot a substantial claim - Findingown data§ 4.4. Ablation Study
Swin-T with shifted window achieves +2.3% top-1 accuracy compared to Performer on ImageNet-1K.
“Compared to Performer [14], which is one of the fastest Transformer architectures (see [60]), the proposed shifted window based self-attention computation and the overall Swin Transformer architectures are slightly faster (see Table 5), while achieving +2.3% top-1 accuracy compared to Performer on ImageNet-1K using Swin-T (see Table 6).”
Quote in the paperSubstantial claim0 of 1 sources checked- cites [14]
Not checked in the free run.
- Findingown data§ 4.2. Object Detection on COCO
Our best model achieves 58.7 box AP on COCO test-dev.
“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 claim - Findingown data§ 4.4. Ablation Study
Swin-T with relative position bias yields +1.2%/+0.8% top-1 accuracy on ImageNet-1K.
“Swin-T with relative position bias yields +1.2%/+0.8% top-1 accuracy on ImageNet-1K, +1.3/+1.5 box AP and +1.1/+1.3 mask AP”
Quote in the paperSubstantial claim - Findingown data§ 4.2. Object Detection on COCO
On a higher baseline of 52.3 box AP and 46.0 mask AP using an improved HTC framework, Swin Transformer gains +4.1 box AP and +3.1 mask AP.
“On a higher baseline of 52.3 box AP and 46.0 mask AP using an improved HTC framework, the gains by Swin Transformer are also high, at +4.1 box AP and +3.1 mask AP (see Table 2(c)).”
Quote in the paperSubstantial claim - Findingown data§ 5. Conclusion
Swin Transformer achieves state-of-the-art performance on 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 - Findingown data§ 4.3. Semantic Segmentation on ADE20K
Swin-S has similar computation cost to DeiT-S on ADE20K.
“From these results, it can be seen that Swin-S is +5.3 mIoU higher (49.3 vs. 44.0) than DeiT-S with similar computation cost.”
Quote in the paperSubstantial claim - Findingown data§ 4.4. Ablation Study
Cyclic implementation brings a 13%, 18% and 18% speed-up on Swin-T, Swin-S and Swin-B, respectively.
“Overall, it brings a 13%, 18% and 18% speed-up on Swin-T, Swin-S and Swin-B, respectively.”
Quote in the paperNot a substantial claim - Findingown data§ 4.4. Ablation Study
Inclusion of absolute position embedding improves image classification accuracy by +0.4%.
“Also note that while the inclusion of absolute position embedding improves image classification accuracy (+0.4%), it harms object detection and semantic segmentation (-0.2 box/mask AP on COCO and -0.6 mIoU on ADE20K).”
Quote in the paperNot a substantial claim - Findingcitation§ 4.3. Semantic Segmentation on ADE20K
Swin-S is +2.4 mIoU higher than ResNeSt-101 on ADE20K.
“It is also +4.4 mIoU higher than ResNet-101, and +2.4 mIoU higher than ResNeSt-101 [78].”
Quote in the paperSubstantial claim0 of 1 sources checked- cites [78]
Not checked in the free run.
- Findingown data§ 4.4. Ablation Study
Shifted window and sliding window variants are similarly accurate in visual modeling.
“Table 6 compares their accuracy on the three tasks, showing that they are similarly accurate in visual modeling.”
Quote in the paperNot a substantial claim - Findingown data§ 4.3. Semantic Segmentation on ADE20K
Swin-S is +4.4 mIoU higher than ResNet-101 on ADE20K.
“It is also +4.4 mIoU higher than ResNet-101, and +2.4 mIoU higher than ResNeSt-101 [78].”
Quote in the paperSubstantial claim - Findingown data§ A2.1. Image classification on ImageNet-1K
Global average pooling on output feature map of last stage followed by linear classifier is as accurate as using an additional class token as in ViT and DeiT.
“We find this strategy to be as accurate as using an additional class token as in ViT [20] and DeiT [63].”
Quote in the paperNot a substantial claim0 of 2 sources checked- cites [20]
Not checked in the free run.
- cites [63]
Not checked in the free run.
- Findingown data§ 4.4. Ablation Study
The latency overhead by shifted window is small.
“The latency overhead by shifted window is also small, as shown in Table 5.”
Quote in the paperNot a substantial claim - Findingown data§ 4.4. Ablation Study
Cyclic implementation is more hardware efficient than naive padding, particularly for deeper stages.
“Our cyclic implementation is more hardware efficient than naive padding, particularly for deeper stages.”
Quote in the paperNot a substantial claim - Findingcitation§ 4.3. Semantic Segmentation on ADE20K
SETR has a larger model size than Swin-L.
“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 paperNot a substantial claim0 of 1 sources checked- cites [81]
Not checked in the free run.
- Findingown data§ 4.3. Semantic Segmentation on ADE20K
Swin-L with ImageNet-22K pre-training achieves 53.5 mIoU on the ADE20K val set.
“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 claim - Findingown data§ 4.3. Semantic Segmentation on ADE20K
Swin-L surpasses the previous best model by +3.2 mIoU on the ADE20K val set.
“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 claim0 of 1 sources checked- cites [81]
Not checked in the free run.
- Findingown data§ 4.2. Object Detection on COCO
Our best model surpasses the previous best box AP by +2.7 (Copy-paste [26] without external data).
“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 claim0 of 1 sources checked- cites [26]
Not checked in the free run.
- Findingown data§ 4.4. Ablation Study
Swin-T with shifted window partitioning outperforms the counterpart by +2.8 mIoU on ADE20K.
“Swin-T with the shifted window partitioning outperforms the counterpart built on a single window partitioning at each stage by +1.1% top-1 accuracy on ImageNet-1K, +2.8 box AP/+2.2 mask AP on COCO, and +2.8 mIoU on ADE20K.”
Quote in the paperSubstantial claim - Findingown data§ 4.2. Object Detection on COCO
Our best model surpasses the previous best mask AP by +2.6 (DetectoRS [46]).
“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 claim0 of 1 sources checked- cites [46]
Not checked in the free run.
- Findingown data§ 4.4. Ablation Study
Swin-T with shifted window partitioning outperforms the counterpart by +2.8 box AP and +2.2 mask AP on COCO.
“Swin-T with the shifted window partitioning outperforms the counterpart built on a single window partitioning at each stage by +1.1% top-1 accuracy on ImageNet-1K, +2.8 box AP/+2.2 mask AP on COCO, and +2.8 mIoU on ADE20K.”
Quote in the paperSubstantial claim - Findingown data§ 5. Conclusion
Swin Transformer achieves state-of-the-art performance on COCO object detection, 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 - Findingown data§ 4.4. Ablation Study
Swin Transformer architectures built on shifted windows are 4.1/1.5, 4.0/1.5, 3.6/1.5 times faster than variants built on sliding windows for Swin-T, Swin-S, and Swin-B, respectively.
“Overall, the Swin Transformer architectures built on shifted windows are 4.1/1.5, 4.0/1.5, 3.6/1.5 times faster than variants built on sliding windows for Swin-T, Swin-S, and Swin-B, respectively.”
Quote in the paperSubstantial claim - Findingown data§ 4.3. Semantic Segmentation on ADE20K
Swin-S is +5.3 mIoU higher (49.3 vs. 44.0) than DeiT-S on ADE20K.
“From these results, it can be seen that Swin-S is +5.3 mIoU higher (49.3 vs. 44.0) than DeiT-S with similar computation cost.”
Quote in the paperSubstantial claim - Findingown data§ 4.4. Ablation Study
Swin-T with shifted window partitioning outperforms the counterpart built on a single window partitioning at each stage by +1.1% top-1 accuracy on ImageNet-1K.
“Swin-T with the shifted window partitioning outperforms the counterpart built on a single window partitioning at each stage by +1.1% top-1 accuracy on ImageNet-1K, +2.8 box AP/+2.2 mask AP on COCO, and +2.8 mIoU on ADE20K.”
Quote in the paperSubstantial claim - Findingnone given§ 4.2. Object Detection on COCO
ResNeXt101-64x4d has similar model size, FLOPs and latency to Swin Transformer under Cascade Mask R-CNN.
“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 - Findingown data§ 4.4. Ablation Study
Self-attention modules built on shifted window approach are 40.8×/2.5×, 20.2×/2.5×, 9.3×/2.1×, and 7.6×/1.8× more efficient than those of sliding windows in naive/kernel implementations on four network stages, respectively.
“The self-attention modules built on the proposed shifted window approach are 40.8 × /2.5 × , 20.2 × /2.5 × , 9.3 × /2.1 × , and 7.6 × /1.8 × more efficient than those of sliding windows in naive/kernel implementations on four network stages, respectively.”
Quote in the paperSubstantial claim - Findingown data§ A3.2. Different Optimizers for ResNe(X)t on COCO
Replacing SGD with AdamW generally improves accuracy for ResNe(X)t backbones on COCO object detection, particularly for smaller backbones.
“While SGD is used as a default optimizer for Cascade Mask R-CNN framework, we generally observe improved accuracy by replacing it with an AdamW optimizer, particularly for smaller backbones.”
Quote in the paperNot a substantial claim - Findingown data§ 4.4. Ablation Study
Proposed shifted window based self-attention computation and overall Swin Transformer architectures are slightly faster than Performer.
“Compared to Performer [14], which is one of the fastest Transformer architectures (see [60]), the proposed shifted window based self-attention computation and the overall Swin Transformer architectures are slightly faster (see Table 5), while achieving +2.3% top-1 accuracy compared to Performer on ImageNet-1K using Swin-T (see Table 6).”
Quote in the paperNot a substantial claim0 of 2 sources checked- cites [14]
Not checked in the free run.
- cites [60]
Not checked in the free run.
- Findingown data§ 4.4. Ablation Study
Swin-T with relative position bias yields +1.1/+1.3 mask AP.
“Swin-T with relative position bias yields +1.2%/+0.8% top-1 accuracy on ImageNet-1K, +1.3/+1.5 box AP and +1.1/+1.3 mask AP”
Quote in the paperNot a substantial claim - Findingown data§ 4.4. Ablation Study
Swin-T with relative position bias yields +1.3/+1.5 box AP.
“Swin-T with relative position bias yields +1.2%/+0.8% top-1 accuracy on ImageNet-1K, +1.3/+1.5 box AP and +1.1/+1.3 mask AP”
Quote in the paperSubstantial claim - Findingown data§ 4.2. Object Detection on COCO
Swin-T has similar model size to DeiT-S (86M vs. 80M).
“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 - Findingcitation§ A3.3. Swin MLP-Mixer
Swin-Mixer has better speed accuracy trade-off compared to ResMLP.
“It also has better speed accuracy trade-off compared to ResMLP [62].”
Quote in the paperNot a substantial claim0 of 1 sources checked- cites [62]
Not checked in the free run.
- Premisereasoning§ 1. Introduction
Significant challenges in transferring Transformer's high performance from language to vision can be explained by differences between the two modalities.
“We observe that significant challenges in transferring its high performance in the language domain to the visual domain can be explained by differences between the two modalities.”
Quote in the paperSubstantial claim- Rests on an assumption: Images have much higher resolution of pixels compared to words in passages of text.
- Rests on an assumption: Many vision tasks such as semantic segmentation require dense prediction at the pixel level.
- Interpretationown data§ Abstract
Swin Transformer capably serves as a general-purpose backbone for computer vision.
“This paper presents a new vision Transformer, called Swin Transformer, that capably serves as a general-purpose backbone for computer vision.”
Quote in the paperSubstantial claim - Interpretationreasoning§ 3.1. Overall Architecture
The proposed architecture can conveniently replace backbone networks in existing methods for various vision tasks.
“As a result, the proposed architecture can conveniently replace the backbone networks in existing methods for various vision tasks.”
Quote in the paperSubstantial claim - Premisecitation§ 2. Related Work
Another concurrent work builds multi-resolution feature maps on Transformers but its complexity is still quadratic to image size.
“Another concurrent work [66] explores a similar line of thinking to build multi-resolution feature maps on Transformers. Its complexity is still quadratic to image size, while ours is linear and also operates locally which has proven beneficial in modeling the high correlation in visual signals [36, 25, 41].”
Quote in the paperSubstantial claim0 of 1 sources checked- cites [66]
Not checked in the free run.
- Interpretationreasoning§ 1. Introduction
The shifted window strategy is efficient in real-world latency because all query patches within a window share the same key set, which facilitates memory access in hardware.
“This strategy is also efficient in regards to real-world latency: all query patches within a window share the same key set 1 , which facilitates memory access in hardware.”
Quote in the paperSubstantial claim - 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 claim0 of 3 sources checked- cites [42]
Not checked in the free run.
- cites [53]
Not checked in the free run.
- cites [54]
Not checked in the free run.
- Interpretationreasoning§ 1. Introduction
Swin Transformer's linear computational complexity is achieved by computing self-attention locally within non-overlapping windows.
“The linear computational complexity is achieved by computing self-attention locally within non-overlapping windows that partition an image (outlined in red).”
Quote in the paperSubstantial claim - Premisecitation§ 1. Introduction
Earlier sliding window based self-attention approaches suffer from low latency on general hardware due to different key sets for different query pixels.
“In contrast, earlier sliding window based self-attention approaches [33, 50] suffer from low latency on general hardware due to different key sets for different query pixels 2 .”
Quote in the paperSubstantial claim0 of 2 sources checked- cites [33]
Not checked in the free run.
- cites [50]
Not checked in the free run.
- Interpretationown data§ Abstract
Swin Transformer's performance demonstrates the potential of Transformer-based models as vision backbones.
“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.”
Quote in the paperSubstantial claim - Interpretationreasoning§ 1. Introduction
Swin Transformer's hierarchical feature maps allow it to leverage advanced dense prediction techniques such as feature pyramid networks (FPN) or U-Net.
“With these hierarchical feature maps, the Swin Transformer model can conveniently leverage advanced techniques for dense prediction such as feature pyramid networks (FPN) [42] or U-Net [51].”
Quote in the paperSubstantial claim0 of 2 sources checked- cites [42]
Not checked in the free run.
- cites [51]
Not checked in the free run.
- Premisecitation§ 2. Related Work
ViT's architecture is unsuitable for use as a general-purpose backbone on dense vision tasks or high-resolution images due to low-resolution feature maps and quadratic complexity.
“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 claim0 of 1 sources checked- cites [20]
Not checked in the free run.
- Premisereasoning§ 4.2. Object Detection on COCO
Swin Transformer and ResNe(X)t are directly applicable to all the above frameworks because of their hierarchical feature maps.
“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 paperNot a substantial claim - Interpretationown data§ 4.4. Ablation Study
Inductive bias that encourages certain translation invariance is still preferable for general-purpose visual modeling, particularly for dense prediction tasks of object detection and semantic segmentation.
“While the recent ViT/DeiT models abandon translation invariance in image classification even though it has long been shown to be crucial for visual modeling, we find that inductive bias that encourages certain translation invariance is still preferable for general-purpose visual modeling, particularly for the dense prediction tasks of object detection and semantic segmentation.”
Quote in the paperSubstantial claim - Interpretationreasoning§ 4.2. Object Detection on COCO
The lower inference speed of DeiT is mainly due to its quadratic complexity to input image size.
“The lower inference speed of DeiT is mainly due to its quadratic complexity to input image size.”
Quote in the paperNot a substantial claim - Interpretationown data§ 4.4. Ablation Study
The results indicate the effectiveness of using shifted windows to build connections among windows in the preceding layers.
“The results indicate the effectiveness of using shifted windows to build connections among windows in the preceding layers.”
Quote in the paperSubstantial claim - Interpretationown data§ 4.4. Ablation Study
Relative position bias is effective.
“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 paperSubstantial claim - Interpretationnone given§ 5. Conclusion
Swin Transformer produces a hierarchical feature representation.
“This paper presents Swin Transformer, a new vision Transformer which produces a hierarchical feature representation and has linear computational complexity with respect to input image size.”
Quote in the paperSubstantial claim - Interpretationnone given§ 5. Conclusion
Swin Transformer has linear computational complexity with respect to input image size.
“This paper presents Swin Transformer, a new vision Transformer which produces a hierarchical feature representation and has linear computational complexity with respect to input image size.”
Quote in the paperNot a substantial claim
- May combine two claims. 29
- Classified as probably not a substantial claim. 10
May combine two claims.
Findingown data§ 4.1. Image Classification on ImageNet-1KSwin Transformers noticeably surpass counterpart DeiT architectures with similar complexities: +1.5% for Swin-T (81.3%) over DeiT-S (79.8%) using 2242 input, and +1.5%/1.4% for Swin-B (83.3%/84.5%) over DeiT-B (81.8%/83.1%) using 2242/3842 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 claim0 of 1 sources checked- cites [63]
Not checked in the free run.
May combine two claims.
Findingnone given§ 2. Related WorkSwin 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 paperNot a substantial claimMay combine two claims.
Findingcitation§ 2. Related WorkSwin Transformer's complexity is linear and operates locally, which has proven beneficial in modeling high correlation in visual signals.
“Another concurrent work [66] explores a similar line of thinking to build multi-resolution feature maps on Transformers. Its complexity is still quadratic to image size, while ours is linear and also operates locally which has proven beneficial in modeling the high correlation in visual signals [36, 25, 41].”
Quote in the paperSubstantial claim0 of 3 sources checked- cites [36]
Not checked in the free run.
- cites [25]
Not checked in the free run.
- cites [41]
Not checked in the free run.
May combine two claims.
Findingown data§ 1. IntroductionSwin Transformer surpasses previous state-of-the-art on COCO by +2.7 box AP and +2.6 mask AP.
“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 claim0 of 2 sources checked- cites [26]
Not checked in the free run.
- cites [46]
Not checked in the free run.
May combine two claims.
Findingown data§ 1. IntroductionThe proposed 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 claimProbably not a substantial claim: may not pass S3 (load-bearing), S4 (based). May combine two claims.
Findingnone given§ 3.3. Architecture VariantsThe complexity of Swin-T and Swin-S are similar to those of ResNet-50 (DeiT-S) and ResNet-101, respectively.
“Note that the complexity of Swin-T and Swin-S are similar to those of ResNet-50 (DeiT-S) and ResNet-101, respectively.”
Quote in the paperNot a substantial claimMay combine two claims.
Findingown data§ 4.1. Image Classification on ImageNet-1KSwin-L achieves 87.3% top-1 accuracy, +0.9% better than Swin-B.
“The larger Swin-L model achieves 87.3% top-1 accuracy, +0.9% better than that of the Swin-B model.”
Quote in the paperNot a substantial claimProbably not a substantial claim: may not pass S3 (load-bearing), S4 (based).
Findingnone given§ AbstractThe 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.”
Quote in the paperNot a substantial claimMay combine two claims.
Findingnone given§ 3.3. Architecture VariantsSwin-T, Swin-S and Swin-L are versions of about 0.25×, 0.5× and 2× the model size and computational complexity of Swin-B.
“We also introduce Swin-T, Swin-S and Swin-L, which are versions of about 0 . 25 × , 0 . 5 × and 2 × the model size and computational complexity, respectively.”
Quote in the paperNot a substantial claimMay combine two claims.
Findingown data§ 4.1. Image Classification on ImageNet-1KSwin-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 claimMay combine two claims.
Findingreasoning§ 3.2. Shifted Window based Self-AttentionThe cyclic-shift batch computation approach keeps the number of batched windows the same as regular window partitioning and is 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 claimMay combine two claims.
Findingown data§ 3.2. Shifted Window based Self-AttentionThe 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 claimProbably not a substantial claim: may not pass S3 (load-bearing).
Findingcitation§ 1. IntroductionThe shifted window approach is beneficial for all-MLP architectures.
“The shifted window approach also proves beneficial for all-MLP architectures [61].”
Quote in the paperNot a substantial claim0 of 1 sources checked- cites [61]
Not checked in the free run.
May combine two claims.
Findingown data§ A3.3. Swin MLP-MixerSwin-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 claim0 of 1 sources checked- cites [61]
Not checked in the free run.
May combine two claims.
Findingown data§ 4.2. Object Detection on COCOSwin-T results are +2.5 box AP and +2.3 mask AP higher than DeiT-S under Cascade Mask R-CNN.
“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 claimMay combine two claims.
Findingcitation§ A2.1. Image classification on ImageNet-1KRepeated 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 claim0 of 2 sources checked- cites [31]
Not checked in the free run.
- cites [45]
Not checked in the free run.
May combine two claims.
Findingown data§ 4.4. Ablation StudyRelative position bias improves performance on COCO and ADE20K relative to no position encoding and absolute position embedding, by +2.3/+2.9 mIoU on ADE20K 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 claimMay combine two claims.
Findingown data§ A3.1. Image classification with different input sizeLarger input resolution leads to better top-1 accuracy but with 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 claimMay combine two claims.
Findingown data§ 4.2. Object Detection on COCOSwin Transformer gains +3.6 box AP and +3.3 mask AP over ResNeXt101-64x4d under Cascade Mask R-CNN.
“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 claimMay combine two claims.
Findingown data§ 4.4. Ablation StudyInclusion of absolute position embedding harms object detection and semantic segmentation, reducing COCO box/mask AP by 0.2 and ADE20K mIoU by 0.6.
“Also note that while the inclusion of absolute position embedding improves image classification accuracy (+0.4%), it harms object detection and semantic segmentation (-0.2 box/mask AP on COCO and -0.6 mIoU on ADE20K).”
Quote in the paperSubstantial claimMay combine two claims.
Findingown data§ 4.2. Object Detection on COCOSwin-T has slightly larger model size, FLOPs and latency than ResNet-50.
“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 paperNot a substantial claimMay combine two claims.
Premisereasoning§ 3.2. Shifted Window based Self-AttentionGlobal self-attention computation leads to quadratic complexity with respect to the number of tokens, making it unsuitable for many vision problems requiring an immense set of tokens.
“The global computation leads to quadratic complexity with respect to the number of tokens, making it unsuitable for many vision problems requiring an immense set of tokens for dense prediction or to represent a high-resolution image.”
Quote in the paperSubstantial claimMay combine two claims.
Interpretationreasoning§ 1. IntroductionSwin Transformer is suitable as a general-purpose backbone for various vision tasks, in contrast to previous Transformer architectures which produce single-resolution feature maps and have quadratic complexity.
“These merits make Swin Transformer suitable as a general-purpose backbone for various vision tasks, in contrast to previous Transformer based architectures [20] which produce feature maps of a single resolution and have quadratic complexity.”
Quote in the paperSubstantial claim0 of 1 sources checked- cites [20]
Not checked in the free run.
Probably not a substantial claim: may not pass S3 (load-bearing).
Premisecitation§ 2. Related WorkDeiT 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 claim0 of 1 sources checked- cites [63]
Not checked in the free run.
Probably not a substantial claim: may not pass S3 (load-bearing).
Premisecitation§ 2. Related WorkViT requires large-scale training datasets (e.g., 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 claim0 of 1 sources checked- cites [20]
Not checked in the free run.
May combine two claims.
Premisenone given§ 1. IntroductionTransformer self-attention has quadratic computational complexity to image size, making it intractable for high-resolution images.
“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 claim- Rests on an assumption: Many vision tasks such as semantic segmentation require dense prediction at the pixel level.
May combine two claims.
Premisenone given§ 3.2. Shifted Window based Self-AttentionThe window-based self-attention module lacks connections across windows, which limits its modeling power.
“The window-based self-attention module lacks connections across windows, which limits its modeling power.”
Quote in the paperNot a substantial claimClassified as probably not a substantial claim.
Study design and conductnone given§ 4.2. Object Detection on COCOThe comparisons 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 claimMay combine two claims.
Premisereasoning§ 1. IntroductionExisting Transformer-based models use tokens 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 claim0 of 2 sources checked- cites [64]
Not checked in the free run.
- cites [20]
Not checked in the free run.
May combine two claims.
Interpretationreasoning§ 1. IntroductionThe number of patches in each window is fixed, and thus the complexity becomes linear to image size.
“The number of patches in each window is fixed, and thus the complexity becomes linear to image size.”
Quote in the paperSubstantial claimMay combine two claims.
Interpretationreasoning§ 3.2. Shifted Window based Self-AttentionGlobal self-attention computation is generally unaffordable for a large hw, while 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 claimMay combine two claims.
Premisereasoning§ 4.2. Object Detection on COCODeiT only produces a single resolution of feature maps and cannot be directly applied to the above frameworks.
“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 claimProbably not a substantial claim: may not pass S3 (load-bearing).
Interpretationcitation§ 3.2. Shifted Window based Self-AttentionThe 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 claim0 of 2 sources checked- cites [20]
Not checked in the free run.
- cites [63]
Not checked in the free run.
Probably not a substantial claim: may not pass S1 (asserted), S3 (load-bearing).
Premisecitation§ A2.1. Image classification on ImageNet-1KRepeated 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 claim0 of 1 sources checked- cites [63]
Not checked in the free run.
Probably not a substantial claim: may not pass S3 (load-bearing).
Premisecitation§ 4.4. Ablation StudyPerformer 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 claim0 of 2 sources checked- cites [14]
Not checked in the free run.
- cites [60]
Not checked in the free run.
Classified as probably not a substantial claim.
Study design and conductcitation§ 4.2. Object Detection on COCOFor 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 claim0 of 1 sources checked- cites [81]
Not checked in the free run.
May combine two claims.
Interpretationown data§ 5. ConclusionShifted 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, and we look forward to investigating its use in natural language processing as well.”
Quote in the paperSubstantial claimMay combine two claims.
Interpretationown data§ A3.3. Swin MLP-MixerProposed 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
The paper relies on this without support.
Images have much higher resolution of pixels compared to words in passages of text.
“Another difference is the much higher resolution of pixels in images compared to words in passages of text.”
The paper relies on this without support.
Many vision tasks such as semantic segmentation require dense prediction at the pixel level.
“There exist many vision tasks such as semantic segmentation that require dense prediction at the pixel level”
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?
ViT architectures that do not depend on using an explicit class token, like Swin Transformer, are robust against information loss.
“These results show that ViT architectures that does not depend on using explicit class token like Swin transformer [49] are robust against information loss as well.”
From Intriguing Properties of Vision Transformers (2021) · cites this paper as [49]
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 top-1 accuracy at 2242 resolution
MinorTable 1 reports 83.5 for the regularly trained Swin-B model at 2242 resolution, while Table 8 reports 83.3 for the same model and input size. The classification results text also uses 83.3.
“| Swin-B | 224 2 | 88M | 15.4G | 278.1 | 83.5 |”
“| 224 2 | 81.3 | 755.2 | 83.0 | 436.9 | 83.3 | 278.1 |”
No citation lists for this paper
No DOI on record — the citation lists can’t be looked up.
References 90 · Cited by 35,608
- 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
- arXiv
- Publisher
- arXiv
- Published
- 2021
- Pages
- 9992-10002
- arXiv
- 2103.14030
- OpenAlex
- W3138516171
- Semantic Scholar
- c8b25fab5608c3e033d34b4483ec47e68ba109b7
- Cited by
- 35,608
- References
- 90
- Citations by year
- 2026: 6198 · 2025: 10288 · 2024: 9249 · 2023: 6686 · 2022: 2771 · 2021: 408 · 2020: 5 · 2012: 1
- FWCI
- 1553.68
- Type
- conference paper
- Language
- en
- Open access
- green
- arxiv.org
- Licence
- 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 by deepseek-v4.1-flash under definition version 3 (extract-v3) on 2026-10-11.
Classified by jev-1.13-20260917 (gold-guideline-v0.2) on 2026-10-11.
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