Introduction
Dependency parsing is a fundamental task in Natural Language Processing (NLP) that involves identifying the grammatical relationships between words in a sentence. Historically, researchers have faced a trade-off between two primary approaches: transition-based models and graph-based models. Transition-based models offer linear-time complexity and high speed but suffer from error propagation due to their greedy nature. Conversely, graph-based models provide superior accuracy by considering the global context of the entire sentence, but they are computationally expensive, often requiring $O(n^2)$ or $O(n^3)$ time.
This paper introduces the Global Greedy Dependency Parser, a novel architecture designed to bridge this gap. By combining "one-shot" global scoring with a greedy decoding strategy, the model achieves the accuracy of graph-based systems while maintaining the lightning-fast inference speeds characteristic of transition-based models.
Architecture and Scoring
The core of the proposed system is a multi-component architecture that processes input text and generates dependency arcs in a single pass.
The Encoder
The model utilizes a BiLSTM-CNN encoder. This component integrates character-level information to handle out-of-vocabulary words, standard word embeddings, and part-of-speech (POS) tags. To further enhance performance, the encoder can leverage state-of-the-art contextualized representations like BERT and ELMo.
The Dual Scorer System
Unlike traditional transition-based models that calculate scores for each action sequentially, this parser uses a "one-shot" approach:
- Biaffine Scorer: This module calculates the likelihood of every possible word-to-word connection (arc) in the sentence simultaneously.
- Order Scorer: This is the "secret sauce" of the model. It predicts the priority or "layer" of each node within the final tree structure.
The final score for any potential dependency is the sum of the arc score and the order score ($s_{final} = s_{arc} + s_{order}$). This combined metric ensures that the parser identifies not only the correct relationships but also the optimal sequence in which to establish them.
The Greedy Decoding Process
The "Global Greedy" aspect of the parser comes from its inference method. By calculating all scores upfront, the model avoids the iterative overhead of graph-based algorithms. The Order Scorer acts as a guide, encouraging the model to attach "easier" nodes (typically leaves) before moving to more complex, central structures like the root.
For projective languages, this process is strictly linear ($O(n)$). To handle non-projective languages—where dependency lines can cross—the authors extend the decoder with two additional arc-building actions, resulting in a manageable $O(n^2)$ complexity.
Evaluation and Key Results
The model was rigorously tested across several benchmarks, including the Penn Treebank (PTB), Chinese Treebank (CTB), and Universal Dependency (UD) Treebanks for 12 languages.
Performance and Efficiency
The results demonstrate that the Global Greedy parser is both an accuracy powerhouse and a speed demon:
- Accuracy: On the PTB benchmark using BERT, the model achieved an Unlabeled Attachment Score (UAS) of 96.59%, matching or exceeding the performance of significantly more complex graph-based models.
- Inference Speed: The model processed 8,541 tokens per second, a massive improvement over the 1,508 tokens/sec achieved by the STACKPTR model.
- Training Efficiency: Due to the parallelizable nature of the one-shot scoring, training time was reduced by approximately 50%, dropping from 16 hours to 8 hours on standard hardware.
Conclusion
The Global Greedy Dependency Parser represents a significant step forward in efficient NLP. By reframing the parsing problem to include "when" an attachment should occur alongside "what" should be attached, the authors have created a system that captures global context without the typical computational penalty. While the model faced some challenges with specific scripts (e.g., Romanized Japanese in CoNLL-X), its overall performance across diverse languages and benchmarks establishes it as a robust solution for high-speed, high-accuracy dependency parsing.
Future research may explore more sophisticated definitions of "parsing order" to further enhance the robustness of the greedy decoder and optimize the handling of complex non-projective structures.
Summary updated