[Paper Review] PMI-Masking: Principled masking of correlated spans
This paper proposes PMI-Masking, a principled method for masking correlated word spans in pretraining masked language models (MLMs) using Pointwise Mutual Information (PMI) to identify high-collocation n-grams. By jointly masking these semantically coherent spans instead of random tokens, PMI-Masking accelerates convergence—matching prior methods' end-of-training performance in half the time—while improving downstream performance across multiple benchmarks, including RACE and SQuAD2.0.
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 training.
Motivation & Objective
- Address the inefficiency of random-token masking in MLMs, which overfits to easy subword predictions and undertrains on whole-word understanding.
- Overcome the limitations of heuristic masking strategies like whole-word masking and random-span masking, which either restrict scope or include noisy, partial collocations.
- Develop a principled, data-driven masking strategy based on statistical collocation to improve signal efficiency and model generalization.
- Demonstrate that PMI-Masking leads to faster convergence and superior downstream performance compared to random-token and random-span masking.
- Reevaluate the standard MLM objective of single-token prediction, which correlates poorly with downstream performance, and propose a more effective alternative.
Proposed method
- Define an extended n-ary Pointwise Mutual Information (PMI) measure to identify high-co-occurrence n-grams (e.g., phrases, collocations) in a pretraining corpus.
- Identify all n-grams in the corpus that exhibit statistically significant co-occurrence beyond individual token frequencies using the extended PMI formula.
- Treat each high-PMI n-gram as a single masking unit, while standard tokens not part of any such unit remain individually maskable.
- During pretraining, randomly select either a high-PMI n-gram or a single token for masking, ensuring joint masking of semantically coherent spans.
- Use the standard MLM objective to predict masked spans (either n-grams or single tokens) from the remaining context, with no architectural changes to BERT.
- Train models using the same hyperparameters and sequence length as baselines, ensuring fair comparison across masking schemes.
Experimental results
Research questions
- RQ1Does random-token masking in MLMs lead to inefficient pretraining by overfitting to easy subword prediction tasks?
- RQ2Can a principled, data-driven masking strategy based on collocation detection improve pretraining efficiency and downstream performance?
- RQ3How does PMI-Masking compare to heuristic approaches like whole-word masking and random-span masking in terms of convergence speed and final performance?
- RQ4To what extent does the standard single-token perplexity correlate with downstream performance when different masking schemes are used?
- RQ5Can a smaller pretraining corpus and fewer training examples yield better downstream results with PMI-Masking than larger corpora with random masking?
Key findings
- PMI-Masking reaches the downstream performance of prior masking methods (e.g., SpanBERT, RoBERTa) in approximately half the pretraining time.
- A PMI-Masking Base-sized model outperforms SpanBERT BASE by 1–2 points on multiple downstream tasks and surpasses RoBERTa BASE despite using a 3× smaller corpus and 6× fewer training examples.
- On the RACE benchmark, a PMI-Masking model scored over 2 points higher than a SpanBERT BASE model trained with random-span masking, even when shown the same number of examples.
- The model trained with PMI-Masking achieved a single-token perplexity of 21.85 after 1M steps, significantly higher than random-token masking (2.96), indicating that minimizing the standard objective does not correlate with downstream success.
- PMI-Masking consistently outperforms random-span masking at every evaluation point during pretraining, matching its end-of-training performance halfway through training.
- The method improves performance even when compared to models with larger architectures and larger pretraining corpora, demonstrating its efficiency and effectiveness.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.