How Mask Matters: Towards Theoretical Understandings of Masked Autoencoders

Qi Zhang, Yifei Wang, Yisen Wang
10/15/2022
124 citations
cs.LGcs.CV
contrastive-ssl

Official code: zhangq327/U-MAE (69 stars, Python, last commit 2023-11-17).

Abstract

Masked Autoencoders (MAE) based on a reconstruction task have risen to be a promising paradigm for self-supervised learning (SSL) and achieve state-of-the-art performance across different benchmark datasets. However, despite its impressive empirical success, there is still limited theoretical understanding of it.

Show full abstract

In this paper, we propose a theoretical understanding of how masking matters for MAE to learn meaningful features. We establish a close connection between MAE and contrastive learning, which shows that MAE implicit aligns the mask-induced positive pairs. Built upon this connection, we develop the first downstream guarantees for MAE methods, and analyze the effect of mask ratio. Besides, as a result of the implicit alignment, we also point out the dimensional collapse issue of MAE, and propose a Uniformity-enhanced MAE (U-MAE) loss that can effectively address this issue and bring significant improvements on real-world datasets, including CIFAR-10, ImageNet-100, and ImageNet-1K. Code is available at (https://github.com/zhangq327/U-MAE).

View on arXivView PDF

Code Implementations(1)

zhangq327/U-MAEOfficial100%

Official Code for NeurIPS 2022 Paper: How Mask Matters: Towards Theoretical Understandings of Masked Autoencoders

696Python, ShellOct 14, 20223 years ago

Similar Papers

Cite this paper

@article{zhang2022mask,
  title  = {How Mask Matters: Towards Theoretical Understandings of Masked Autoencoders},
  author = {Qi Zhang and Yifei Wang and Yisen Wang},
  year   = {2022},
  eprint = {2210.08344},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.08344}
}

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

Discussion