article · 2023
Should You Mask 15% in Masked Language Modeling?
Alexander Wettig, Tianyu Gao, Zexuan Zhong, Danqi Chen
Cited by 134Open access
Abstract
Masked language models (MLMs) conventionally mask 15% of tokens due to the belief that more masking would leave insufficient context to learn good representations; this masking rate has been widely used, regardless of model sizes or masking strategies. In this work, we revisit this important choice of MLM pre-training. We first establish that 15% is not universally optimal, and larger models should adopt a higher masking rate. Specifically, we find that masking 40% outperforms 15% for BERT-large size models on GLUE and SQuAD. Interestingly, an extremely high masking rate of 80% can still preserve 95% fine-tuning performance and most of the accuracy in linguistic probing, challenging the conventional wisdom about the role of the masking rate. We then examine the interplay between masking rates and masking strategies and find that uniform masking requires a higher masking rate compared to sophisticated masking strategies such as span or PMI masking. Finally, we argue that increasing the masking rate has two distinct effects: it leads to more corruption, which makes the prediction task more difficult; it also enables more predictions, which benefits optimization. Using this framework, we revisit BERT’s 80-10-10 corruption strategy. Together, our results contribute to a better understanding of MLM pre-training.
Cite this paper
Wettig, A., Gao, T., Zhong, Z., & Chen, D. (2023). Should You Mask 15% in Masked Language Modeling? https://doi.org/10.18653/v1/2023.eacl-main.217
Wettig, Alexander, et al. “Should You Mask 15% in Masked Language Modeling?” 2023, pp. 2985–3000, https://doi.org/10.18653/v1/2023.eacl-main.217.
Wettig, Alexander, Tianyu Gao, Zexuan Zhong, and Danqi Chen. 2023. “Should You Mask 15% in Masked Language Modeling?” https://doi.org/10.18653/v1/2023.eacl-main.217.
Wettig, A. et al. (2023) ‘Should You Mask 15% in Masked Language Modeling?’. Available at: https://doi.org/10.18653/v1/2023.eacl-main.217.
@article{wettig2023should,
title = {{Should You Mask 15% in Masked Language Modeling?}},
author = {Wettig, Alexander and Gao, Tianyu and Zhong, Zexuan and Chen, Danqi},
pages = {2985--3000},
year = {2023},
doi = {10.18653/v1/2023.eacl-main.217}
}Made from the index record. Check names, capitalisation and page numbers against the paper. Need another style? AI for Research has over 10,000.
Related papers
Forward, Backward and Combined Masking: Implications for an Auditory Integration Period
Irwin W. Pollack · Quarterly Journal of Experimental Psychology · 1973
Cited by 4
Backward masking: Detection versus recognition
David E. Bland, David R. Perrott · The Journal of the Acoustical Society of America · 1978
Cited by 9
Vibrotactile Frequency Recognition: Forward and Backward Masking Effects
Jacob H. Kirman · The Journal of General Psychology · 1986
Cited by 9
Auditory masking experiments in schizophrenia
Johan Källstrand, Peter Montnémery, Sören Nielzén et al. · Psychiatry Research · 2002
Cited by 21
Vowel Recognition: Inferences from Studies of Forward and Backward Masking
Michael F. Dorman, Diane Kewley-Port, Susan Brady et al. · Quarterly Journal of Experimental Psychology · 1977
Cited by 11
Forward and backward masking with brief impulsive stimuli
H. Gaskell, G. Bruce Henning · Hearing Research · 1999
Cited by 16
Auditory forward and backward masking interaction
Richard E. Pastore, Laura B. Harris, Lynn Goldstein · Perception & Psychophysics · 1980
Cited by 6Open access
An engineering model of the masking for the noise-robust speech recognition
Kiyoung Park, Soo-Young Lee · Neurocomputing · 2003
Cited by 16Open access