Posterior vs Parameter Sparsity in Latent Variable Models

João Graça, Kuzman Ganchev, Ben Taskar, Fernando C. N. PereiraNeurIPS 2009

Introduction

In Natural Language Processing (NLP), categorizing words—such as Part-of-Speech (POS) tagging—without human-labeled sentences is a persistent challenge. Researchers typically rely on latent variable models like Hidden Markov Models (HMMs) trained via the Expectation-Maximization (EM) algorithm. However, standard EM suffers from a "fuzziness" problem: it tends to allow every word to be generated by almost any tag.

In reality, human language is highly sparse. The word "run" might be a noun or a verb, but it is almost never an adjective or a determiner. While previous research has attempted to fix this using Bayesian priors to make the parameters of the model sparse, this does not always result in the labels (the posterior distribution) being sparse. This paper introduces a method to improve unsupervised learning by forcing models to be "decisive" about hidden variables, bridging the gap between having a sparse "dictionary" and making sparse "choices" for specific words in a text.

Methodology: Enforcing Posterior Sparsity

The authors build on the Posterior Regularization (PR) framework. Instead of merely changing the model's internal weights (parameters), they impose constraints on the model’s "expectations" during the learning process.

The key technical innovation is the use of an $\ell_1/\ell_\infty$ mixed-norm regularizer.

  • The Goal: For any given word type (e.g., "bank"), the model should only assign it to a very small set of tags across the entire dataset.
  • The Mechanism: The authors employ a "soft" version of PR. This allows the model to violate the sparsity constraint if necessary, but it pays a mathematical penalty for doing so. This formulation makes the optimization problem solvable using efficient projected gradient descent.
Visualizing the effect of Posterior Regularization: The base model probabilities ($p_\theta$) are penalized by $\lambda$ to produce a much sparser posterior distribution ($q_{ti}$).

They compare their "Sparse PR" approach against two baselines:

  1. Standard EM: The classic, non-sparse approach.
  2. Variational Bayes EM (VEM): A Bayesian approach that encourages sparsity in the model's parameters using Dirichlet priors.

Key Insights

The core "aha" moment of the paper is the distinction between parameter sparsity and posterior sparsity. A model can have very few active weights (parameter sparsity) but still assign a messy, non-sparse distribution of tags to a word (posterior density). PR directly targets the behavior we actually care about: the final labels.

The $\ell_1/\ell_\infty$ norm is specifically designed to enforce this. It essentially dictates: "I don't care how many times you use a tag for a word, but I care deeply about how many different tags you use for that word."

Furthermore, the authors uncovered a hidden failure in the VEM baseline. While the Bayesian VEM approach produced a tag distribution that looked like human language (following a power law), it actually had very low "mutual information" with the real tags. VEM was good at guessing the overall frequency of tags but poor at picking the correct tags for specific words. Sparse PR maintained much higher label quality.

Experimental Results

The researchers evaluated their method on three different languages—English (PTB17), Bulgarian (BulTreeBank), and Portuguese (Bosque)—to ensure the results generalized beyond English grammar. They tested these in purely unsupervised settings, weakly supervised settings, and as features for a supervised model.

  • Unsupervised Accuracy: Sparse PR improved tagging accuracy over standard EM by 2.3% to 6.5% across the three languages.
  • Consistency: The method consistently outperformed the Bayesian (VEM) approach, which often struggled to map hidden states to meaningful linguistic categories.
  • Semi-Supervised Boost: When the unsupervised clusters were used as features for a supervised tagger, the "Sparse PR" features provided a much larger performance boost than EM or VEM features, especially when labeled training data was scarce.
  • Sparsity Levels: In English, standard EM had a sparsity measure of 3.97, while the supervised "gold standard" was 1.23. The authors' Sparse PR method successfully drove the model's sparsity much closer to that human gold standard.

Limitations and Future Work

The authors acknowledge that while their method is a significant step forward, unsupervised POS tagging still lags behind the accuracy of fully supervised systems.

Future directions include applying this posterior sparsity to more complex tasks like unsupervised parsing (grammar induction), where the number of possible hidden structures is even larger. They also suggest integrating these constraints into log-linear models and exploring how sparser annotations can benefit downstream tasks like machine translation or information extraction.

Summary updated

BibTeX
@inproceedings{graca2009posterior,
  author = {João Graça and Kuzman Ganchev and Ben Taskar and Fernando C. N. Pereira},
  title = {{Posterior vs Parameter Sparsity in Latent Variable Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2009},
}
Figure