Abstract
Pretrained Masked Language Models (MLMs) like BERT have fundamentally changed natural language processing, yet the theoretical basis for their success remains under-explored. A common explanation is the "cloze reduction hypothesis," which posits that MLMs succeed by implicitly practicing downstream tasks through word prediction. This paper challenges that view, proposing instead that the MLM objective serves as a form of unsupervised structure learning. We demonstrate that uniform random masking allows models to recover the statistical dependency structure of language, which acts as a robust proxy for syntactic dependencies. Our findings show that "generic" masks drive performance more than task-specific cloze masks and that MLMs can effectively perform unsupervised parsing by extracting conditional mutual information.
Introduction: Beyond the Cloze Reduction Hypothesis
The prevailing theory for BERT's effectiveness is the cloze reduction hypothesis: by masking a word like "like" in "I [MASK] this movie," the model implicitly learns sentiment classification. However, most masks in standard pretraining are "generic" (e.g., "I like [MASK] movie") and offer no direct task supervision. This paper investigates why uniform random masking leads to such significant gains if cloze-like masks are rare.
The authors propose that the MLM objective is mathematically equivalent to learning the statistical dependency structure of language. By forcing the model to predict a word from its context, it naturally discovers which words depend on each other, effectively "discovering" syntax through purely unsupervised means.
Theoretical Framework: MLM as Structure Learning
The researchers draw a formal correspondence between the MLM objective and graphical model neighborhood selection. They prove that under specific conditions, masked regression can recover latent variables and direct dependencies between tokens. To validate this, they developed a procedure using Gibbs sampling to estimate the "conditional mutual information" (MI) between pairs of words. This allows for the extraction of the "connections" the model has learned, filtering out the noise of shared topics to focus on fine-grained statistical dependence.
Experimental Evidence: The Role of Cloze Masks
To test the importance of task-specific supervision, the authors conducted a controlled case study on the SST-2 (Sentiment), Hyperpartisan (News bias), and AGNews (Topic) datasets. They compared models trained on "ideal" cloze masks (where labels are appended to text) against those trained on generic masks.
Surprisingly, the results indicated that removing cloze-like masks from the training distribution (the "NOCLOZE" setting) had a minimal impact on performance. This suggests that the "generic" masks, which force the model to learn global dependency structures, are doing the heavy lifting in representation learning.
Key Results: Discovering Syntax from Statistics
- Superior Unsupervised Parsing: By constructing a Minimum Spanning Tree (MST) based on the conditional MI extracted from a pretrained BERT model, the authors achieved an Undirected Unlabeled Attachment Score (UUAS) of 58.74 on the WSJ10 subset of the English Penn Treebank. This outperformed specialized baselines like Klein and Manning (2004).
- Conditional MI vs. PMI: While Pointwise Mutual Information (PMI) often conflates words within the same topic, Conditional MI is significantly more precise. It successfully captures complex linguistic relations such as direct objects (
dobj) and conjunctions (conj). - Robustness of Uniform Masking: The study confirms that uniform random masking is a highly effective inductive bias because it targets the discovery of the underlying structure of language rather than just memorizing task-related keywords.
Conclusion and Future Work
This work reframes our understanding of MLMs, moving from a task-centric view to a structure-centric one. While the current method for extracting dependencies relies on Gibbs sampling and assumes the MLM faithfully approximates the data distribution, it opens new avenues for designing masking strategies. Future work may involve targeting specific linguistic structures to further enhance the inductive bias of pretrained models.
Summary updated