Abstract: Yang Wei, Yuanbin Wu, Man Lan. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics.
2020.
Introduction
Constituent parsing—the task of breaking a sentence down into its nested syntactic parts (like Noun Phrases or Verb Phrases)—traditionally forces a trade-off between accuracy and speed. Globally normalized models are highly accurate because they consider the entire tree structure at once, but they are computationally expensive (often $O(n^3)$ complexity) and difficult to parallelize. Conversely, locally normalized models are much faster, treating parsing like a sequence labeling task, but they often lose the structural "big picture," leading to lower accuracy.
This paper introduces a novel span-based linearization that bridges this gap. By predicting the longest span ending at each word and employing a unique "local normalization" technique, the authors created a parser that is significantly faster than traditional global models while achieving state-of-the-art accuracy for local models (95.8 F1 on PTB).
Methods
The authors propose two main innovations: a new linearization method and a locally normalized scoring objective.
1. Span-based Linearization
Instead of predicting a sequence of transition actions (like "Shift" or "Reduce"), the model predicts a sequence of integers $D = (d_1, d_2, \dots, d_n)$. For every word position $i$ in a sentence, $d_i$ represents the start of the longest span ending at $i$ that exists in the gold parsing tree.
The authors prove that for a binary tree, this set of "longest spans ending at $i$" is exactly the set of all left-child spans in the tree. This information is sufficient to perfectly reconstruct the original tree structure.
2. Parser Architecture and Local Normalization
The parser uses a standard deep learning encoder (BiLSTM or Transformer) and a biaffine attention mechanism to score potential spans. The "secret sauce" is the normalization strategy. Unlike previous models that normalize scores over every possible span in the whole sentence (global) or treat each span independently (per-span), this model normalizes the probability of a span $(d_i, i)$ against all possible spans ending at the same point $i$.
This approach adds a structural constraint—implicitly learning that only one "longest span" can end at a given position—without the overhead of a full CKY decoder. This allows training to be fully parallelized across word positions.
Key Results and Insights
The model was evaluated on the Penn Treebank (PTB) and Chinese Penn Treebank (CTB) 5.1. It achieved a "best of both worlds" result:
- Accuracy: On the PTB dataset, the model reached 95.8 F1 (using BERT), matching the performance of top-tier global parsers.
- Efficiency: The LSTM-based version processed 220 sentences per second, significantly faster than global models like Kitaev and Klein (150 sents/sec) and much faster than other span-based local models (typically 20-80 sents/sec).
- Structural Robustness: By normalizing over spans ending at position $i$, the model is more robust than independent per-span predictors, particularly for complex structures like Adjective Phrases (ADJP) and Quantifier Phrases (QP).
Conclusion
This span-based linearization offers a highly efficient way to represent hierarchical trees as sequences. While the model can occasionally produce "illegal" trees that require a greedy heuristic fix, its speed and accuracy make it a powerful alternative to traditional chart parsers. Future work may explore combining this "left-based" linearization with a "right-based" approach (predicting spans starting at $i$) to further enhance performance.
Summary updated