TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/MixMAE: Mixed and Masked Autoencoder for Efficient Pretrai...

MixMAE: Mixed and Masked Autoencoder for Efficient Pretraining of Hierarchical Vision Transformers

Jihao Liu, Xin Huang, Jinliang Zheng, Yu Liu, Hongsheng Li

2022-05-26CVPR 2023 1Image ClassificationRepresentation LearningSemantic SegmentationObject Detection
PaperPDFCode(official)

Abstract

In this paper, we propose Mixed and Masked AutoEncoder (MixMAE), a simple but efficient pretraining method that is applicable to various hierarchical Vision Transformers. Existing masked image modeling (MIM) methods for hierarchical Vision Transformers replace a random subset of input tokens with a special [MASK] symbol and aim at reconstructing original image tokens from the corrupted image. However, we find that using the [MASK] symbol greatly slows down the training and causes pretraining-finetuning inconsistency, due to the large masking ratio (e.g., 60% in SimMIM). On the other hand, MAE does not introduce [MASK] tokens at its encoder at all but is not applicable for hierarchical Vision Transformers. To solve the issue and accelerate the pretraining of hierarchical models, we replace the masked tokens of one image with visible tokens of another image, i.e., creating a mixed image. We then conduct dual reconstruction to reconstruct the two original images from the mixed input, which significantly improves efficiency. While MixMAE can be applied to various hierarchical Transformers, this paper explores using Swin Transformer with a large window size and scales up to huge model size (to reach 600M parameters). Empirical results demonstrate that MixMAE can learn high-quality visual representations efficiently. Notably, MixMAE with Swin-B/W14 achieves 85.1% top-1 accuracy on ImageNet-1K by pretraining for 600 epochs. Besides, its transfer performances on the other 6 datasets show that MixMAE has better FLOPs / performance tradeoff than previous popular MIM methods. Code is available at https://github.com/Sense-X/MixMIM.

Results

TaskDatasetMetricValueModel
Semantic SegmentationADE20K valmIoU53.8MixMIM-L
Semantic SegmentationADE20K valmIoU50.3MixMIM-B
Object DetectionCOCO 2017mAP54.1MixMIM-L
Object DetectionCOCO 2017mAP52.2MixMIM-B
Image ClassificationPlaces205Top 1 Accuracy69.3MixMIM-L
Image ClassificationPlaces205Top 1 Accuracy68.3MixMIM-B
Image ClassificationPlaces365Top 1 Accuracy60.3MixMIM-L(ViT-L)
Image ClassificationPlaces365Top 1 Accuracy58.9MixMIM-B (ViT)
Image ClassificationiNaturalist 2019Top-1 Accuracy83.9MixMIM-L
Image ClassificationImageNetGFLOPs16.3MixMIM-B
3DCOCO 2017mAP54.1MixMIM-L
3DCOCO 2017mAP52.2MixMIM-B
2D ClassificationCOCO 2017mAP54.1MixMIM-L
2D ClassificationCOCO 2017mAP52.2MixMIM-B
2D Object DetectionCOCO 2017mAP54.1MixMIM-L
2D Object DetectionCOCO 2017mAP52.2MixMIM-B
10-shot image generationADE20K valmIoU53.8MixMIM-L
10-shot image generationADE20K valmIoU50.3MixMIM-B
16kCOCO 2017mAP54.1MixMIM-L
16kCOCO 2017mAP52.2MixMIM-B

Related Papers

SeC: Advancing Complex Video Object Segmentation via Progressive Concept Construction2025-07-21Touch in the Wild: Learning Fine-Grained Manipulation with a Portable Visuo-Tactile Gripper2025-07-20Automatic Classification and Segmentation of Tunnel Cracks Based on Deep Learning and Visual Explanations2025-07-18Adversarial attacks to image classification systems using evolutionary algorithms2025-07-17Efficient Adaptation of Pre-trained Vision Transformer underpinned by Approximately Orthogonal Fine-Tuning Strategy2025-07-17Federated Learning for Commercial Image Sources2025-07-17MUPAX: Multidimensional Problem Agnostic eXplainable AI2025-07-17Spectral Bellman Method: Unifying Representation and Exploration in RL2025-07-17