Skip to main content
QUICK REVIEW

[Paper Review] SemMAE: Semantic-Guided Masking for Learning Masked Autoencoders

Gang Li, Heliang Zheng|arXiv (Cornell University)|Jun 21, 2022
Generative Adversarial Networks and Image SynthesisComputer Science49 citations
TL;DR

SemMAE introduces a self-supervised semantic part learning stage to create semantic parts, then uses a semantic-guided masking strategy to train masked autoencoders, improving image representations and achieving state-of-the-art results on several vision tasks.

ABSTRACT

Recently, significant progress has been made in masked image modeling to catch up to masked language modeling. However, unlike words in NLP, the lack of semantic decomposition of images still makes masked autoencoding (MAE) different between vision and language. In this paper, we explore a potential visual analogue of words, i.e., semantic parts, and we integrate semantic information into the training process of MAE by proposing a Semantic-Guided Masking strategy. Compared to widely adopted random masking, our masking strategy can gradually guide the network to learn various information, i.e., from intra-part patterns to inter-part relations. In particular, we achieve this in two steps. 1) Semantic part learning: we design a self-supervised part learning method to obtain semantic parts by leveraging and refining the multi-head attention of a ViT-based encoder. 2) Semantic-guided MAE (SemMAE) training: we design a masking strategy that varies from masking a portion of patches in each part to masking a portion of (whole) parts in an image. Extensive experiments on various vision tasks show that SemMAE can learn better image representation by integrating semantic information. In particular, SemMAE achieves 84.5% fine-tuning accuracy on ImageNet-1k, which outperforms the vanilla MAE by 1.4%. In the semantic segmentation and fine-grained recognition tasks, SemMAE also brings significant improvements and yields the state-of-the-art performance.

Motivation & Objective

  • Motivate and address the gap between masked image modeling and masked language modeling by discovering a visual analogue of words (semantic parts).
  • Develop a self-supervised semantic part learning method that yields meaningful part maps on multi-class datasets like ImageNet.
  • Propose a semantic-guided masking strategy to progressively train MAE from intra-part to inter-part information.
  • Demonstrate that incorporating semantic information improves representation learning across classification, segmentation, and fine-grained tasks.

Proposed method

  • Design a two-stage framework: Semantic Part Learning and Semantic-Guided Masking.
  • Obtain semantic parts by embedding the ViT class token into N part tokens, compute patch-part correlations, and generate attention maps refined by blur and a StyleGAN-based decoder with AdaIN for texture transfer.
  • Use argmax over attention maps to obtain part segmentations and guide MAE masking from masking patches within parts to masking entire parts.
  • Introduce a reconstruction objective with a StyleGAN-based decoder and an attention-diversity loss to learn spatial part structure (L_rec, L_div, total L).
  • Implement an adaptive masking schedule that balances part-level and patch-level masking across training iterations via an interpolation parameter alpha.

Experimental results

Research questions

  • RQ1Can semantic parts learned in a self-supervised manner provide meaningful guidance for MAE training?
  • RQ2Does masking based on semantic parts (intra-part and inter-part guidance) improve representations over random masking in MAE?
  • RQ3What is the impact of patch size and masking strategy on SemMAE performance across linear probes, fine-tuning, and downstream tasks?

Key findings

  • SemMAE yields 84.5% top-1 accuracy on ImageNet-1K with linear probing, outperforming vanilla MAE by 1.4%.
  • Semantic part learning with 8x8 patches provides better part segmentation and yields a 1.3–1.9 percentage point gain in linear probing accuracy compared to baselines.
  • Adaptive masking strategy (varying from 75% patches per part to 75% parts) with gamma=2 achieves the best linear probing result (68.7%).
  • On semantic segmentation ADE20K, SemMAE achieves 46.3 mIoU, surpassing MAE (46.1) and supervised pre-training (45.3).
  • In fine-grained transfer, SemMAE outperforms MAE by margins including iNaturalist (82.1 vs 81.8), CUB Birds (87.1 vs 86.5), and Stanford Cars (94.4 vs 94.2).
  • Table comparisons show SemMAE achieving state-of-the-art or competitive performance across linear probing, fine-tuning, and downstream tasks.

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.