Skip to main content
QUICK REVIEW

[Paper Review] Multiscale Vision Transformers

Haoqi Fan, Bo Xiong|arXiv (Cornell University)|Apr 22, 2021
Advanced Neural Network ApplicationsComputer Science109 references55 citations
TL;DR

Multiscale Vision Transformers (MViT) fuse multiscale feature hierarchies with transformers for video and image recognition, achieving strong accuracy with less compute than concurrent ViTs that rely on large-scale pretraining.

ABSTRACT

We present Multiscale Vision Transformers (MViT) for video and image recognition, by connecting the seminal idea of multiscale feature hierarchies with transformer models. Multiscale Transformers have several channel-resolution scale stages. Starting from the input resolution and a small channel dimension, the stages hierarchically expand the channel capacity while reducing the spatial resolution. This creates a multiscale pyramid of features with early layers operating at high spatial resolution to model simple low-level visual information, and deeper layers at spatially coarse, but complex, high-dimensional features. We evaluate this fundamental architectural prior for modeling the dense nature of visual signals for a variety of video recognition tasks where it outperforms concurrent vision transformers that rely on large scale external pre-training and are 5-10x more costly in computation and parameters. We further remove the temporal dimension and apply our model for image classification where it outperforms prior work on vision transformers. Code is available at: https://github.com/facebookresearch/SlowFast

Motivation & Objective

  • Motivate leveraging dense visual signal structure through multiscale feature hierarchies within transformer models.
  • Propose a multiscale transformer architecture that progressively increases channel capacity while reducing spatial and temporal resolution.
  • Evaluate MViT on video recognition benchmarks (Kinetics, Charades, SSv2, AVA) and image classification (ImageNet) without external pretraining.
  • Compare MViT against contemporary vision transformers in terms of accuracy, compute (FLOPs), and parameter efficiency.

Proposed method

  • Introduce Multi Head Pooling Attention (MHPA), which pools Q, K, and V sequences to enable flexible space-time resolution within a transformer block.
  • Define a pooling operator P with kernel, stride, and padding to reduce sequence length and thus speed up attention computation.
  • Organize the network into scale stages where each stage downsamples spatiotemporal resolution while expanding channel capacity.
  • Use skip connections that adapt to resolution and channel changes via pooling and a linear layer to align dimensions.
  • Instantiate concrete MViT variants (e.g., MViT-B, MViT-S) with specific stage configurations, resolutions, and channel growth to balance accuracy and efficiency.
  • Train from scratch on Kinetics without ImageNet pretraining and report inference FLOPs, memory, and accuracy; compare to ViT baselines and other video models.

Experimental results

Research questions

  • RQ1How does introducing a multiscale feature hierarchy via MHPA affect accuracy and efficiency on video recognition tasks?
  • RQ2Can MViT achieve competitive or superior performance to concurrent vision transformers without large external pretraining?
  • RQ3Does the temporal bias of video transformers change when using multiscale spatiotemporal kernels as in MHPA?
  • RQ4How well does the multiscale design transfer to image classification tasks without temporal components?

Key findings

  • MViT achieves significant performance gains over concurrent video transformers while using no external pretraining data.
  • MViT achieves lower computation and parameter counts at comparable or higher accuracy than several ViT-based video models.
  • Applying the architecture to image classification (by removing temporal dims) yields improvements over prior vision transformers.
  • The MHPA-based multiscale design enables efficient modeling of dense visual signals in space and time.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.