Introduction
In the mid-2000s, natural language parsing was bifurcated into two distinct approaches. Generative statistical parsers, such as those developed by Charniak or Collins, offered high accuracy but were computationally intensive and complex. Conversely, deterministic classifier-based parsers provided exceptional speed and simplicity but suffered in accuracy due to their "greedy" decision-making process, where choices could not be revisited once made.
Kenji Sagae and Alon Lavie proposed a middle ground: a best-first probabilistic shift-reduce parser. This model maintains the efficiency of the shift-reduce framework while employing a probabilistic search to explore a wider range of global solutions, effectively bridging the gap between speed and precision.
Methodology
The parser is built upon the standard shift-reduce algorithm, which processes sentences from left to right using a stack and a queue. The core innovation lies in the transition from a greedy approach to a Best-First Search. Instead of selecting only the most likely action at each step, the parser maintains a heap of potential parsing states, prioritizing the exploration of states with the highest cumulative probability.
To assign these probabilities, the authors utilize a Maximum Entropy (MaxEnt) Classifier. This classifier evaluates the current state of the stack and queue to predict the next action: SHIFT, REDUCE-UNARY, or REDUCE-BINARY. The model leverages a rich set of 14 features, including head-words, part-of-speech (POS) tags, and the history of previous parser actions.
To prevent the search space from expanding uncontrollably, a pruning strategy is implemented. New states are only added to the heap if their probability falls within a specific threshold ($1/b$) of the most likely state.
Experimental Setup
The parser was evaluated using the Penn Treebank (WSJ Corpus), the standard benchmark for the era. Sections 02-21 were used for training, section 22 for development and tuning, and section 23 for final testing. Preprocessing involved binarizing the trees and lexicalizing them to identify the "head" word of each phrase, ensuring compatibility with the shift-reduce framework.
Results and Discussion
The shift to a best-first search yielded a significant improvement in performance. The F-score increased from approximately 85% in a deterministic setting to over 88% with the best-first search, demonstrating that the primary limitation of previous shift-reduce parsers was the search strategy rather than the framework itself.
As shown in the table above, the best-first classifier-based parser achieved 88.1% precision and 87.8% recall on the WSJ test set. Notably, it processed the entire test set in 17 minutes, outperforming the Charniak (2000) and Collins (1999) parsers in speed while maintaining competitive accuracy. The deterministic variant was even faster, completing the task in under a minute, albeit with a lower F-score of 85.1%.
Furthermore, the authors found that their model's error patterns differed significantly from generative models. By combining their shift-reduce model with a Charniak parser through "ensemble" reranking—rescoring the top 10 Charniak results—they achieved a state-of-the-art F-score of 90.8%.
Conclusion
While the best-first shift-reduce parser offers a compelling balance of speed and accuracy, it faces challenges such as high memory requirements during training and sensitivity to pruning parameters. Additionally, like many NLP systems, its performance is partially dependent on the quality of input POS tags. Future research may focus on more sophisticated pruning techniques or expanded feature sets to further enhance performance and close the remaining gap with the most accurate generative models.
Summary updated