In-Order Chart-Based Constituent Parsing

Yang Wei, Yuanbin Wu, Man LanarXiv 2021

Abstract

We propose a novel in-order chart-based model for constituent parsing. Compared with previous CKY-style and top-down models, our model gains advantages from in-order traversal of a tree (rich features, lookahead information and high efficiency) and makes a better use of structural knowledge by encoding the history of decisions. Experiments on the Penn Treebank show that our model outperforms previous chart-based models and achieves competitive performance compared with other discriminative single models.

Introduction

Constituent parsing is a fundamental task in natural language processing that involves decomposing a sentence into its hierarchical syntactic structure. Historically, researchers have faced a significant trade-off between accuracy and computational efficiency.

On one hand, CKY-style decoders utilize bottom-up dynamic programming to find an optimal tree. While accurate, they are computationally expensive, typically scaling at $O(n^3)$. On the other hand, top-down decoders offer much higher speeds ($O(n^2)$) by making greedy decisions. However, these models are often "blind" to the internal structure of sub-spans when making high-level splitting decisions, as they haven't yet processed the constituent parts of those spans.

This paper introduces an in-order chart-based decoder designed to bridge this gap, combining the structural awareness of bottom-up methods with the efficiency of top-down parsing.

The In-Order Traversal Strategy

The core innovation of this work is the shift from top-down (Parent $\rightarrow$ Left $\rightarrow$ Right) to in-order traversal (Left $\rightarrow$ Parent $\rightarrow$ Right). In this paradigm, the parser first visits the leftmost child of a phrase before predicting the label and the right boundary of the parent constituent.

Execution of the in-order parsing algorithm and the resulting constituent tree.

As illustrated in the figure above, this sequence provides the model with crucial "lookahead" information. For example, after processing the word "loves," the model can more accurately predict that the parent is a Verb Phrase (VP) because it has already seen the verbal head. This contrasts with top-down models that must guess the phrase type before examining its contents.

Encoding Decision History

To further enhance the model's structural knowledge, the authors treat parsing as a sequential decision task. They implement a Chain-LSTM to track the history of all previous labels and boundaries predicted. This "memory" allows the model to maintain global context throughout the parsing process.

Interestingly, the researchers found that a simple linear Chain-LSTM, which records every decision in chronological order, outperformed more complex tree-structured Stack-LSTMs. This suggests that the global sequence of actions provides a more useful context for resolving local ambiguities than the hierarchical structure alone.

Experimental Results

The model was evaluated on the standard Penn Treebank (PTB) benchmark. The results demonstrate that the in-order parser successfully captures the benefits of both bottom-up and top-down approaches.

Performance comparison of the in-order parser against CKY and top-down baselines.

As shown in the table, the in-order parser achieved a state-of-the-art F1 score of 92.03, surpassing both the CKY-style (91.79) and Top-down (91.77) baselines. In terms of efficiency, the model processed 17.38 sentences per second. While slightly slower than the greedy top-down parser, it is over three times faster than the CKY-style decoder, representing a superior balance of speed and precision.

Conclusion

By adopting an in-order traversal strategy and leveraging a sequential history of decisions, the proposed chart-based parser overcomes the "blindness" of top-down models without incurring the heavy computational costs of CKY-style dynamic programming. The competitive results on the Penn Treebank highlight the power of in-order lookahead and explicit boundary prediction in modern constituent parsing.

Summary updated

BibTeX
@misc{wei2021order,
  author = {Yang Wei and Yuanbin Wu and Man Lan},
  title = {{In-Order Chart-Based Constituent Parsing}},
  year = {2021},
  eprint = {2102.04065},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2102.04065},
}
Figure