Introduction
The standard training objective for Masked Language Models (MLMs) like BERT involves masking 15% of tokens at random and tasking the model with their prediction. While effective, this approach is fundamentally limited by the existence of "local statistical shortcuts." When a word is split into multiple sub-word tokens, masking only a portion of those tokens allows the model to predict the missing piece using trivial spelling patterns rather than deep linguistic context. This inefficiency forces models to waste training cycles on low-level signal processing rather than high-level semantic understanding.
Methodology: The PMI-Masking Approach
To address these limitations, the authors propose PMI-Masking, a strategy that replaces uniform random masking with the joint masking of highly correlated spans identified via Pointwise Mutual Information (PMI).
Defining n-gram PMI
While standard PMI measures correlation between two words, this method extends the concept to $n$-grams (lengths 2–5). The authors introduce a "weakest link" definition: the PMI of an $n$-gram is the minimum PMI across all its possible segmentations. This ensures that a phrase like "editor in chief" is only masked as a single unit if all its constituent parts are strongly correlated, preventing the model from being misled by isolated high-correlation pairs within a larger, unrelated span.
Implementation
Before pretraining, the authors analyze the corpus to build a "masking vocabulary" of 800,000 top-ranked collocated $n$-grams. During training, if a sequence contains an entry from this vocabulary, those tokens are masked together. Tokens not belonging to a correlated $n$-gram are treated as individual units, similar to Whole-Word Masking.
Experimental Results
The models were pretrained on standard datasets, including Wikipedia + BookCorpus (16GB) and OpenWebText (38GB), and evaluated on SQuAD 2.0, RACE, and GLUE benchmarks.
Training Efficiency and Performance
PMI-Masking demonstrates a significant leap in training efficiency. As shown in the figure below, PMI-Masking consistently achieves higher SQuAD 2.0 F1 scores throughout the pretraining process compared to Random-Token, Whole-Word, and Random-Span masking strategies.
Key performance highlights include:
- 2x Speedup: PMI-Masking reaches the performance levels of Random-Span Masking (the previous state-of-the-art) in roughly half the training steps.
- Data Efficiency: On the RACE benchmark, a PMI-Masked model trained on 16GB of data outperformed a RoBERTa model trained on 160GB of data.
- Benchmark Superiority: At the conclusion of training, PMI-Masking consistently outperformed all baselines across SQuAD, RACE, and GLUE, as detailed in the table below.
Key Insights
- The Shortcut Hypothesis: The study confirms that MLMs are highly sensitive to tokenization. When vocabulary is small (leading to more sub-word splits), random masking performance drops because shortcuts become easier to exploit. PMI-Masking effectively removes these shortcuts.
- Perplexity vs. Understanding: Interestingly, PMI-Masked models exhibit higher single-token perplexity (meaning they are "worse" at the training objective) yet achieve better downstream performance. This suggests that being "too good" at predicting easy tokens is inversely correlated with true language understanding.
Conclusion and Future Work
PMI-Masking provides a principled, data-driven alternative to heuristic masking strategies. By forcing the model to predict entire correlated spans, it accelerates pretraining and improves the quality of learned representations. Future research may explore the scalability of this approach to larger model architectures and further optimize the masking vocabulary size.
Summary updated