NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improving Coverage and Runtime Complexity for Exact Inference in Non-Projective Transition-Based Dependency Parsers

Tianze Shi, Carlos Gómez-Rodríguez, Lillian Lee

Introduction

Dependency parsing is a fundamental task in natural language processing that involves identifying grammatical relationships between words. While "projective" sentences—where dependency links do not cross—are relatively straightforward to parse, "non-projective" structures present a significant challenge. Non-projective links are common in many languages, yet transition-based parsers often rely on greedy heuristics that sacrifice accuracy for speed.

This paper addresses the problem of performing exact inference on non-projective transition systems. Specifically, it focuses on the Attardi parser, which previously required $O(n^7)$ time for exact inference. The authors propose a new family of parsers that improve linguistic coverage while, in some cases, reducing computational complexity.

Methods: I-computations and Strategic Pruning

The authors utilize the I-computations framework, which allows sequences of parsing actions to be grouped into equivalence classes for dynamic programming. To enhance the system, they expanded the set of "reduce" transitions and applied the "hook trick"—an optimization technique from context-free grammar parsing—to manage complexity.

A sequence of transitions illustrating the reduction process within the proposed framework.

A key contribution is the identification of nine possible reduce transitions. By strategically pruning transitions that reduce the third item on the stack ($s_2$), the authors developed the ALL$s_0s_1$ variant. This pruning simplifies the state representation in the dynamic programming table, effectively reducing the time complexity by a factor of $n$.

Datasets and Evaluation

The systems were evaluated using the Universal Dependencies (UD) 2.1 dataset, specifically focusing on 76,084 non-projective sentences across 54 languages. The primary metric is Coverage: the theoretical percentage of non-projective sentences that a transition system can correctly represent.

Key Results and Insights

The research demonstrates that it is possible to achieve higher coverage without necessarily increasing complexity. Notably, the authors found a "free" degree-3 transition system that maintains $O(n^7)$ complexity, contrary to the previous assumption that it would require $O(n^{10})$.

Comparison of the original Attardi system and the three proposed variants, highlighting improvements in coverage and complexity.

The ALL variant achieved the highest coverage at 95.99%. Meanwhile, the ALL$s_0s_1$ variant proved to be a highly efficient alternative, offering 93.16% coverage (surpassing the baseline's 87.24%) with a reduced complexity of $O(n^6)$.

Conclusion

This work provides a systematic generalization of transition-based parsing logic. While $O(n^6)$ remains computationally intensive for real-time applications, the theoretical framework established here paves the way for more efficient exact inference models. Future work may explore applying these techniques to even more complex generalized systems to further push the boundaries of non-projective parsing.

Summary updated

BibTeX
@inproceedings{shi2018improving,
  author = {Tianze Shi and Carlos Gómez-Rodríguez and Lillian Lee},
  title = {{Improving Coverage and Runtime Complexity for Exact Inference in Non-Projective Transition-Based Dependency Parsers}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2018},
  doi = {10.18653/v1/n18-2067},
}
Figure