All models

MPViT (Multi-Path Vision Transformer)

MPViT-Tiny, a vision backbone that sends patches of several scales through parallel Transformer paths.

Image classification · 1,222 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 (28 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

Parameters
5.8M
Operations
1,222
Framework
PyTorch
Recurrent
No
Published
CVPR 2022
Cited by
380 (as of 29 October 2026)
Authors
Youngwan Lee, Jonghee Kim, Jeff Willette, Sung Ju Hwang
License
GPL-3.0
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
m18202
Graph hash
97a563a5900e29eb7bf95e38dd9a6f896bcf6c4ebe10b6b74a8b100deda5cec6
Skeleton hash
84b2554b028d7fd28e3f1ca4e7e86c7f22379cb73ca6d0d932609420aecdbb04
Architecture hash
e3a41a1bdf40314ac9a1bd3bd61ed1c4196a37ff111f864159144adeaeb9b2c7
Diagram SHA-256
aad9d3598eeb06c009de97e94f2214e999e021abbcfc758589b882ead422ce83
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

What it is

MPViT, the Multi-Path Vision Transformer, is an image backbone designed around dense prediction tasks such as object detection and segmentation, where objects and regions of varying sizes call for multi-scale features. Instead of cutting the image into patches of a single scale, it embeds patches of different scales at the same time with overlapping convolutions, arranged so that every scale gives the same sequence length. The tokens of each scale then pass through their own Transformer encoder, and the results are aggregated so that fine and coarse features sit at the same feature level.

At the aggregation step, a global-to-local feature interaction (GLI) concatenates convolutional local features with the global features from the Transformer encoders. To limit the cost of running several paths, the encoders use the factorized self-attention proposed in CoaT. The embedding layers use 3 × 3 depthwise separable convolutions for the same reason.

The configuration table in the paper gives the number of paths as [2,3,3,3] across the 4 stages. This model is MPViT-Tiny, whose MLP expansion ratio is 2 where the other models use 4. The repository lists MPViT-T at a top-1 accuracy of 78.2 on ImageNet-1K at 224x224 resolution.

Key idea. MPViT embeds patches of different scales simultaneously and feeds them through parallel Transformer encoders, giving fine and coarse feature representations at the same feature level.

  • MPViT
  • Multi-Path Vision Transformer
  • MPViT-Tiny
  • MPViT-T
  • mpvit_tiny
  • vision transformer backbone
  • multi-scale patch embedding
  • image classification
  • dense prediction
  • ImageNet

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

Cite the paper

@misc{lee2021mpvitmultipathvisiontransformer,
      title={MPViT: Multi-Path Vision Transformer for Dense Prediction}, 
      author={Youngwan Lee and Jonghee Kim and Jeff Willette and Sung Ju Hwang},
      year={2021},
      eprint={2112.11010},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2112.11010}, 
}