Understanding and Enhancing Mask-Based Pretraining towards Universal Representations

Mingze Dong, Leda Wang, Yuval Kluger

Introduction

Masked pretraining has become the engine of modern AI, powering state-of-the-art models from BERT in natural language processing to Masked Autoencoders (MAE) in computer vision. Despite its empirical success, the field has largely relied on trial-and-error to determine optimal masking ratios—for instance, why does language modeling favor a 15% mask while vision models thrive at 75%? This paper provides a unified theoretical framework that explains these disparities and introduces a more robust pretraining scheme.

Theoretical Framework: The Linear Proxy

The researchers analyze masked pretraining through the lens of high-dimensional "ridge-less" linear regression. By stripping away the complexity of deep neural networks and applying Random Matrix Theory (RMT), they derive explicit mathematical expressions for the "test risk" (generalization error).

A central component of this theory is the spiked covariance model, which captures feature dependencies. The framework reveals that the "sweet spot" for masking is a balance between reducing bias (by forcing the model to learn dependencies) and increasing variance (caused by data corruption). The optimal ratio is a direct function of "feature strength" or redundancy:

  • High Redundancy (Vision): Stronger features require higher masking ratios to prevent the model from learning trivial shortcuts.
  • Low Redundancy (Language): Weaker feature dependencies favor lower masking ratios to preserve sufficient signal for learning.
Theoretical risk curves and empirical alignment across various covariance models and real-world architectures.

$R^2$MAE: Randomly Random Mask AutoEncoding

Guided by the insight that different masking ratios emphasize different feature scales, the authors propose $R^2$MAE. Instead of using a fixed masking ratio, $R^2$MAE samples the ratio uniformly from a range (e.g., $[0, 1]$) for every mini-batch. This "embarrassingly simple" tweak forces the model to become a "jack of all trades," learning to reconstruct data from both minimal hints and nearly complete contexts.

Empirical Validation

The authors validated their theory and $R^2$MAE across vision, NLP, and genomics datasets.

The Role of Model Capacity

The theory predicts, and experiments confirm, that masking is primarily beneficial in the overparameterized regime—where the model has more capacity than data points. In smaller, underparameterized models, masking acts purely as harmful noise, degrading performance rather than enhancing representation learning.

Performance Gains

$R^2$MAE consistently outperformed standard fixed-ratio baselines:

  • Vision: Achieved 82.00% Top-1 accuracy on ImageNet-1K, edging out the standard MAE (81.97%).
  • NLP: In RoBERTa-base models, $R^2$MAE achieved superior performance across GLUE tasks (MNLI, QQP, SST-2, QNLI) and SQuAD compared to standard 15% or 40% masking.
  • Genomics: Proved particularly robust for biological data (DNA and single-cell genomics), where "optimal" ratios are often poorly defined.
Empirical results showing the impact of model parameterization and performance improvements in NLP benchmarks.

Conclusion

This work offers a fundamental, architecture-agnostic explanation for the success of masked pretraining. By identifying the relationship between data redundancy, model capacity, and masking ratios, it provides a principled path toward universal representations. While the current linear model focuses on independent sample-wise prediction, future research will extend these insights to the sequential dependencies of autoregressive language models.

Reference: Dong, M., Wang, L., & Kluger, Y. (2025). Understanding and Enhancing Mask-Based Pretraining towards Universal Representations. NeurIPS 2025.

Summary updated

BibTeX
@inproceedings{dong2025understanding,
  author = {Mingze Dong and Leda Wang and Yuval Kluger},
  title = {{Understanding and Enhancing Mask-Based Pretraining towards Universal Representations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=oQbTbio99T},
}
Figure