Skip to main content
QUICK REVIEW

[Paper Review] Bottom-Up Constituency Parsing and Nested Named Entity Recognition with Pointer Networks

Songlin Yang, Kewei Tu|arXiv (Cornell University)|Oct 11, 2021
Topic ModelingComputer Science12 citations
TL;DR

This paper proposes a novel bottom-up constituency parsing and nested named entity recognition (NER) framework using a pointer network with a post-order traversal mechanism. By tracking shared boundaries between consecutively generated spans, the model efficiently constructs valid n-ary trees in linear time, achieving state-of-the-art F1 score of 96.01 on the PTB dataset among BERT-based models and strong performance on nested NER benchmarks.

ABSTRACT

Constituency parsing and nested named entity recognition (NER) are similar tasks since they both aim to predict a collection of nested and non-crossing spans. In this work, we cast nested NER to constituency parsing and propose a novel pointing mechanism for bottom-up parsing to tackle both tasks. The key idea is based on the observation that if we traverse a constituency tree in post-order, i.e., visiting a parent after its children, then two consecutively visited spans would share a boundary. Our model tracks the shared boundaries and predicts the next boundary at each step by leveraging a pointer network. As a result, it needs only linear steps to parse and thus is efficient. It also maintains a parsing configuration for structural consistency, i.e., always outputting valid trees. Experimentally, our model achieves the state-of-the-art performance on PTB among all BERT-based models (96.01 F1 score) and competitive performance on CTB7 in constituency parsing; and it also achieves strong performance on three benchmark datasets of nested NER: ACE2004, ACE2005, and GENIA. Our code is publicly available at \url{https://github.com/sustcsonglin/pointer-net-for-nested}.

Motivation & Objective

  • To address the limitations of existing top-down parsing methods, such as error propagation and inability to leverage subtree features, by proposing a bottom-up parsing approach.
  • To enable efficient, linear-time parsing of non-binary constituency trees without binarization.
  • To unify constituency parsing and nested NER under a common framework by exploiting their shared structural property of nested, non-crossing spans.
  • To improve performance on nested NER by leveraging rich subtree representations through a structured decoder.
  • To maintain structural consistency during decoding by tracking shared boundaries via a cursor mechanism.

Proposed method

  • The model uses a sequence-to-sequence framework with a pointer network decoder to generate spans in post-order traversal, ensuring that consecutive spans share a boundary.
  • A cursor tracks the right boundary of the most recently generated span and guides the prediction of the next boundary via the pointer network.
  • The decoder leverages hidden states from previously generated child spans, enabling the model to utilize rich subtree features for predicting longer parent spans.
  • The parsing process is inherently consistent, as each new span is built on a valid boundary, ensuring only valid trees are produced.
  • The model is trained end-to-end with a cross-entropy loss over the predicted boundary positions, and greedy decoding is used for inference.
  • The same architecture is applied to nested NER by treating named entities as spans in a constituency tree, with a root node spanning the entire sentence to unify fragments into a single tree.

Experimental results

Research questions

  • RQ1Can a bottom-up parsing approach with a pointer network achieve better performance and efficiency than existing top-down methods in constituency parsing?
  • RQ2Can the proposed boundary-tracking mechanism enable linear-time parsing of non-binary trees without binarization?
  • RQ3Can the same model architecture effectively handle nested NER by treating it as a variant of constituency parsing?
  • RQ4Does leveraging subtree features through a structured decoder reduce error propagation and improve long-span prediction?
  • RQ5Can the model maintain structural consistency while achieving competitive performance on both constituency parsing and nested NER tasks?

Key findings

  • The model achieves a state-of-the-art F1 score of 96.01 on the Penn Treebank (PTB) among all BERT-based models, outperforming prior methods.
  • The model achieves competitive performance on the CTB7 constituency parsing benchmark, demonstrating strong generalization across treebanks.
  • On nested NER, the model achieves strong results on three standard benchmarks: ACE2004, ACE2005, and GENIA, indicating its effectiveness across diverse domains.
  • The model parses sentences in linear time, significantly reducing inference complexity compared to chart-based or recursive top-down approaches.
  • The use of post-order traversal and boundary tracking enables direct modeling of n-ary trees, eliminating the need for binarization and preserving the original tree structure.
  • The model outperforms the prior state-of-the-art method by Fu et al. (2021) in both performance and time complexity, with a lower O(n^3) parsing complexity compared to their O(n^4) approach.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.