Skip to main content
QUICK REVIEW

[Paper Review] DeepMIM: Deep Supervision for Masked Image Modeling

Sucheng Ren, Fangyun Wei|arXiv (Cornell University)|Mar 15, 2023
Advanced Neural Network ApplicationsComputer Science11 citations
TL;DR

DeepMIM revisits deep supervision for masked image modeling (MIM) and shows that adding lightweight decoders to intermediate ViT blocks improves representation learning, convergence, and downstream performance across MAE and CLIP-based setups.

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.

Motivation & Objective

  • Motivate revisiting deep supervision in the context of self-supervised masked image modeling (MIM).
  • Demonstrate that deep supervision improves shallow layer representations, convergence, and attention diversity.
  • Show that DeepMIM is compatible with multiple MIM targets and tokenizer choices.
  • Quantify improvements on ImageNet classification, object detection, and semantic segmentation using various pre-training configurations.

Proposed method

  • Attach three lightweight decoders to intermediate ViT blocks (6th, 8th, 10th) in a ViT-B encoder to enable deep supervision during MIM pre-training.
  • Optionally use a progressive hybrid target generator that blends raw images with MAE reconstructions as targets for intermediate blocks.
  • Train with a sum of reconstruction losses from all decoders plus the final decoder loss, ensuring supervision at multiple depths.
  • Demonstrate compatibility of DeepMIM with MAE, MAE variants, and CLIP-based targets across pre-training schedules (300 and 1600 epochs).
  • Evaluate representations via reconstruction loss, CKA similarity across layers, and attention head diversity.

Experimental results

Research questions

  • RQ1Does applying reconstruction supervision to intermediate ViT blocks improve representation learning in MIM pre-training?
  • RQ2How do deep supervision, hybrid targets, and target types affect reconstruction loss, feature similarity, and downstream transfer performance?
  • RQ3Is DeepMIM compatible with diverse reconstruction targets (pixels, HOG, DINO features, CLIP, etc.) and MIM frameworks?
  • RQ4What is the impact of DeepMIM on downstream tasks like ImageNet classification, COCO detection, ADE20K segmentation, and Kinetics video classification?

Key findings

  • DeepMIM consistently improves performance over MAE across multiple targets and schedules (e.g., +0.8 top-1 on ImageNet with ViT-B/MAE).
  • DeepMIM yields lower training and validation reconstruction losses than standard MAE, indicating stronger optimization.
  • CKA analyses show DeepMIM’s intermediate blocks become more discriminative and align better with the final representations.
  • DeepMIM increases attention head diversity, suggesting richer multi-head representations in shallow blocks.
  • When combined with a strong tokenizer like CLIP, DeepMIM achieves state-of-the-art results on ImageNet classification, COCO detection, and ADE20K segmentation (e.g., 85.6 top-1 on ImageNet-1K with DeepMIM-MAE-CLIP).
  • DeepMIM improves robustness and out-of-domain performance on ImageNet-A, ImageNet-R, and ImageNet-C compared to MAE.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.