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

Stochastic Attribute-Value Grammars

Steven AbneyarXiv 1996

This 1996 paper by Steven Abney is a foundational piece of work in computational linguistics that bridges the gap between linguistically rich grammar formalisms and the statistical methods that were beginning to dominate the field at the time.

TL;DR

Abney provides a mathematically sound framework for "Stochastic Attribute-Value Grammars" (AVGs), solving a long-standing problem where traditional parameter estimation methods failed due to complex context dependencies. By treating AVGs as Random Fields and employing the Metropolis-Hastings algorithm for sampling, he enables the creation of probabilistic models that are far more linguistically expressive than standard context-free grammars.

What Problem Does This Paper Address?

In the mid-90s, computational linguistics faced a dilemma. On one hand, researchers had Stochastic Context-Free Grammars (SCFGs), which were great for statistical learning but linguistically "too thin"—they couldn't easily handle complex constraints like subject-verb agreement or long-distance dependencies. On the other hand, they had Attribute-Value Grammars (AVGs), which used feature structures to represent these complexities but lacked a reliable way to assign probabilities to different parses.

The core challenge was that the standard method for training SCFGs—the Expected Rule Frequency (ERF) method—doesn't work for AVGs. In an AVG, rules are not independent; a choice made in one part of a sentence's structure (like a singular subject) constrains choices elsewhere (requiring a singular verb). This "re-entrancy" or context-sensitivity means that simply multiplying local rule probabilities leads to models that don't sum to one and systematically misrepresent the data.

Figure 1 illustrates how re-entrancies and context-sensitivity appear in natural language structures.

Methods

Abney’s solution shifts the perspective from local rule choices to a global model based on Random Fields (specifically Gibbs distributions).

  1. Field Induction: Instead of just assigning weights to grammar rules, the model identifies "properties" (sub-structures) of the grammar. It uses an algorithm adapted from Della Pietra, Della Pietra, and Lafferty (DDL) to iteratively select properties that best reduce the "distance" (Kullback-Leibler divergence) between the model and the training data.
  2. Weight Adjustment: Once properties are selected, their weights are adjusted so that the model's expected frequency for each property matches its frequency in the training corpus.
  3. Metropolis-Hastings Sampling: To calculate these expectations, one must sample from the grammar. However, AVGs are "highly constrained"—most random combinations of features don't result in a valid sentence. Standard Gibbs sampling fails here. Abney proposes using the Metropolis-Hastings algorithm, which uses a simpler "proposal" distribution (like an SCFG) and an "acceptance" step to ensure the final samples correctly represent the complex AVG distribution.

Datasets

The paper primarily uses a small, synthetic toy grammar and a corresponding empirical distribution of 12 trees to demonstrate the mathematical failure of old methods and the success of the new one.

Figure 6 shows the empirical distribution of the toy corpus used for the paper's demonstrations.

While it does not evaluate on large-scale real-world datasets like the Penn Treebank, the focus is on providing a theoretical proof of concept and a "correct" algorithm that is guaranteed to converge as data size increases.

Key Insights and Ideas

  • The ERF Trap: Abney demonstrates that the "obvious" way to add probabilities to AVGs—normalizing rule weights—is fundamentally flawed. It creates a "compromise" distribution that can never perfectly match the training data if context dependencies exist.
  • Global vs. Local: By using Random Fields, the model evaluates the "goodness" of an entire parse tree (or DAG) globally, rather than as a sequence of independent local decisions.
  • Detailed Balance: The use of Metropolis-Hastings is the "aha moment" for the sampling problem. It allows us to use a "dumb" but fast sampler (an SCFG) to generate candidates, then "punish" or "reward" those candidates to perfectly match the "smart" but complex AVG distribution.

Key Results

  • Mathematical Correctness: Abney proves that his parameter-estimation algorithm is correct in the limit: as the training corpus grows to infinity, the estimated model converges to the true distribution.
  • Superior Fit: In the toy example, the traditional ERF method resulted in a Kullback-Leibler distance of 0.32 (a poor fit), while the Random Field approach could achieve a distance of 0 (a perfect fit) using even fewer parameters.
Figure 3 shows one of the trees in the toy grammar where traditional methods struggle to assign correct probabilities.

Limitations and Future Work

  • Computational Complexity: Sampling via Metropolis-Hastings is computationally expensive. While theoretically sound, scaling this to massive real-world grammars with thousands of rules remains a significant engineering challenge.
  • Infinite Languages: The paper notes that defining a uniform distribution over an infinite set of trees (the "null field") is mathematically tricky and suggests using prior distributions over graph sizes as a workaround.
  • Linguistic Application: The paper provides the tools for stochastic AVGs but leaves the task of building and training a full-scale English AVG to future research.

Summary updated

BibTeX
@misc{abney1996stochastic,
  author = {Steven Abney},
  title = {{Stochastic Attribute-Value Grammars}},
  year = {1996},
  eprint = {cmp-lg/9610003},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/cmp-lg/9610003},
}
Figure