Abstract
Natural language processing often struggles with discontinuous constituents—phrases where words are separated by other sentence elements. While formalisms like Linear Context-Free Rewriting Systems (LCFRS) can model these structures, they are often computationally prohibitive. This paper introduces a fast, incremental shift-reduce parser that handles discontinuities via a novel "swap" operation. By employing beam search with a linear classifier and specialized feature templates, the proposed system achieves state-of-the-art accuracy on complex German datasets while maintaining parsing speeds of up to 640 sentences per second.
Introduction
In constituency parsing, the standard assumption is that phrases are continuous. However, many languages, such as German, frequently exhibit "crossing branches" where a single constituent is split across the sentence.
Traditional methods for handling these structures, like LCFRS, suffer from high computational complexity, scaling poorly as the number of gaps increases. This work aims to provide a more efficient alternative by extending the shift-reduce framework to accommodate reordering via a transition-based approach.
Methodology
The core of the system is a shift-reduce parser augmented with several key innovations:
- The Swap Transition: To handle discontinuities, a
SWAPoperation is introduced. When the parser identifies that items on the stack are out of order for a continuous reduction, it swaps the second item back onto the input queue, effectively reordering the sentence on the fly. - Compound Swaps: To increase efficiency, the
COMPOUNDSWAPoperation bundles multiple adjacent swaps into a single step, facilitating the handling of larger gaps. - DISCO Features: New feature templates provide the classifier with information about the state and length of gaps within constituents.
- Importance Weighting: Given the rarity of discontinuous structures (approx. 2% of constituents), the training process uses importance weighting to emphasize gold swap transitions, helping the model learn from sparse data.
The parser utilizes an averaged perceptron for decision-making and beam search to explore multiple parsing hypotheses simultaneously.
Experimental Evaluation
The parser was evaluated on the TiGer and NeGra German treebanks. Results demonstrate a significant improvement in both speed and accuracy compared to previous transition-based models.
As shown in the table above, the combination of COMPOUNDSWAP, DISCO features, and Importance weighting leads to substantial gains, particularly on discontinuous constituents. The F1 score for discontinuous elements improves significantly over the basic swap baseline. In terms of efficiency, the parser is remarkably fast, reaching up to 640 sentences per second in greedy mode and maintaining high throughput even with a beam search.
Discussion and Conclusion
A key insight of this research is that reordering the input stream is a computationally efficient alternative to adopting more complex grammars. By shifting the complexity from the grammar formalism to the transition system, the parser achieves speeds up to 2,000% faster than some chart-based alternatives.
Despite these gains, data sparseness remains a challenge. Discontinuous constituents are infrequent, making it difficult for the model to generalize across all possible gap types. Future work will explore self-training and richer lexical features to further improve performance on rare structural configurations.
Summary updated