Introduction
Constituent parsing, the task of identifying nested syntactic structures in sentences, has traditionally been computationally intensive. While chart-based parsers offer high accuracy, they typically scale at $O(n^3)$ relative to sentence length, and transition-based parsers, though faster at $O(n)$, require complex state management. This paper proposes a paradigm shift: treating constituent parsing as a simple sequence labeling problem. By "flattening" hierarchical trees into a sequence of labels, the authors leverage fast BiLSTM architectures to achieve unprecedented parsing speeds while maintaining competitive accuracy.
Methodology: Tree Linearization
The core contribution is a linearization function $\Phi$ that maps a constituent tree $T$ to a sequence of labels. For a sentence of length $n$, the model predicts $n-1$ labels. Each label $l_i$ associated with word $w_i$ is a tuple $(n_i, c_i)$:
- Structural element ($n_i$): This encodes the number of common ancestors between word $w_i$ and the next word $w_{i+1}$. The authors introduce a relative scale encoding, which records the difference in the number of ancestors compared to the previous word. This significantly reduces the label space, facilitating model learning.
- Label element ($c_i$): This represents the non-terminal symbol (e.g., NP, VP) of the Lowest Common Ancestor (LCA) between $w_i$ and $w_{i+1}$.
To handle real-world data, unary branches are collapsed into single nodes. The model utilizes a standard BiLSTM architecture (specifically the NCRFpp framework), allowing for massive parallelism on GPUs.
Key Insights: Parsing as Tagging
The fundamental insight is that hierarchical complexity can be captured by examining the "seams" between adjacent words. Knowing the depth of the common ancestor for every adjacent pair allows for full tree reconstruction. The authors mathematically prove that this encoding is injective for trees without unary branches.
The transition from absolute to relative encoding is crucial. By predicting changes in depth rather than absolute values, the model deals with a much smaller and more manageable set of output tags. Furthermore, because sequence labeling does not require a stack or complex state transitions, it is "embarrassingly parallel," leading to dramatic speedups.
Experimental Results
The approach was evaluated on the Penn Treebank (PTB) and the Chinese Penn Treebank (CTB).
- Accuracy: The model achieved a 90.7% F-score on the PTB test set, outperforming previous sequence-to-sequence approaches and remaining competitive with state-of-the-art parsers.
- Speed: The model demonstrated exceptional throughput, reaching up to 957 sentences per second on a GPU. On a CPU, it maintained speeds of 100–200 sentences per second, vastly outperforming traditional chart-based parsers which often operate at sub-10 sentences per second.
Discussion and Limitations
While highly efficient, the method has some limitations. The encoding of unary branches via collapsing is a heuristic that could be improved. Additionally, the model can occasionally produce label sequences that do not correspond to valid trees; simple post-processing heuristics are currently used to resolve these conflicts. Future work may involve more constrained decoding or integrating large-scale pre-trained embeddings to further close the accuracy gap with the most complex parsers.
Summary updated