Masked Autoencoders As Spatiotemporal Learners

Christoph Feichtenhofer, Haoqi Fan, Yanghao Li, Kaiming He
5/18/2022
cs.CVcs.LG

Official code: facebookresearch/mae_st (374 stars, last commit 2026-08-17).

Abstract

This paper studies a conceptually simple extension of Masked Autoencoders (MAE) to spatiotemporal representation learning from videos. We randomly mask out spacetime patches in videos and learn an autoencoder to reconstruct them in pixels. Interestingly, we show that our MAE method can learn strong representations with almost no inductive bias on spacetime (only except for patch and positional embeddings), and spacetime-agnostic random masking performs the best. We observe that the optimal masking ratio is as high as 90% (vs. 75% on images), supporting the hypothesis that this ratio is related to information redundancy of the data. A high masking ratio leads to a large speedup, e.g., > 4x in wall-clock time or even more. We report competitive results on several challenging video datasets using vanilla Vision Transformers. We observe that MAE can outperform supervised pre-training by large margins. We further report encouraging results of training on real-world, uncurated Instagram data. Our study suggests that the general framework of masked autoencoding (BERT, MAE, etc.) can be a unified methodology for representation learning with minimal domain knowledge.

View on arXivView PDF

Code Implementations(1)

Official Open Source code for "Masked Autoencoders As Spatiotemporal Learners"

37439Shell, PythonJul 18, 20222 months agoNOASSERTION

Similar Papers

Cite this paper

@article{feichtenhofer2022masked,
  title  = {Masked Autoencoders As Spatiotemporal Learners},
  author = {Christoph Feichtenhofer and Haoqi Fan and Yanghao Li and Kaiming He},
  year   = {2022},
  eprint = {2205.09113},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.09113}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2205.09113.svg)](https://codeofpaper.com/paper/2205.09113)

Discussion