Introduction
This paper, presented at NAACL-HLT 2019, challenges the conventional wisdom that dependency parsing requires complex, specialized algorithms. By reframing the problem as a simple sequence labeling task, the authors demonstrate that we can build parsers that are remarkably fast, conceptually simple, and surprisingly accurate.
Problem Statement
Dependency parsing involves mapping the grammatical structure of a sentence by identifying "head-dependent" relationships (e.g., in "big dog," dog is the head and big is the dependent). Traditionally, this requires specialized machinery:
- Transition-based parsers use a stack and a buffer to build the tree step-by-step.
- Graph-based parsers treat parsing as finding the highest-scoring spanning tree in a dense graph of all possible word-to-word connections.
While accurate, these methods are computationally intensive or architecturally complex. Previous attempts to simplify this into sequence labeling—where each word $w_i$ is assigned a single discrete label $l_i$—were largely dismissed as impractical due to significant accuracy gaps. This research proves that sequence labeling is a viable, high-performance alternative.
Methods: Encoding Trees as Sequences
The authors utilize a standard BiLSTM-based encoder-decoder architecture. The core innovation lies in the encoding schemes used to transform a 2D tree structure into a 1D sequence of labels. Four primary schemes were explored:
- Naive Positional: Labels represent the absolute index of the head.
- Relative Positional: Labels represent the offset to the head (e.g., +1, -2).
- Relative PoS-based: Labels point to the $n$-th occurrence of a specific Part-of-Speech (PoS) tag, mimicking the linguistic concept of valency.
- Bracketing-based: A complex scheme using brackets and slashes to represent arcs, inspired by constituent parsing.
To ensure the final output is a valid tree (acyclic and with a single root), a light post-processing step handles root prediction and cycle breaking.
Key Results and Speed-Accuracy Tradeoff
The Relative PoS-based encoding emerged as the superior method. On the English Penn Treebank (PTB), it achieved a 93.67% UAS (Unlabeled Attachment Score) and 91.72% LAS (Labeled Attachment Score), effectively closing the historical gap with state-of-the-art parsers like BIST.
The model excels in speed, operating up to 3.5x faster than high-end graph-based models. It occupies a unique "sweet spot" on the Pareto front, offering an excellent tradeoff between parsing speed and accuracy, making it ideal for high-throughput industrial applications.
Key Insights
- Representation over Algorithm: Strong BiLSTM encoders can capture sufficient context to offload structural logic to label encodings, reducing the need for explicit structural algorithms like stacks or buffers.
- Linguistic Leveraging: PoS-based encoding leverages stable linguistic patterns (valency) that are more consistent across varying sentence lengths than simple positional offsets.
- Cross-lingual Viability: Results held up across eight diverse Universal Dependencies (UD) treebanks, though performance varied based on the granularity of the PoS tags used.
Limitations
- PoS Dependency: Accuracy is heavily tied to the quality of the external PoS tagger; failures in tagging degrade parser performance.
- Data Sensitivity: The model is more "data-hungry" than transition-based parsers, showing lower performance on very small datasets before catching up as training data increases.
- Projectivity: While most encodings handle non-projective trees, the bracketing-based encoding is strictly limited to projective structures.
Summary updated