Video Transformers: A Survey

Javier Selva, Anders S. Johansen, Sergio Escalera, Kamal Nasrollahi, Thomas B. Moeslund, Albert Clapés · DOI

TL;DR

This paper provides a comprehensive survey of over 100 Video Transformer (VT) architectures, analyzing how researchers have adapted the standard Transformer to handle the extreme dimensionality and redundancy of video data. By establishing a clear taxonomy across input preprocessing, architectural efficiency, and training strategies, the survey demonstrates that VTs now decisively outperform traditional 3D ConvNets in action classification while requiring significantly less computational complexity.

What Problem Does This Paper Address?

While Transformer models have revolutionized natural language processing and 2D image analysis, adapting them to video is uniquely challenging. A naive application of self-attention to raw video data suffers from two major bottlenecks:

  1. Quadratic Complexity ($O(N^2)$): Self-attention scales quadratically with sequence length. Adding a temporal dimension (frames) on top of spatial dimensions (pixels) causes the token count to explode.
  2. Lack of Inductive Biases: Unlike Convolutional Neural Networks (CNNs), Transformers do not inherently understand spatial locality or temporal consistency. Consequently, they are highly data-hungry and prone to overfitting on redundant video frames.

While previous surveys have touched upon Vision Transformers generally, this paper addresses the lack of a dedicated, in-depth analysis focusing strictly on video-specific design choices.

Methods

The authors systematically break down the Video Transformer pipeline into three core stages:

1. Input Pre-Processing

Before entering the Transformer, video must be tokenized and embedded. The survey categorizes tokenization into patch-wise (2D or 3D cubes), instance-wise (object-centric), frame-wise, and clip-wise approaches. It also maps out how positional embeddings (1D, 2D, or 3D; absolute vs. relative) are injected to preserve spatiotemporal structure.

Fig. 2. Overview of the input pre-processing step, showing tokenization and embedding strategies, as well as positioning (inclusion of positional information).

2. Architectural Adaptations for Efficiency

To bypass the $O(N^2)$ complexity barrier, the survey classifies efficient architectures into two main strategies:

  • Restricted Approaches: Limiting the scope of self-attention (e.g., local neighborhoods, axial attention separating space and time, or sparse attention patterns).
  • Aggregation Approaches: Progressively condensing tokens through hierarchical pooling or query-driven compression.

For long-term video modeling, the paper distinguishes between Memory-based designs (caching past states) and Recurrence-based designs (propagating hidden states over time).

Fig. 3. Visualization of the different design choices for VTs. Data tokens are in light gray (and black stroke if the token is used), whereas augmented tokens are in darker gray; those in white are initialized learnable tokens; and, [CLS] tokens are indicated with “C” (filled black after being augmented). Data flowing into the (T)ransformer from the side is used for cross-attention.

3. Training Regimes and Self-Supervised Learning (SSL)

The survey reviews how VTs are optimized, comparing end-to-end training against using frozen CNN backbones. Crucially, it highlights video-specific SSL pretext tasks, dividing them into Instance-based contrastive learning (maximizing similarity between different augmented views of the same video) and Masked Token Modeling (MTM) (masking out video patches and forcing the network to reconstruct them in pixel or feature space).

Datasets

The survey evaluates the state-of-the-art based on two primary action classification benchmarks:

  • Kinetics-400 (K400): A large-scale dataset of 306K short clips across 400 human action classes. It is widely recognized as being heavily "appearance-biased" (actions can often be inferred from a single static frame).
  • Something-Something-v2 (SSv2): A motion-heavy dataset of 220K videos across 174 fine-grained categories. It requires a true understanding of temporal dynamics and the "arrow of time" (e.g., distinguishing "moving something next to something" from "moving something away from something").

Key Insights and Ideas

  • Pre-training Strategy is the Ultimate Factor: The choice of how a model is pre-trained impacts final accuracy far more than minor architectural tweaks.
  • The Power of High Masking Ratios: In Masked Token Modeling (MTM), masking ratios as high as 70% to 90% are optimal for video (compared to just 15% in NLP). Because video is highly redundant, extreme masking forces the Transformer to learn global spatiotemporal semantics rather than simply interpolating from adjacent pixels.
  • Contrastive Learning Suffers from Shortcuts: While instance-level contrastive learning works exceptionally well for static images, it often underperforms in video because the network easily finds "appearance shortcuts" (matching background textures) instead of learning actual motion dynamics.
  • Progressive Hierarchy Wins: Architectures that gradually aggregate tokens while expanding channel dimensions (e.g., MViT, Video Swin) preserve fine-grained motion features much better than abrupt frame-level aggregation.

Key Results

  • VTs Outperform 3D CNNs from Scratch: On Kinetics-400, pure Video Transformers like MViTv2-S achieve 81.1% top-1 accuracy when trained entirely from scratch, outperforming established 3D CNNs like SlowFast R101+NL (79.8%) while consuming 18x to 22x fewer TFLOPs.
  • Self-Supervised Video Pre-training Dominates: Self-supervised models utilizing MTM achieve state-of-the-art results without massive labeled datasets. MaskFeat-L reaches 86.4% on K400 using self-supervised pre-training on the same dataset.
  • Mastering Temporal Dynamics: On the motion-critical SSv2 dataset, VideoMAE (ViT-L) achieves an impressive 75.3% top-1 accuracy using pixel-based masked pre-training, proving that VTs can master complex temporal reasoning with highly efficient, self-supervised targets.

Limitations and Future Work

  • Severe Lack of Explainability: There is currently a shortage of reliable tools to interpret what spatiotemporal features different attention heads are actually prioritizing over long sequences.
  • Generative Tasks are Untapped: VTs have overwhelmingly been applied to discriminative tasks (classification, localization). Their application to generative video tasks—such as future frame prediction or video inpainting—remains limited due to their tendency to smooth out high-frequency details.
  • Generalization to Unseen Video Lengths: Most models struggle to generalize to different frame rates or longer sequence lengths during deployment without requiring explicit fine-tuning.

Summary updated

BibTeX
@article{selva2022video,
  author = {Javier Selva and Anders S. Johansen and Sergio Escalera and Kamal Nasrollahi and Thomas B. Moeslund and Albert Clapés},
  title = {{Video Transformers: A Survey}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2022},
  doi = {10.1109/tpami.2023.3243465},
}
Figure