
swin3d_t
Video787 ops28.2M params
Video Swin Transformer: the image Swin's local attention extended to video clips for action recognition.
Video · 118 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
menagerie.classics.resid_slice_e:build_swin3d: build({}) 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.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@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}
}