HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

SimMIM: A Simple Framework for Masked Image Modeling

Zhenda Xie Zheng Zhang Yue Cao Yutong Lin Jianmin Bao Zhuliang Yao Qi Dai Han Hu

SimMIM: A Simple Framework for Masked Image Modeling

Abstract

This paper presents SimMIM, a simple framework for masked image modeling. We simplify recently proposed related approaches without special designs such as block-wise masking and tokenization via discrete VAE or clustering. To study what let the masked image modeling task learn good representations, we systematically study the major components in our framework, and find that simple designs of each component have revealed very strong representation learning performance: 1) random masking of the input image with a moderately large masked patch size (e.g., 32) makes a strong pre-text task; 2) predicting raw pixels of RGB values by direct regression performs no worse than the patch classification approaches with complex designs; 3) the prediction head can be as light as a linear layer, with no worse performance than heavier ones. Using ViT-B, our approach achieves 83.8% top-1 fine-tuning accuracy on ImageNet-1K by pre-training also on this dataset, surpassing previous best approach by +0.6%. When applied on a larger model of about 650 million parameters, SwinV2-H, it achieves 87.1% top-1 accuracy on ImageNet-1K using only ImageNet-1K data. We also leverage this approach to facilitate the training of a 3B model (SwinV2-G), that by $40\times$ less data than that in previous practice, we achieve the state-of-the-art on four representative vision benchmarks. The code and models will be publicly available at https://github.com/microsoft/SimMIM.

Code Repositories

lightly-ai/lightly
pytorch
Mentioned in GitHub
Westlake-AI/openmixup
pytorch
Mentioned in GitHub
impiga/plain-detr
pytorch
Mentioned in GitHub
isaaccorley/hydro-foundation-model
pytorch
Mentioned in GitHub
microsoft/simmim
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
self-supervised-image-classification-on-1SimMIM (SwinV2-H, 512)
Number of Params: 658M
Top 1 Accuracy: 87.1%
self-supervised-image-classification-on-1SimMIM (Swin-B)
Number of Params: 88M
Top 1 Accuracy: 84.0%
self-supervised-image-classification-on-1SimMIM (ViT-B/16)
Number of Params: 85M
Top 1 Accuracy: 83.8%
self-supervised-image-classification-on-1SimMIM (Swin-L)
Number of Params: 197M
Top 1 Accuracy: 85.4%

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp