# MAE (2021)

> Masked 75% of an image's patches and trained a Vision Transformer to reconstruct the missing pixels using an asymmetric encoder–decoder.

Page: https://mralbu.github.io/ai-datasets/p/mae

## Key facts

- Title: Masked Autoencoders Are Scalable Vision Learners
- Authors: Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li, Piotr Dollár, Ross Girshick
- Venue: CVPR 2022
- Category: Vision
- Paper: https://www.alphaxiv.org/abs/2111.06377

## Why it matters

BERT's masked-token recipe had revolutionized NLP, but early attempts to mask images failed because pixels are far more redundant than words. MAE solved that by masking aggressively (75%) and keeping the encoder light on visible patches only, making masked image modeling simple, fast and scalable to giant ViTs.

## The idea

Drop three-quarters of an image's patches at random and run the heavy ViT encoder only on the remaining 25% visible patches, cutting pretraining compute by more than 3×. Then insert mask tokens and pass the full sequence through a tiny decoder to predict the raw pixel values of the hidden patches, forcing the encoder to learn global object geometry rather than local texture.

## The result

87.8% ImageNet fine-tuning top-1 accuracy with a vanilla ViT-Huge using only ImageNet-1K data, plus consistent gains over supervised pretraining when transferred to COCO detection and ADE20K segmentation.

## The data

- [ImageNet (ILSVRC) (2009)](https://mralbu.github.io/ai-datasets/d/imagenet.md): 1.28 million photos across 1,000 classes, the dataset behind the deep learning boom.
- [MS COCO (2014)](https://mralbu.github.io/ai-datasets/d/coco.md): 330k everyday scenes with 1.5M labeled objects in 80 categories.
- [ADE20K (2017)](https://mralbu.github.io/ai-datasets/d/ade20k.md): 27,000 scenes where every object, and often its parts, is outlined and named.

## Builds on

- [ViT (2020)](https://mralbu.github.io/ai-datasets/p/vit.md)
- [BERT (2018)](https://mralbu.github.io/ai-datasets/p/bert.md)
- [MoCo (2019)](https://mralbu.github.io/ai-datasets/p/moco.md)
- [DINO (2021)](https://mralbu.github.io/ai-datasets/p/dino.md)

## Led to

- [DINOv2 (2023)](https://mralbu.github.io/ai-datasets/p/dinov2.md)
- [SAM (2023)](https://mralbu.github.io/ai-datasets/p/sam.md)

## Part of

- [Self-supervised vision](https://mralbu.github.io/ai-datasets/t/self-supervised-vision.md) (step 5 of 6)
