Emerging Property of Masked Token for Effective Pre-training

Hyesong Choi, Hunsang Lee, Seyoung Joung, Hyejin Park, Jiyeong Kim, Dongbo Min

Introduction

Self-supervised learning through Masked Image Modeling (MIM) has become a cornerstone of modern computer vision. By masking portions of an input image and training a Transformer to reconstruct the missing patches, models like MAE and SimMIM learn robust representations without the need for manual labels. However, a significant hurdle remains: efficiency. These models typically require between 800 and 1,600 epochs to converge, consuming vast computational resources.

Researchers have identified a primary bottleneck in this process: "semantic obfuscation." Early in training, the "masked tokens"—placeholders for missing data—are often poorly differentiated from visible image patches. This lack of distinction slows the model's ability to extract meaningful features from the visible context.

The Heterogeneity Signature

A key insight of this research is the discovery of a "heterogeneity signature" in successful, fully trained models. By measuring the distinctiveness of masked tokens relative to visible ones across different layers, the authors found that heterogeneity is highest at the input layer and decreases linearly as the network depth increases.

Analysis of heterogeneity measures across layer depths for pre-trained models (a) and during convergence (b).

As shown in the figure above, non-converged models lack this structured pattern. This suggests that the slow convergence of traditional MIM is partly due to the time the model takes to "stumble" upon this optimal token behavior.

Masked Token Optimization (MTO)

To address this, the authors propose Masked Token Optimization (MTO), a plug-and-play suite of auxiliary loss functions designed to enforce the heterogeneity signature from the start of training. MTO focuses on three core properties:

  1. Data Distinctiveness ($\mathcal{L}_{e}$): Maximizes the entropy-based difference between masked and visible tokens at the initial layer, ensuring they are nearly orthogonal in the embedding space.
  2. Weight Recalibration ($\mathcal{L}_{spa}$): Applies sparsity constraints to prevent "empty" masked tokens from polluting the features of visible tokens during the attention process.
  3. Progressive Refinement ($\mathcal{L}_{r}$): Uses a ranking loss to ensure that masked tokens gradually become more similar to visible tokens in deeper layers as the model reconstructs the missing information.
Overview of Masked Token Optimization (MTO) illustrating its impact on the embedding space and token affinity matrices.

MTO does not require architectural changes; it simply adds these constraints during the pre-training phase to guide the model toward a more efficient learning path.

Results and Impact

The application of MTO across various baselines, including SimMIM, MAE, and BootMAE, yielded significant improvements:

  • 50% Training Speedup: Models reached the performance of an 800-epoch baseline in approximately 400 epochs.
  • Performance Gains: Pre-training reduction rates reached up to 58% for BootMAE while maintaining or improving final accuracy.
  • Scalability: The method proved effective for both standard ViT-Base and larger ViT-Large architectures, reducing training time for the latter by 43%.

To quantify these gains, the authors introduced the Relative Area Under the Curve (RAUC) metric, which showed convergence speed improvements ranging from 17% to 47%.

Conclusion

By identifying and enforcing the "heterogeneity signature" of masked tokens, Masked Token Optimization provides a powerful shortcut for self-supervised pre-training. This research demonstrates that explicit constraints on token behavior can drastically reduce the computational burden of training large-scale Transformers, making state-of-the-art computer vision more accessible and efficient.

Summary updated

BibTeX
@inproceedings{choi2024emerging,
  author = {Hyesong Choi and Hunsang Lee and Seyoung Joung and Hyejin Park and Jiyeong Kim and Dongbo Min},
  title = {{Emerging Property of Masked Token for Effective Pre-training}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-73116-7\_16},
}
Figure