Effective Greedy Inference for Graph-based Non-Projective Dependency Parsing

Ilan Tchernowitz, Liron Yedidsion, Roi ReichartEMNLP 2016

Introduction

Dependency parsing is a fundamental task in Natural Language Processing (NLP) that involves identifying the grammatical structure of a sentence by establishing directed links, or arcs, between words. While "first-order" models that consider single arcs are computationally efficient, they lack the expressive power of "high-order" models, which account for complex structures like grandparent-child relationships. However, high-order graph-based parsing is traditionally NP-hard, forcing a reliance on slow, complex global optimization techniques like Dual Decomposition or Linear Programming relaxations.

This paper proposes a shift in paradigm: achieving the speed of local, transition-based greedy parsers while maintaining the global objective of high-order graph-based models. The authors introduce a novel greedy inference algorithm that factorizes the global graph objective into a sequence of local decisions, significantly improving parsing speed with minimal impact on accuracy.

The Greedy Inference Framework

The core of the proposed approach lies in two algorithms designed to navigate the high-order search space efficiently:

  1. Basic Greedy Inference (BGI): This algorithm constructs a dependency tree incrementally. At each step, it evaluates every potential arc based on two metrics: Gain (the weight of high-order structures the arc completes) and Loss (the weight of structures that become impossible to form if the arc is selected). The algorithm greedily selects the arc that minimizes the value $v = Loss - Gain$.
  2. Greedy Inference with Partial Part Predictions (BGI-PP): To address the limitations of purely local decisions, BGI-PP introduces a probabilistic look-ahead mechanism. It estimates the likelihood that an incomplete high-order structure will eventually be finished, allowing the parser to account for the "potential" of an arc rather than just its immediate contribution.
Table 1: Example of part weights, loss, and gain calculations for different arcs during the greedy inference process.

Mitigating Error Propagation

Greedy algorithms are notoriously susceptible to error propagation, where a single incorrect early choice can lead to a cascade of failures. To mitigate this, the authors incorporate several robust features:

  • Beam Search: Instead of maintaining a single hypothesis, the parser tracks the top-$k$ partial solutions.
  • Post-search Swaps: A local search refinement step is applied after the initial tree construction, attempting to improve the global score by swapping individual arcs.
  • Ensemble Integration: The greedy search can be biased using the output of a standard global parser (like TurboParser). This allows the greedy algorithm to act as a fast refiner that combines multiple perspectives to find a more accurate structure.

Experimental Results

The authors evaluated their system on the CoNLL 2006 and 2007 shared task datasets, spanning 17 languages. The results demonstrate that the greedy approach is highly effective for non-projective dependency parsing.

Table 2: Performance comparison of individual and ensemble models under fully supervised conditions. UAS denotes Unlabeled Attachment Score, and TPS represents parsing speed.

Key findings include:

  • Efficiency: The advanced greedy configuration (BGI-PP+i+b) achieved a 1.43x speedup over the state-of-the-art TurboParser.
  • Accuracy: On its own, the greedy parser maintained high accuracy, losing only approximately 1% in Unlabeled Attachment Score (UAS) across the multilingual benchmarks.
  • Synergy in Ensembles: When used in an ensemble with TurboParser, the system actually outperformed the standalone global parser by an average of 0.27% UAS, suggesting that greedy and global parsers make complementary errors.

Conclusion

This research demonstrates that global graph-based objectives for dependency parsing can be effectively optimized through sequential, greedy relaxation. By bridging the gap between local transition-based efficiency and global graph-based accuracy, the proposed greedy inference framework offers a practical and high-performance alternative for complex multilingual parsing tasks.

Summary updated

BibTeX
@inproceedings{tchernowitz2016effective,
  author = {Ilan Tchernowitz and Liron Yedidsion and Roi Reichart},
  title = {{Effective Greedy Inference for Graph-based Non-Projective Dependency Parsing}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2016},
  url = {https://openreview.net/forum?id=rkbMRZfu-S},
}
Figure