Papers › Video Swin Transformer

Video Swin Transformer

24 Jun 2021CVPR 2022 1arXiv:2106.13230archive 2025-07-28

Ze Liu, Jia Ning, Yue Cao, Yixuan Wei, Zheng Zhang, Stephen Lin, Han Hu

The vision community is witnessing a modeling shift from CNNs to Transformers, where pure Transformer architectures have attained top accuracy on the major video recognition benchmarks. These video models are all built on Transformer layers that globally connect patches across the spatial and temporal dimensions. In this paper, we instead advocate an inductive bias of locality in video Transformers, which leads to a better speed-accuracy trade-off compared to previous approaches which compute self-attention globally even with spatial-temporal factorization. The locality of the proposed video architecture is realized by adapting the Swin Transformer designed for the image domain, while continuing to leverage the power of pre-trained image models. Our approach achieves state-of-the-art accuracy on a broad range of video recognition benchmarks, including on action recognition (84.9 top-1 accuracy on Kinetics-400 and 86.1 top-1 accuracy on Kinetics-600 with ~20x less pre-training data and ~3x smaller model size) and temporal modeling (69.6 top-1 accuracy on Something-Something v2). The code and models will be made publicly available at https://github.com/SwinTransformer/Video-Swin-Transformer.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology 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="2106.13230")

Code

Syntology Ran 7 of 32 code samples harvested from 7 repositories linked to this paper; 25 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 3 ran · fixture could not drive it; 2 ran with no contract checked.

By repository: official repository: 3 samples from 1 repository, 1 ran; community (archive-listed): 29 samples from 6 repositories, 6 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

15 repositories listed; official and paper-mentioned ones first.

SwinTransformer/Video-Swin-Transformer officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
3dperceptionlab/visual-wetlandbirds mentioned on GitHubpytorchNOASSERTION report
EquipoVandV/mmactionVandV mentioned on GitHubpytorchApache-2.0 report
MohammadRezaQaderi/Video-Swin-Transformer mentioned on GitHubpytorchApache-2.0 report
Whiffe/mmaction2_YF mentioned on GitHubpytorchApache-2.0 report
acewjh/Video-Swin-Transformer mentioned on GitHubpytorchApache-2.0 report
haofanwang/video-swin-transformer-pytorch mentioned on GitHubpytorchMIT report
innat/VideoSwin mentioned on GitHubtf report
open-mmlab/mmaction2 mentioned on GitHubpytorch report
visaVita/mmaction2 mentioned on GitHubpytorchApache-2.0 report
w-sugar/Video-Swin-Transformer mentioned on GitHubpytorchApache-2.0 report
wangjk666/stts mentioned on GitHubpytorchMIT report
ytw1996/swin3d_mindspore mentioned on GitHubmindsporeApache-2.0 report

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

32 samples harvested; 7 ran; 0 honoured the contract we drafted; 25 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
3ran · fixture could not drive it
2ran
25unverified

Licence: 0 of the 32 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 7 repositories linked to this paper, official or community; each sample names its own and says which. “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.

get_window_size SwinTransformer/Video-Swin-Transformer/mmaction/models/backbones/swin_transformer.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · aad0ea11cb13d353 · report
get_results_json SwinTransformer/Video-Swin-Transformer/demo/long_video_demo.py official repository unverified Apache-2.0 (permissive) · 95ad82b70e901f5c · report
show_results_video SwinTransformer/Video-Swin-Transformer/demo/long_video_demo.py official repository unverified Apache-2.0 (permissive) · 8bfa8e676c9b169b · report
anchor EquipoVandV/mmactionVandV/docs_zh_CN/stat.py community (archive-listed) ran fingerprinted Apache-2.0 (permissive) · d0ddd50f31a39641 · report
hex2color EquipoVandV/mmactionVandV/demo/demo_spatiotemporal_det.py community (archive-listed) ran Apache-2.0 (permissive) · 476b2e68d2861ca3 · report
window_partition haofanwang/video-swin-transformer-pytorch/video_swin_transformer.py community (archive-listed) ran · fixture could not drive it MIT (permissive) · c33b3de22ecbd051 · report
window_partition MohammadRezaQaderi/Video-Swin-Transformer/mmaction/models/backbones/swin_transformer.py community (archive-listed) ran · fixture could not drive it Apache-2.0 (permissive) · 4876d8faacbd6927 · report
window_reverse haofanwang/video-swin-transformer-pytorch/video_swin_transformer.py community (archive-listed) ran · our draft was wrong MIT (permissive) · ce51a79a418f8860 · report
window_reverse MohammadRezaQaderi/Video-Swin-Transformer/mmaction/models/backbones/swin_transformer.py community (archive-listed) ran · our draft was wrong Apache-2.0 (permissive) · 75fd6fbfca7a246c · report
build_assigner PaddlePaddle/PaddleVideo/paddlevideo/modeling/builder.py community (archive-listed) unverified Apache-2.0 (permissive) · 53a344650c2ae128 · report
build_backbone PaddlePaddle/PaddleVideo/paddlevideo/modeling/builder.py community (archive-listed) unverified Apache-2.0 (permissive) · bd2c60c19da90ad9 · report
build_batch_pipeline PaddlePaddle/PaddleVideo/paddlevideo/loader/builder.py community (archive-listed) unverified Apache-2.0 (permissive) · 5dfa351278eb7273 · report
build_dataset PaddlePaddle/PaddleVideo/paddlevideo/loader/builder.py community (archive-listed) unverified Apache-2.0 (permissive) · c5410bba5ff1d47e · report
build_pipeline PaddlePaddle/PaddleVideo/paddlevideo/loader/builder.py community (archive-listed) unverified Apache-2.0 (permissive) · 47873a8759273c0e · report
build_roi_extractor PaddlePaddle/PaddleVideo/paddlevideo/modeling/builder.py community (archive-listed) unverified Apache-2.0 (permissive) · 3dc760b0bc6bfea5 · report
check_is_number ytw1996/swin3d_mindspore/src/utils/check_param.py community (archive-listed) unverified Apache-2.0 (permissive) · 293dab24489b41d1 · report
check_number ytw1996/swin3d_mindspore/src/utils/check_param.py community (archive-listed) unverified Apache-2.0 (permissive) · 8ce6bc3f1fabc927 · report
check_number_range ytw1996/swin3d_mindspore/src/utils/check_param.py community (archive-listed) unverified Apache-2.0 (permissive) · e5f77ac329bf7def · report
create_scene_based_summaries PaddlePaddle/PaddleVideo/paddlevideo/metrics/transnetv2_metric.py community (archive-listed) unverified Apache-2.0 (permissive) · 1e52fb40ae4513b2 · report
evaluate_scenes PaddlePaddle/PaddleVideo/paddlevideo/metrics/transnetv2_metric.py community (archive-listed) unverified Apache-2.0 (permissive) · 5f86f604143de119 · report
expand_bbox PaddlePaddle/PaddleVideo/paddlevideo/modeling/bbox_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · c434ee22884ca564 · report
frame_extraction EquipoVandV/mmactionVandV/demo/demo_spatiotemporal_det.py community (archive-listed) unverified Apache-2.0 (permissive) · 3fd874d90e302675 · report
frame_extraction Whiffe/mmaction2_YF/demo/demo_spatiotemporal_det.py community (archive-listed) unverified Apache-2.0 (permissive) · 0eaf5f857d6c4cff · report
limit_window_size ytw1996/swin3d_mindspore/src/models/swin3d.py community (archive-listed) unverified Apache-2.0 (permissive) · 5f78a574a8661438 · report
linear_warmup_learning_rate ytw1996/swin3d_mindspore/src/schedule/lr_schedule.py community (archive-listed) unverified Apache-2.0 (permissive) · d6a99ec714147ac1 · report
make_image_key PaddlePaddle/PaddleVideo/paddlevideo/metrics/ava_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · bdec6fff71733f82 · report
predictions_to_scenes PaddlePaddle/PaddleVideo/paddlevideo/metrics/transnetv2_metric.py community (archive-listed) unverified Apache-2.0 (permissive) · 3da0df168740c1aa · report
recur_list2tuple ytw1996/swin3d_mindspore/src/utils/config.py community (archive-listed) unverified Apache-2.0 (permissive) · 64bc6885f46ca205 · report
warmup_cosine_annealing_lr_v1 ytw1996/swin3d_mindspore/src/schedule/lr_schedule.py community (archive-listed) unverified Apache-2.0 (permissive) · 1a80346f67ccb9cf · report
warmup_step_lr ytw1996/swin3d_mindspore/src/schedule/lr_schedule.py community (archive-listed) unverified Apache-2.0 (permissive) · e90ba252e203e0e9 · report
window_partition ytw1996/swin3d_mindspore/src/models/swin3d.py community (archive-listed) unverified Apache-2.0 (permissive) · d6d654c50d77a727 · report
window_reverse ytw1996/swin3d_mindspore/src/models/swin3d.py community (archive-listed) unverified Apache-2.0 (permissive) · ec28a256d8bb4236 · report

Tasks

Action ClassificationAction RecognitionGeneral ClassificationInductive BiasVideo ClassificationVideo RecognitionVideo Understanding

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Action Classification Kinetics-400 Swin-L (384x384, ImageNet-21k pretrain) Acc@1 84.9 #60 of 207 Archive leaderboard report
Action Classification Kinetics-400 Swin-L (384x384, ImageNet-21k pretrain) Acc@5 96.7 #60 of 207 Archive leaderboard report
Action Classification Kinetics-400 Swin-L (ImageNet-21k pretrain) Acc@1 83.1 #69 of 207 Archive leaderboard report
Action Classification Kinetics-400 Swin-L (ImageNet-21k pretrain) Acc@5 95.9 #69 of 207 Archive leaderboard report
Action Classification Kinetics-400 Swin-B (ImageNet-21k pretrain) Acc@1 82.7 #74 of 207 Archive leaderboard report
Action Classification Kinetics-400 Swin-B (ImageNet-21k pretrain) Acc@5 95.5 #74 of 207 Archive leaderboard report
Action Classification Kinetics-400 Swin-B (ImageNet-1k pretrain) Acc@1 80.6 #94 of 207 Archive leaderboard report
Action Classification Kinetics-400 Swin-B (ImageNet-1k pretrain) Acc@5 94.6 #94 of 207 Archive leaderboard report
Action Classification Kinetics-400 Swin-S (ImageNet-1k pretrain) Acc@1 80.6 #95 of 207 Archive leaderboard report
Action Classification Kinetics-400 Swin-S (ImageNet-1k pretrain) Acc@5 94.5 #95 of 207 Archive leaderboard report
Action Classification Kinetics-400 Swin-T (ImageNet-1k pretrain) Acc@1 78.8 #123 of 207 Archive leaderboard report
Action Classification Kinetics-400 Swin-T (ImageNet-1k pretrain) Acc@5 93.6 #123 of 207 Archive leaderboard report
Action Classification Kinetics-600 Swin-L (384x384, ImageNet-21k pretrain) Top-1 Accuracy 86.1 #28 of 65 Archive leaderboard report
Action Classification Kinetics-600 Swin-L (384x384, ImageNet-21k pretrain) Top-5 Accuracy 97.3 #28 of 65 Archive leaderboard report
Action Classification Kinetics-600 Swin-B (ImageNet-21k pretrain) Top-1 Accuracy 84.0 #35 of 65 Archive leaderboard report
Action Classification Kinetics-600 Swin-B (ImageNet-21k pretrain) Top-5 Accuracy 96.5 #35 of 65 Archive leaderboard report
Action Recognition Something-Something V2 Swin-B (IN-21K + Kinetics400 pretrain) GFLOPs 321x3 #43 of 123 Archive leaderboard report
Action Recognition Something-Something V2 Swin-B (IN-21K + Kinetics400 pretrain) Parameters 89 #43 of 123 Archive leaderboard report
Action Recognition Something-Something V2 Swin-B (IN-21K + Kinetics400 pretrain) Top-1 Accuracy 69.6 #43 of 123 Archive leaderboard report
Action Recognition Something-Something V2 Swin-B (IN-21K + Kinetics400 pretrain) Top-5 Accuracy 92.7 #43 of 123 Archive leaderboard report

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

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxStochastic DepthSwin TransformerTransformer

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