Headed-Span-Based Projective Dependency Parsing

Songlin Yang, Kewei Tu

Abstract

Dependency parsing, the task of mapping grammatical relationships between words, is a cornerstone of natural language processing. Traditional methods often struggle to balance global optimization with the ability to capture rich subtree information. This paper presents a novel framework that treats dependency trees as a collection of "headed spans." By adapting logic from constituency parsing into a new $O(n^3)$ dynamic programming algorithm, this approach achieves state-of-the-art accuracy on multiple benchmarks, particularly excelling in long-distance dependency prediction.

Introduction

Historically, dependency parsing has been dominated by two paradigms: graph-based methods and transition-based methods. Graph-based methods typically score arcs independently, often missing the context of how subtrees function together. Conversely, transition-based methods build trees incrementally but are prone to error propagation due to greedy decision-making.

The authors propose a bridge between these approaches. Their goal is a model capable of evaluating entire subtrees (similar to transition-based models) while maintaining global optimization—finding the mathematically optimal tree for the whole sentence—without sacrificing computational efficiency.

The Headed Span Framework

The core innovation lies in the Headed Span representation. In a projective dependency tree—where relationship arcs do not cross—the largest subtree rooted at any word covers a continuous sequence of words, forming a span. The authors represent a dependency tree as a set of these spans, where every word in the sentence serves as the "head" of exactly one span.

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

Algorithmic Innovation

To process these spans efficiently, the researchers developed a dynamic programming algorithm with $O(n^3)$ time complexity. This complexity matches the classic Eisner algorithm but extends the scoring capability from individual arcs to entire headed spans. The algorithm utilizes a set of axioms and deduction rules to build the chart, treating dependency parsing with the structural efficiency of constituency parsing.

Formal axioms and deduction rules (S-CONC, C-CONC, HEADLESS) defining the $O(n^3)$ parsing algorithm.

Neural Architecture

The model leverages BERT for initial word embeddings, followed by a BiLSTM layer to capture contextual information. A biaffine scoring function is then employed to calculate the likelihood of specific headed spans. For training, the authors use a max-margin loss (structured SVM), encouraging the model to maximize the score difference between the correct tree and the best-scoring incorrect alternative.

Evaluation and Results

The model was evaluated on several standard benchmarks, including PTB 3.0 (English), CTB 5.1 (Chinese), and UD v2.2 (covering 12 languages).

Performance Metrics

The headed-span approach achieved state-of-the-art results, with a Labeled Attachment Score (LAS) of 95.73% on PTB and 92.30% on CTB. Notably, the model demonstrated superior performance in predicting long-range dependencies (arcs spanning 7+ words) and long spans (30+ words) compared to traditional arc-based models.

Efficiency

Despite the complexity of global span optimization, the model remains highly practical. It achieves a parsing speed of approximately 273 sentences per second on a single Titan RTX GPU, maintaining the $O(n^3)$ efficiency required for large-scale applications.

Conclusion

By treating dependency parsing as a form of constituency parsing through headed spans, this research provides a new perspective on grammatical structure mapping. While currently limited to projective trees, the model's success in capturing subtree context and long-distance relationships marks a significant advancement. Future work will focus on extending this span-centric logic to non-projective parsing, potentially offering a new foundation for algorithmic improvements in the field.

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