A Minimal Span-Based Neural Constituency Parser

Mitchell Stern, Jacob Andreas, Dan Klein

Abstract

In this work, we present a minimal neural model for constituency parsing based on independent scoring of labels and spans. We show that this model is not only compatible with classical dynamic programming techniques, but also admits a novel greedy top-down inference algorithm based on recursive partitioning of the input. We demonstrate empirically that both prediction schemes are competitive with recent work, and when combined with basic extensions to the scoring model are capable of achieving state-of-the-art single-model performance on the Penn Treebank (91.79 F1) and strong performance on the French Treebank (82.23 F1).

Introduction

Constituency parsing—the task of identifying the nested phrase structure of a sentence—has traditionally been dominated by two approaches: transition-based and chart-based models. Transition-based models treat parsing as a sequence of actions, making them fast but difficult to train for anything other than greedy decoding. Chart-based models use dynamic programming to find the globally optimal tree but often require complex "scaffolding," such as pre-defined context-free grammars or pruning steps.

This paper introduces a "minimal" neural constituency parser that challenges the necessity of these complex systems. By leveraging high-capacity neural representations (BiLSTMs) to score spans and labels independently, the authors demonstrate that state-of-the-art performance can be achieved with a remarkably simple architecture. Notably, they find that a simple, greedy top-down inference algorithm performs as well as globally optimal chart parsing while offering significant speed advantages.

Model Architecture

The core of the proposed model is the independent scoring of labels and spans. The model represents every possible span $(i, j)$ in a sentence using a Bidirectional LSTM (BiLSTM).

Span Representation

Given a sentence of $n$ words, the BiLSTM produces a sequence of hidden states $h_0, \dots, h_n$. A span $(i, j)$ is represented by concatenating the differences between the hidden states at its boundaries. This representation captures the context both inside and outside the span without explicitly modeling the internal structure of the phrase.

Independent Scorers

The model employs two independent feedforward neural networks (MLPs):

  1. Label Scorer: Assigns a score to each possible label (e.g., NP, VP, S) for a given span.
  2. Span Scorer: Assigns a score to the "existence" of a span, helping the model decide where to split phrases.

By treating unary chains (e.g., an S that contains only a VP) as single atomic labels, the model further simplifies the parsing task and avoids the need for explicit unary rules.

Inference Algorithms

Because the scores for spans and labels are independent, the problem of finding the highest-scoring tree becomes highly efficient. The authors explore two primary methods for inference.

Globally Optimal Chart Parsing

A modified CKY algorithm can be used to find the globally optimal tree in $O(n^3)$ time. Unlike traditional CKY, this version does not require a context-free grammar; it simply explores the space of all possible binarized trees.

Greedy Top-Down Parsing

The authors introduce a novel $O(n^2)$ greedy top-down algorithm. Starting with the full sentence span, the algorithm recursively selects the best split point and the best labels for the resulting subspans.

Execution of the top-down parsing algorithm and the resulting parse tree.

To ensure robust performance, the greedy parser is trained using a dynamic oracle. This approach exposes the model to its own mistakes during training, teaching it to make the best possible decisions even when it has deviated from the gold-standard path.

Experimental Results

The model was evaluated on the Penn Treebank (PTB) for English and the French Treebank.

Performance and Efficiency

On the Penn Treebank, the parser achieved an F1 score of 91.79, setting a new state-of-the-art for single-model parsers at the time. Crucially, the greedy top-down algorithm achieved nearly identical F1 scores to the chart-based version (91.69 vs 91.79) while being significantly faster, processing 75.5 sentences per second compared to 20.3 for the chart-based version.

Cross-Lingual Generalization

The model also performed strongly on the French Treebank (82.23 F1), demonstrating that the span-based approach generalizes well to morphologically rich languages without language-specific tuning.

Discussion and Insights

The success of this minimal model provides several key insights into modern NLP:

  • Neural Representations vs. Structural Scaffolding: Rich BiLSTM representations can effectively replace the explicit grammars and transition systems that were once essential for parsing.
  • The Power of Local Decisions: The parity between greedy and global search suggests that for modern neural models, local span-level information is often sufficient to make globally consistent structural decisions.
  • Independence is Efficient: Scoring labels and spans independently significantly reduces the search space and simplifies the overall architecture without sacrificing accuracy.

While the model relies on external POS tags and shows a slight precision-recall gap, its simplicity and performance establish a new baseline for efficient, high-accuracy constituency parsing.

Summary updated

BibTeX
@inproceedings{stern2017minimal,
  author = {Mitchell Stern and Jacob Andreas and Dan Klein},
  title = {{A Minimal Span-Based Neural Constituency Parser}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2017},
  url = {https://openreview.net/forum?id=H1bEU3luZB},
}
Figure