Abstract
A number of differences have emerged between modern and classic approaches to constituency parsing in recent years, with structural components like grammars and feature-rich lexicons becoming less central while recurrent neural network representations rise in popularity. The goal of this work is to analyze the extent to which information provided directly by the model structure in classical systems is still being captured by neural methods. To this end, we propose a high-performance neural model (92.08 F1 on PTB) that is representative of recent work and perform a series of investigative experiments. We find that our model implicitly learns to encode much of the same information that was explicitly provided by grammars and lexicons in the past, indicating that this scaffolding can largely be subsumed by powerful general-purpose neural machinery.
Introduction
In the "classic" era of Natural Language Processing (NLP), constituency parsing—the task of breaking a sentence into its nested syntactic components like Noun Phrases and Verb Phrases—relied heavily on explicit scaffolding. This included context-free grammars (CFGs), hand-crafted lexical features, and externally predicted part-of-speech tags.
Modern neural parsers have largely stripped away this scaffolding, using "black box" architectures like LSTMs to achieve superior results. This analysis investigates how these simpler neural models compensate for the removal of explicit linguistic structures: are they finding a different way to parse, or are they learning the old rules on their own?
Model Architecture
To analyze these behaviors, we utilize a high-performance parser representative of modern discriminative models. Its key components include:
- Word Representations: A mixture of traditional word embeddings and a character-level BiLSTM to capture internal word structure.
- Span Representations: The model represents every possible "span" (group of words) in a sentence by calculating the difference between the BiLSTM hidden states at the span's boundaries.
- Label Scoring: A simple multi-layer perceptron (MLP) scores each span independently.
- Inference: A CKY-style algorithm is used to find the highest-scoring valid tree.
Investigative Experiments
We performed a series of "surgical" experiments to probe the internal representations of the model and determine what linguistic information it captures implicitly.
Implicit Grammar and Tree Structure
Classical parsers use grammars to define parent-child relationships. We found that we could predict the label of a span's parent with 92.3% accuracy just by looking at the child span's representation. This explains why explicit grammar rules are no longer necessary; the LSTM already "knows" the hierarchical context. Furthermore, even when the model was allowed to make independent span decisions without any tree-structure constraints, it still produced valid trees 94.5% of the time.
Lexical Feature Recovery
Character-level representations were found to recover classic hand-coded features (such as capitalization or specific suffixes) with over 99.7% accuracy. This suggests that character-level LSTMs act as automated feature factories, rendering manual engineering obsolete.
Context Sensitivity and the "Heavy Tail"
We analyzed how much distant words influence local parsing decisions. While the words closest to a span are the most important, there is a "heavy tail" of influence where words more than 40 positions away still significantly impact the representation of a span.
As shown in the figure above, performance improves as the context window increases. Interestingly, shuffling the words within a fixed context window (retaining word identity but losing order) yields higher performance than truncating the window to that same size. This indicates that while word identity provides significant information, the specific sequence order is crucial for achieving peak F1 scores.
Key Results
The proposed parser achieved a 92.08 F1 score on the Penn Treebank (PTB), a state-of-the-art result for discriminative models at the time of publication. Ablation studies showed that replacing the sentence-level LSTM with a standard feedforward network caused performance to drop significantly (from ~90 F1 to ~83 F1), suggesting that the LSTM's specific method of summarizing sequences is vital for the parsing task.
Conclusion
This analysis demonstrates that modern neural constituency parsers do not ignore classical linguistic structures; rather, they subsume them. The powerful general-purpose machinery of BiLSTMs implicitly learns to represent grammars, lexicons, and hierarchical constraints. These findings suggest that future research can continue to move toward minimal architectures, potentially leveraging these learned representations for low-resource languages where explicit linguistic scaffolding is unavailable.
Summary updated