On the Inductive Bias of Masked Language Modeling: From Statistical to Syntactic Dependencies

Tianyi Zhang, Tatsunori Hashimoto

Abstract

Masked Language Modeling (MLM) is the cornerstone of modern NLP pretraining, yet the precise nature of its inductive bias remains poorly understood. This paper investigates whether MLM's success stems from task-specific "cloze" supervision or a more fundamental ability to recover linguistic structure. Through empirical analysis and graphical model theory, the authors demonstrate that MLM implicitly learns statistical and syntactic dependencies, effectively acting as an unsupervised structure learner.

Introduction

The effectiveness of models like BERT is often attributed to the "cloze reduction hypothesis"—the idea that masking words provides implicit supervision for downstream tasks (e.g., masking "great" in a review teaches sentiment). However, BERT typically masks tokens uniformly at random, often targeting generic words like "the" or "of." This research explores why such random masking is so effective and what linguistic structures are actually being captured during pretraining.

Comparison of Cloze-like Masking (task-specific) vs. Dependency Learning (structural).

Methodology: MLM as Structure Learning

The authors propose that MLM is mathematically equivalent to "neighborhood selection" in graphical models. Predicting a masked token from its context allows the model to identify conditional dependencies between words.

To test this, they developed a method to extract Conditional Mutual Information (CMI) from trained MLMs using Gibbs sampling. Unlike standard Pointwise Mutual Information (PMI), CMI measures the direct relationship between two tokens while controlling for the rest of the sentence, effectively filtering out "topic noise." These CMI values were then used to construct unsupervised dependency trees via a Minimum Spanning Tree algorithm.

Empirical Evaluation

The study utilized several benchmarks, including SST-2 for sentiment analysis, Hyperpartisan News for political bias detection, and AGNews for topic classification. For structural evaluation, the English Penn Treebank (WSJ) served as the gold standard for comparing model-derived trees against human syntax.

Key Results

A critical finding is that "cloze-like" masks are not the primary driver of performance. In experiments on SST-2, models where all task-relevant masks were removed still significantly outperformed baselines without pretraining.

SST-2 Finetuning Results showing that even with 0% cloze-like masks, pretrained models outperform the 'No Pretrain' baseline across various data sizes.

Furthermore, the CMI-based unsupervised parsing achieved an Undirected Unlabeled Attachment Score (UUAS) of 58.74, surpassing classic baselines like Klein and Manning (2004) (55.91) and simple PMI methods (33.94). This indicates that the statistical dependencies learned by MLMs are high-quality proxies for human syntactic structures.

Discussion and Conclusion

This work shifts the understanding of MLM from a simple "cloze test" to a sophisticated mechanism for learning the "web" of dependencies in language. By framing MLM as a non-linear graphical model learner, the authors provide a theoretical basis for its generalization capabilities.

While the current CMI extraction method is computationally intensive and relies on certain theoretical simplifications (e.g., Gaussian analogies), it opens the door for designing new masking strategies that explicitly target dependency structures to further improve model efficiency and performance.

Summary updated

BibTeX
@inproceedings{zhang2021inductive,
  author = {Tianyi Zhang and Tatsunori Hashimoto},
  title = {{On the Inductive Bias of Masked Language Modeling: From Statistical to Syntactic Dependencies}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.naacl-main.404},
}
Figure