[Paper Review] Rethinking Patch Dependence for Masked Autoencoders
This paper proposes CrossMAE, a novel masked autoencoder framework that replaces self-attention among masked patches with cross-attention to visible tokens, enabling partial reconstruction and dynamic use of multi-level encoder features. CrossMAE achieves performance on par with or better than MAE while reducing decoding compute by 2.5–3.7×, demonstrating that intra-mask self-attention is not essential for strong representation learning.
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
Motivation & Objective
- To investigate whether self-attention among masked patches in MAE is essential for learning effective visual representations.
- To reduce computational cost in masked autoencoding by enabling partial reconstruction of only a subset of masked tokens.
- To improve representation learning by allowing decoder blocks to attend to multiple levels of encoder features, not just the final layer.
- To scale masked autoencoding to longer sequences, such as high-resolution images or video, by reducing sequence length and FLOPS in the decoder.
Proposed method
- Replaces the standard self-attention decoder in MAE with a cross-attention mechanism that queries visible tokens to reconstruct masked patches.
- Enables partial reconstruction by making each masked token's decoding conditionally independent, allowing only a fraction of patches to be reconstructed during training.
- Introduces a lightweight inter-block attention mechanism that allows each decoder block to dynamically attend to different encoder feature maps (from early and late blocks).
- Uses residual connections and linear reconstruction heads to decompose the final reconstruction into contributions from each decoder block, enabling per-block visualization.
- Employs a 25% prediction ratio in the main experiments to improve efficiency while maintaining performance.
- Visualizes attention maps and per-block contributions to analyze how different decoder blocks and encoder features contribute to reconstruction.

Experimental results
Research questions
- RQ1Is self-attention between masked patches truly necessary for learning strong visual representations in masked autoencoders?
- RQ2Can the decoder reconstruct only a subset of masked patches without sacrificing downstream performance?
- RQ3Does leveraging multi-level encoder features through inter-block attention improve representation learning compared to using only the final encoder layer?
- RQ4Can the model scale to longer input sequences, such as high-resolution images, with reduced computational cost?
Key findings
- CrossMAE achieves 83.5% top-1 accuracy on ImageNet classification, surpassing the full-reconstruction MAE baseline.
- On COCO instance segmentation, CrossMAE achieves 52.1 AP and 46.3 AP, outperforming MAE under the same compute budget.
- CrossMAE reduces decoding FLOPS by 2.5 to 3.7× compared to MAE while maintaining or improving performance.
- The model generalizes well to longer sequences: classification accuracy increases from 83.5% at 224×224 to 84.1% at 448×448 resolution, showing scalability.
- Per-block visualization reveals that later decoder blocks contribute most to high-frequency details, validating the need for multi-level feature fusion.
- Inter-block attention maps show that later decoder blocks attend to earlier encoder features, and earlier blocks to later features, confirming dynamic feature mixing.
![Figure 2 : Example reconstructions of ImageNet validation images. For each set of 5 images, from left to right, are the original image, masked image with a mask ratio of 75%, MAE [ 31 ] , CrossMAE (trained to reconstruct 25% of image tokens, or 1/3 of the mask tokens), and CrossMAE (trained to recon](https://ar5iv.labs.arxiv.org/html/2401.14391/assets/x2.png)
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.