Left-to-Right Dependency Parsing with Pointer Networks

Daniel Fernández-González, Carlos Gómez-RodríguezNAACL 2019

Abstract

Dependency parsing is a fundamental task in natural language processing, traditionally split between high-accuracy graph-based models and high-speed transition-based models. This paper presents a new transition-based parser that leverages Pointer Networks to perform a simple left-to-right pass over a sentence. By predicting the head of each word in a single step, the architecture achieves state-of-the-art accuracy on English benchmarks while doubling the speed of previous top-performing transition-based systems.

Introduction

Dependency parsing involves mapping the grammatical structure of a sentence by identifying relationships between words. Historically, researchers have balanced the trade-off between accuracy and speed. Graph-based parsers offer high precision but are computationally expensive. Conversely, transition-based parsers are faster but often suffer from "error propagation," where early incorrect decisions negatively impact the entire tree structure due to a lack of global context.

Recent advancements, such as the work by Ma et al. (2018), introduced Pointer Networks to provide transition-based parsers with a more global view. However, their top-down, depth-first search approach required $2n-1$ steps for a sentence of length $n$. This work simplifies that architecture into a more efficient left-to-right pass.

Methodology

The core of the proposed system is a left-to-right transition-based algorithm powered by Pointer Networks.

The Pointer Mechanism

Instead of relying on a traditional stack to track word relationships, the model employs an attention mechanism. This "pointer" allows the model to look at the entire sentence and directly select the most likely head (parent) for the current word being processed. The authors realized that a transition-based parser doesn't actually need a stack if the underlying neural architecture can already "see" the whole sentence.

Streamlined Processing

Unlike standard transition-based models that require multiple actions (e.g., Shift, Reduce) per word, this system processes each word $w_i$ exactly once. For every word in a sentence of length $n$, the model predicts its head $w_p$ in a single step, resulting in a total sequence of exactly $n$ actions. This simplicity is the primary driver of the model's increased decoding speed.

Handling Non-Projectivity and Cycles

Because the pointer can reference any word in the sentence, the model naturally handles non-projective dependencies—complex structures where relationship lines cross—which are typically challenging for transition-based systems. To ensure the output is a valid tree, the authors implement an efficient $O(n^2)$ cycle-checking extension to prevent illegal circular dependencies.

Experimental Setup

The model was evaluated on two primary benchmarks:

  1. English Penn Treebank (PTB-SD): Converted to Stanford Dependencies, this serves as the standard for English parsing performance.
  2. Universal Dependency Treebanks (UD) 2.2: A multilingual collection covering 12 languages (including Bulgarian, Catalan, Czech, German, Spanish, French, Italian, Dutch, Norwegian, Romanian, and Russian) to evaluate cross-linguistic versatility.

Results and Discussion

State-of-the-Art Performance

On the English PTB dataset, the proposed model established a new state-of-the-art for fully-supervised single-model parsers, achieving 96.04% UAS and 94.43% LAS.

Comparison of the proposed parser against previous state-of-the-art models on the English PTB dataset.

Efficiency Gains

The simplified left-to-right approach significantly boosted decoding speed. The model processed 23.08 sentences per second, more than doubling the 10.24 sentences per second achieved by the previous state-of-the-art stack-pointer parser.

Multilingual Versatility

The left-to-right strategy proved robust across different linguistic structures. In the Universal Dependencies benchmark, it outperformed the more complex top-down variant in 9 out of the 12 languages tested, demonstrating that the simpler transition system is often more effective.

Performance comparison between Top-down and Left-to-right architectures across various languages in the UD 2.2 benchmark.

Conclusion

By shifting from a "top-down child selection" strategy to a "left-to-right head selection" strategy, the authors halved the number of required operations while maintaining a global context through Pointer Networks. While the system requires external cycle-checking and remains dependent on high-quality pre-trained embeddings, its combination of speed and accuracy represents a significant step forward for transition-based dependency parsing.

Summary updated

BibTeX
@inproceedings{fernandezgonzalez2019left,
  author = {Daniel Fernández-González and Carlos Gómez-Rodríguez},
  title = {{Left-to-Right Dependency Parsing with Pointer Networks}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/n19-1076},
}
Figure