Abstract
This paper demonstrates that a general-purpose sequence-to-sequence (Seq2seq) model, when augmented with modern natural language generation (NLG) techniques, can match the performance of highly specialized, state-of-the-art constituency parsers. By building a "strong baseline," the authors show that explicit tree-structured architectures aren't strictly necessary for high-accuracy parsing, as Seq2seq models are capable of implicitly learning complex nested linguistic relationships.
Introduction
Constituency parsing—the task of breaking a sentence down into its nested syntactic components (like noun phrases and verb phrases)—is traditionally handled by models with explicit tree-based architectures, such as Recurrent Neural Network Grammars (RNNGs). While Seq2seq models were applied to parsing in 2015, they were quickly relegated to "simple baseline" status because they lack an explicit mechanism to handle nested structures.
The authors argue that the field needs a strong baseline. Without one, it is difficult to determine if a new, complex architecture provides a genuine breakthrough or if its gains could have been achieved by simply applying well-known, generic deep learning improvements to a simpler model.
Methodology
The authors start with a standard RNN-based Seq2seq model with attention and systematically layer on several "task-independent" extensions borrowed from Machine Translation and Summarization:
- Linearization & POS Normalization: Following prior work, they turn trees into sequences of brackets and labels. They also replace specific part-of-speech tags with a generic "XX" tag to simplify the output space.
- Subword Features: They use Byte-Pair Encoding (BPE) to extract subword information, helping the model handle rare or out-of-vocabulary words.
- Unknown Token Bias: They treat the "unknown" token embedding as a learnable bias term to better handle infrequent words.
- Multi-task Learning: The model is trained to simultaneously predict both the "normalized" tree (with XX tags) and the original tree (with full POS tags).
- Output Length Controlling (Masking): To ensure the model always produces a mathematically valid tree, they implement a "mask" during decoding that prevents the model from closing more brackets than it has opened.
- Ensembling & LM Reranking: They combine multiple trained models and use a powerful external Language Model (LM) to rerank the top parsing candidates.
Datasets and Evaluation
The study uses the gold standard for English parsing: the English Penn Treebank (PTB). Specifically, they use the standard splits: Sections 02-21 for training, Section 22 for development, and Section 23 for testing. The authors followed the evaluation settings of Vinyals et al. (2015) strictly to ensure their results were directly comparable to previous Seq2seq attempts.
Key Results and Analysis
The cumulative effect of these techniques was substantial, as shown in the ablation study below. The study successfully closed the ~6-point gap between "simple" Seq2seq models and the state-of-the-art.
- Baseline Seq2seq: ~88.39 F1 score on the PTB test set.
- Final Optimized Model: 94.32 F1 score (achieved with ensembling and reranking).
- Comparison: This result is competitive with specialized models like the original RNNG (93.3 F1) and other complex shift-reduce parsers.
Key Insights
- Implicit Structure Learning: Seq2seq models—which process data as a flat string—can implicitly learn to represent nested hierarchies just as well as models designed specifically for trees.
- The Power of Generic Tricks: Most performance gains came from generic deep learning hygiene: better embeddings, ensembling, and multi-task learning, rather than parsing-specific logic.
- Subword Nuance: Interestingly, while subword features helped, actually splitting the input into subwords (common in NMT) degraded performance. This suggests that for parsing, maintaining a 1-to-1 relationship between input tokens and output tags is beneficial.
Limitations and Future Work
- Initialization Sensitivity: Seq2seq models are sensitive to random initialization. The authors recommend running multiple trials and ensembling for reliable results.
- Computational Cost: While the architecture is "simple," the best results require ensembling eight models and using a heavy LM-reranker, increasing the computational footprint during inference.
- Future Directions: This strong baseline can now be used for granular error analysis to identify which linguistic structures remain difficult for Seq2seq models compared to tree-based models.
Summary updated