Masking meets Supervision: A Strong Learning Alliance

Byeongho Heo, Taekyung Kim, Sangdoo Yun, Dongyoon Han

Introduction

Masked Image Modeling (MIM), exemplified by frameworks like Masked Autoencoders (MAE), has revolutionized self-supervised learning by demonstrating that models can learn robust representations by reconstructing heavily masked inputs (often up to 75% masking). However, translating these benefits to the supervised learning domain has been non-trivial. In standard supervised setups, applying aggressive masking typically leads to training instability and significant accuracy degradation, as the model struggles to map highly incomplete inputs directly to hard ground-truth labels. Consequently, supervised training recipes have largely avoided strong masking, missing out on its potential as a powerful regularizer.

The MaskSub Framework

To overcome these challenges, the authors propose Masked Sub-branch (MaskSub). This framework enables supervised models to benefit from aggressive masking (50%+) without sacrificing stability. The architecture utilizes a dual-branch design:

  1. Main-branch: A standard model that processes the full, unmasked image and is optimized using conventional supervised losses, such as Cross-Entropy (CE) against ground-truth labels.
  2. Sub-branch: A branch that shares weights with the main branch but receives a heavily masked version of the input image.
Comparison of standard training, simple mask augmentation, and the proposed MaskSub framework.

The core innovation lies in the training objective for the sub-branch. Rather than forcing it to predict the hard ground-truth label—a task often too difficult for a 50% masked input—the sub-branch is trained via self-distillation to match the softmax output of the main-branch. A "stop-gradient" operation is applied to the main-branch during this process, ensuring that the sub-branch learns from the main-branch's predictions without interfering with the primary supervised learning objective.

For Vision Transformers (ViTs), the framework leverages the efficiency of MAE-style masking by physically removing masked tokens from the sequence in the sub-branch. This optimization allows the sub-branch to operate at roughly half the computational cost of the main branch, resulting in a total training overhead of approximately 1.5x.

Experimental Validation

The researchers evaluated MaskSub across diverse benchmarks, including ImageNet-1k, various transfer learning tasks (CIFAR, iNaturalist), semantic segmentation (ADE-20k), and natural language processing (GLUE).

Top-1 accuracy comparison on ImageNet-1k, showing MaskSub's superior performance and faster convergence.

The results demonstrate consistent performance improvements:

  • Vision Transformers: On ImageNet-1k, ViT-S/16 improved from 80.4% to 81.1%. Larger models like ViT-H/14 reached 85.7% top-1 accuracy, with MaskSub-trained models outperforming baseline models trained for twice as many epochs.
  • Convolutional Neural Networks: When integrated into the "ResNet Strikes Back" (RSB) A2 recipe, MaskSub pushed ResNet-50 accuracy from 79.7% to 80.0%.
  • Natural Language Processing: Applying the MaskSub principle to BERT-base on the GLUE benchmark resulted in an average score increase from 80.9 to 81.6, highlighting the method's cross-domain applicability.

Discussion and Analysis

Beyond raw accuracy gains, MaskSub offers several qualitative advantages. It provides automatic difficulty control: early in training, the main-branch's outputs are soft and easy to mimic, while later they become more precise, creating an implicit curriculum for the sub-branch. Furthermore, the authors observed a stabilizing effect; despite the added complexity, MaskSub helps the main-branch's loss converge more stably than standard training.

The framework also proves to be a universal regularizer. The "sub-branch + distillation" concept was successfully extended to other forms of drop-based regularization, such as Dropout (DropSub) and Drop-path (PathSub), consistently outperforming standard application methods.

Conclusion

MaskSub provides a practical and effective blueprint for integrating aggressive masking into supervised learning. By leveraging self-distillation and a dual-branch architecture, it forces models to "hallucinate" missing information from partial data, leading to more robust representations and improved performance across various architectures and domains. While it introduces some computational overhead (1.5x to 2x), the gains in accuracy and training stability make it a compelling addition to modern supervised training pipelines.

Summary updated

BibTeX
@inproceedings{heo2025masking,
  author = {Byeongho Heo and Taekyung Kim and Sangdoo Yun and Dongyoon Han},
  title = {{Masking meets Supervision: A Strong Learning Alliance}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2025},
  doi = {10.1109/cvpr52734.2025.01904},
}
Figure