Headed Span-Based Projective Dependency Parsing

Songlin Yang, Kewei Tu

Abstract

This paper introduces a novel framework for projective dependency parsing that treats dependency trees as collections of headed spans. By leveraging a new $O(n^3)$ dynamic programming algorithm and global max-margin training, the authors achieve state-of-the-art results on major benchmarks, including the Penn Treebank (PTB), Chinese Treebank (CTB), and Universal Dependencies (UD). This approach captures significantly more subtree context than traditional first-order parsers, effectively bridging the gap between dependency and constituency parsing methodologies.

Introduction

Dependency parsing—the task of identifying grammatical relationships between words—has traditionally been dominated by two paradigms: graph-based and transition-based methods. Graph-based methods, such as the popular Biaffine parser, excel at global optimization but are often "arc-factored," scoring relationships between word pairs independently. This independence assumption ignores the broader context of the subtrees being formed. Conversely, transition-based methods can observe partially built subtrees but are prone to "error propagation," where a single early mistake can degrade the entire parse.

This research addresses this gap by proposing a method to incorporate rich subtree information while maintaining the global optimization and $O(n^3)$ efficiency required for high-performance parsing.

Methodology

The Headed Span Concept

The core innovation of this work is the Headed Span. In a projective dependency tree (where arcs do not cross), the largest subtree rooted at any word covers a contiguous range of words—a span. A headed span is defined as this range $(i, j)$ paired with its root word $k$.

Figure 1: Visualization of a dependency tree represented as a collection of headed spans for the sentence "An inventory of syntactic function is taken to be primitive".

Parsing Algorithm

The authors propose a dynamic programming algorithm inspired by the CYK and Eisner algorithms. The parsing process is governed by three primary deduction rules:

  • S-CONC: Concatenates two adjacent child spans.
  • C-CONC: Combines a head word with its left and right child spans to form a complete headed span.
  • HEADLESS: Converts a headed span into a "headless" span, allowing it to serve as a child of another word.
Figure 5: The core deduction rules (S-CONC, C-CONC, and HEADLESS) used in the dynamic programming algorithm.

This structure enables the model to score entire subtrees holistically, rather than relying on isolated arc scores. This allows the model to judge if a word is an appropriate head for a specific cluster of words.

Neural Architecture and Training

The model utilizes BERT embeddings followed by a 3-layer BiLSTM to generate "fencepost" representations of spans. Deep biaffine functions are then employed to assign scores to headed spans and dependency labels. While local span-selection loss was evaluated, the authors found that a global max-margin loss (Structured SVM) yielded superior results by encouraging the identification of the globally optimal tree structure.

Evaluation

The model was evaluated on several standard benchmarks:

  • Penn Treebank (PTB) 3.0: The gold standard for English parsing.
  • Chinese Treebank (CTB) 5.1: Used to evaluate performance on morphologically different languages.
  • Universal Dependencies (UD) 2.2: A test of multilingual robustness across 12 diverse languages.

Key Results

  • State-of-the-Art Performance: The model achieved 95.73 LAS (Labeled Attachment Score) on PTB and 92.30 LAS on CTB, matching or exceeding high-order and transition-based models.
  • Handling Complexity: Error analysis revealed that the headed-span approach significantly outperforms standard biaffine parsers on long sentences (30+ words) and long-range dependencies, demonstrating a superior ability to predict large, complex subtrees.
  • Efficiency: Despite the complexity of span-based scoring, the $O(n^3)$ algorithm remains highly efficient, parsing 273 sentences per second on a single GPU.

Discussion and Conclusion

The realization that projective dependency trees can be decomposed into spans bridges the gap between two historically distinct parsing styles. By considering headed spans $(i, j, k)$, the model inherently evaluates the suitability of a head for a cluster of words, rather than a single child.

Limitations and Future Work

The current algorithm is restricted to projective trees. While pseudo-projective transformations are used for UD datasets, the model cannot natively represent crossing dependencies. Additionally, the current implementation uses a two-stage process—predicting structure then labels; integrating these into a single step could further enhance accuracy. Future work may explore unified models for both dependency and constituency parsing using this span-based perspective.

Summary updated

BibTeX
@inproceedings{yang2022headed,
  author = {Songlin Yang and Kewei Tu},
  title = {{Headed Span-Based Projective Dependency Parsing}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  url = {https://openreview.net/forum?id=o5XbjX0EjIX},
}
Figure