Grammatical Bigrams

Mark A. PaskinNeurIPS 2001

Introduction

Inducing grammar from raw text—unsupervised grammar induction—is a "holy grail" of computational linguistics, yet it remains notoriously difficult. Traditional approaches, such as using the Expectation-Maximization (EM) algorithm with Probabilistic Context-Free Grammars (PCFGs), are often computationally intractable for realistic, large-scale datasets.

The core challenge lies in a classic trade-off: highly sophisticated models capture the nuances of language effectively but are too slow to train on massive corpora. Conversely, simpler models are faster but often too constrained to represent complex syntax accurately. In this work, Mark Paskin explores whether a significantly simplified probabilistic model—termed "Grammatical Bigrams"—can remain syntactically useful while achieving the computational efficiency needed to scale.

Methods: Dependency Grammar and the Bigram Assumption

The paper utilizes the Dependency Grammar formalism. Unlike phrase-structure grammars that group words into nested constituents (like Noun Phrases), dependency grammars focus on binary, directed links between a "head" word and its "dependent." For example, in the phrase "big dog," dog is the head and big is the dependent.

Dependency Grammar Example

The novel contribution of this paper is the Grammatical Bigram assumption. Conventional models assume a head word determines its entire sequence of dependents. Paskin introduces a much stronger independence assumption: all dependents of a head word are independent of one another and their relative order.

This assumption simplifies the probability distribution of a sentence into a product of terms over syntactically related word pairs. This "grammatical bigram" structure yields two major computational advantages:

  1. Parsing: Sentences can be parsed in $O(n^3)$ time using an adaptation of Eisner’s span-based algorithm.
  2. Learning: The model can learn from unlabeled data using an efficient version of the Inside-Outside algorithm (a variant of EM) that also runs in $O(n^3)$ time.

Datasets

The author evaluates the model using two primary data sources:

  • Labeled Data: The Wall Street Journal portion of the Penn Treebank-III. This was used to create a corpus of approximately 49,000 sentences with gold-standard parses for supervised training and evaluation.
  • Unlabeled Data: The TREC Text Research Collection (WSJ articles from 1987–1992), consisting of over 3.3 million unlabeled sentences (~66 million words). This represents the massive "raw text" corpus the model is intended to learn from in an unsupervised setting.

Key Insights: The Cost of Independence

While the Grammatical Bigram assumption makes the mathematics tractable, it acts as a double-edged sword. It prevents the model from understanding "argument structure." For instance, the model does not inherently "know" that a preposition must have exactly one object; it treats each potential dependent as an isolated probability.

The Co-occurrence Trap

This leads to the "Co-occurrence Trap." In the unsupervised setting, the model frequently confuses frequent lexical co-occurrence with true syntactic dependency. As illustrated in the sentence "she has also served...", the model incorrectly linked has $\rightarrow$ acquired simply because those words appear together frequently in business news, even though that specific link is nonsensical in the context of the test sentence.

Furthermore, the model faces a Representational Ceiling. Even in a "best-case" scenario—training and testing on the exact same labeled data—the model only achieved ~80% precision. This indicates that the independence assumptions themselves, rather than just the unsupervised learning algorithm, fundamentally limit the model's ultimate accuracy.

Key Results

The model's performance was measured by link precision (the percentage of predicted dependency links that were correct):

  • Retention (Best Case): When trained and tested on the same labeled data, the model achieved 80.6% precision.
  • Generalization: When trained on labeled data and tested on unseen data, precision dropped to 61.8%. This drop is largely due to data sparseness (encountering word pairs during testing that were never seen during training).
  • Induction (Unsupervised): When trained entirely on the massive 66-million-word unlabeled corpus, the model achieved 39.7% precision. While this is significantly better than a random chance baseline (31.3%), it lags far behind state-of-the-art supervised parsers of the era, which routinely exceeded 90%.

Limitations and Future Work

The primary limitation of the Grammatical Bigram model is its lexical sensitivity. Because it relies on probabilities of specific word pairs (e.g., "dog" and "big"), it struggles to generalize that "cat" and "small" should behave similarly unless it observes those specific pairs repeatedly in the training data.

To address this, the author suggests two main paths forward:

  1. Word Clustering: Grouping words with similar syntactic behaviors (e.g., parts of speech) to reduce data sparseness and improve generalization.
  2. Argument Structure: Reintroducing some basic constraints (e.g., enforcing that a verb needs a subject) without destroying the $O(n^3)$ computational complexity.

Ultimately, while the Grammatical Bigram model is not ready to replace state-of-the-art parsers, it serves as a valuable foundational experiment demonstrating how far simplicity can be pushed in the quest for scalable, unsupervised grammar induction.

Summary updated

BibTeX
@inproceedings{paskin2001grammatical,
  author = {Mark A. Paskin},
  title = {{Grammatical Bigrams}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2001},
}
Figure