PMI-Masking: Principled Masking of Correlated Spans
Abstract
Masking tokens uniformly at random constitutes a common flaw in the pretraining of Masked Language Models (MLMs) such as BERT. We show that such uniform masking allows an MLM to minimize its training objective by latching onto shallow local signals, leading to pretraining inefficiency and suboptimal downstream performance. To address this flaw, we propose PMI-Masking, a principled masking strategy based on the concept of Pointwise Mutual Information (PMI), which jointly masks a token n-gram if it exhibits high collocation over the corpus. PMI-Masking motivates, unifies, and improves upon prior more heuristic approaches that attempt to address the drawback of random uniform token masking, such as whole-word masking, entity/phrase masking, and random-span masking. Specifically, we show experimentally that PMI-Masking reaches the performance of prior masking approaches in half the training time, and consistently improves performance at the end of pretraining.
Cite
Text
Levine et al. "PMI-Masking: Principled Masking of Correlated Spans." International Conference on Learning Representations, 2021.Markdown
[Levine et al. "PMI-Masking: Principled Masking of Correlated Spans." International Conference on Learning Representations, 2021.](https://mlanthology.org/iclr/2021/levine2021iclr-pmimasking/)BibTeX
@inproceedings{levine2021iclr-pmimasking,
title = {{PMI-Masking: Principled Masking of Correlated Spans}},
author = {Levine, Yoav and Lenz, Barak and Lieber, Opher and Abend, Omri and Leyton-Brown, Kevin and Tennenholtz, Moshe and Shoham, Yoav},
booktitle = {International Conference on Learning Representations},
year = {2021},
url = {https://mlanthology.org/iclr/2021/levine2021iclr-pmimasking/}
}