NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Exploring The Role of Mean Teachers in Self-supervised Masked Auto-Encoders

Youngwan Lee, Jeffrey Willette, Jonghee Kim, Juho Lee, Sung Ju Hwang · DOI

Introduction

Self-supervised learning (SSL) in computer vision has recently converged on two highly successful paradigms: Masked Image Modeling (MIM), such as Masked Auto-Encoders (MAE), and Self-Distillation, which utilizes a "Mean Teacher" (an exponential moving average of the student model) to provide stable learning targets. While MIM methods like MAE are effective, they are often computationally expensive and slow to converge. Conversely, while Mean Teachers are widely used in distillation, the underlying dynamics of how they assist the student model have remained largely theoretical.

This paper introduces the Reconstruction-Consistent Masked Auto-Encoder (RC-MAE), a hybrid approach that integrates a Mean Teacher into the MAE framework. RC-MAE achieves a 2x training speedup and superior performance on downstream tasks by leveraging the teacher as a conditional momentum regularizer.

Methodology: RC-MAE

RC-MAE equips a standard Vision Transformer (ViT) backbone with an EMA Teacher. The student model is optimized using a dual-objective loss function:

  1. Reconstruction Loss ($L_r$): Predicting the original pixel values of masked image patches.
  2. Consistency Loss ($L_c$): Ensuring the student's predictions for masked patches align with the teacher's predictions for those same patches.

Crucially, the authors found that using the same mask for both the student and teacher (RC-MAE-S) is the most effective strategy. This ensures the teacher provides high-quality targets for patches it has processed. To maintain the efficiency of the original MAE, only unmasked patches are fed into both networks, resulting in high throughput and low memory overhead.

Overview of RC-MAE architecture (c), training performance on ImageNet-1K (b), and the gradient correction mechanism (a).

Theoretical Insights: The Teacher as a Gradient Memory

A core contribution of this work is the analysis of teacher-student dynamics. The authors demonstrate that the teacher acts as a conditional momentum regularizer. In this view, the teacher's gradient serves as a "memory" of previous updates. When the current input is similar to previous data, the consistency loss encourages the student to ignore redundant gradient directions, forcing it to focus on learning novel information.

Furthermore, by using identical masks, the consistency gradient becomes nearly orthogonal to the reconstruction gradient. This orthogonality is a significant advantage in multi-task learning, as it prevents the two objectives from interfering with or canceling each other out.

Empirical analysis of gradient norms and cosine similarity over training iterations, supporting the theoretical model of gradient correction and orthogonality.

Experimental Results

RC-MAE was evaluated on ImageNet-1K for classification and COCO for dense downstream tasks like object detection.

  • 2x Training Speedup: RC-MAE achieves 83.4% top-1 accuracy on ImageNet-1K in just 800 epochs, matching the performance of a standard MAE trained for 1600 epochs.
  • State-of-the-Art Performance: Using a ViT-L backbone, RC-MAE reaches 86.1% top-1 accuracy, surpassing both the original MAE and semantic distillation methods like iBOT.
  • Superior Downstream Accuracy: On COCO object detection, RC-MAE achieves 51.0 AP, outperforming MAE (50.3) and significantly beating iBOT (47.3). This suggests that pixel-level consistency is highly beneficial for tasks requiring spatial precision.
  • Resource Efficiency: RC-MAE is significantly leaner than competitors. For a ViT-L model, it uses 95GB of GPU memory and processes 441 images/sec, whereas iBOT requires 227GB and manages only 123 images/sec.

Conclusion

RC-MAE bridges the gap between Masked Image Modeling and Self-Distillation. By interpreting the Mean Teacher as a conditional momentum regularizer, the authors provide both a theoretical foundation and a practical, efficient framework for high-performance SSL. Future work may explore baking this regularization directly into optimizers, potentially eliminating the need for an explicit teacher model while retaining its benefits.

Summary updated

BibTeX
@inproceedings{lee2023exploring,
  author = {Youngwan Lee and Jeffrey Willette and Jonghee Kim and Juho Lee and Sung Ju Hwang},
  title = {{Exploring The Role of Mean Teachers in Self-supervised Masked Auto-Encoders}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=7sn6Vxp92xV},
}
Figure