Transforming Dependencies into Phrase Structures

Lingpeng Kong, Alexander M. Rush, Noah A. Smith

Abstract

This paper introduces PAD (Phrase-structure from Dependency), a novel algorithm that transforms fast dependency parse trees into rich phrase-structure trees. By treating a dependency parse as a "hard constraint" for a structured prediction model, the authors achieve near state-of-the-art accuracy (90.4% F1 on English) while maintaining a practical runtime that scales linearly with sentence length.

Introduction: Bridging Two Grammatical Worlds

In Natural Language Processing (NLP), syntactic structure is typically represented in one of two ways: dependency parsing or phrase-structure (constituent) parsing. Dependency parsing focuses on binary relations between words, offering high computational efficiency ($O(n^2)$ or $O(n^3)$). In contrast, phrase-structure parsing groups words into nested hierarchical phrases (e.g., Noun Phrases, Verb Phrases), which is often more useful for downstream semantic tasks but significantly slower, sometimes reaching $O(n^5)$ complexity.

Figure 1: Comparison of phrase-structure (top) and dependency (bottom) representations for the sentence 'The automaker sold...'.

The authors of this paper propose that the historical dominance of phrase-structure annotations is not an inherent necessity. They ask: Can we perform fast dependency parsing first and then accurately fill in the phrase-structure details?

The PAD Algorithm: Dependency as a Hard Constraint

The core of the PAD system is a data-driven structured prediction framework. Instead of relying on rigid, hand-written rules for conversion, PAD searches for the highest-scoring phrase-structure tree that is "consistent" with a given input dependency tree.

Constrained CKY Parsing

A phrase-structure tree is considered consistent with a dependency tree if the "head" of every phrase matches the head-child relationship defined by the dependency arcs. By fixing the dependency tree as a hard constraint, the algorithm significantly prunes the search space of a standard CKY parser. This reduces the theoretical complexity from $O(n^5)$ to $O(n^2)$. In practice, because the number of dependents per word is usually small and constant, the algorithm's runtime behaves linearly.

Figure 6: A single dependency tree (top) can correspond to multiple consistent phrase-structure trees (bottom), which the PAD algorithm must score and rank.

Learning and Pruning

The scoring function is learned using a Structural Support Vector Machine (SVM) with AdaGrad. To further optimize performance, the authors implemented pruning methods based on Part-of-Speech (POS) tags and directional head-dependent attachment predictions.

Key Results and Insights

The model was evaluated on the Penn Treebank (PTB) for English and the Penn Chinese Treebank (CTB) 5.1.

  • High Accuracy: PAD achieved 90.4% F1 on English and 82.4% F1 on Chinese, rivaling state-of-the-art supervised parsers.
  • Exceptional Speed: Processing between 34 and 58 sentences per second, PAD is an order of magnitude faster than common baselines like the Stanford PCFG parser (~5 sentences/sec).
  • Data Efficiency: Remarkably, training PAD on just 5% of the PTB (using a pre-trained dependency parser) yielded an F1 score of 89.1%. This suggests that the "heavy lifting" of syntactic information is largely captured by the dependency structure.

Conclusion and Future Directions

PAD demonstrates that dependency structures can serve as a highly effective "coarse" skeleton for generating detailed phrase structures. While the current model relies on a "hard constraint" that cannot recover from initial dependency errors and assumes projectivity, it offers a powerful path toward efficient, high-quality syntactic analysis. Future work may explore "soft" constraints or extensions to non-projective languages.

Summary updated

BibTeX
@inproceedings{kong2015transforming,
  author = {Lingpeng Kong and Alexander M. Rush and Noah A. Smith},
  title = {{Transforming Dependencies into Phrase Structures}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2015},
  doi = {10.3115/v1/n15-1080},
}
Figure