All models

swin3d_b

Video Swin Transformer: the image Swin's local attention extended to video clips for action recognition.

Video · 118 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (25 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Task
Video
Family
swin 3d
Parameters
247.1K
Operations
118
Framework
PyTorch
Recurrent
No
Published
CVPR 2022
Cited by
2,292 (as of 29 October 2026)
Authors
Ze Liu, Jia Ning, Yue Cao and others
Source
torchvision 0.21.0
License
BSD-3-Clause
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m10405
Graph hash
e6d4e06c28431020fc3ebfdf00c8e6ce1f6989bc8f96ed1f71d6cf3fedd36a25
Skeleton hash
a7b1b86cdf59d83fc4b6608ed0aedbc9426f7b8fa7edc3b0e3896c039c3290b1
Architecture hash
5a422d2d0bb800da84fc151561cc6775166e861a07ebb650b607f7cc690a7d16
Diagram SHA-256
cf29265df555ad43dd1a50edaef0e33692b2a3697b1b34353952dc13049d2a85
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

menagerie.classics.resid_slice_e:build_swin3d: build({})

What it is

About this model's family

Video Swin Transformer carries the Swin Transformer's local attention from images to video: instead of letting every patch attend to every other patch across space and time, attention stays within a neighbourhood. The paper argues that this locality is the right inductive bias for video Transformers, and that it gives a better speed-accuracy trade-off than approaches that compute self-attention globally, even when those factorize space and time. Because the design adapts the image model rather than replacing it, it keeps leveraging pre-trained image models.

The paper reports state-of-the-art accuracy across video recognition benchmarks: 84.9 top-1 on Kinetics-400 and 86.1 top-1 on Kinetics-600, with about 20x less pre-training data and a 3x smaller model size, plus 69.6 top-1 on Something-Something v2 for temporal modeling. The three graphs here are torchvision's swin3d_t, swin3d_s and swin3d_b, three builds of the one architecture, the Swin Transformer designed for the image domain and adapted to clips.

Key idea. Locality as the inductive bias for video Transformers: adapting the image Swin Transformer to video gives a better speed-accuracy trade-off than global spatiotemporal self-attention.

  • Video Swin Transformer
  • video swin
  • swin3d
  • swin3d_t
  • swin3d_s
  • swin3d_b
  • action recognition
  • video classification
  • Kinetics
  • Something-Something
  • torchvision

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@article{swin3d2022,
  title = {Video Swin Transformer},
  author = {Ze Liu and Jia Ning and Yue Cao and Yixuan Wei and Zheng Zhang and Stephen Ching-Feng Lin and Han Hu},
  year = {2022},
  journal = {IEEE Computer Society Conference on Computer Vision and Pattern Recognition/Proceedings},
  eprint = {2106.13230}
}