A Structured Language Model

Ciprian ChelbaACL 1997

Abstract

Traditional n-gram language models are limited by a fixed context window, often failing to capture long-distance dependencies essential for natural language understanding. This paper introduces a "Structured Language Model" that incorporates syntactic parsing to identify "exposed headwords"—the most structurally significant words in a sentence's history. By focusing on these heads, the model effectively filters out local noise, achieving a significant reduction in perplexity compared to standard bigram models.

Introduction: The Limits of N-grams

Standard n-gram models are inherently "short-sighted," predicting the next word based solely on a small window of preceding tokens. This approach struggles with the hierarchical nature of human language, where key dependencies can span many words.

Consider the sentence: "The dog I heard yesterday barked." In a 3-gram model, the prediction for "barked" relies on "heard yesterday," which offers little relevant context. The true driver for the verb "barked" is the subject "dog," located outside the local window.

Syntactic structure identifying 'dog' as the head for the verb 'barked' despite intervening words.

The proposed Structured Language Model addresses this by using syntactic structure to "filter" the history, focusing on structural "headwords" that drive the sentence's meaning regardless of their linear distance.

Methodology

The model jointly assigns probability to word sequences and their corresponding binary-parse structures through two intertwined modules:

  1. The Predictor: Estimates the probability of the next word $w_{k+1}$ given the "word-parse k-prefix"—the history of words and the partial syntactic trees constructed thus far.
  2. The Parser: Updates the syntactic structure upon receiving the new word. It employs two primary operations, adjoin-left and adjoin-right, to build binary branching trees.
The model's state represented as a sequence of partial trees and words during left-to-right processing.

The innovation lies in exposed headwords. Instead of looking at the last $n$ tokens, the model examines the roots of the partial trees (the "exposed" heads) currently in the workspace. This allows the model to "jump" over modifiers or relative clauses to find the relevant noun or verb.

Experimental Setup

Preliminary experiments were conducted using the Penn Treebank, a corpus of manually annotated English sentences. Manual parses were processed through headword percolation and binarization to align with the model's requirements.

Key Insights

  • Syntactic Filtering: Structure acts as a functional filter, distinguishing "signal" (structural heads) from "noise" (local modifiers) for future predictions.
  • Left-to-Right Processing: The model operates strictly left-to-right, making it suitable for real-time applications like Automatic Speech Recognition (ASR).
  • Headword Equivalence: By simplifying the sentence history into a few exposed headwords, the model remains computationally feasible while retaining critical structural information.

Results

The structured model (H) was compared against a standard bigram model (W) using Perplexity (PP)—a common metric where a lower score indicates a better model.

Model Perplexity (PP) Parameters
W (Standard Bigram) 376 208,487
H (Structured Model) 312 206,540

The structured model achieved a significant reduction in perplexity (from 376 to 312) with a similar parameter count, proving that structural information is a superior basis for word prediction.

Limitations and Future Directions

While promising, the model currently relies on "gold standard" manual parses for its best performance. In practice, parsing errors could propagate. Future work aims to enhance the parser with terminal/non-terminal labels and evaluate the model's impact on Word Error Rate (WER) within full ASR systems.

Summary updated

BibTeX
@inproceedings{chelba1997structured,
  author = {Ciprian Chelba},
  title = {{A Structured Language Model}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {1997},
  doi = {10.3115/976909.979681},
}
Figure