Video Transformers: A Survey
Introduction
The "Transformer revolution," which fundamentally altered Natural Language Processing (NLP) and 2D image analysis, has encountered a significant hurdle in the domain of video: the quadratic complexity bottleneck. Standard self-attention mechanisms compare every input token to every other token, resulting in a computational cost that grows quadratically ($O(N^2)$) with the number of tokens. In video processing—where data spans height, width, and time—the token count explodes, making standard architectures prohibitively expensive.
Furthermore, unlike Convolutional Neural Networks (CNNs), Transformers lack inherent inductive biases such as locality. This "blank slate" nature typically requires massive datasets to learn the spatiotemporal structures of video. This survey provides a comprehensive taxonomy and performance analysis of over 100 "Video Transformer" (VT) models, detailing how researchers have redesigned inputs, architectures, and training regimes to overcome these challenges.
Taxonomy of Video Transformers
The evolution of Video Transformers can be categorized across three primary stages: input pre-processing, architectural adaptation, and training strategies.
Input Pre-processing
The first challenge is transforming a continuous video stream into a sequence of discrete tokens. Researchers have developed several strategies to balance information density with computational load. These range from Patch-wise tokenization (treating small 2D or 3D "cubes" as tokens) to Clip-wise tokenization, which condenses multiple frames into a single high-level representation using CNN backbones or Region Proposal Networks (RPN).
Architectural Adaptations
To address the $O(N^2)$ complexity problem, several architectural variations have emerged to make attention more efficient:
- Restricted Attention: Limiting attention to local neighborhoods, specific axes (Axial Attention), or sparse patterns to reduce the number of comparisons.
- Aggregation and Hierarchical Designs: Models like MViT or Video Swin progressively reduce the number of tokens in deeper layers, similar to the pooling layers in CNNs.
- Memory & Recurrence: Storing past information in a "memory bank" or using recurrent states allows models to process long videos without maintaining all frames in active memory.
- Query-driven Compression: Using a fixed set of learnable queries to "read" from the video tokens, effectively compressing the representation.
Training Strategies and Benchmarks
The survey highlights a shift from supervised pre-training (e.g., on ImageNet) toward Self-Supervised Learning (SSL). A dominant paradigm is Masked Token Modeling (MTM), where the model learns by reconstructing hidden parts of a video. Performance is primarily evaluated on two "gold standard" benchmarks: Kinetics-400 (K400) for action classification and Something-Something-v2 (SSv2) for motion-centric understanding.
Key Insights and Results
- The Redundancy Paradox: Video is highly redundant, with consecutive frames appearing nearly identical. Researchers found that extremely high masking ratios (75% to 90%) in SSL tasks force the model to learn robust spatiotemporal representations rather than just copying pixels.
- Pre-training Dominance: The single most significant factor in performance is often the pre-training strategy rather than the specific architecture. Video-specific SSL (like VideoMAE) is now outperforming traditional supervised pre-training on massive image datasets.
- Efficiency Gains: Modern VTs like MViTv2 now outperform state-of-the-art 3D CNNs (like SlowFast) while utilizing significantly fewer TFLOPs. On Kinetics-400, top models like Video-SwinV2-G reach ~86.8% accuracy, while VideoMAE achieves ~75.3% on the motion-heavy SSv2.
Future Directions and Limitations
Despite rapid progress, several challenges remain. Explainability is a major hurdle, as the complex attention maps of VTs are difficult to interpret. Generalizing to unseen sequence lengths is also difficult, as most models struggle with videos significantly longer than those seen during training. Finally, the integration of multi-modal data (audio and text) and the application of Transformers to generative tasks represent the next frontiers in video understanding.
Summary updated