DeepMIM: Deep Supervision for Masked Image Modeling

Sucheng Ren, Fangyun Wei, Samuel Albanie, Zheng Zhang, Han Hu
3/15/2023
cs.CV

Official code: OliverRensu/DeepMIM (56 stars, last commit 2025-05-10).

Abstract

Deep supervision, which involves extra supervisions to the intermediate features of a neural network, was widely used in image classification in the early deep learning era since it significantly reduces the training difficulty and eases the optimization like avoiding gradient vanish over the vanilla training. Nevertheless, with the emergence of normalization techniques and residual connection, deep supervision in image classification was gradually phased out. In this paper, we revisit deep supervision for masked image modeling (MIM) that pre-trains a Vision Transformer (ViT) via a mask-and-predict scheme. Experimentally, we find that deep supervision drives the shallower layers to learn more meaningful representations, accelerates model convergence, and expands attention diversities. Our approach, called DeepMIM, significantly boosts the representation capability of each layer. In addition, DeepMIM is compatible with many MIM models across a range of reconstruction targets. For instance, using ViT-B, DeepMIM on MAE achieves 84.2 top-1 accuracy on ImageNet, outperforming MAE by +0.6. By combining DeepMIM with a stronger tokenizer CLIP, our model achieves state-of-the-art performance on various downstream tasks, including image classification (85.6 top-1 accuracy on ImageNet-1K, outperforming MAE-CLIP by +0.8), object detection (52.8 APbox on COCO) and semantic segmentation (53.1 mIoU on ADE20K). Code and models are available at https://github.com/OliverRensu/DeepMIM.

View on arXivView PDF

Code Implementations(1)

[WACV2025 Oral] DeepMIM: Deep Supervision for Masked Image Modeling

566Shell, PythonMar 14, 20231 years ago

Similar Papers

Cite this paper

@article{ren2023deepmim,
  title  = {DeepMIM: Deep Supervision for Masked Image Modeling},
  author = {Sucheng Ren and Fangyun Wei and Samuel Albanie and Zheng Zhang and Han Hu},
  year   = {2023},
  eprint = {2303.08817},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.08817v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2303.08817.svg)](https://codeofpaper.com/paper/2303.08817)

Discussion