Papers › Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
Swin Transformer: Hierarchical Vision Transformer using Shifted Windows
Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, Baining Guo
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}.
In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.
Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.
For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2103.14030")
Code
Syntology Ran 120 of 207 code samples harvested from 35 repositories linked to this paper; 87 have no recorded run. Of those that ran: 5 ran · honoured contract; 2 ran · violated contract; 11 ran · our draft was wrong; 30 ran · fixture could not drive it; 72 ran with no contract checked.
By repository: official repository: 3 samples from 1 repository, 0 ran; community (archive-listed): 202 samples from 34 repositories, 118 ran; 2 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.
80 repositories listed; official and paper-mentioned ones first.
Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.
Code Syntology ran Syntology
207 samples harvested; 120 ran; 5 honoured the contract we drafted; 87 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.
Licence: 43 of the 207 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.
Harvested from 35 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.
Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.
Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.
f00ea1a7a322767d · report
a8007b8fc4da290d · report
3dd15bd6317a6fe2 · report
144d10b49baeb8a6 · report
62d274e03594f950 · report
a0155245198e4f33 · report
f4d79f4b6bee97c7 · report
c62c150624b198fa · report
18583975af70b0aa · report
e773189602fa799e · report
c0a6db98075e5a32 · report
889677dfb48a1e7a · report
1f71103e68295350 · report
5bcf14becf4f18ba · report
89aae91283eb968d · report
0fda0888f3c18df0 · report
6cf0beb34f43265d · report
4305dbb120a051d2 · report
8d4bf01da870de45 · report
5f0d52dfdbdf3cdc · report
26120e2844a90ffb · report
4834f6e8fad45ca0 · report
bc31aba8a9fe716b · report
7b95789a575e9efb · report
03b9e76b1c001362 · report
ead0d8b596c9c2fb · report
7dbba99d6a7f3858 · report
a589ea44edeb86e7 · report
40c038ae7221b5d1 · report
62c1a6687f384294 · report
6e4025df08b36f1c · report
db172203edda56d4 · report
581e7ffa9c9316a6 · report
3056cb457a463605 · report
2ed9017b0ab73090 · report
b9bd7459c6f5b8e9 · report
eeb6c8d71fa21dc5 · report
071c035b6c4da4df · report
ce5ff4b0dfaf3e68 · report
eeab3665e6a12aab · report
1d1fd42e3774afdb · report
d41c94c47ca80e20 · report
b3e82e68da320561 · report
03cbcd03c8d2985b · report
e8f2c3e2ad8de3cf · report
2cf47ab104825937 · report
4c55d090dea2bbe4 · report
ada8ea5727e16739 · report
1b00cbf220c527e2 · report
750baa54fed52aa4 · report
2bd166198c93144e · report
219b9033110245dd · report
42ff4258c695ab73 · report
f9d5ef7b9fad38f8 · report
7518651f2508d006 · report
311653a8a25e03c3 · report
7fcf64dd32a8635c · report
a8391938fd8174d6 · report
3cd312e88b0f8e77 · report
884ea83360f3217e · report
cf7c882deb7579a1 · report
6d3d21922655268e · report
5f55f2b3a9049703 · report
730a23e2dd3abea0 · report
2fcae5e86a467b3c · report
cc47795bc734b5d5 · report
21d4f37c138217a0 · report
ad60d3e1f00d18fb · report
1fccc1de284a5590 · report
dbbe1940f6850b5c · report
b8b408a6ca086835 · report
22ae7248f56d7f8d · report
1b09149e483bdce6 · report
c0a5cd5e8d1e1870 · report
2ec78252af199d14 · report
91cff3d019791354 · report
1fcf8df260e4c014 · report
4bbaba82e75c9aff · report
704646aed44ca394 · report
5c4cf8bd9ffb69c7 · report
90ff8e24c9361108 · report
88d68650d669bb11 · report
eec1e7cba51d5e8e · report
bd5841a744882305 · report
3595486ee2fc3da2 · report
6bd3417ea0844450 · report
7977f6cd407962be · report
1972d44f294df954 · report
09cdefab5cacf6cd · report
ea74aa6a6b93ae3d · report
e76a491553cf9fcf · report
b33222a09fc93bec · report
5d827d1fe106e8a9 · report
e6ac1ffd60c632a3 · report
4e978f9f7835b10a · report
390959941608f53a · report
ada91a01b9efbb1d · report
f9fd6241d935f07b · report
22a4115e9c61c36c · report
ea5f65d48dfafbb5 · report
74a825c2043a86a5 · report
e28ee4f3f10497e7 · report
ffbd052a6fffda7f · report
80a5e883cba48ab8 · report
c1ba37069e979979 · report
4445c3b80a49fd3c · report
dd1296fb557f6f49 · report
0a623a9e53a8276b · report
2e58fa02a9765d1a · report
61bf152e6a42a184 · report
fb32094c6dbece71 · report
a42d7339b25ba62b · report
17d93db767b09115 · report
47352b2d57155a3e · report
d33aef31394a2cd4 · report
d7e36cb1273ea593 · report
a6c9cc2a38e7e28a · report
24a9365e0448ac64 · report
041245926401b345 · report
b4cae9235d842364 · report
dc64476d17bf2ca6 · report
00836c0594a74b99 · report
1958c5f7b5ac82b3 · report
2c88fba60fcd99b7 · report
6344b85f7d9ebade · report
a0bfd22cb614f7c6 · report
d44c4e098d43ffa8 · report
97aeb90837045df5 · report
9000b0cc9c4695a5 · report
8aa8f6fd59352c98 · report
2010dc6da203be02 · report
0267e8763dbcd8ad · report
e042cf98ce464569 · report
2ba6c226f625c036 · report
f2963272cca6048d · report
dd97c89eb61e336e · report
70df6b2fcc3c66c8 · report
4bc8f2bf32e3052d · report
546d0ca0dd2fe027 · report
addd7b2f137083ca · report
d6821ff81cbd39ee · report
2b0633eb94058203 · report
8ec15b24c9f54c8f · report
d80515107c611488 · report
0defb5188caded2d · report
34f6eae5d64c9e31 · report
7aeedb5395757a49 · report
bf5d89449b76c7fe · report
215f5b4c11840783 · report
f018576464ba1f79 · report
ccb1ba716514a455 · report
1903b1fa4bbe4472 · report
1b57f5c532576378 · report
aecfccf521cb80eb · report
7a70b0276f2d95d1 · report
a82545ba41cff919 · report
f94fb902abf0e236 · report
bf0278535efa084f · report
8da9f031529d2b76 · report
9968bcf4bd47d70b · report
9ec430475f2b8b8c · report
003bca56bb698fc5 · report
904c323d4ec26b02 · report
08d324c8f9d30674 · report
3a4149461e3cb895 · report
741be53fe9f40706 · report
6f442ad26ea0556b · report
9b2b5828bfb7b2d0 · report
1417e4129b56ba85 · report
d3aca9e5bacae3c3 · report
b9876400fea9bfe3 · report
b16855e560e89554 · report
513d1efbadaf2fb6 · report
834427751f61b706 · report
657e9367a6aef56c · report
da77b28b8ba1e8dd · report
e1c9401a5b8928ad · report
57a40956f42665bc · report
7bd4ed9401929db6 · report
2b52e9716ea68f1a · report
c65aaa266d260680 · report
1c205af38b06bfee · report
def913cc6444c27c · report
a95290f88e2807cc · report
c1bfa262f1735544 · report
57025f001ee44318 · report
f665ea44b49d7e8c · report
2f415e14cc01ffb8 · report
cab46ff506f0ddb5 · report
219ef5baf92bbd45 · report
90743b3ca39e09bb · report
0c32459bef92ff8c · report
07e8b4b487c0abb6 · report
b0a5beb34716d5a6 · report
9457c747edbd7e05 · report
a06586b76f5f8eee · report
6c10c287d59a984c · report
0fc71084b4dfb9bc · report
98140f0fbd8aeb2e · report
f299bd819038020a · report
a8fa2a68e84a37f3 · report
aa2d785a925bffb8 · report
d774573890a8fe9f · report
2b9641909ff2cac5 · report
339a50b780db1f27 · report
07b1c6d8d9489187 · report
0859cb39e97935ba · report
Tasks
Results from the paper archive 2025-07-28
Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.
Methods
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections