Improved Constituent Context Model with Features

Yun Huang, Min Zhang, Chew Lim Tan

Abstract

Unsupervised grammar induction remains a significant challenge in Natural Language Processing, particularly as sentence length increases. Traditional generative models like the Constituent-Context Model (CCM) suffer from severe data sparsity when dealing with long spans. This paper introduces F-CCM, a feature-based overhaul of the CCM that utilizes log-linear models and $\ell_1$ regularization. By decomposing spans into overlapping features such as boundary and context words, F-CCM maintains robust performance on short sentences while delivering substantial improvements—up to 12 points in F1 score—on longer, more complex sentences.

Introduction

The goal of unsupervised grammar induction is to learn the underlying structure of language without the aid of labeled training data. A decade ago, the Constituent-Context Model (CCM) emerged as a breakthrough by evaluating "spans" (word sequences) and their "contexts" (surrounding words) to distinguish between constituents (grammatical units) and distituents (non-units).

However, the original CCM faces two primary limitations. First, its reliance on simple multinomial distributions leads to a "sparsity trap"; it cannot effectively process long, unique sequences it hasn't encountered before. Second, the field has historically lacked rigorous evaluation hygiene, often training and testing on the same data, which complicates parameter tuning. This research addresses these issues by transforming CCM into a flexible, feature-rich framework.

Methodology: The F-CCM Framework

The authors propose F-CCM (Feature-based CCM), which replaces the atomic treatment of sequences with a log-linear model. This approach allows the model to break down a span into a set of overlapping, informative features.

Feature Templates

Instead of memorizing entire sequences, F-CCM utilizes specific templates to capture grammatical cues:

  • Boundary Words: The first and last words inside a span.
  • Context Words: The words immediately preceding and following a span.
  • Composite Features: Combinations of internal and external words.
Examples of boundary word features (lb2 and rb1) used in the F-CCM model to identify constituent structures.
Examples of context word features (lx2 and rx2) used to capture the environment surrounding a potential constituent.

Regularization and Optimization

To prevent overfitting and manage the high dimensionality of the feature space, the model employs $\ell_1$ regularization (Lasso). This acts as an automatic feature selector, encouraging a "sparse" grammar by penalizing less useful weights. Because the $\ell_1$ objective is non-differentiable at zero, the authors utilize the OWL-QN algorithm during the Expectation-Maximization (EM) process to optimize model weights.

Experimental Setup

The model was evaluated using the Wall Street Journal (WSJ) portion of the Penn Treebank, adhering to a standard Train/Dev/Test split (Sections 02-21 for training, Section 00 for development, and Section 23 for testing). To assess scalability, the researchers created subsets based on sentence length: PTB10, PTB20, PTB30, and PTB40.

Results and Discussion

The experimental results demonstrate that F-CCM's strength lies in its ability to handle complexity. While performance on the simplest dataset (PTB10) was comparable to the baseline, the gap widened dramatically as sentences grew longer.

Dataset CCM (Baseline) F1 F-CCM (Proposed) F1 Improvement
PTB10 70.30 69.75 -0.55
PTB20 48.08 59.10 +11.02
PTB30 42.59 48.15 +5.56
PTB40 33.10 45.10 +12.00

On the PTB40 dataset, F-CCM achieved a 12-point F1 improvement over the original CCM. This success highlights several key insights:

  1. Boundaries are Informative: For long spans, identifying the start and end words is often sufficient to determine constituent status, bypassing the need to process every internal word.
  2. Sparsity as a Strength: The $\ell_1$ penalty produced compact models that generalized better than those attempting to memorize all data.
  3. Distituent Filtering: The model required higher regularization for distituents, suggesting that the space of "non-grammatical" sequences is noisier and requires more aggressive filtering.

Conclusion

F-CCM successfully scales unsupervised parsing by moving from generative multinomials to a feature-rich log-linear framework. Future work may involve integrating more complex linguistic features like stems or punctuation, and exploring advanced optimization techniques like Lateen EM to avoid local optima.

Summary updated

BibTeX
@inproceedings{huang2012improved,
  author = {Yun Huang and Min Zhang and Chew Lim Tan},
  title = {{Improved Constituent Context Model with Features}},
  booktitle = {PACLIC},
  year = {2012},
}
Figure