VideoMAE: Masked Autoencoders are Data-Efficient Learners for Self-Supervised Video Pre-Training

Zhan Tong, Yibing Song, Jue Wang, Limin Wang

TL;DR

VideoMAE adapts the masked autoencoder (MAE) framework for video, demonstrating that an aggressive 90-95% masking ratio combined with a novel "tube masking" strategy makes for a highly efficient self-supervised learner. By forcing the model to reconstruct missing spatiotemporal "tubes," VideoMAE achieves state-of-the-art performance on small-to-medium datasets without requiring massive external pre-training data.

What Problem Does This Paper Address?

Training Vision Transformers (ViTs) for video recognition typically requires a massive amount of labeled data. Most current models rely on backbones pre-trained on hundreds of millions of images (like ImageNet-21k) because training them from scratch on video datasets often yields poor results.

The authors identify two core challenges in video masked modeling:

  1. Temporal Redundancy: Video frames are captured densely, meaning semantics change slowly. If you mask pixels randomly (as in images), the model can easily "cheat" by interpolating missing pixels from the immediate temporal neighborhood without learning high-level semantics.
  2. Information Leakage: Because of temporal correlation, a masked patch in one frame might be visible in the next. This allows the model to find "shortcuts" rather than understanding the underlying motion and structure.

Methods

VideoMAE builds on the ImageMAE architecture—an asymmetric encoder-decoder that reconstructs masked patches—but introduces three video-specific customizations:

  • Temporal Downsampling: To handle redundancy, the model uses strided sampling to compress the input clip before processing.
  • Tube Masking: Instead of masking patches randomly across space and time, VideoMAE uses a "tube" strategy. The same masking map is applied to every frame in a clip. This ensures that if a spatial region is masked, it is masked for the entire duration of the clip, forcing the model to rely on high-level spatiotemporal reasoning rather than simple temporal interpolation.
  • Extremely High Masking Ratio: While ImageMAE uses a 75% masking ratio, VideoMAE pushes this to 90-95%. Because videos are so information-poor compared to images (due to redundancy), this extreme masking is necessary to make the reconstruction task challenging enough to be useful.
Figure 1: VideoMAE performs the task of masking random cubes and reconstructing the missing ones with an asymmetric encoder-decoder architecture. Due to high redundancy and temporal correlation in videos, we present the customized design of tube masking with an extremely high ratio (90% to 95%). This simple design enables us to create a more challenging and meaningful self-supervised task to make the learned representations capture more useful spatiotemporal structures.

Datasets

The authors evaluated VideoMAE across a diverse set of benchmarks:

  • Large-scale: Kinetics-400 (K400) and Something-Something V2 (SSV2).
  • Small-scale: UCF101 and HMDB51 (used to demonstrate data efficiency).
  • Downstream Task: AVA v2.2 for spatiotemporal action detection.

Key Insights and Ideas

  • Redundancy is an Opportunity: The high temporal redundancy of video allows for much higher masking ratios than images. This not only makes the task harder (improving representation learning) but also significantly reduces the computational load on the encoder, which only sees ~5-10% of the tokens.
  • Tube Masking is Essential: As shown in the figure below, random or frame-level masking allows the model to exploit temporal correlations. Tube masking (d) creates a "meaningful" challenge by removing entire trajectories of data.
Figure 2: Slowness is a general prior in (a) video data [88]. This leads to two important characteristics in time: temporal redundancy and temporal correlation. Temporal redundancy makes it possible to recover pixels under an extremely high masking ratio. Temporal correlation leads to easily reconstruct the missing pixels by finding those corresponding patches in adjacent frames under plain (b) frame masking or (c) random masking. To avoid this simple task and encourage learning representative representation, we propose a (d) tube masking, where the masking map is the same for all frames.
  • Data Efficiency: VideoMAE is a "data-efficient learner." It can achieve respectable results (62.6% on HMDB51) using only 3.5k training videos, outperforming contrastive methods like MoCo v3.
  • Quality > Quantity: The authors found that domain shift is a major factor. Pre-training on a dataset that matches the target domain's characteristics (e.g., motion-centric vs. scene-centric) is often more effective than simply using a larger, mismatched dataset.

Key Results

VideoMAE achieves impressive performance without any extra data (no ImageNet pre-training):

  • State-of-the-Art: Reached 87.4% on Kinetics-400 (ViT-H) and 75.4% on Something-Something V2 (ViT-L).
  • Efficiency: Pre-training is 3.2x faster than MoCo v3 while achieving significantly higher accuracy (69.6% vs 54.2% on SSV2).
  • Masking Ratio: The "sweet spot" for performance is consistently around 90%, as shown in the ablation studies.
Figure 3: The effect of masking ratio on (a) Something-Something V2 and (b) Kinetics-400. We take 16-frame vanilla ViT-B as default. The results show that an extremely high masking ratio (90%) achieves the best efficiency and effective- ness trade-off on both video datasets.

Limitations and Future Work

  • Energy Consumption: While efficient compared to other methods, large-scale pre-training still requires significant GPU resources and carries a carbon footprint.
  • Modality: Currently, VideoMAE only utilizes the RGB stream. The authors suggest that incorporating audio and text streams could provide even richer supervision.
  • Scaling: Future work includes testing VideoMAE on even larger "webly" datasets and exploring higher spatial resolutions (e.g., 384x384).

Summary updated

BibTeX
@inproceedings{tong2022videomae,
  author = {Zhan Tong and Yibing Song and Jue Wang and Limin Wang},
  title = {{VideoMAE: Masked Autoencoders are Data-Efficient Learners for Self-Supervised Video Pre-Training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=AhccnBXSne},
}
Figure