Shift-Reduce Constituency Parsing with Dynamic Programming and POS Tag Lattice

Haitao Mi, Liang HuangNAACL 2015

TL;DR

This paper introduces the first dynamic programming (DP) algorithm for shift-reduce constituency parsing, significantly improving accuracy by exploring a more complete search space. It also tackles the issue of Part-of-Speech (POS) tagging errors by incorporating POS tag lattices, leading to state-of-the-art results on English and Chinese treebanks.

What Problem Does This Paper Address?

Constituency parsing aims to determine the syntactic structure of a sentence by breaking it down into phrases. Traditional shift-reduce parsers often rely on greedy or beam search strategies, which can only explore a tiny fraction of the exponentially many possible parse trees. This limitation can lead to suboptimal parses due to error propagation, especially from upstream tasks like POS tagging. While dynamic programming has been successfully applied to dependency parsing to overcome these search space issues, its application to constituency parsing has been hindered by challenges like unary rules and more-than-binary branching. This paper addresses these challenges to enable DP for constituency parsing and improve robustness to POS tagging errors.

Methods

The core innovation is the development of a dynamic programming (DP) algorithm for shift-reduce constituency parsing. This extends the DP approach of Huang and Sagae (2010) to handle the complexities of context-free grammars, particularly unary rules. To manage these, they propose an "odd-even" shift-reduce system that synchronizes the parsing steps, ensuring a consistent number of operations.

A key contribution is the extension of the parser to accept POS tag lattices instead of single, fixed POS tag sequences. This "tagging sausage lattice" approach allows the parser to consider multiple possible tags for each word, mitigating the impact of potential POS tagging errors. The DP algorithm then operates on this lattice, effectively integrating POS tagging and parsing. The DP approach involves merging equivalent states, organized in a "graph-structured stack" (GSS), to manage the search space efficiently.

Datasets

The authors evaluate their parser on two standard treebanks:

  • Penn English Treebank (PTB): Used with standard splits for training, development, and testing.
  • Chinese Treebank (CTB) 5.1: Used with specific article ranges for training, development, and testing.

They also utilize POS tags generated by a MaxEnt POS tagger, including both 1-best and 20-best lists to simulate the effect of tag lattices.

Key Insights and Ideas

  • DP for Constituency Parsing is Feasible and Beneficial: The paper demonstrates that dynamic programming, previously successful in dependency parsing, can be effectively adapted to constituency parsing, unlocking significant performance gains by exploring a more complete search space.
  • "Odd-Even" System for Synchronization: The proposed odd-even shift-reduce system elegantly handles the complexities of constituency parsing, particularly unary rules, by ensuring a consistent number of steps, simplifying the DP implementation.
  • Tag Lattices as a Robust Input: Incorporating POS tag lattices is a practical and effective way to combat error propagation from POS tagging, a common bottleneck in pipeline parsing systems. This approach offers a good compromise between fully joint models and traditional pipeline methods.
  • State Merging is Crucial for Efficiency: The DP approach relies on merging equivalent states in the graph-structured stack, which is essential for keeping the computational complexity manageable while still exploring a much larger search space than greedy methods.

Key Results

  • State-of-the-Art Performance: The DP parser achieves state-of-the-art results on both English (PTB) and Chinese (CTB) treebanks, outperforming previous empirical linear-time parsers.
  • Significant Accuracy Improvement: The DP parser improves the F1 score by 0.5 points over its non-DP baseline on the English test set.
  • Faster Convergence: The DP parser converges faster and achieves better performance at earlier iterations compared to the non-DP baseline, as shown in learning curves.
  • Tag Lattice Benefits: Using 20-best POS tag lattices provides a noticeable improvement in parsing accuracy, especially for Chinese, demonstrating the effectiveness of the lattice approach. For English, it offers a slight parsing improvement even when tagging accuracy doesn't significantly change.

Limitations and Future Work

  • Comparison to Higher Complexity Parsers: While the DP parser achieves the best results among empirical linear-time parsers, it is noted that it performs slightly worse than Carreras et al. (2008), which runs in a much higher time complexity.
  • Larger K for Tag Lattices: For Chinese parsing, the paper suggests that a larger value of 'k' (number of best POS tag sequences in the lattice) might be needed to fully close the gap with joint tagging and parsing models.
  • Future Work: The authors implicitly suggest further exploration of joint models or more sophisticated lattice integration to potentially achieve even higher accuracies, especially for languages like Chinese where tagging accuracy can be a significant challenge. The paper also lays the groundwork for further research into DP for complex grammar formalisms.

Summary updated

BibTeX
@inproceedings{mi2015shift,
  author = {Haitao Mi and Liang Huang},
  title = {{Shift-Reduce Constituency Parsing with Dynamic Programming and POS Tag Lattice}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2015},
  url = {https://openreview.net/forum?id=Hy-Msmb_ZS},
}
Figure