Nonparametric Bayesian Inference and Efficient Parsing for Tree-adjoining Grammars

Elif Yamangil, Stuart M. ShieberACL 2013

Introduction

In natural language processing, the choice of grammar formalism involves a fundamental trade-off between linguistic expressivity and computational complexity. While Context-Free Grammars (CFGs) offer efficient $O(n^3)$ parsing, they struggle to capture long-distance dependencies and complex structural modifiers. Tree-Adjoining Grammars (TAGs) provide a more powerful alternative by introducing an adjunction operator, allowing for the insertion of auxiliary trees into existing structures. However, this power comes at a high cost: standard TAG parsing is $O(n^6)$, and learning these grammars from data is computationally daunting.

This paper presents a novel approach that bridges this gap. By combining nonparametric Bayesian inference with a clever grammar transformation, the authors demonstrate that TAGs can be induced automatically and parsed with the efficiency of simpler models.

The Expressivity-Complexity Tension

Standard CFGs are limited by their local nature. Tree-Substitution Grammars (TSGs) improve upon this by allowing for larger tree fragments as building blocks, but they remain restricted to substitution at leaf nodes. TAGs extend this by allowing adjunction, where an auxiliary tree can be "spliced" into an internal node of another tree. This mechanism is linguistically elegant for modeling phenomena like recursive modification.

The adjunction mechanism in TAG allows for complex tree structures to be built from initial and auxiliary elementary trees.

Despite their elegance, TAGs are difficult to use in practice due to the $O(n^6)$ parsing complexity and the massive search space required to learn the optimal set of elementary trees from a corpus.

Methodology: Bayesian Induction and Efficient Transformation

The authors address these challenges through a two-pronged strategy:

1. Nonparametric Bayesian Induction

To learn the grammar, the authors employ a Dirichlet Process (DP) model. This nonparametric approach allows the model to automatically determine the optimal size and shape of the "elementary trees" (the primitives of the grammar) based on the training data. They define separate base distributions for initial trees and auxiliary trees, using a blocked Metropolis-Hastings sampler to explore the space of possible parse trees efficiently. This "Bayesian outsourcing" removes the need for manual heuristic rules to define grammar boundaries.

2. The TAG-to-TSG Transformation

The most significant technical contribution is the transformation of the induced TAG into an equivalent "adjunction-free" TSG. By identifying specific adjunction sites and creating specialized versions of trees, the authors approximate the TAG's behavior within a formalism that supports $O(n^3)$ parsing.

The transformation process systematically converts TAG adjunctions into a series of substitutions, enabling $O(n^3)$ parsing efficiency.

This transformation relies on a "topological sort" of auxiliary trees, ensuring that hierarchical adjunctions are correctly handled. While cycles in adjunction relationships can pose a challenge, the authors found that most linguistic structures are naturally acyclic or can be made so with minimal loss of information.

Experimental Evaluation

The model was evaluated on the standard Penn Treebank (Wall Street Journal corpus), using sections 02–21 for training and section 23 for testing. The data underwent head-binarization to facilitate algorithmic processing.

Key Results

  • Parsing Accuracy: The induced TAG model achieved an F-measure of 84.87, significantly outperforming the TSG baseline of 84.15.
  • Computational Efficiency: Thanks to the TAG-to-TSG transformation, parsing times were nearly identical to those of $O(n^3)$ TSG models, effectively bypassing the theoretical $O(n^6)$ bottleneck.
  • Model Parsimony: The TAG model proved more compact than the TSG, requiring approximately 66.4K initial trees compared to the TSG's 69.5K. This confirms that the adjunction operator allows for a more concise and linguistically rich representation of language.

Conclusion and Future Directions

This work demonstrates that the computational barriers to using powerful grammar formalisms like TAG can be overcome. By leveraging Bayesian nonparametrics for model selection and structural transformations for efficiency, the authors provide a practical path for incorporating sophisticated linguistic theories into scalable NLP systems. Future work may explore automatically induced adjunction refinements and the application of these techniques to Synchronous TAGs for machine translation.

Summary updated

BibTeX
@inproceedings{yamangil2013nonparametric,
  author = {Elif Yamangil and Stuart M. Shieber},
  title = {{Nonparametric Bayesian Inference and Efficient Parsing for Tree-adjoining Grammars}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2013},
}
Figure