Logistic Normal Priors for Unsupervised Probabilistic Grammar Induction

Shay B. Cohen, Kevin Gimpel, Noah A. Smith

TL;DR

This paper introduces a new Bayesian approach to unsupervised grammar induction by replacing the standard Dirichlet prior with a logistic normal prior. By allowing the model to learn correlations between different grammatical parameters (e.g., recognizing that singular and plural nouns behave similarly), the authors achieve state-of-the-art results in dependency parsing without any labeled training data.

The Problem with Dirichlet Priors

In unsupervised natural language processing, the goal is to discover the underlying structure of language (like a syntax tree) just by looking at raw text. Most existing models use probabilistic grammars, which rely on multinomial distributions to decide which word follows another or which phrase structure to build.

To train these models, researchers typically use a Dirichlet prior. The Dirichlet distribution is popular because it is "conjugate" to the multinomial distribution, making the underlying math computationally efficient. However, it has a major flaw: it assumes that all outcomes are independent. In reality, language is full of correlations. For example, if a specific verb is likely to be followed by a singular noun, it is probably also likely to be followed by a plural noun. A Dirichlet prior is "blind" to these relationships, forcing the model to learn every interaction from scratch.

The Logistic Normal Probabilistic Grammar

To overcome the independence assumption, the authors propose the Logistic Normal Probabilistic Grammar. Instead of drawing grammar parameters directly from a Dirichlet distribution, they use a multi-step generative process:

Graphical model of the Logistic Normal Probabilistic Grammar
  1. Generate a latent vector ($\eta$): Draw a vector from a multivariate Gaussian distribution $N(\mu, \Sigma)$. This allows the model to capture correlations through the covariance matrix $\Sigma$.
  2. Map to Probabilities ($\theta$): Use a "softmax-like" transformation (the logistic normal mapping) to turn these real-valued numbers into a valid probability distribution that sums to one.
  3. Generate the Grammar: Use these probabilities to produce the actual sentences ($x$) and their syntactic derivations ($y$).

Because the logistic normal distribution is not conjugate to the multinomial, standard algorithms like Expectation-Maximization (EM) don't work directly. The authors derive a Variational EM algorithm, using a first-order Taylor expansion to approximate the difficult mathematical terms, allowing them to efficiently estimate the model's parameters.

Experimental Setup

The model was evaluated on the Wall Street Journal (WSJ) portion of the Penn Treebank.

  • Training: Sections 2–21, restricted to sentences of length 10 or fewer (a common practice in unsupervised learning to reduce computational complexity).
  • Tuning & Testing: Section 22 for tuning, and Section 23 for testing (evaluated on sentences of length $\le 10$, $\le 20$, and the full corpus).
  • Preprocessing: Words were replaced with their Part-of-Speech (POS) tags, stripping out actual words and punctuation to focus purely on syntactic structure.

Key Insights

  • Breaking Independence: The core breakthrough is that the independence assumption of the Dirichlet prior is a bottleneck for grammar induction. By using a Gaussian-based prior, the model can learn that certain POS tags belong to the same "family" and share similar syntactic behaviors.
  • Covariance Initialization: The authors found they could "nudge" the model in the right direction by initializing the covariance matrix with "tag families" (e.g., grouping all noun types together). This prior knowledge significantly boosted performance.
  • Sparsity vs. Correlation: While Dirichlet priors are good at encouraging "sparsity" (making the grammar simpler), the logistic normal prior is better at capturing the "shape" of the language's underlying logic.

Key Results

The authors compared their model against standard EM and several Dirichlet-based Bayesian methods (VB-Dirichlet). They measured attachment accuracy—the percentage of words correctly linked to their "parent" word in a dependency tree.

Attachment accuracy results comparing Dirichlet and Logistic Normal priors
  • Superior Accuracy: On the full test set (all sentence lengths), the Logistic Normal model with "tag families" achieved 39.0% accuracy (Viterbi decoding), compared to 34.2% for standard EM and 35.7% for the best Dirichlet-based model.
  • Short Sentences: On sentences of length $\le 10$, the improvement was even more dramatic, jumping from 45.8% (EM) to 59.3% (Logistic Normal).
  • Learned Relationships: Post-hoc analysis of the learned covariance matrices showed that the model successfully identified relationships between stopping probabilities for different types of words, confirming that it was indeed capturing linguistic correlations.

Limitations and Future Work

  • Approximation Errors: The variational inference relies on a Taylor expansion approximation. While effective, more sophisticated (though computationally heavier) inference methods might yield even better results.
  • Scaling: The experiments were trained on short sentences ($\le 10$ words). Scaling this approach to much longer sentences or massive unlabelled web crawls remains a challenge due to the cubic-time complexity of the underlying parsing algorithms.
  • Beyond POS Tags: The current work operates on POS tags. A natural next step would be applying this to "lexicalized" grammars that deal with actual words, where the number of parameters—and the potential for meaningful correlations—is much higher.

Summary updated

BibTeX
@inproceedings{cohen2008logistic,
  author = {Shay B. Cohen and Kevin Gimpel and Noah A. Smith},
  title = {{Logistic Normal Priors for Unsupervised Probabilistic Grammar Induction}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2008},
}
Figure