Masked Autoencoders Are Scalable Vision Learners

Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li, Piotr Dollár +1 more
11/11/2021
cs.CV

Official code: facebookresearch/mae (8,360 stars, last commit 2024-07-23).

Abstract

This paper shows that masked autoencoders (MAE) are scalable self-supervised learners for computer vision. Our MAE approach is simple: we mask random patches of the input image and reconstruct the missing pixels. It is based on two core designs. First, we develop an asymmetric encoder-decoder architecture, with an encoder that operates only on the visible subset of patches (without mask tokens), along with a lightweight decoder that reconstructs the original image from the latent representation and mask tokens. Second, we find that masking a high proportion of the input image, e.g., 75%, yields a nontrivial and meaningful self-supervisory task. Coupling these two designs enables us to train large models efficiently and effectively: we accelerate training (by 3x or more) and improve accuracy. Our scalable approach allows for learning high-capacity models that generalize well: e.g., a vanilla ViT-Huge model achieves the best accuracy (87.8%) among methods that use only ImageNet-1K data. Transfer performance in downstream tasks outperforms supervised pre-training and shows promising scaling behavior.

View on arXivView PDF

Code Implementations(1)

PyTorch implementation of MAE https//arxiv.org/abs/2111.06377

8,3601,347PythonDec 6, 20212 years agoNOASSERTION

Similar Papers

Cite this paper

@article{he2021masked,
  title  = {Masked Autoencoders Are Scalable Vision Learners},
  author = {Kaiming He and Xinlei Chen and Saining Xie and Yanghao Li and Piotr Dollár and Ross Girshick},
  year   = {2021},
  eprint = {2111.06377},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2111.06377}
}

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/2111.06377.svg)](https://codeofpaper.com/paper/2111.06377)

Discussion