Abstract
The spinal tree adjoining grammar (TAG) parsing model achieves state-of-the-art constituent parsing accuracy but suffers from low efficiency due to its $O(n^4)$ complexity. This paper presents a beam search shift-reduce algorithm for spinal TAG parsing that operates in $O(bn)$ time. To mitigate search errors in the large search space, the algorithm is extended with dynamic programming and supertagging. The resulting parser is approximately 8 times faster than the Berkeley parser while maintaining state-of-the-art performance on both English and Japanese benchmarks.
Introduction
Syntactic parsing—determining the grammatical structure of a sentence—is a foundational task in Natural Language Processing. The Spinal Tree Adjoining Grammar (TAG) formalism is particularly powerful because it combines the benefits of dependency and constituency structures, allowing for rich feature sets. However, the computational cost of traditional Eisner-CKY style algorithms ($O(n^4)$) has limited its practical application. While shift-reduce parsers are significantly faster ($O(n)$), they often struggle with the complex search spaces of Spinal TAGs, leading to frequent search errors.
The Spinal TAG Formalism
Spinal TAGs represent sentences using "spines," which are elementary tree structures that capture the vertical path from a word to its highest projection. This representation allows the parser to leverage both local constituency information and broader dependency relationships.
As shown in the figure above, the spinal representation (b) simplifies the full constituency tree (a) while preserving the essential structural hierarchy and head-modifier relationships.
Proposed Methodology
The authors propose a beam search shift-reduce parser based on the arc-standard method. To overcome the accuracy issues inherent in shift-reduce parsing for complex grammars, they introduce two key enhancements:
- Dynamic Programming (DP): The parser identifies "equivalent" states within the beam. If different sequences of actions result in partial trees that are indistinguishable to the feature extractor, the algorithm merges them. This collapses an exponential search space into a polynomial one, effectively suppressing search errors.
- Supertagging: Before parsing, a supertagger assigns a set of likely spines to each word. By pruning unlikely candidates early, the parser significantly reduces the branching factor at each step.
The parser utilizes six specific action types: shift, sister adjunction (left/right), regular adjunction (left/right), and finish.
Experimental Evaluation
The model was evaluated on two major benchmarks to prove its versatility:
- English Penn Treebank (WSJ): The standard gold standard for English parsing.
- Keyaki Treebank: A Japanese corpus used to demonstrate that the parser's performance is language-independent, working effectively even for head-final languages.
Key Results
- Efficiency: The proposed parser processed approximately 1,021 tokens per second on the English test set, making it roughly 8 times faster than the Berkeley parser.
- Accuracy: On the Penn Treebank (Section 23), the model achieved an F1 score of 90.7–90.9, matching or slightly exceeding the state-of-the-art results of the much slower original Carreras (2008) model.
- Robustness: The parser consistently outperformed the Berkeley parser on the Japanese Keyaki Treebank, confirming its effectiveness across different linguistic structures.
Conclusion
By combining the speed of shift-reduce parsing with the robustness of dynamic programming and supertagging, this work provides a practical solution for high-performance Spinal TAG parsing. The integration of DP is the critical factor, transforming the beam search from a simple heuristic into a powerful tool for navigating complex structural spaces without sacrificing accuracy for speed.
Summary updated