NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Large-Scale Corpus-Driven PCFG Approximation of an HPSG

Yi Zhang, Hans-Ulrich KriegerIwpt 2011

TL;DR

This paper proposes a novel method to approximate complex linguistic grammars (specifically HPSG) with simpler Probabilistic Context-Free Grammars (PCFGs). By training on large, automatically annotated corpora, they achieve parsing accuracy competitive with, and sometimes exceeding, the original deep grammar, while offering significant gains in robustness and efficiency.

What Problem Does This Paper Address?

Deep linguistic formalisms like Head-Driven Phrase Structure Grammar (HPSG) offer rich representations for natural language, integrating syntactic and semantic information. However, their inherent complexity, particularly the computational cost of unification-based parsing, makes them challenging for large-scale natural language technology applications. This complexity also creates a tension for grammar engineers: balancing linguistic precision with the need for broad parsing coverage on real-world text. Existing approaches to simplify these grammars either generate overly large grammars or struggle to maintain accuracy. This paper aims to bridge this gap by creating a simpler, probabilistic grammar that captures the performance of the deep grammar without its computational burden.

Methods

The core of this work is a corpus-driven PCFG approximation of HPSG. The process involves:

  1. Derivation Normalization: HPSG derivation trees are first normalized. This includes replacing lexical entries with their types, collapsing unary morphological rules into "supertags," and handling punctuation to create a more uniform structure for PCFG extraction.
  2. Annotation Enrichment: To compensate for the generalized nature of HPSG rules, the derivation trees are enriched with annotations.
  3. External Annotation: Information from parent nodes (up to a specified number of grandparents) is added to non-terminal nodes. This is akin to "vertical Markovization."
    • Internal Annotation: Information from the HPSG sign itself, specifically the values of key feature paths identified as critical for unification success (quick-check paths), is incorporated.
  4. PCFG Extraction: A Probabilistic Context-Free Grammar (PCFG) is extracted from these annotated derivation trees using Maximum Likelihood Estimation (MLE). The paper emphasizes that this process is highly scalable.
  5. Hierarchically Split-Merge PCFG (for comparison): The authors also train a latent-variable PCFG using the Berkeley parser for comparison.

Datasets

  • English Resource Grammar (ERG): The 1010 release of the ERG was used for the approximation experiments. This grammar has 200 syntactic constructional rules and 50 lexical/inflectional rules.
  • WeScience Treebank: A manually disambiguated treebank containing over 11K sentences from Wikipedia articles on Natural Language Processing. This was used for training and evaluation, with sections "ws01-ws11" for training and "ws13" for testing.
  • WikiWoods Treebank: A large-scale, automatically disambiguated treebank derived from English Wikipedia, containing approximately 55 million sentences. This was used for training larger PCFGs.

Key Insights and Ideas

  • Annotation is Key: Simply extracting a PCFG from raw HPSG derivations yields poor results. Enriching the derivation trees with both external (grandparent) and internal (feature path) annotations significantly boosts parsing accuracy.
  • Scalability of MLE: The MLE-based PCFG extraction method is highly scalable, allowing for training on massive corpora like WikiWoods, which is crucial for achieving high performance.
  • Trade-offs in Annotation: While more grandparents can improve accuracy on larger datasets, they can also lead to data sparseness and decreased coverage on smaller datasets. Feature-path annotations offer a more balanced approach.
  • PCFG as a Viable Alternative: The study demonstrates that a carefully constructed PCFG can achieve parsing accuracy comparable to or better than the original deep grammar, offering a practical path to robust and efficient deep linguistic processing.
  • Self-Training Effect: The performance gains on the very large WikiWoods corpus suggest a "self-training" effect, where the PCFG learns robust patterns from a vast amount of automatically generated data.

Key Results

  • The best approximating PCFG, trained on the complete WikiWoods corpus with 2-level grandparent annotation (PCFG(GP2)), achieved a ParsEval F1 accuracy of 84.13% on the "ws13" test set.
  • This accuracy is higher than the MEM disambiguation model (which achieved 82.80% F1) used for initial disambiguation.
  • Even with limited training data (WeScience), feature-path annotation (PCFG(FP1)) significantly improved F1 from 60.96% to 66.45%.
  • The grammar extraction process is very efficient, linear to the size of the treebank, allowing for processing millions of trees per minute.
  • The PCFG approach demonstrated robustness, achieving close to full parsing coverage on texts that the original HPSG parser struggled with.

Limitations and Future Work

  • Interpretability: The authors acknowledge that the approximating PCFGs, especially with extensive annotations, become less linguistically interpretable and are not suitable for making grammaticality judgments on their own.
  • Unification Guarantee: The derived PCFG does not guarantee a unifiable HPSG analysis with typed feature structures. However, it provides an approximate prediction that could guide semantic structure generation.
  • Future Work: The authors suggest exploring the impact of these PCFGs on semantic structure generation under an open-world assumption for type hierarchies. They also propose evaluating the PCFG's performance based on semantic structures rather than just derivations. Further investigation into pruning low-frequency grammar rules and exploring more sophisticated smoothing techniques is also suggested.

Summary updated

BibTeX
@inproceedings{zhang2011large,
  author = {Yi Zhang and Hans-Ulrich Krieger},
  title = {{Large-Scale Corpus-Driven PCFG Approximation of an HPSG}},
  booktitle = {Iwpt},
  year = {2011},
}
Figure