A Generalization of the Offline Parsable Grammars

Andrew R. HaasACL 1989

Introduction

In computational linguistics, a persistent tension exists between the expressive power required to describe human language and the formal constraints necessary to ensure a computer can process that language efficiently. In his 1989 paper, Andrew Haas addresses a specific "catch-22" involving X-bar theory—a foundational concept in modern linguistics—and the requirement for "offline parsability." Haas introduces a generalization of unification grammars that preserves the structural nuances of X-bar theory while maintaining computational decidability.

The Problem: The X-Bar "Catch-22"

During the late 1980s, the standard for ensuring a grammar was computationally "safe" (i.e., guaranteed to terminate during parsing) was offline parsability. A grammar is considered offline parsable if its "context-free backbone"—the simplified version of the grammar produced by stripping away all complex features—is finitely ambiguous. If this backbone contains no infinite loops, the full grammar is guaranteed to be decidable.

However, this requirement posed a significant hurdle for linguists employing X-bar theory. X-bar theory distinguishes between different levels of a category, such as a "noun" (bar level 1) and a "noun phrase" (bar level 2). In a unification grammar, these are typically represented as features: cat(noun, 1) and cat(noun, 2).

When generating a traditional context-free backbone, these arguments are erased. Consequently, a rule like NounPhrase -> Noun simplifies to cat -> cat. To a parser, this appears as an infinite loop where a category derives itself. Under the strict rules of offline parsability, the very structures needed to model natural language were being rejected as computationally unsafe.

The Proposed Solution: The Acyclic Backbone

Haas’s primary innovation is the Acyclic Backbone. Rather than the "scorched earth" approach of traditional offline parsability—which erases all features—Haas introduces a sort system (akin to a type system) to distinguish between different kinds of information within the grammar.

1. Sort Classification

The system classifies sorts into two categories:

  • Cyclic Sorts: These are recursive structures, such as a "list" that can contain another "list." These have the potential to grow infinitely.
  • Acyclic Sorts: These are finite and non-recursive, such as "person" (1st, 2nd, 3rd) or "bar level" (1, 2, 3).

2. Selective Erasing

When constructing the grammar's backbone, the system only erases terms belonging to cyclic sorts. Acyclic terms—like the bar levels essential to X-bar theory—are preserved. This allows the backbone to remain detailed enough to prevent the "cat -> cat" loops that previously plagued the model.

3. The Safety Check Algorithm

Haas adapted the standard algorithm used to check if a context-free grammar is depth-bounded (finitely ambiguous) and applied it to these specialized unification grammars. Because the preserved acyclic terms are finite, the algorithm is guaranteed to halt, providing a definitive "safety check" for the grammar.

Implementation and Results

While primarily a theoretical contribution to formal language theory, Haas’s sort system was not merely an abstract exercise. It was implemented and tested within the BBN Spoken Language System. At the time of the paper's publication, that grammar consisted of approximately 700 rules, serving as a robust real-world validation of the theory's utility in complex natural language processing.

Key Insights

  • Selective Transparency: Haas demonstrated that we do not need to hide all features to prove a grammar is safe; we only need to hide those with the potential for infinite growth.
  • Linguistic Realism: The paper argues that features like "bar level" are fundamentally different from recursive data structures like "subcategorization lists." Aligning the formal mathematics with this linguistic intuition allows for more natural grammar development.
  • Formal Decidability: Haas provided a formal proof (Theorem 3) establishing that for any unification grammar without cyclic function letters, an infinitely long derivation must contain a symbol that derives itself. This is the cornerstone of making the safety check computable.

Conclusion and Limitations

Haas successfully proved that his new class of grammars is a proper superset of traditional offline parsable grammars. This means that every grammar previously considered "safe" remains so, while many linguistically necessary grammars are now included in the fold. Additionally, the sort system acts as a "type checker," helping developers identify errors like mismatched arguments during the grammar-building process.

The main remaining challenge is the "Subcategorization Problem." Certain linguistic frameworks, such as Head-driven Phrase Structure Grammar (HPSG), treat a verb's expected arguments as a list. Since lists are cyclic sorts, Haas’s system would erase them, potentially flagging a valid grammar as "unsafe" if that list was the only thing preventing a loop. Despite this, Haas’s work represents a major advancement in bridging the gap between theoretical linguistics and computational efficiency.

Summary updated

BibTeX
@inproceedings{haas1989generalization,
  author = {Andrew R. Haas},
  title = {{A Generalization of the Offline Parsable Grammars}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {1989},
  doi = {10.3115/981623.981652},
}
Figure