Skip to main content
QUICK REVIEW

[Paper Review] Masked Image Modeling with Denoising Contrast

Kun Yi, Yixiao Ge|arXiv (Cornell University)|May 19, 2022
Image and Signal Denoising MethodsComputer Science8 citations
TL;DR

This paper proposes ConMIM, a pure masked image modeling (MIM) method that replaces traditional image tokenizers with denoising contrastive learning, using intra-image inter-patch contrastive loss as the sole objective. By introducing asymmetric image perturbations and model progress rates, ConMIM achieves state-of-the-art performance—83.9% top-1 accuracy on ImageNet-1K with ViT-Small and 85.3% with ViT-Base—without extra data or pretraining stages.

ABSTRACT

Since the development of self-supervised visual representation learning from contrastive learning to masked image modeling (MIM), there is no significant difference in essence, that is, how to design proper pretext tasks for vision dictionary look-up. MIM recently dominates this line of research with state-of-the-art performance on vision Transformers (ViTs), where the core is to enhance the patch-level visual context capturing of the network via denoising auto-encoding mechanism. Rather than tailoring image tokenizers with extra training stages as in previous works, we unleash the great potential of contrastive learning on denoising auto-encoding and introduce a pure MIM method, ConMIM, to produce simple intra-image inter-patch contrastive constraints as the sole learning objectives for masked patch prediction. We further strengthen the denoising mechanism with asymmetric designs, including image perturbations and model progress rates, to improve the network pre-training. ConMIM-pretrained models with various scales achieve competitive results on downstream image classification, semantic segmentation, object detection, and instance segmentation tasks, e.g., on ImageNet-1K classification, we achieve 83.9% top-1 accuracy with ViT-Small and 85.3% with ViT-Base without extra data for pre-training.

Motivation & Objective

  • To eliminate the need for separate image tokenizers in masked image modeling by integrating contrastive learning directly into the pre-training objective.
  • To improve the denoising auto-encoding capability of vision Transformers through asymmetric training designs.
  • To demonstrate that contrastive learning, when properly re-imagined within the MIM framework, can outperform existing MIM methods without discrete tokenization.
  • To validate the effectiveness of ConMIM on small-scale vision Transformers and large-scale uncurated datasets like YFCC15M.
  • To re-evaluate the role of contrastive learning in self-supervised visual representation learning in light of recent MIM dominance.

Proposed method

  • ConMIM frames masked patch prediction as a denoising contrastive learning task, using the full input image to generate dynamic keys for contrastive loss.
  • The model uses a single-view, two-pass forward pass: one for the corrupted input (with masked patches) and one for the full input to generate positive keys.
  • Positive keys are patch representations from the same spatial locations in the full input; negative keys are from other spatial locations in the same image.
  • Asymmetric image perturbations are applied: strong augmentations to the full input and weak augmentations to the corrupted input to enhance robustness.
  • Asymmetric model progress rates are used: a slowly updating momentum encoder processes the full input to generate stable, semantically consistent key representations.
  • The contrastive loss is computed between the predicted representations of masked patches and the corresponding positive keys, encouraging fine-grained visual context learning.

Experimental results

Research questions

  • RQ1Can contrastive learning be effectively revitalized within a pure masked image modeling framework without discrete image tokenizers?
  • RQ2How do asymmetric image perturbations and model progress rates affect the performance and generalization of MIM pre-training?
  • RQ3Does ConMIM outperform existing MIM methods like MAE and iBOT, especially on small-scale vision Transformers?
  • RQ4Can ConMIM scale effectively to large, uncurated datasets such as YFCC15M without requiring additional supervision?
  • RQ5What is the relative contribution of contrastive learning versus auto-encoding in MIM, and how can they be optimally combined?

Key findings

  • ConMIM achieves 83.9% top-1 accuracy on ImageNet-1K using only ViT-Small and ImageNet-1K data, outperforming BEiT and other MIM methods without extra data or tokenizers.
  • With ViT-Base, ConMIM reaches 85.3% top-1 accuracy on ImageNet-1K, demonstrating strong performance on larger architectures.
  • Ablation studies show that removing asymmetric model progress rates causes a 1.98% drop in accuracy, highlighting its critical role in preventing information leakage.
  • Asymmetric image perturbations improve performance: using strong augmentation on the full input and weak on the corrupted input yields better results than symmetric or reversed setups.
  • On YFCC15M, ConMIM achieves 83.3% top-1 accuracy with ViT-B/16, surpassing both SLIP (82.9%) and MAE (83.0%), confirming scalability to large-scale data.
  • ConMIM's training time per epoch is 1.05× that of BEiT (1.0×), with only a minor overhead due to two forward passes, making it efficient and practical for real-world deployment.

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.