SupMAE: Supervised Masked Autoencoders Are Efficient Vision Learners

Feng Liang, Yangguang Li, Diana Marculescu · DOI

Abstract

Vision Transformers (ViTs) typically require extensive data and compute for effective pre-training. While self-supervised Masked Autoencoders (MAE) have shown promise, they often suffer from slow convergence and a lack of global semantic understanding. We present SupMAE, a framework that augments the MAE architecture with a supervised classification branch. By leveraging visible patches for both pixel reconstruction and label prediction, SupMAE achieves 83.6% Top-1 accuracy on ImageNet-1K in just 400 epochs—matching standard MAE's performance with only 30% of the training time. Furthermore, SupMAE demonstrates superior robustness and transferability across diverse benchmarks.

Introduction

The rise of Vision Transformers (ViTs) has shifted the landscape of computer vision, yet their high demand for training resources remains a significant hurdle. Self-supervised Masked Image Modeling (MIM), exemplified by Masked Autoencoders (MAE), teaches models to reconstruct missing image parts, fostering strong local feature representations. However, MAE's focus on low-level pixel reconstruction necessitates thousands of epochs to converge and often fails to capture the global semantic context of an image.

SupMAE addresses these limitations by combining the "local" strengths of MIM with the "global" guidance of supervised labels. The goal is to create a more efficient learner that understands both the fine-grained details and the high-level category of an object.

Architecture and Methodology

SupMAE extends the standard MAE framework by introducing a parallel classification branch alongside the existing reconstruction branch.

The SupMAE architecture featuring dual reconstruction and classification branches.

The process begins by dividing an input image into patches and masking a large portion (typically 75%). Only the visible patches (25%) are processed by the ViT encoder. The resulting features are then utilized by two distinct branches:

  1. Reconstruction Branch: Encoded features are padded with [Mask] tokens and passed to a lightweight decoder to reconstruct the original pixels, minimizing Mean Squared Error (MSE).
  2. Classification Branch: The same encoded features are globally average-pooled and processed by a Multi-Layer Perceptron (MLP) to predict the image label using Cross-Entropy loss.

This "Partial View" classification forces the model to recognize objects from incomplete data, serving as a powerful form of regularization and forcing the model to learn more robust semantic features.

Experimental Results and Efficiency

The primary advantage of SupMAE is its remarkable training efficiency. While standard MAE requires 1600 epochs to reach peak performance, SupMAE achieves a comparable 83.6% Top-1 accuracy on ImageNet-1K in only 400 epochs.

Comparison of pre-training efficiency between SupMAE and standard MAE.

This synergy between reconstruction and classification allows the model to converge much faster. In terms of wall-clock time, SupMAE reduces the total compute cost to approximately 30% of that required by MAE. Beyond raw accuracy, SupMAE outperforms other supervised baselines like DeiT (81.8%) and naive supervised pre-training (82.3%).

Robustness and Transferability

SupMAE's training regime—classifying based on random fragments—naturally enhances its resilience to occlusions and noise. On the ImageNet robustness benchmarks (including Corruption, Adversarial, Rendition, and Sketch variants), SupMAE achieved an average score of 43.6%, notably higher than MAE (41.8%) and DeiT (39.5%).

Furthermore, the semantic richness of SupMAE's features is evident in transfer learning tasks. In extreme few-shot scenarios (e.g., 5-shot linear probing), SupMAE outperformed MAE by a margin of 14.6%, indicating that its learned representations are more immediately useful for downstream tasks without extensive fine-tuning.

Conclusion

SupMAE demonstrates that supervised signals can significantly accelerate and improve the quality of masked autoencoder pre-training. By bridging the gap between local pixel reconstruction and global semantic recognition, it offers a highly efficient and robust alternative for training Vision Transformers. Future work may explore the scalability of this approach to larger model architectures and further optimization of the balance between reconstruction and classification objectives.

Summary updated

BibTeX
@misc{liang2022supmae,
  author = {Feng Liang and Yangguang Li and Diana Marculescu},
  title = {{SupMAE: Supervised Masked Autoencoders Are Efficient Vision Learners}},
  year = {2022},
  eprint = {2205.14540},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2205.14540},
}
Figure