Introduction
Statistical parsers are essential tools in Natural Language Processing (NLP), yet they are notoriously "brittle." A parser trained on the Penn Treebank (Wall Street Journal articles) typically performs exceptionally well on news text but fails significantly when applied to different domains, such as romance novels or technical manuals. This challenge, known as domain adaptation, arises because we rarely have massive amounts of annotated "gold standard" parse trees for every niche domain.
Previous attempts at domain adaptation often involved simply mixing small amounts of in-domain data with large amounts of out-of-domain data. However, these methods did not explicitly design the parser for the "porting" process itself. This paper investigates how to extract general linguistic knowledge from a large source corpus while specializing the parser for the specific vocabulary and style of a new target domain.
Methodology: Data-Defined Kernels
The authors propose using Data-Defined Kernels, specifically the TOP reranking kernel, to bridge the domain gap. The approach involves several key steps:
- The Base Model: The process begins with a neural network-based probabilistic parser that learns a probability distribution over possible parse trees.
- The Kernel: Instead of relying solely on the parser's output, the authors derive a "kernel" from it. The TOP kernel is particularly innovative: its feature vector includes the model's score for a parse and the gradient of that score with respect to the model's parameters. This captures how the model's internal weights would need to adjust to better accommodate a specific parse tree.
- Adaptation Scenarios:
- Transferring: The probabilistic model is trained only on the source domain (WSJ). It is then "reparameterized" to include words from the target domain before training a Support Vector Machine (SVM) on the small target dataset.
- Focusing: The probabilistic model is trained on a mix of source and target data, and the SVM is then trained to "focus" specifically on the target domain.
- The Classifier: SVM-Struct, a large-margin classifier, is used to rerank the top candidate parses provided by the base model. SVMs are particularly effective when training data is scarce.
Experimental Setup
The experiments utilized the Penn Treebank Wall Street Journal (WSJ) corpus as the source domain, consisting of approximately 40,000 sentences. For target domains, four distinct sections of the Brown Corpus were selected to represent text "maximally different" from news:
- Section F: Popular Lore (Informative prose)
- Section K: General Fiction
- Section N: Adventure and Western Fiction
- Section P: Romance and Love Stories
As shown in the dataset statistics, the target training sets were kept intentionally small (roughly 2,000 to 2,800 sentences) to simulate real-world scenarios where annotated data is expensive to produce.
Results and Discussion
The "TOP-Transfer" method consistently outperformed the base probabilistic model across all Brown corpus sections.
Key findings from the experimental results include:
- Accuracy Gains: On the "Romance" section (Brown P), the base WSJ parser achieved an $F_1$ score of 82.6%. The TOP-Transfer method boosted this to 83.2%. When the base model was allowed to see some target data ("Focusing"), the results improved further, reaching 85.8% $F_1$ on the "Adventure" section (Brown N).
- Vocabulary vs. Structure: The authors hypothesized that vocabulary changes, rather than grammatical shifts, are the primary hurdle in porting parsers. Their experiments confirmed that vocabulary features drove almost all performance gains. Using a kernel based only on structural (syntactic) parameters actually performed worse than the baseline, suggesting that basic English syntax remains relatively stable across these domains, while word usage varies significantly.
- The Power of Gradients: By using the gradient of the log-likelihood in the kernel, the SVM can identify which specific parameters of the original model struggle with the new domain and adjust them accordingly.
Conclusion and Future Work
While effective, the method faces a "reranking bottleneck": it can only choose from candidates generated by the base model. If the correct parse is not in the top-N list, the SVM cannot select it. Additionally, computing gradients for every candidate parse adds computational overhead compared to simpler parsing methods.
Future research could explore using data-defined kernels for unsupervised domain adaptation, where no gold-standard trees exist for the new domain. This would further reduce the reliance on expensive annotated data and broaden the applicability of statistical parsers across diverse linguistic landscapes.
Summary updated