Abstract
Stanford typed dependencies are a widely desired representation of natural language sentences, but parsing is one of the major computational bottlenecks in text analysis systems. In light of the evolving definition of the Stanford dependencies and developments in statistical dependency parsing algorithms, this paper revisits the question of Cer et al. (2010): what is the tradeoff between accuracy and speed in obtaining Stanford dependencies in particular? We also explore the effects of input representations on this tradeoff: part-of-speech tags, the novel use of an alternative dependency representation as input, and distributional representations of words. We find that direct dependency parsing is a more viable solution than it was found to be in the past.
Introduction
In Natural Language Processing, understanding the grammatical relations between words—often represented as dependencies—is crucial for semantic analysis. The Stanford typed dependencies (SD) format has emerged as a gold standard for many applications. However, obtaining these parses efficiently presents a significant challenge. Historically, two main approaches have been used:
- Constituent-based parsing (c-parsing): This involves building a full phrase-structure tree and then converting it to dependencies using expert rules. While accurate, this method is computationally expensive.
- Dependency-based parsing (d-parsing): This approach directly predicts dependencies between words. It is significantly faster but has historically lagged in accuracy when dealing with the complex SD format.
This paper revisits the speed-accuracy tradeoff to determine if modern algorithms and enhanced features have made direct d-parsing a competitive alternative to traditional c-parsing pipelines.
Methodology
The researchers conducted an extensive empirical comparison, evaluating four c-parsers (including the Stanford RNN and Charniak-Johnson parsers) against eight d-parsers (such as MaltParser and TurboParser). Beyond standard evaluations, the study explored three novel techniques to enhance d-parsing performance:
- Stacking: A two-stage process where the output of a first parser (using a simpler dependency scheme like Yamada-Matsumoto) is used as a feature for a second SD parser.
- Distributional Representations: Augmenting d-parsers with Brown clusters to improve the model's understanding of rare words through word behavior in large corpora.
- POS Analysis: Isolating the impact of Part-of-Speech (POS) tagging to determine how much of the accuracy gap stems from incorrect word category assignments.
The study utilized the standard Penn Treebank (PTB), with sections 02–21 for training, 22 for development, and 23 for testing. Trees were converted into both "BASIC" and "CCPROCESSED" Stanford Dependencies using version 3.3.0 of the Stanford CoreNLP tools.
Key Results and Discussion
The empirical results reveal a dramatic shift in the Pareto frontier of speed and accuracy. While the Charniak-Johnson (c-parsing) method remains the most accurate (94.38% UAS), the gap between the best c-parsers and d-parsers has shrunk from ~7% in 2010 to approximately 2%.
As illustrated in Figure 1, d-parsers like TurboParser now offer a compelling middle ground. The Full TurboParser achieves a 92.20% UAS, while the Basic TurboParser performs similarly to the standard Stanford PCFG pipeline but operates nearly 20 times faster.
Detailed metrics in Table 1 highlight several critical insights:
- The POS Bottleneck: A significant portion of the performance gap disappears when d-parsers are provided with "gold-standard" POS tags, suggesting that improving taggers is essential for better dependency parsing.
- Stacking Benefits: Utilizing simpler Yamada-Matsumoto dependencies as a hint for the Stanford representation provides a 1.5% accuracy boost.
- Neural Parity: TurboParser augmented with Brown clusters matches the performance of the Stanford RNN parser (90.31% vs 90.16% LAS) while running three times faster.
Conclusion
Direct dependency parsing has become a significantly more viable solution for obtaining Stanford Dependencies than in the past. While the highest accuracy still requires slower phrase-structure approaches, the efficiency gains of modern d-parsers like TurboParser make them ideal for high-throughput NLP applications. Future research should focus on targeted POS representations and joint inference models to further bridge the remaining accuracy gap.
Summary updated