Efficient Constituency Parsing by Pointing

Thanh-Tung Nguyen, Xuan-Phi Nguyen, Shafiq R. Joty, Xiaoli Li

Introduction

Constituency parsing—the process of breaking a sentence into its nested sub-phrases like Noun Phrases (NP) or Verb Phrases (VP)—is a fundamental task in Natural Language Processing. Historically, researchers have faced a significant trade-off between two main paradigms. Transition-based parsers offer high speed but rely on local, greedy decisions that can lead to "exposure bias," where early errors cascade. Conversely, chart-based parsers provide global structural consistency but are computationally expensive, typically requiring $O(n^3)$ time complexity due to the Cocke-Kasami-Younger (CKY) algorithm.

This paper introduces a novel "middle way": a model that maintains the structural consistency of span-based methods while operating with the efficiency of a top-down, greedy approach by reframing the problem as a series of "pointing" tasks.

Methods: Parsing as Pointing

The core innovation of this work is the Pointing Mechanism. Instead of scoring every possible span in a chart, the model learns a pointing representation where every word at index $i$ predicts a target index $p_i$. This pair $(i, p_i)$ represents the largest constituent span that either starts or ends at $i$. By defining the pointing target as the largest span boundary, the model inherently enforces a valid tree structure.

Execution of the pointing parsing algorithm alongside the resulting output parse tree for the sentence "She enjoys playing tennis."

Architecture and Decoding

The system utilizes a standard neural encoder (such as a Transformer or Bi-LSTM) to generate word representations. These are processed by four separate Feed-Forward Networks (FFNs) to score general pointing, singleton pointing, general labeling, and unary labeling.

During inference, the parser employs Top-Down Decoding. Starting with the full sentence, it recursively identifies the optimal "split point" $k$ by maximizing pointing scores. This results in a best-case complexity of $O(n \log n)$ and a worst-case of $O(n^2)$, significantly bypassing the $O(n^3)$ bottleneck of traditional chart parsers. Training is simplified using cross-entropy loss over pointing and labeling decisions, making the process highly parallelizable.

Key Results

The model was evaluated on the English Penn Treebank (PTB) and the SPMRL multilingual datasets. The pointing approach demonstrated that global search via CKY is not strictly necessary for high accuracy when guided by global pointing properties.

Comparison of Top-Down Inference models on the Penn Treebank, showing the competitive F1 score of the pointing-based model.
  • Accuracy: Without pre-training, the model achieved a 92.78 F1 score on the PTB, outperforming existing top-down methods. When integrated with BERT, performance reached 95.48 F1, competitive with the absolute state-of-the-art.
  • Speed: The model is exceptionally efficient, processing 130.2 sentences per second, notably faster than popular alternatives like the Kitaev & Klein (2018) parser (94.4 sentences/sec).
  • Multilingual Performance: The approach established new state-of-the-art results for Basque and Swedish in the SPMRL shared tasks.

Conclusion and Future Work

By reframing constituency parsing as a pointing task, the authors achieve state-of-the-art performance with significantly improved inference speeds. While the current top-down decoding is greedy—meaning mistakes at the top level cannot be undone—the results suggest that the directional contextual information captured by pointing is highly effective. Future work may involve integrating dependency information directly into the pointing mechanism to further refine structural predictions.

Summary updated

BibTeX
@inproceedings{nguyen2020efficient,
  author = {Thanh-Tung Nguyen and Xuan-Phi Nguyen and Shafiq R. Joty and Xiaoli Li},
  title = {{Efficient Constituency Parsing by Pointing}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.acl-main.301},
}
Figure