Combining (second-order) graph-based and headed span-based projective dependency parsing

Songlin Yang, Kewei Tu

Abstract

Dependency parsing has traditionally relied on either graph-based methods, which score individual dependency arcs, or span-based methods, which score entire subtrees. This paper introduces a novel approach that combines these two paradigms. To maintain computational efficiency, the authors adapt a head-splitting technique that reduces parsing complexity from $O(n^4)$ to $O(n^3)$ without compromising accuracy. Evaluation across multiple languages and benchmarks shows that the combined model leverages the strengths of both paradigms, particularly across varying sentence lengths.

Introduction

In dependency parsing, the objective is to determine the grammatical structure of a sentence by identifying "head" words and their "dependents." Graph-based methods typically focus on scoring individual arcs (e.g., word A is the head of word B). Recently, headed-span-based methods have emerged, scoring entire subtrees to capture broader contextual information. While span-based methods often outperform first-order graph-based models, they neglect explicit arc scores. This research aims to fuse these strengths into a single, efficient model.

Methodology

The authors propose a joint scoring model utilizing BERT embeddings and BiLSTMs processed through deep biaffine and triaffine classifiers. A significant challenge in combining arc and span scores is the resulting $O(n^4)$ parsing complexity. To address this, the authors implement a "head-splitting" trick, decomposing the score of a headed span into independent left and right boundary terms. This allows the use of a modified Eisner algorithm to achieve $O(n^3)$ complexity.

Illustration of a dependency tree and its corresponding headed spans.

The study explores three algorithmic variations using the parsing-as-deduction framework:

  1. $O(n^4)$ Modified Eisner-Satta: A direct combination of first-order graph and span-based parsing.
  2. $O(n^3)$ Modified Eisner (Head-Splitting): An optimized version using the head-splitting trick to parse in cubic time.
  3. $O(n^3)$ Second-Order Eisner: An extension incorporating second-order graph features, such as adjacent siblings, which would otherwise require $O(n^7)$ complexity without head-splitting.

Results and Analysis

The models were evaluated on the Penn Treebank (PTB) 3.0, Chinese Treebank (CTB) 5.1, and Universal Dependencies (UD) 2.2. The combined $O(n^3)$ model (1O+Span+Headsplit) achieved state-of-the-art results, including a 95.77 LAS on PTB and 92.42 LAS on CTB, outperforming standalone baselines.

Performance comparison (UAS and F1) across sentence length, distance to root, dependency length, and span length.

Key insights from the analysis include:

  • Complementary Strengths: Error analysis reveals that graph-based methods perform better on shorter sentences, while span-based methods excel on longer ones. The hybrid model bridges this gap, maintaining high performance across all sentence lengths.
  • Efficiency of Head-Splitting: Despite the independence assumption required for head-splitting, the $O(n^3)$ model performs nearly identically to the $O(n^4)$ version (e.g., 91.99 vs 91.99 on UD). Modern neural encoders like BERT likely handle the structural dependencies implicitly.
  • Redundancy in Higher-Order Features: Adding second-order graph features provided minimal gains, suggesting that the structural information captured by siblings and headed spans is largely overlapping.

Conclusion

This work demonstrates that combining graph-based and span-based scoring significantly improves dependency parsing accuracy. By utilizing the head-splitting trick, these gains are achieved without the prohibitive computational cost of $O(n^4)$ algorithms. Future research may benefit from identifying more orthogonal structural features to further push the boundaries of parsing performance.

Summary updated

BibTeX
@inproceedings{yang2022combining,
  author = {Songlin Yang and Kewei Tu},
  title = {{Combining (second-order) graph-based and headed span-based projective dependency parsing}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=YoAr12ZaBJc},
}
Figure