NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Unified View of Masked Image Modeling

Zhiliang Peng, Li Dong, Hangbo Bao, Qixiang Ye, Furu Wei

Abstract

Masked image modeling has demonstrated great potential to eliminate the label-hungry problem of training large-scale vision Transformers, achieving impressive performance on various downstream tasks. In this work, we propose a unified view of masked image modeling after revisiting existing methods. Under the unified view, we introduce a simple yet effective method, termed as MaskDistill, which reconstructs normalized semantic features from teacher models at the masked positions, conditioning on corrupted input images. Experimental results on image classification and semantic segmentation show that MaskDistill achieves comparable or superior performance than state-of-the-art methods. When using the huge vision Transformer and pretraining 300 epochs, MaskDistill obtains 88.3% fine-tuning top-1 accuracy on ImageNet-1k (224 size) and 58.8% semantic segmentation mIoU metric on ADE20k (512 size).

Introduction

In computer vision, Vision Transformers (ViTs) are powerful but "label-hungry," typically requiring massive amounts of annotated data. To address this, researchers have turned to Masked Image Modeling (MIM), a self-supervised learning paradigm where models learn by predicting missing parts of an image, similar to "fill-in-the-blank" tasks in natural language processing.

However, the rapid development of MIM has led to a variety of methods (e.g., MAE, BEiT, SimMIM) using different targets—such as pixels, HOG features, or discrete tokens—and architectures. This work provides a unified mathematical view of these methods to identify the core design choices that drive performance.

A Unified Framework for MIM

The proposed framework categorizes MIM into five core components: a teacher model, a normalization layer, a student model, a MIM head, and a loss function. This structure allows for a clear comparison of existing techniques and highlights the importance of each module in the learning process.

The unified framework of Masked Image Modeling (MIM) illustrates the interaction between the teacher, student, and the loss calculation at masked positions.

Leveraging this view, the authors introduce MaskDistill. Unlike standard knowledge distillation, MaskDistill focuses on extrapolating features specifically for masked patches. It utilizes a frozen CLIP model as the teacher, a simple Fully-Connected (FC) layer as the head, and a Smooth-$l_1$ loss.

Key Insights and Results

A central finding of this research is that MIM is essentially Distillation + Extrapolation. The success of MIM lies in forcing the student to "hallucinate" missing information based on context.

The Importance of the Teacher

By comparing various methods, the study demonstrates that the choice of teacher model—specifically moving from low-level pixels to high-level semantic features—is the most significant factor in performance. As shown in the experimental results, using a strong semantic teacher like CLIP allows MaskDistill to outperform more complex predecessors. Ablation studies also indicate that while masking strategies (random vs. block) and ratios impact performance, the semantic richness of the teacher remains paramount.

Performance comparison of different teacher models (Table 1) and ablation studies on masking strategies and ratios across various tasks.

Performance Benchmarks

MaskDistill achieves state-of-the-art results across multiple benchmarks:

  • ImageNet-1k: A ViT-Huge model reached 88.3% top-1 accuracy after 300 epochs of pretraining.
  • Semantic Segmentation: On ADE20k, it achieved 58.8% mIoU, proving the effectiveness of the learned representations for dense prediction.
  • Robustness: MIM-trained models exhibit a stronger shape bias compared to supervised models, making them more robust to changes in style or texture.

Conclusion and Future Work

While MaskDistill is highly effective, it remains dependent on high-quality pretrained teacher models like CLIP. Future research could explore multimodal pretraining or investigate if purely visual teachers can eventually match the performance of language-guided models. Despite these challenges, the unified view of MIM provides a clear roadmap for developing more efficient and powerful self-supervised vision models.

Summary updated

BibTeX
@article{peng2023unified,
  author = {Zhiliang Peng and Li Dong and Hangbo Bao and Qixiang Ye and Furu Wei},
  title = {{A Unified View of Masked Image Modeling}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2023},
  url = {https://openreview.net/forum?id=6TIZy6Uv_8r},
}
Figure