SemMAE: Semantic-Guided Masking for Learning Masked Autoencoders

Gang Li, Heliang Zheng, Daqing Liu, Chaoyue Wang, Bing Su +1 more
6/21/2022
cs.CV
transformer-attentioncontrastive-ssl

Official code: ucasligang/SemMAE (44 stars, Python, last commit 2023-06-18).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

ucasligang/SemMAEOfficial100%

[NeurIPS 2022] code for the paper, SemMAE: Semantic-guided masking for learning masked autoencoders

445PythonOct 5, 20223 years ago

Similar Papers

Cite this paper

@article{li2022semmae,
  title  = {SemMAE: Semantic-Guided Masking for Learning Masked Autoencoders},
  author = {Gang Li and Heliang Zheng and Daqing Liu and Chaoyue Wang and Bing Su and Changwen Zheng},
  year   = {2022},
  eprint = {2206.10207},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.10207}
}

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/2206.10207.svg)](https://codeofpaper.com/paper/2206.10207)

Discussion