Efficient probabilistic top-down and left-corner parsing

Brian Roark, Mark Johnson

Abstract

Traditional high-performance natural language parsers often rely on bottom-up dynamic programming, which can be computationally expensive and lacks the incremental nature of human language processing. This paper demonstrates that probabilistic top-down and left-corner parsers can achieve high efficiency and accuracy through strategic grammar transformations and non-local information. By utilizing right binarization and parent annotation, the authors develop a parser that builds fully connected trees incrementally, proving that broad-coverage predictive parsing is computationally viable and psycholinguistically plausible.

Introduction: The Challenge of Incremental Parsing

Most state-of-the-art parsers, such as those based on the CKY algorithm, utilize bottom-up dynamic programming. While effective, these methods wait for all sub-components of a phrase to be completed before integrating them, resulting in disconnected tree fragments during processing. In contrast, psycholinguistic evidence suggests that humans process language incrementally, building partial interpretations "on-line" as each word is encountered.

The authors address the challenge of creating a broad-coverage, predictive parser that maintains a fully connected tree at every step. This incremental approach is essential for real-time semantic interpretation but has historically been difficult to implement efficiently without the risk of infinite loops or excessive search spaces.

To overcome the limitations of traditional top-down methods, the authors implement a probabilistic best-first parser using several key techniques:

  1. Grammar Binarization: The use of "Right Binarization" (RB0) allows the parser to delay specific rule decisions until more input is seen, effectively implementing a "wait and see" strategy.
  2. Left-Corner (LC) Transform: This mathematical transformation enables a top-down parser to utilize bottom-up evidence (the first word of a phrase) to predict subsequent structures.
  3. Parent Annotation (PA): Nodes are annotated with extra context, such as the label of their parent node, to provide "non-local" information that guides the search.
  4. Look-Ahead Probability (LAP) and Beam Search: A heuristic estimates the probability of rules needed to link the current state to the next word, while a dynamic beam search keeps the search space manageable.
Grammar transformations for the noun phrase "the fat happy cat", illustrating the various binarization and transformation strategies.

Experimental Setup

The models were trained and evaluated on the Penn Wall Street Journal Treebank. Sections 2-21 were used for training the Probabilistic Context-Free Grammar (PCFG), and section 23 served as the test set. Evaluation focused on sentences of 40 words or fewer, measuring coverage (percentage of sentences parsed), efficiency (average states considered), and accuracy (labeled precision/recall).

Analysis: The Power of Context

A key insight from the study is that increasing grammar complexity through Parent Annotation actually improves efficiency. The additional context acts as a "GPS," guiding the parser more accurately toward the correct structure and reducing the exploration of dead-ends. Furthermore, the authors show that the accuracy gains typically associated with left-corner parsing are largely due to the non-local information the strategy provides; when this information is added to a standard top-down parser via annotation, the performance gap narrows significantly.

Key Results

The impact of grammar transformations was profound. Moving from a standard grammar to a right-binarized (RB0) grammar increased sentence coverage from a meager 34.16% to 97.37%. Accuracy also saw significant gains, with Parent Annotation (PA) increasing the Labeled F-measure from 73.2% to 79.2%.

The most efficient configuration—combining Parent Annotation, Left-Corner transformation, and Right Binarization (PA o LC o RB)—achieved 81.1% accuracy. Crucially, it visited only 4,455 states per sentence, making it nearly three times more efficient than the base RB0 model, which visited 13,868 states.

Comparison of efficiency (states considered) across different grammar configurations as a function of the base beam factor.

Conclusion and Future Work

This research proves that maintaining a fully connected tree from root to word is computationally viable for broad-coverage parsing. While the current model relies on Part-of-Speech (POS) tags, future work includes incorporating lexical information to further improve accuracy. Additionally, testing the model on diverse languages, such as left-branching German, and incorporating time variables to better model human processing speeds remain important next steps.

Summary updated

BibTeX
@inproceedings{roark1999efficient,
  author = {Brian Roark and Mark Johnson},
  title = {{Efficient probabilistic top-down and left-corner parsing}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {1999},
  doi = {10.3115/1034678.1034743},
}
Figure