All models

mvit_v1_b

A video transformer whose stages expand channels while pooling attention reduces resolution.

Video · 805 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 (19 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
Parameters
36.6M
Operations
805
Framework
PyTorch
Recurrent
No
Published
ICCV (arXiv 2021)
Cited by
1,305 (as of 9 October 2026)
Authors
Haoqi Fan, Bo Xiong, Karttikeya Mangalam and others
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
m7534
Graph hash
13c456d16ee6e55edbc2095d2f5701e92b7fd61d566c5e30a249c51c5ee8d376
Skeleton hash
ea14f3f5aa1425c95eea7df90d5f6e9b82069abc5ec6c1ee0d799e8d321be702
Architecture hash
fce8497d01308c1625bb2d59653e1ea92eb22812ebaf5913a409becd23853024
Diagram SHA-256
2f6c73050b03e1937b2ce9c69032d97a6b7c21782a9f0382e1ea7ceb8558d40a
TorchLens version
2.35.3
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

torchvision.models.get_model('mvit_v1_b', weights=None)

What it is

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.

  • mvit
  • multiscale vision transformer
  • multiscale vision transformers
  • mvit_v1_b
  • mvit-b
  • video classification
  • video recognition
  • pooling attention
  • multi head pooling attention
  • multiscale transformer

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

Cite the paper

@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}, 
}