Masking meets Supervision: A Strong Learning Alliance
Byeongho Heo, Taekyung Kim, Sangdoo Yun, Dongyoon Han
TL;DR
MaskSub tackles the instability of strong masking augmentations in supervised learning by introducing a two-branch framework: a main-branch trained with standard supervision ($r_{mask}=0$) and a masked sub-branch ($r_{mask}=r$) guided by a relaxed self-distillation loss that averages the main and sub-branch outputs. This approach stabilizes optimization under masks and accelerates convergence while delivering consistent accuracy gains across ViT-based models, hierarchical architectures like ResNet and Swin, and even cross-domain tasks including BERT and CLIP finetuning. The authors further generalize the idea to DropSub and PathSub, showing benefits across pretraining, finetuning, transfer learning, and cross-domain applications (GLUE and CLIP), often with modest compute overhead. Overall, MaskSub provides a practical, broadly applicable augmentation mechanism that enhances supervised learning by leveraging masking in a stable, distillation-inspired two-branch framework.
Abstract
Pre-training with random masked inputs has emerged as a novel trend in self-supervised training. However, supervised learning still faces a challenge in adopting masking augmentations, primarily due to unstable training. In this paper, we propose a novel way to involve masking augmentations dubbed Masked Sub-branch (MaskSub). MaskSub consists of the main-branch and sub-branch, the latter being a part of the former. The main-branch undergoes conventional training recipes, while the sub-branch merits intensive masking augmentations, during training. MaskSub tackles the challenge by mitigating adverse effects through a relaxed loss function similar to a self-distillation loss. Our analysis shows that MaskSub improves performance, with the training loss converging faster than in standard training, which suggests our method stabilizes the training process. We further validate MaskSub across diverse training scenarios and models, including DeiT-III training, MAE finetuning, CLIP finetuning, BERT training, and hierarchical architectures (ResNet and Swin Transformer). Our results show that MaskSub consistently achieves impressive performance gains across all the cases. MaskSub provides a practical and effective solution for introducing additional regularization under various training recipes. Code available at https://github.com/naver-ai/augsub
