Global Greedy Dependency Parsing

Zuchao Li, Hai Zhao, Kevin Parnow

Introduction

Dependency parsing, the task of mapping grammatical relationships between words, typically involves a trade-off between speed and accuracy. Transition-based models offer linear-time efficiency but often suffer from local decision errors and error propagation. Conversely, graph-based models provide global context and higher accuracy but are computationally expensive, often requiring $O(n^3)$ time to find the optimal tree.

This paper introduces the Global Greedy Dependency Parser, a novel architecture that bridges this gap. By incorporating a parsing order objective, the authors enable a greedy, linear-time decoder to leverage global features, achieving state-of-the-art accuracy with significantly faster training and inference speeds.

Model Architecture

The parser's architecture consists of three main components: a BiLSTM-CNN encoder, a dual-scorer system, and a greedy decoder.

The Global Greedy Parser architecture, featuring a BiLSTM encoder and two "one-shot" scorers: the Biaffine Scorer and the Order Scorer.

The Encoder and Scorers

The encoder processes words, characters, and part-of-speech (POS) tags, and can be enhanced with pre-trained embeddings like BERT or ELMo for substantial performance gains. The core innovation lies in the "one-shot" scorers:

  • Biaffine Scorer: Scores the likelihood of an arc existing between any two words in the sentence.
  • Order Scorer: Predicts the "layer" or "level" of a word in the dependency tree (its distance from the root). This helps the decoder determine the optimal structural hierarchy before building the tree.

Greedy Decoding with Global Guidance

The decoder builds the tree using a combined score ($s_{final} = s_{arc} + s_{order}$). Because these scores are pre-computed in a single pass, the decoder avoids the need to re-evaluate the entire sentence at every step, maintaining high efficiency.

The greedy decoding process showing the transition of the pending list from step i to step i+1 as the tree is constructed bottom-up.

The Order Scorer acts as a guide, preventing the "greedy trap" where a high-scoring local arc might block necessary global connections. It effectively instructs the decoder to prioritize attaching children before finalizing parent arcs, effectively teaching the model the structural hierarchy of language.

Experimental Results

The model was rigorously tested on the Penn Treebank (PTB), Chinese Penn Treebank (CTB), and various CoNLL and Universal Dependency (UD) treebanks.

  • Accuracy: On the English PTB, the model achieved a Labeled Attachment Score (LAS) of 94.81% (with BERT), outperforming many complex graph-based systems.
  • Speed: The parser is significantly faster than the state-of-the-art STACKPTR, processing 8,541 tokens per second during decoding compared to STACKPTR's 1,508.
  • Robustness: The model achieved the best-published results on 13 out of 14 CoNLL treebanks, demonstrating strong cross-linguistic performance.

Limitations and Future Work

While highly effective, the model faced challenges with specific datasets, such as the Japanese CoNLL treebank, due to phonetic character representations. Additionally, while much faster than graph-based models, its $O(n^2)$ complexity is slightly higher than the simplest $O(n)$ transition models, which may impact performance on extremely long documents. Future work involves applying the "parsing order" concept to other structured prediction tasks like constituent parsing or semantic role labeling.

Conclusion

The Global Greedy Dependency Parser successfully combines the global perspective of graph-based models with the efficiency of greedy transition-based models. By treating parsing order as a classification task, the model achieves top-tier performance while offering a 2x speedup in training time compared to previous "Easy-First" baselines.

Summary updated

BibTeX
@inproceedings{li2020global,
  author = {Zuchao Li and Hai Zhao and Kevin Parnow},
  title = {{Global Greedy Dependency Parsing}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2020},
  doi = {10.1609/aaai.v34i05.6348},
}
Figure