Introduction
Dependency parsing is a fundamental task in natural language processing that involves identifying head-modifier relationships between words in a sentence. While modern supervised statistical parsers, such as the MSTParser, perform exceptionally well on short-range dependencies (adjacent words), their accuracy drops significantly as the distance between words increases.
Long-distance dependencies, such as prepositional phrase (PP) attachments, are often highly ambiguous. Resolving these requires "selectional preference"—lexical knowledge that certain words are more likely to pair than others (e.g., "eat" is a likely head for "spaghetti"). Because standard annotated treebanks are too small to capture all possible lexical pairs, they suffer from severe data sparsity. This research addresses the problem by leveraging massive, unannotated web-scale N-gram corpora to provide the necessary lexical statistics.
Methodology
The authors enhance the MSTParser, a graph-based, log-linear dependency parser, by incorporating web-derived N-gram features.
Calculating Selectional Preference
The core of the approach involves calculating Pointwise Mutual Information (PMI) between word pairs (head and modifier) and trigrams (for second-order parsing features). To obtain the frequencies required for PMI, the researchers utilized two massive data sources:
- Google hits: Live search engine query counts.
- Google Web 1T: A static 1-trillion-token 5-gram corpus.
The Z-Score Normalization
Injecting continuous PMI values directly into a log-linear parser designed for binary features can lead to optimization issues. To solve this, the authors converted PMI values into z-scores, normalizing them by the mean and standard deviation of the PMI distribution. This allows the parser to effectively integrate continuous lexical statistics with traditional structural features.
The Power of Scale
A central finding of the study is the direct correlation between the size of the external N-gram corpus and the resulting parsing accuracy. The researchers observed a log-linear relationship: as the vocabulary of unique N-grams grows, the Unlabeled Attachment Score (UAS) improves steadily.
Key Results and Insights
Rescuing Long-Distance Dependencies
The most significant impact of web-derived features is seen in long-distance dependencies (length > 3). While structural features are sufficient for short-range attachments, lexical preferences become the primary signal for resolving distant modifiers. The addition of N-gram features effectively flattens the performance decay typically seen as dependency length increases.
Performance Benchmarks
- State-of-the-Art Accuracy: The second-order parser using Google hits achieved a 92.64% UAS on the Penn Treebank (Section 23), outperforming contemporary parsers that rely solely on treebank data.
- Google Hits vs. Static Corpora: Surprisingly, live Google search hits slightly outperformed the static Google Web 1T corpus, likely due to the broader coverage of rare bigrams and trigrams provided by the live web.
- Cross-Domain Robustness: The model demonstrated remarkable stability when tested on out-of-domain data (biomedical text). Because web N-grams capture general language usage, they act as a regularizer that prevents the parser from over-fitting to the specific syntax of the training domain (e.g., financial news).
Conclusion
By tapping into the vast resources of the web, this work demonstrates that simple lexical co-occurrence statistics can significantly improve the structural accuracy of dependency parsers. While search engine hits are noisy and subject to rate-limiting, they provide a powerful proxy for human selectional preference that standard annotated datasets cannot match. Future work may focus on more efficient ways to utilize static web-scale corpora to achieve similar performance gains without the overhead of live web queries.
Summary updated