Learning Better Masking for Better Language Model Pre-training

Dongjie Yang, Zhuosheng Zhang, Hai Zhao
8/23/2022
cs.CL

Official code: mutonix/better_masking (7 stars, Python, last commit 2024-04-25).

Abstract

Masked Language Modeling (MLM) has been widely used as the denoising objective in pre-training language models (PrLMs). Existing PrLMs commonly adopt a Random-Token Masking strategy where a fixed masking ratio is applied and different contents are masked by an equal probability throughout the entire training.

Show full abstract

However, the model may receive complicated impact from pre-training status, which changes accordingly as training time goes on. In this paper, we show that such time-invariant MLM settings on masking ratio and masked content are unlikely to deliver an optimal outcome, which motivates us to explore the influence of time-variant MLM settings. We propose two scheduled masking approaches that adaptively tune the masking ratio and masked content in different training stages, which improves the pre-training efficiency and effectiveness verified on the downstream tasks. Our work is a pioneer study on time-variant masking strategy on ratio and content and gives a better understanding of how masking ratio and masked content influence the MLM pre-training.

View on arXivView PDF

Code Implementations(1)

Paper: Learning Better Masking for Better Language Model Pre-training

71PythonMay 25, 20232 years ago

Similar Papers

Cite this paper

@article{yang2022learning,
  title  = {Learning Better Masking for Better Language Model Pre-training},
  author = {Dongjie Yang and Zhuosheng Zhang and Hai Zhao},
  year   = {2022},
  eprint = {2208.10806},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2208.10806}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2208.10806.svg)](https://codeofpaper.com/paper/2208.10806)

Discussion