Exploiting Dynamic Oracles to Train Projective Dependency Parsers on Non-Projective Trees

Lauriane Aufrant, Guillaume Wisniewski, François YvonNAACL 2018

Abstract

Transition-based dependency parsers are widely used for their efficiency, yet many are limited to producing projective structures. This limitation poses a challenge when training on real-world languages that frequently exhibit non-projective dependencies. This paper introduces a "minimum-cost" strategy for dynamic oracles, allowing projective parsers to effectively learn from non-projective trees by choosing the action that minimizes the loss of gold dependencies. Experimental results across 73 treebanks demonstrate significant accuracy improvements, particularly for languages with flexible word order.

The Projectivity Constraint in Dependency Parsing

Dependency parsing is a fundamental task in natural language processing, aimed at identifying the grammatical relationships between words in a sentence. Transition-based parsers have become a standard choice for this task due to their linear time complexity. However, many of these systems are inherently restricted to producing projective trees—structures where dependency arcs do not cross when drawn above the sentence.

While projectivity is a common feature of many languages, it is far from universal. Real-world language often contains non-projective dependencies, where arcs cross due to flexible word order or long-distance dependencies.

Figure 1: A non-projective dependency tree for the sentence "What do I need to do?", where the arc from 'do' to 'What' crosses other dependencies.

The Dilemma of Non-Projective Data

When training a projective parser on a dataset containing non-projective trees, researchers traditionally face two suboptimal choices:

  1. Data Filtering: Discarding all sentences with crossing arcs. This can result in losing 5–10% of the training data, often including the most syntactically complex and informative examples.
  2. Projectivization: Artificially transforming non-projective trees into projective ones through heuristic rewriting. While this preserves the data, it introduces noise and inconsistencies that can confuse the model.

The authors of this paper propose a third way: allowing the parser to learn directly from the original non-projective trees by modifying the training oracle.

Methodology: The Minimum-Cost Strategy

The core of the proposed method lies in the refinement of dynamic oracles. In transition-based parsing, an oracle provides the "gold" action for the parser to take at any given state. A dynamic oracle is particularly robust because it can provide optimal guidance even after the parser has made an error, calculating the best path forward from an imperfect state.

Standard dynamic oracles typically search for zero-cost actions—moves that do not result in the loss of any reachable gold dependencies. However, if the target tree is non-projective, a projective parser will eventually reach a state where every possible action has a cost greater than zero.

The Innovation

The authors introduce a minimum-cost oracle. When the parser encounters a state where the gold tree is no longer reachable (due to inherent non-projectivity), the oracle:

  1. Evaluates the cost (the number of gold arcs that will become unreachable) for every possible transition.
  2. Selects the action with the lowest cost as the reference for training.

This approach treats the "impossible" parts of the tree as sunk costs. Instead of failing or requiring pre-processed data, the parser learns to make the "least wrong" decision, maximizing the number of correct dependencies it can still recover.

Experimental Results

The researchers evaluated the minimum-cost strategy using the Arc-Eager transition system across 73 treebanks from the Universal Dependencies (UD) 2.0 collection. This large-scale evaluation allowed them to analyze performance across languages with varying degrees of non-projectivity.

Figure 5: Performance comparison across different non-projectivity rates and training set sizes. The minimum-cost dynamic oracle consistently improves UAS over static and projective-only baselines.

Key Findings

  • Significant Accuracy Gains: The method yielded substantial improvements in Unlabeled Attachment Score (UAS). For languages with high non-projectivity (>50% of sentences), the gains reached over +2 UAS compared to standard dynamic oracles trained only on projective data. In some configurations, gains reached as high as +6.83 UAS.
  • Superiority over Projectivization: The minimum-cost strategy consistently outperformed both static projectivization and "pseudo-projectivization," which was previously the state-of-the-art for handling non-projective data in projective parsers.
  • Robustness: Unlike projectivization, which can be unstable on small datasets, the minimum-cost approach showed consistent benefits regardless of the treebank size.
  • Synergy with Beam Search: When combined with beam search, the minimum-cost criterion provided an average gain of +0.63 UAS across all 73 treebanks.

Conclusion

The "minimum-cost" modification to dynamic oracles provides a simple, elegant solution to a long-standing problem in dependency parsing. By allowing projective parsers to learn from "impossible" examples, the method demonstrates that the noise of non-projectivity is far less damaging than the loss of data. While the parser remains structurally projective at inference time, its ability to learn from the full breadth of natural language leads to more robust and accurate models.

Summary updated

BibTeX
@inproceedings{aufrant2018exploiting,
  author = {Lauriane Aufrant and Guillaume Wisniewski and François Yvon},
  title = {{Exploiting Dynamic Oracles to Train Projective Dependency Parsers on Non-Projective Trees}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2018},
  doi = {10.18653/v1/n18-2066},
}
Figure