An Efficient Parsing Algorithm for Tree Adjoining Grammars

Karin HarbuschACL 1990

Abstract

Tree Adjoining Grammars (TAGs) are a powerful formalism for modeling natural language, particularly for capturing "mildly context-sensitive" phenomena like crossed dependencies. However, their adoption has been limited by a high parsing complexity of $O(n^6)$. This paper presents a novel parsing algorithm that reduces this complexity to $O(n^4 \log n)$ by separating the context-free kernel from the adjoining operations and employing an "inverse adjoining" strategy.

1. Introduction

Computational linguistics often faces a trade-off between the expressive power of a grammar and the efficiency of its parser. Context-Free Grammars (CFGs), while efficient at $O(n^3)$, cannot model certain linguistic structures. Tree Adjoining Grammars (TAGs) were introduced to bridge this gap. Despite their theoretical advantages, the $O(n^6)$ complexity of existing TAG parsers has hindered their use in real-time systems. This work introduces a more efficient approach based on a two-stage parsing process.

2. Tree Adjoining Grammars and Complexity

TAGs consist of a set of elementary trees: initial trees ($\alpha$) and auxiliary trees ($\beta$). The primary operation, adjoining, allows an auxiliary tree to be inserted into another tree at a specific node. This operation is what provides the power to model crossed dependencies, as seen in Dutch sentence structures.

A derived tree structure $\gamma$ resulting from the adjoining of auxiliary trees $\beta_1$ and $\beta_2$ into initial tree $\alpha$, illustrating the complexity of TAG derivations.

3. Methodology: The Two-Stage Parser

The proposed algorithm decomposes the parsing task into two distinct stages to avoid the state-space explosion typical of previous bottom-up approaches.

3.1 Normal Form and Kernel Parsing

The grammar is first transformed into a normal form where each node has at most two children. The first stage of the parser then identifies the "context-free kernel" using a modified CKY (Cocke-Kasami-Younger) algorithm. This step efficiently prunes the search space by identifying all possible basic tree structures within the input string.

3.2 Inverse Adjoining and Elimination

The second stage handles the context-sensitive aspects of the TAG. Instead of building derivations upwards, the algorithm searches for completed "innermost" auxiliary trees and "eliminates" them. This process effectively reverses the adjoining operation, collapsing complex subtrees back into single nodes.

The recursive elimination process for auxiliary trees, illustrating the inverse adjoining logic used to collapse derivations.

To maintain efficiency, the algorithm utilizes Extended Node Numbers (ENNs). These local pointers allow the parser to track progress within individual elementary trees without the need for global state stacks, which is the key to achieving the $O(n^4 \log n)$ complexity bound.

4. Key Results and Performance

The algorithm achieves a theoretical worst-case complexity of $O(n^4 \log n)$ and a best-case performance of $O(n^3)$. Empirical tests on a sample Dutch grammar with sentences of 10-15 words demonstrated exceptional performance, with parse times as low as 6 milliseconds on contemporary hardware (HP 9000 series). This demonstrates that TAGs can finally be used in interactive natural language systems.

5. Conclusion and Future Work

By decoupling context-free constraints from adjoining operations and viewing parsing as an "inverse adjoining" process, this algorithm significantly lowers the computational barrier for using TAGs. Future work suggests that this approach is highly parallelizable; with $O(n^2)$ processors, the parse time could potentially be reduced to linear time ($O(n)$).

Summary updated

BibTeX
@inproceedings{harbusch1990efficient,
  author = {Karin Harbusch},
  title = {{An Efficient Parsing Algorithm for Tree Adjoining Grammars}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {1990},
  doi = {10.3115/981823.981859},
}
Figure