Introduction
In the mid-2000s, natural language processing (NLP) shifted toward discriminative models like Conditional Random Fields (CRFs) for tasks such as part-of-speech tagging. These models allow for arbitrary, overlapping features—such as capitalization or suffixes—which significantly improve accuracy. However, constituency parsing remained dominated by generative models like Probabilistic Context-Free Grammars (PCFGs). While efficient, PCFGs struggle to incorporate complex features. Previous discriminative parsers were either "greedy," making irreversible local decisions, or computationally prohibitive, limited to sentences of 15 words or fewer. This paper introduces a feature-rich CRF-based parser that scales to full-length sentences by combining stochastic optimization with efficient chart prefiltering.
Methodology
The core of the proposed system is a CRF-CFG model. Unlike standard PCFGs that maximize the joint probability of a tree and a sentence, this model maximizes the conditional likelihood of the tree given the sentence. This approach allows the inclusion of two primary feature types:
- Lexicon features: These examine words, tags, and distributional similarity.
- Grammar features: These analyze subtree structures, spans, and split points.
To handle the computational complexity, the authors implemented Chart Prefiltering. Before computing expensive features, a fast, boolean-valued "inside-outside" pass identifies possible rules for a sentence, pruning thousands of impossible applications. The researchers evaluated the model using the Penn Treebank (WSJ) benchmark, specifically training on sections 2-21 and testing on section 23.
Optimization and Efficiency
A critical contribution of this work is the application of Stochastic Gradient Descent (SGD) for training. While L-BFGS is a standard choice for optimization in NLP, the authors found it inefficient for large-scale parsing.
As shown in the figure above, SGD converges to a superior objective value significantly faster than L-BFGS. In experimental trials, SGD was approximately seven times faster, enabling the model to find optimal parameters with far fewer passes over the dataset. This efficiency, combined with parallelization across multiple clients, allowed the model to scale to realistic sentence lengths.
Key Results and Insights
The model was evaluated on subsets of the WSJ corpus. On the WSJ15 dataset (sentences with 15 words or fewer), the model achieved a state-of-the-art F-score of 90.9%, a 14% relative error reduction over previous discriminative work. More importantly, on the realistic WSJ40 dataset, it reached an 89.0% F-score, representing a 36% relative error reduction over generative baselines.
The qualitative impact of feature-based discriminative training is evident in the comparison above. The discriminative output (b) correctly captures the structure of the gold parse (c), whereas the generative output (a) fails to correctly nest the verb phrase and its subordinates. The authors argue that the primary gains come from the feature engineering that discriminative training enables. For instance, the model can easily incorporate a "heavy" feature to capture the English tendency for longer constituents to appear at the end of a sentence (right-branching).
Conclusion
This research demonstrates that discriminative parsing can be both accurate and efficient. By leveraging SGD and prefiltering, the authors achieved a two-order-of-magnitude speedup over prior joint-inference discriminative parsers. While feature development was primarily conducted on shorter sentences, the model's ability to scale to full-length prose marks a significant milestone. Future work will focus on more complex feature sets and further pipeline optimizations to handle even larger datasets without requiring significant parallel hardware.
Summary updated