[Paper Review] Architecture-Agnostic Masked Image Modeling -- From ViT back to CNN
This paper proposes A²MIM, a novel architecture-agnostic masked image modeling framework that enhances middle-order patch interactions for improved self-supervised representation learning in both Vision Transformers and CNNs. By applying mask tokens at intermediate feature maps and introducing a Fourier-domain loss, A²MIM achieves state-of-the-art performance on ImageNet-1K and downstream tasks, outperforming contrastive learning and prior MIM methods on CNNs without ViT-specific designs.
Masked image modeling, an emerging self-supervised pre-training method, has shown impressive success across numerous downstream vision tasks with Vision transformers. Its underlying idea is simple: a portion of the input image is masked out and then reconstructed via a pre-text task. However, the working principle behind MIM is not well explained, and previous studies insist that MIM primarily works for the Transformer family but is incompatible with CNNs. In this work, we observe that MIM essentially teaches the model to learn better middle-order interactions among patches for more generalized feature extraction. We then propose an Architecture-Agnostic Masked Image Modeling framework (A$^2$MIM), which is compatible with both Transformers and CNNs in a unified way. Extensive experiments on popular benchmarks show that A$^2$MIM learns better representations without explicit design and endows the backbone model with the stronger capability to transfer to various downstream tasks.
Motivation & Objective
- To investigate the underlying mechanism of masked image modeling (MIM) beyond reconstruction quality.
- To address the gap in MIM performance between Transformers and CNNs, which previously limited its application to ViTs.
- To develop a unified, architecture-agnostic MIM framework that enhances middle-order interactions across both CNNs and Transformers.
- To demonstrate that MIM's success stems from learning generalized, complex feature representations through improved patch interactions, not reconstruction fidelity.
- To achieve superior downstream transfer performance on ImageNet-1K and various benchmarks using only standard CNN and ViT backbones.
Proposed method
- Applying mask tokens at intermediate feature maps rather than input patches to improve feature interaction learning.
- Using mean RGB value for masking to preserve spatial context and avoid distribution shift.
- Introducing a Fourier-domain loss to explicitly enhance middle-order interactions among image patches.
- Designing a generic framework compatible with both CNNs and Transformers without architectural modifications.
- Employing a linear decoder for reconstruction, with optional depth-wise convolution or advanced prediction targets for ablation.
- Validating the framework on ImageNet-1K and downstream tasks with ResNet, ConvNeXt, and ViT backbones.
Experimental results
Research questions
- RQ1What is the true underlying mechanism by which masked image modeling improves representation learning?
- RQ2Why do existing MIM methods underperform on CNNs despite success on Vision Transformers?
- RQ3Can a unified MIM framework be designed to enhance middle-order patch interactions in both CNNs and Transformers?
- RQ4Does improving middle-order interactions lead to more robust and generalizable visual representations?
- RQ5Can A²MIM outperform contrastive learning and prior MIM methods on standard CNNs without ViT-specific components?
Key findings
- MIM's success stems from enhancing middle-order interactions between image patches, not from reconstruction quality or architectural design.
- A²MIM achieves 79.0% top-1 accuracy on ImageNet-1K using ResNet-50, surpassing contrastive learning and prior MIM methods on CNNs.
- ViT-B benefits more from longer pre-training (e.g., 800 epochs), while ResNet-50 shows no gain beyond 300 epochs, indicating architectural inductive bias limits CNNs' MIM gains.
- A²MIM improves interaction strength distribution, capturing more balanced and complex middle-order interactions (0.2n to 0.6n) than baseline methods.
- Using advanced targets like DINO features or HoG improves A²MIM performance to 79.0% (ResNet-50) and 82.7% (ViT-B), confirming scalability.
- The Fourier-domain loss and intermediate masking significantly boost performance, especially on CNNs, by enhancing feature interaction learning.
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.