SimMIM:一种简单的掩码图像建模框架

SimMIM: A Simple Framework for Masked Image Modeling

谢震达 Zhenda Xie · Microsoft Research Asia · 2021-11-18 · arXiv:2111.09886 ↗ · 被引 1842

打开互动全文版(逐段中英对照 + 图/公式 + 论文问答)→

摘要 · Abstract

本文提出了 SimMIM,一个简单的掩码图像建模框架。我们简化了最近提出的相关方法,无需特殊设计如块状掩码或通过离散 VAE 或聚类的标记化。为了研究掩码图像建模任务如何学习好的表示,我们系统地研究了框架中的主要组成部分,发现每个组件的简单设计已经展现出非常强的表示学习性能:1)对输入图像进行随机掩码,使用中等大小的掩码块(例如 32)构成了一个强大的预文本任务;2)通过直接回归预测 RGB 值的原始像素,其性能不亚于具有复杂设计的块分类方法;3)预测头可以轻量到仅为一个线性层,性能不亚于更重的预测头。使用 ViT-B,我们的方法在 ImageNet-1K 上预训练后,微调 top-1 准确率达到 83.8%,比之前的最佳方法高出 0.6%。当应用于约 6.5 亿参数的更大模型 SwinV2-H 时,仅使用 ImageNet-1K 数据就达到了 87.1%的 top-1 准确率。我们还利用该方法促进了 30 亿参数模型(SwinV2-G)的训练,与以往实践相比,数据量减少了 40 倍,在四个代表性视觉基准上达到了最先进水平。代码和模型将在 https://github.com/microsoft/SimMIM 公开。

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.

核心贡献 · Key contributions

局限 · Limitations

论文章节 · Sections(共 20)

阅读逐段中英对照全文 →