Abstract
In this paper, we address the problem of how to use semantics to improve syntactic parsing by employing a hybrid reranking method. A $k$-best list generated by a symbolic parser is reranked based on parse-correctness scores provided by a compositional, connectionist classifier. This classifier utilizes a recursive neural network (RNN) to construct vector representations for phrases in a candidate parse tree, classifying them as syntactically correct or incorrect. Evaluated on the WSJ23 dataset, our method achieved a statistically significant improvement of 0.20% in F-score (representing a 2% error reduction) and 0.95% in exact match compared to the state-of-the-art Berkeley parser. These results demonstrate that vector-based compositional semantics can be effectively applied to syntactic parsing, highlighting the benefits of combining symbolic and connectionist approaches.
Introduction
Syntactic parsing—the process of determining the grammatical structure of a sentence—is a cornerstone of natural language processing. Historically, this task has relied on symbolic grammars and statistical corpus data. However, these systems have reached a performance plateau, largely due to syntactic ambiguity. A parser may identify multiple "legal" structures for a sentence, but often only one is semantically plausible.
Incorporating comprehensive semantic understanding directly into a parser is computationally prohibitive. This research addresses the gap by proposing a two-stage hybrid process: a fast symbolic parser generates the top $k$ candidates, and a neural network subsequently reranks them based on semantic plausibility.
Methodology
The proposed hybrid system integrates three primary components into a unified pipeline, leveraging both symbolic and connectionist strengths.
1. Symbolic Base
The system uses the Berkeley parser to generate a $k$-best list (the top 50 most likely parse trees) for a given sentence. This narrows the search space while maintaining high coverage of potential structures.
2. Recursive Neural Network (RNN) Classifier
The core innovation is a Recursive Neural Network that evaluates the semantic "correctness" of candidate trees. The RNN processes a tree bottom-up, starting from word embeddings at the leaves. At each internal node, it combines the vector representations of child nodes to produce a parent vector.
Unlike previous models that only scored the root node, this classifier is trained to recognize "correct" and "incorrect" subparses at every level. By explicitly learning from errors—specifically, structural mistakes frequently made by symbolic parsers—the model gains a fine-grained ability to identify semantic anomalies.
3. SVM Reranker
The scores produced by the RNN are discretized into a 2D histogram based on the score value and the depth of the subtree. This histogram serves as a feature vector for a Support Vector Machine (SVM) ranker. This approach accounts for the "depth factor": as errors accumulate higher in the tree, the reranker can weight the reliability of scores based on their vertical position.
Experimental Setup
The model was trained and tested using the Penn Treebank (WSJ) corpus, with sections 02-21 for training, 22 for development, and 23 for final evaluation. Word embeddings were initialized using pre-trained vectors from Collobert et al. (2011), which were derived from English Wikipedia and Reuters news data.
Results and Key Insights
The hybrid method demonstrated a clear advantage over the standalone Berkeley parser on the WSJ Section 23 test set:
- F-score: Increased from 90.12% to 90.32% (a 0.20% absolute gain, or 2% error reduction).
- Exact Match: Increased from 37.22% to 38.17% (a 0.95% absolute gain).
- Statistical Significance: Improvements were confirmed with $p < 0.003$.
A key insight from the study is the synergy between symbolic and connectionist approaches. Symbolic parsers excel at defining the grammatical boundaries, while neural models capture the nuanced semantic signals required for precise reranking.
Conclusion
This work demonstrates that vector-based compositional semantics can be usefully applied to improve syntactic parsing. While the numerical gains are modest, they represent a significant step in the competitive field of WSJ parsing. Future work will focus on deeper qualitative analysis of the learned semantic features and the integration of traditional hand-engineered features to further enhance performance.
Summary updated