An Extended Theory of Head-Driven Parsing

Mark-Jan Nederhof, Giorgio SattaACL 1994

Introduction

Traditional parsing algorithms typically process input strings in a linear, left-to-right fashion. However, many linguistic theories suggest that parsing should be "head-driven," starting with the most information-rich element of a phrase—the head (e.g., the verb in a verb phrase)—and working outwards. While conceptually appealing, head-driven parsing often suffers from high levels of nondeterminism. When multiple grammar rules share the same head, standard head-driven parsers must frequently guess which rule to apply, leading to inefficient search trees and redundant computation.

In this work, Nederhof and Satta extend the theory of head-driven parsing by adapting deterministic techniques from the world of compiler construction—specifically LR and predictive parsing—to a head-first strategy. Their goal is to bring the efficiency and determinism of standard LR parsing to the more linguistically motivated head-driven paradigm.

Generalized Head Grammars

The core innovation of this research is the Generalized Head Grammar. In traditional context-free grammars, the right-hand side (RHS) of a rule is a simple sequence of symbols. In a Generalized Head Grammar, the RHS is structured as a binary tree. This tree structure allows the grammar designer to specify a precise, recursive order for processing non-head elements. Instead of being forced into a strict "inside-out" or "left-to-right" sequence, the parser can follow a path optimized for the specific language's structure.

Visualization of the recursive structure in a Generalized Head Grammar rule, showing the head-outward processing path.

As shown in the figure above, the derivation proceeds from the head (S) through various sub-structures (represented by the triangles), allowing the parser to validate chunks of the input string in a non-linear fashion.

A Hierarchy of Deterministic Algorithms

The authors formalize a family of head-driven algorithms that evolve in complexity and determinism:

  1. Head-Driven Top-Down (TD): A basic adaptation of traditional top-down parsing to start from the head.
  2. Head-Corner (HC): An adaptation of left-corner parsing that uses a "head-corner relation" to predict which rules to apply based on the observed head.
  3. Predictive HI (PHI) and Extended HI (EHI): These methods adapt "Predictive LR" and "Extended LR" techniques to handle common infixes in grammar rules, significantly reducing the need for backtracking.
  4. HI Parsing: The head-driven equivalent of LR parsing, which computes "head-inward" (HI) derivations in reverse.

HI Parsing and the Correct Subsequence Property

The "aha moment" of the paper is the realization that the relationship between head-driven parsing and standard parsing is mathematically analogous to the relationship between head-inward derivations and rightmost derivations. This allows the authors to port a wealth of existing LR theory to the head-driven world.

One key advantage of these algorithms is the correct subsequence property. While standard parsers have a "correct prefix property" (they can identify if the beginning of a string is valid), head-driven parsers can validate a "chunk" or subsequence in the middle of a sentence without yet knowing the context to its left or right. This is particularly useful for processing languages with flexible word order.

A trace of the stack-based HI parsing algorithm, demonstrating the sequence of rule applications and state transitions.

The table above illustrates the execution of the HI algorithm. The stack-based approach manages the complex state transitions required to track multiple potential derivations as the parser moves outward from the head.

Conclusion

Nederhof and Satta successfully provide a unified theoretical framework for deterministic head-driven parsing. By proving that generalized head grammars are generatively equivalent to traditional head grammars while offering superior procedural control, they pave the way for more efficient parsers in natural language processing. While the resulting algorithms—such as the Generalized HI (GHI) algorithm—are more complex to implement than standard left-to-right parsers, they offer a powerful tool for handling the inherent ambiguities of natural language within a formal, deterministic framework.

Summary updated

BibTeX
@inproceedings{nederhof1994extended,
  author = {Mark-Jan Nederhof and Giorgio Satta},
  title = {{An Extended Theory of Head-Driven Parsing}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {1994},
  doi = {10.3115/981732.981761},
}
Figure