Incremental Predictive Parsing with TurboParser

Arne Köhn, Wolfgang MenzelACL 2014

Abstract

Standard dependency parsers typically require a complete sentence before beginning analysis, leading to delays in real-time applications. This paper presents an adaptation of the high-performance TurboParser for incremental predictive parsing. By introducing "Virtual Nodes" as placeholders for future input, the system maintains a fully connected structural analysis word-by-word. Results show that this approach achieves high accuracy and stability without sacrificing final sentence performance, while operating orders of magnitude faster than previous predictive parsers.

Introduction: The Challenge of Incremental Parsing

In real-time speech dialogue systems, waiting for a speaker to finish a sentence before parsing creates an unnatural "ping-pong" effect. Incremental parsing—processing language word-by-word—is necessary for fluid interaction. However, sentence prefixes are often structurally disconnected. For instance, in the phrase "John drives a...", the determiner "a" cannot be attached until its head noun appears. Humans resolve this by predicting upcoming structure. This research aims to replicate this predictive capability to generate stable, connected Partial Dependency Analyses (PDAs) on the fly.

Methodology: Virtual Nodes and the Unused Node

The authors extend TurboParser, which utilizes Integer Linear Programming (ILP) for dependency parsing. The core innovation is the use of Virtual Nodes (VNs). These are "empty" nodes representing predicted upcoming words, such as a "Virtual Noun" or "Virtual Verb."

Dependency tree illustrating the use of a Virtual Noun placeholder to maintain connectivity.

To manage these predictions within the ILP framework, the authors introduced a special unused node. If a Virtual Node is not required for the current prefix, the solver attaches it to the unused node, effectively ignoring it. This allows the parser to dynamically decide which structural predictions are necessary at any given time point. The system handles three types of predictions: bottom-up (predicting a head), top-down (predicting a child based on structural requirements), and lexical top-down (predicting a child based on a specific word's valency).

Experimental Setup

The model was evaluated on two major corpora: the Penn Treebank (PTB) for English and the Hamburg Dependency Treebank (HDT) for German. Gold-standard incremental prefixes were automatically generated from full-sentence trees to provide a training signal for the predictive mechanism.

Key Results and Discussion

The incremental TurboParser demonstrates significant improvements in both speed and stability. It processes increments in approximately 0.015 seconds, making it suitable for real-time use—a stark contrast to previous systems like jwcdg, which could take several seconds per word.

Performance comparison between TurboParser and the jwcdg baseline across relative time points.

Crucially, the addition of predictive machinery does not degrade performance on complete sentences. On German data, the final sentence accuracy reached 93.33%, matching non-incremental versions. The parser is also remarkably stable; the attachment for the most recently added word remains correct in the final parse approximately 85-90% of the time. Furthermore, the system achieves over 70% precision in predicting the coarse categories of upcoming virtual nodes.

Conclusion and Future Work

By leveraging Virtual Nodes, this approach provides a single, connected tree at every step of the parsing process, which is vital for downstream semantic tasks. While the current implementation re-initializes the ILP solver for each word, future work could explore "warm-starting" the solver to further enhance speed. Additionally, moving beyond coarse category predictions to specific lexical items or features could further refine the parser's predictive power.

Summary updated

BibTeX
@inproceedings{kohn2014incremental,
  author = {Arne Köhn and Wolfgang Menzel},
  title = {{Incremental Predictive Parsing with TurboParser}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2014},
  doi = {10.3115/v1/p14-2130},
}
Figure