
mvit_base_16x4
Video805 ops36.6M params
A video transformer whose stages expand channels while pooling attention reduces resolution.
Video · 805 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
torchvision.models.get_model('mvit_v1_b', weights=None) This model is the base MViTV1 architecture from the paper "Multiscale Vision Transformers".
Multiscale Vision Transformers (MViT) is a transformer for video and image recognition that connects the idea of multiscale feature hierarchies with transformer models. A conventional transformer keeps a constant channel capacity and resolution throughout the network, while MViT has several channel-resolution scale stages. Starting from the input resolution and a small channel dimension, the stages expand the channel capacity while reducing the spatial resolution.
The mechanism is Multi Head Pooling Attention, a self-attention operator that pools the sequence of latent tensors to reduce the sequence length of the attended input. Query pooling is used in the first layer of each stage and key and value pooling in all other layers. MViT-B projects the input to a channel dimension of 96 with overlapping space-time cubes of shape 3×7×7, and the channel dimension doubles at each stage until it reaches 768.
On Kinetics-600, trained from scratch without any pre-training, the paper reports 82.1% top-1 accuracy for MViT-B 16×4. It also reports a test that shuffles the input frames in time: MViT-B drops 7.1 points in accuracy (77.2 to 70.1), which the authors read as strong use of temporal information.
Key idea. MViT gives transformers a multiscale feature hierarchy: successive stages expand channel capacity while pooling attention reduces space-time resolution.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{fan2021multiscalevisiontransformers,
title={Multiscale Vision Transformers},
author={Haoqi Fan and Bo Xiong and Karttikeya Mangalam and Yanghao Li and Zhicheng Yan and Jitendra Malik and Christoph Feichtenhofer},
year={2021},
eprint={2104.11227},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2104.11227},
}