An Earley-Type Parsing Algorithm for Tree Adjoining Grammars

Yves Schabes, Aravind K. JoshiACL 1988

This seminal 1988 paper by Yves Schabes and Aravind Joshi introduces the first practical Earley-type parsing algorithm for Tree Adjoining Grammars (TAGs). By extending the classic "dotted rule" logic from context-free grammars to complex tree structures, the authors bridged the gap between theoretical linguistic power and computational efficiency.

The Challenge of Parsing Mildly Context-Sensitive Languages

In the late 1980s, computational linguistics faced a divide. Context-Free Grammars (CFGs) were computationally efficient but lacked the expressive power to handle "mildly context-sensitive" phenomena in natural languages, such as cross-serial dependencies. Tree Adjoining Grammars (TAGs) could handle these phenomena, but their existing parsers—primarily CKY-style algorithms—were strictly bottom-up and relatively slow.

In CFG parsing, the Earley algorithm is renowned for its average-case efficiency because it uses top-down information to "predict" expected structures, ignoring irrelevant grammar sections. Before this paper, no such predictive parser existed for TAGs, limiting their practical application in real-world systems.

Tree Adjoining Grammars and Adjunction

TAGs differ from CFGs by operating on trees rather than strings. The core operation is adjunction, where an auxiliary tree is inserted into an initial tree at a specific node. This allows the grammar to capture long-distance dependencies while maintaining a localized structure.

The adjunction operation: an auxiliary tree (β) is inserted into an initial tree (α) to produce a derived tree (γ).

The Earley-Type Parsing Mechanism

The authors' primary innovation is the extension of the "dot" notation from linear strings to two-dimensional tree structures. To navigate these trees, the algorithm utilizes a novel traversal logic.

The Four-Position Dot

In a standard CFG parser, a dot moves left-to-right through a rule. In a TAG, the parser must navigate around nodes. The authors define four positions for a dot around any node:

  • Left Above (la): Entering the node from its parent.
  • Left Below (lb): Moving from the node into its children.
  • Right Below (rb): Returning to the node from its children.
  • Right Above (ra): Leaving the node to return to its parent.
The four-position dot traversal logic, showing the path of the parser through a tree structure.

State Representation and Operations

Because TAGs involve adjunction, the parser must track where it started, the location of the "foot" node of an inserted tree, and its current position. This is represented using a complex 10-tuple state that tracks various indices in the input string. The algorithm progresses through the string using seven distinct operations, including a Scanner for terminal symbols, Move Dot operations for tree navigation, and Predictor/Completor pairs to handle the logic of adjunction.

Key Insights and Results

  • Top-Down Filtering: By applying Earley’s predictive power to trees, the parser avoids the massive search space of purely bottom-up CKY parsers. Auxiliary trees are only predicted when node labels match, significantly pruning the search space.
  • Universal Framework: The authors demonstrate that by adding a "substitution" operation, their TAG parser can directly emulate a CFG parser, making TAGs a true superset of CFGs.
  • Complexity: The algorithm has a worst-case time complexity of $O(|G|^2 n^9)$ and space complexity of $O(|G| n^6)$. While $O(n^9)$ is theoretically high, the authors emphasize that the average-case performance is significantly better than the $O(n^6)$ CKY parser due to top-down filtering.
  • Practicality: The parser was successfully implemented on Symbolics Lisp machines, proving its viability for the AI hardware of the era.

Limitations and Future Work

The authors acknowledge that the $O(n^9)$ worst-case complexity is steep and suggest that future iterations might reduce this bound to $O(n^6)$. They also propose a "two-stage" parsing strategy—extracting a relevant grammar subset based on the input sentence—to further boost performance, a technique that eventually became standard in TAG research. Additionally, the algorithm natively supports linguistic constraints like "Null Adjunction" and can be integrated with unification-based feature structures to handle complex grammatical agreement.

Summary updated

BibTeX
@inproceedings{schabes1988earley,
  author = {Yves Schabes and Aravind K. Joshi},
  title = {{An Earley-Type Parsing Algorithm for Tree Adjoining Grammars}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {1988},
  doi = {10.3115/982023.982055},
}
Figure