NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Grammatical Trigrams: A Probabilistic Model of Link Grammar

John Lafferty, Saniel Sleator, Davy Temperley1992

TL;DR

This paper introduces a probabilistic framework for Link Grammar, a lexicalized, context-free formalism that describes language through word-to-word connections rather than abstract constituents. By demonstrating that standard n-gram models are a natural subclass of this grammar, the authors provide a path to "grammatical trigrams" that combine the statistical robustness of n-grams with the structural depth of formal linguistics.

What Problem Does This Paper Address?

In the early 1990s, natural language processing was caught between two worlds. On one side were n-gram models (like trigrams): mathematically "insipid" and simple-minded, yet incredibly effective because they could be trained on massive datasets. On the other side were Probabilistic Context-Free Grammars (PCFGs): linguistically rich but often performing worse in practice (higher cross-entropy) because they struggled to capture the specific dependencies between individual words.

The authors aim to break the "unreasonable dominion" of the trigram. They seek a model that is highly lexical—meaning the rules are tied to specific words rather than abstract categories like "Noun Phrase"—while remaining computationally efficient enough to be trained on the same scale as n-gram models.

Methods

The authors build their model on Link Grammar, where a sentence is valid if its words can be connected by non-crossing, labeled arcs (links) to form a planar graph.

An example of a linkage showing word-to-word dependencies.

Key Technical Contributions:

  1. Probabilistic Formulation: They define the probability of a "linkage" as the product of individual link probabilities. These probabilities are conditioned on the words being linked, their specific "connectors" (the requirements for a link), and the orientation of the link.
  2. The Training Algorithm: They adapt the Inside-Outside algorithm (a variant of Expectation-Maximization) for Link Grammar. Unlike the standard bottom-up CKY approach used for PCFGs, their algorithm is top-down, which they argue is more efficient for this specific formalism.
  3. Smoothing: To handle the "sparsity" problem (the fact that most word combinations never appear in a training set), they propose a smoothing technique that uses unparsed text to estimate "prior" probabilities for word triples.

Datasets

Not discussed in the paper. The paper is primarily theoretical and algorithmic. While it mentions the motivation to estimate parameters on "very large amounts of text" and references the potential of using unparsed corpora for smoothing, it does not report experimental results on a specific named dataset (like the Penn Treebank).

Key Insights and Ideas

  • N-grams are just simple Link Grammars: One of the most elegant insights is that a standard bigram or trigram model can be perfectly represented as a Link Grammar with very specific, repetitive rules. This proves that the proposed model is a strict generalization of n-grams.
A bigram model represented as a series of links.
  • Lexicalization is the Bridge: By attaching grammatical requirements directly to words (e.g., the word "came" looking for a subject on its left), the model captures the "statistical rights" of words. This allows the model to handle local dependencies (like a bigram) and long-distance dependencies (like subject-verb agreement) in a single, unified framework.
  • Symmetry in Parsing: The authors note a unique symmetry in their training algorithm: both the "inside" and "outside" passes are structured identically (top-down), which differs from the traditional CKY-based methods.

Key Results

  • Algorithmic Complexity: The authors show that their parsing algorithm has a complexity of $O(D^3 \cdot N^3)$, where $N$ is the sentence length and $D$ is the maximum number of ways a word can be used (disjuncts).
  • Unified Framework: They successfully demonstrate a "Bigram/Grammar" hybrid model. In this model, complex grammatical relations (like "from-to" or subject-verb agreement) are handled by specific links, while the "boring" parts of the sentence are filled in by standard bigram-like links.
A hybrid model combining bigram-style links with specific grammatical links.

Limitations and Future Work

  • Parameter Explosion: Because the model is highly lexicalized, the number of parameters is potentially enormous. Even with the proposed smoothing, training a "full" model on a limited vocabulary remains a significant challenge.
  • Generative Power: While Link Grammar is context-free, the authors suggest that extending the model with decision trees could push its generative power toward context-sensitive languages, better capturing the long-range dependencies found in real-world corpora.
  • Scaling: The authors conclude by noting that the real test will be "reaching for the gauntlet" thrown down by the trigram—actually running this model on massive, real-world datasets to see if the added grammatical structure truly reduces entropy.

Summary updated

BibTeX
@misc{lafferty1992grammatical,
  author = {John Lafferty and Saniel Sleator and Davy Temperley},
  title = {{Grammatical Trigrams: A Probabilistic Model of Link Grammar}},
  year = {1992},
  doi = {10.21236/ada256365},
}
Figure