Extending a Parser to Distant Domains Using a Few Dozen Partially Annotated Examples

Vidur Joshi, Matthew E. Peters, Mark HopkinsACL 2018

Introduction

Natural language processing (NLP) models often suffer from a significant "domain gap." A parser trained on the Wall Street Journal (WSJ) typically performs poorly when applied to specialized domains like geometry textbooks or biomedical abstracts. Traditionally, bridging this gap required the creation of a "treebank"—a large, labor-intensive collection of thousands of sentences manually mapped into complex tree structures.

This paper presents a more efficient solution. By leveraging contextualized word embeddings and a span-based modeling approach, the authors demonstrate that a parser can be adapted to radically different domains using as few as 50 partially annotated examples.

The Reconciled Span Parser (RSP)

The core of this approach is the Reconciled Span Parser (RSP). Unlike traditional parsers that attempt to predict an entire tree structure globally, RSP treats parsing as a series of independent classification tasks. For any given span of words from index i to j, the model asks: "Is this span a constituent?"

The Reconciled Span Parser (RSP) makes independent decisions on word spans to construct a full parse tree.

This architecture is supported by two main components:

  1. Contextualized Word Representations (ELMo): These embeddings capture word meaning based on surrounding context, providing a robust foundation that handles "near-domain" shifts (e.g., from news to general fiction) with minimal additional training.
  2. Independent Span Classification: Because the model makes local decisions, it can be trained on partial data. If an annotator identifies only a few key constituents in a sentence—without providing a full tree—the model can still use that information to refine its weights.

Rapid Domain Adaptation via Partial Annotation

The bottleneck in parser adaptation has historically been the cost of full tree annotation. RSP circumvents this by allowing for selective bracketing. An expert can simply place brackets around meaningful units in a sentence. This "partial annotation" is significantly faster than building a complete gold-standard parse tree.

The authors evaluated this method across several distant domains, including the Brown Corpus (general fiction), QuestionBank (interrogative structures), GENIA (biomedical abstracts), and a dataset of geometry questions.

Experimental Results

The RSP model achieved a new state-of-the-art F1 score of 94.3% on the standard WSJ benchmark. More impressively, it showed remarkable efficiency in domain adaptation:

  • Geometry Domain: With only ~60 partially annotated sentences, the rate of error-free parses increased from 45% to 73%.
  • Biomedical (GENIA): Using just 50 annotated sentences, the model reached an 86.2% F1 score, outperforming previous models trained on thousands of full trees.
Comparison of a parse tree generated by a model trained only on news data (top) versus one adapted with a few dozen partially annotated geometry examples (bottom).

As shown in the figure above, the base model trained on news data (WSJ) struggles with the unique syntax of mathematical problems, often over-segmenting the input. After minimal adaptation with partial annotations, the model correctly identifies the broader constituents, leading to a much more accurate structural representation.

Conclusion

The Reconciled Span Parser provides a practical path for extending high-performance NLP tools to niche domains. By combining the power of contextualized embeddings with a flexible span-based objective, researchers can achieve "good enough" parsing in new fields with just a few hours of annotation effort, rather than months of treebank construction.

Summary updated

BibTeX
@inproceedings{joshi2018extending,
  author = {Vidur Joshi and Matthew E. Peters and Mark Hopkins},
  title = {{Extending a Parser to Distant Domains Using a Few Dozen Partially Annotated Examples}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2018},
  doi = {10.18653/v1/p18-1110},
}
Figure