Skip to main content
QUICK REVIEW

[Paper Review] Semi-MAE: Masked Autoencoders for Semi-supervised Vision Transformers

Haojie Yu, Kang Zhao|arXiv (Cornell University)|Jan 4, 2023
Advanced Image and Video Retrieval TechniquesComputer Science3 citations
TL;DR

Semi-MAE proposes a pure Vision Transformer-based semi-supervised learning framework that enhances visual representation learning via a parallel masked autoencoder (MAE) branch. By sharing the encoder weights and using high-ratio masking to reconstruct missing patches, Semi-MAE achieves 75.9% top-1 accuracy on ImageNet with only 10% labeled data, outperforming prior CNN-based and joint training methods.

ABSTRACT

Vision Transformer (ViT) suffers from data scarcity in semi-supervised learning (SSL). To alleviate this issue, inspired by masked autoencoder (MAE), which is a data-efficient self-supervised learner, we propose Semi-MAE, a pure ViT-based SSL framework consisting of a parallel MAE branch to assist the visual representation learning and make the pseudo labels more accurate. The MAE branch is designed as an asymmetric architecture consisting of a lightweight decoder and a shared-weights encoder. We feed the weakly-augmented unlabeled data with a high masking ratio to the MAE branch and reconstruct the missing pixels. Semi-MAE achieves 75.9% top-1 accuracy on ImageNet with 10% labels, surpassing prior state-of-the-art in semi-supervised image classification. In addition, extensive experiments demonstrate that Semi-MAE can be readily used for other ViT models and masked image modeling methods.

Motivation & Objective

  • To address the poor performance of Vision Transformers (ViTs) in semi-supervised learning due to data scarcity.
  • To improve pseudo-label accuracy by enhancing visual representation learning in ViTs.
  • To develop a plug-and-play, ViT-native SSL framework that outperforms CNN-based and joint training methods.
  • To investigate the effectiveness of masked image modeling (MIM) methods, such as MAE and LoMaR, in boosting ViT-based SSL.

Proposed method

  • Introduces a parallel MAE branch that shares the same ViT encoder as the main SSL framework.
  • Applies high masking ratios (e.g., 75%) to weakly-augmented unlabeled images in the MAE branch to reconstruct missing patches.
  • Uses an asymmetric architecture with a lightweight decoder and shared-weights encoder to minimize computational cost.
  • Combines the SSL loss (FixMatch-style) with the MAE reconstruction loss (MSE) via a weighted sum: $ L = L_s + \lambda L_u + \mu L_{MAE} $.
  • Employs standard data augmentation protocols from FixMatch and Semiformer for fair comparison.
  • Trains from scratch using AdamW with cosine decay, optimizing for top-1 accuracy on ImageNet.

Experimental results

Research questions

  • RQ1Can a pure ViT-based SSL framework outperform CNN-based state-of-the-art methods in semi-supervised learning?
  • RQ2Does introducing a masked autoencoder branch improve the quality of pseudo-labels in ViT-based SSL?
  • RQ3How effective is the MAE branch as a plug-in module for enhancing ViT representation learning in low-data regimes?
  • RQ4Can other masked image modeling methods, such as LoMaR, further improve performance beyond standard MAE?

Key findings

  • Semi-MAE achieves 75.9% top-1 accuracy on ImageNet with only 10% labeled data, surpassing the prior state-of-the-art.
  • The method outperforms Semiformer (75.5%) by 0.4% using only a ViT-Small backbone, without any CNN components.
  • Integrating the MAE branch into Semiformer boosts its performance from 75.5% to 76.4%, demonstrating its plug-and-play effectiveness.
  • Using LoMaR instead of standard MAE further increases accuracy to 76.0%, showing gains from alternative MIM methods.
  • The MAE branch significantly improves visual representation learning, leading to more accurate pseudo-labels in the SSL pipeline.
  • The framework is scalable and effective across different ViT architectures and masked image modeling techniques.

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.