Skip to main content
QUICK REVIEW

[Paper Review] Exploring The Role of Mean Teachers in Self-supervised Masked Auto-Encoders

Youngwan Lee, Jeffrey Willette|arXiv (Cornell University)|Oct 5, 2022
Domain Adaptation and Few-Shot LearningComputer Science7 citations
TL;DR

This paper proposes RC-MAE, a self-supervised learning method that enhances Masked Auto-Encoder (MAE) by integrating an Exponential Moving Average (EMA) teacher, which acts as a conditional momentum regularizer by adjusting gradients based on feature similarity. The method achieves faster convergence, reduced memory usage, and improved robustness and performance on downstream vision tasks compared to MAE and state-of-the-art self-distillation methods.

ABSTRACT

Masked image modeling (MIM) has become a popular strategy for self-supervised learning~(SSL) of visual representations with Vision Transformers. A representative MIM model, the masked auto-encoder (MAE), randomly masks a subset of image patches and reconstructs the masked patches given the unmasked patches. Concurrently, many recent works in self-supervised learning utilize the student/teacher paradigm which provides the student with an additional target based on the output of a teacher composed of an exponential moving average (EMA) of previous students. Although common, relatively little is known about the dynamics of the interaction between the student and teacher. Through analysis on a simple linear model, we find that the teacher conditionally removes previous gradient directions based on feature similarities which effectively acts as a conditional momentum regularizer. From this analysis, we present a simple SSL method, the Reconstruction-Consistent Masked Auto-Encoder (RC-MAE) by adding an EMA teacher to MAE. We find that RC-MAE converges faster and requires less memory usage than state-of-the-art self-distillation methods during pre-training, which may provide a way to enhance the practicality of prohibitively expensive self-supervised learning of Vision Transformer models. Additionally, we show that RC-MAE achieves more robustness and better performance compared to MAE on downstream tasks such as ImageNet-1K classification, object detection, and instance segmentation.

Motivation & Objective

  • To understand the dynamic interaction between student and teacher in self-supervised learning with EMA-based distillation.
  • To investigate the role of the mean teacher in pixel-level masked auto-encoding (MIM) for Vision Transformers.
  • To develop a more efficient and effective self-supervised pre-training method that reduces computational and memory costs compared to existing self-distillation approaches.
  • To improve downstream performance on both classification and dense prediction tasks such as object detection and instance segmentation.

Proposed method

  • Introduces RC-MAE, a modified MAE that incorporates an EMA teacher to provide a consistency target for the student's reconstructed patches.
  • Uses a reconstruction loss $\mathcal{L}_{\text{r}}$ to compare student output with original masked patches.
  • Applies a consistency loss $\mathcal{L}_{\text{c}}$ to align student predictions with the teacher's output on visible patches.
  • Employs an EMA update rule to maintain a slowly updated teacher network, with momentum based on feature similarity between current and past inputs.
  • Analyzes gradient dynamics in a linear model to show that the teacher conditionally corrects gradients by removing previous directions when features are similar.
  • Validates the method empirically on ImageNet-1K, COCO, and robustness benchmarks using ViT-B and ViT-L backbones.

Experimental results

Research questions

  • RQ1How does the EMA teacher influence gradient updates in pixel-level masked auto-encoding?
  • RQ2What is the functional role of the teacher in the student's optimization process beyond providing a target?
  • RQ3Can a simple integration of an EMA teacher into MAE lead to faster convergence and lower memory usage compared to existing self-distillation methods?
  • RQ4Does the teacher's conditional gradient correction improve robustness and downstream performance on vision tasks?
  • RQ5Can the teacher's effect be theoretically explained as a form of conditional momentum regularization?

Key findings

  • RC-MAE achieves 83.4% top-1 accuracy on ImageNet-1K classification after 800 epochs, matching MAE's performance at 1600 epochs, indicating faster convergence.
  • RC-MAE reduces memory usage and computation cost compared to state-of-the-art self-distillation methods like iBOT, MSN, and BootMAE by only feeding visible patches to the teacher.
  • On ImageNet-C, ImageNet-A, ImageNet-R, and ImageNet-Sketch, RC-MAE shows consistent robustness gains, with a 1.8-point mCE reduction (49.9 vs. 51.7) and up to 1.2-point accuracy improvement on IN-A and IN-R.
  • Attention maps from RC-MAE show sharper focus on relevant image regions near query patches, unlike iBOT and MSN, which attend to uncorrelated regions.
  • Theoretical analysis reveals that the teacher acts as a conditional momentum regularizer, adjusting gradients based on similarity between current and past feature representations.
  • Empirical validation in both linear models and deep ViT-based architectures confirms the conditional gradient correction mechanism, supporting the proposed analysis.

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.