Skip to main content
QUICK REVIEW

[Paper Review] MILAN: Masked Image Pretraining on Language Assisted Representation

Zejiang Hou, Fei Sun|arXiv (Cornell University)|Aug 11, 2022
Multimodal Machine Learning ApplicationsComputer Science27 citations
TL;DR

MILAN pretrains vision transformers with a masked autoencoder whose reconstruction targets are language-assisted image representations from CLIP, using a prompting decoder and semantic-aware patch sampling to achieve superior ImageNet finetuning and downstream transfer.

ABSTRACT

Self-attention based transformer models have been dominating many computer vision tasks in the past few years. Their superb model qualities heavily depend on the excessively large labeled image datasets. In order to reduce the reliance on large labeled datasets, reconstruction based masked autoencoders are gaining popularity, which learn high quality transferable representations from unlabeled images. For the same purpose, recent weakly supervised image pretraining methods explore language supervision from text captions accompanying the images. In this work, we propose masked image pretraining on language assisted representation, dubbed as MILAN. Instead of predicting raw pixels or low level features, our pretraining objective is to reconstruct the image features with substantial semantic signals that are obtained using caption supervision. Moreover, to accommodate our reconstruction target, we propose a more effective prompting decoder architecture and a semantic aware mask sampling mechanism, which further advance the transfer performance of the pretrained model. Experimental results demonstrate that MILAN delivers higher accuracy than the previous works. When the masked autoencoder is pretrained and finetuned on ImageNet-1K dataset with an input resolution of 224x224, MILAN achieves a top-1 accuracy of 85.4% on ViT-Base, surpassing previous state-of-the-arts by 1%. In the downstream semantic segmentation task, MILAN achieves 52.7 mIoU using ViT-Base on ADE20K dataset, outperforming previous masked pretraining results by 4 points.

Motivation & Objective

  • Reduce reliance on large labeled datasets by leveraging language supervision in masked image pretraining.
  • Learn semantic-rich representations by reconstructing CLIP-derived image features rather than raw pixels.
  • Improve pretraining efficiency with an efficient prompting decoder and semantic-aware patch sampling.
  • Demonstrate strong transfer to downstream tasks such as object detection, instance segmentation, and semantic segmentation.

Proposed method

  • Use a masked autoencoder where the CLIP image encoder outputs serve as the reconstruction targets for the masked patches.
  • Adopt a prompting decoder that freezes encoder outputs and uses them as fixed prompts to reconstruct masked patch features, reducing decoding updates.
  • Compute reconstruction loss on normalized features of both masked and unmasked patches via mean squared error.
  • Implement a semantic aware sampling strategy that selects unmasked patches based on CLIP last-layer attention to emphasize semantically important regions.
  • Pretrain ViT-Base and ViT-Large on ImageNet-1K for 400 epochs and evaluate via finetuning, linear probing, and downstream tasks.
  • Compare against MAE and language-image pretraining baselines to isolate the impact of targets, decoder design, and sampling.

Experimental results

Research questions

  • RQ1Does reconstructing language-assisted CLIP features improve finetuning and linear probe performance over pixel-based targets?
  • RQ2How does the prompting decoder affect efficiency and accuracy when targeting CLIP representations?
  • RQ3Does semantic-aware patch sampling improve pretraining efficiency and downstream transfer?
  • RQ4What is MILAN’s performance gain on downstream tasks like COCO detection/segmentation and ADE20K semantic segmentation compared to prior masked pretraining methods?

Key findings

  • MILAN achieved 86.4% top-1 on ImageNet-1K with ViT-Base and 88.3% with ViT-Large when pretrained on 400 epochs and finetuned on 224x224 images.
  • MILAN outperformed prior masked pretraining and language-image methods on linear probing, and matched or surpassed state-of-the-art contrastive methods.
  • On COCO, MILAN improved VPxAPbox and VPxAPmask over supervised pretraining by about 4.7 and 2.6 points for ViT-Base respectively.
  • On ADE20K, MILAN achieved 52.7 mIoU with ViT-Base, surpassing MAE by 4.6 points.
  • MILAN showed robustness advantages on ImageNet-Adversarial, ImageNet-Rendition, and ImageNet-Sketch, outperforming prior models by substantial margins.
  • Ablation studies confirm the CLIP-based target, prompting decoder, and semantic sampling each contribute to accuracy gains, with the full MILAN setup yielding the best results.

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.