Rethinking Patch Dependence for Masked Autoencoders

Letian Fu, Long Lian, Renhao Wang, Baifeng Shi, Xudong Wang +4 more
1/25/2024
cs.CV

No official code found. Best implementation: TonyLianLong/CrossMAE (136 stars, last commit 2025-04-10).

Abstract

In this work, we examine the impact of inter-patch dependencies in the decoder of masked autoencoders (MAE) on representation learning. We decompose the decoding mechanism for masked reconstruction into self-attention between mask tokens and cross-attention between masked and visible tokens. Our findings reveal that MAE reconstructs coherent images from visible patches not through interactions between patches in the decoder but by learning a global representation within the encoder. This discovery leads us to propose a simple visual pretraining framework: cross-attention masked autoencoders (CrossMAE). This framework employs only cross-attention in the decoder to independently read out reconstructions for a small subset of masked patches from encoder outputs. This approach achieves comparable or superior performance to traditional MAE across models ranging from ViT-S to ViT-H and significantly reduces computational requirements. By its design, CrossMAE challenges the necessity of interaction between mask tokens for effective masked pretraining. Code and models are publicly available: https://crossmae.github.io

View on arXivView PDF

Code Implementations(1)

Official Implementation of the CrossMAE paper: Rethinking Patch Dependence for Masked Autoencoders

1367PythonJan 23, 20241 years agoNOASSERTION
computer-visiondeep-learningmaemasked-autoencoderself-supervised-learning

Similar Papers

Cite this paper

@article{fu2024rethinking,
  title  = {Rethinking Patch Dependence for Masked Autoencoders},
  author = {Letian Fu and Long Lian and Renhao Wang and Baifeng Shi and Xudong Wang and Adam Yala and Trevor Darrell and Alexei A. Efros and Ken Goldberg},
  year   = {2024},
  eprint = {2401.14391},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.14391v2}
}

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

Discussion