Abstract
We present algorithms for higher-order dependency parsing that are "third-order" in the sense that they can evaluate substructures containing three dependencies, and "efficient" in the sense that they require only $O(n^4)$ time. Importantly, our new parsers can utilize both sibling-style and grandchild-style interactions. We evaluate our parsers on the Penn Treebank and Prague Dependency Treebank, achieving unlabeled attachment scores of 93.04% and 87.38%, respectively.
Introduction
Dependency parsing is a fundamental task in natural language processing that involves identifying grammatical "head-modifier" relationships within a sentence. To make this task computationally tractable, models typically employ "factorization," breaking the tree into smaller, independent parts. However, a significant trade-off exists: low-order models (looking at single dependencies) are efficient but lack context, while higher-order models are more accurate but often computationally prohibitive.
Koo and Collins introduce a breakthrough in dependency parsing by developing "third-order" algorithms that capture complex structural relationships—like siblings and grandchildren—within a sentence. Despite the increased complexity of these features, the authors maintain a highly efficient $O(n^4)$ time complexity, setting new state-of-the-art accuracy records for English and Czech at the time of publication.
Methods: Grandparent-Index Augmentation
The core innovation of this work is the grandparent-index augmentation technique. Standard parsing algorithms, like the Eisner algorithm, use dynamic programming to build trees from spans of words. The authors augmented these spans with a "grandparent" index—a pointer to a word outside the current span that serves as the head of the span’s head.
The authors introduced three specific models based on the types of interactions they capture:
- Model 0: Factors the tree into "grandchild" parts (Head $\rightarrow$ Modifier $\rightarrow$ Grandchild).
- Model 1: Incorporates "grand-sibling" parts, combining horizontal context (siblings) with vertical context (grandparents).
- Model 2: Further expands to include "tri-siblings" (three modifiers of the same head in a sequence).
By cleverly inverting modifier indices into grandparent indices, the authors kept the time complexity at $O(n^4)$ and space at $O(n^3)$, matching the complexity of the best second-order parsers of the time. To further manage training times, they employed coarse-to-fine pruning, using a simple first-order model to filter unlikely dependencies before applying the third-order model.
Results and Discussion
The models were evaluated on the Penn WSJ Treebank (English) and the Prague Dependency Treebank (Czech). The third-order parsers delivered a significant jump in Unlabeled Attachment Score (UAS):
- English: Achieved 93.04% UAS, outperforming previous second-order models.
- Czech: Achieved 87.38% UAS, a substantial improvement over earlier work.
Ablation studies revealed that Model 1 (grand-siblings) provided the best balance of accuracy and complexity. Interestingly, vertical context (grandchild interactions) was often found to be more informative than additional horizontal context (sibling interactions). The efficiency of the algorithm relies on the structural asymmetry of language: while a head can have many modifiers, each modifier has exactly one head. Exploiting this allowed for the $O(n^4)$ theoretical optimum.
Conclusion
While these algorithms are highly efficient for third-order parsing, they are designed for projective dependency trees. For languages like Czech that feature non-projective structures, data must be "projectivized" for training. Despite the $O(n^4)$ complexity being a significant achievement, it remains slower than linear-time transition-based parsers, necessitating aggressive pruning for very long sentences. Future work may involve extending the factorization "spine" further or integrating deeper semantic information.
Summary updated