Introduction
In the early 1980s, natural language processing (NLP) was caught between two competing paradigms. On one side were Phrase-Structure Grammars (PSGs), which offered computational tractability and efficient parsing algorithms. However, PSGs were linguistically limited; they struggled to represent the underlying relationships between related sentence structures, such as the link between active and passive voices. On the other side were Transformational Grammars, which elegantly captured these linguistic generalizations but were computationally expensive and difficult to implement in real-time systems.
Kurt Konolige’s research addresses this gap by introducing "metarules" within the framework of an Annotated Phrase-Structure Grammar (APSG). This approach allows for the expressive power of transformations without sacrificing the parsing speed of PSGs by shifting the complexity from the parsing phase to a pre-processing phase.
The Foundation: Annotated Phrase-Structure Grammars (APSG)
The system is built upon Annotated Phrase-Structure Grammars. Unlike a standard PSG, which relies on simple rewrite rules (e.g., S → NP VP), an APSG rule consists of three distinct components:
- A Phrase-Structure Rule: The basic syntactic backbone defining the hierarchy of the sentence.
- A Restriction Set (RSET): A collection of logical conditions that must be satisfied for the rule to apply, such as subject-verb agreement in number and person.
- An Assignment Set (ASET): Instructions that dictate how information (like semantic roles or grammatical features) is passed between nodes in the parse tree.
By enriching the basic grammar with these annotations, the system can handle complex linguistic features—like case marking or agreement—without requiring a separate rule for every possible variation.
The Mechanism: Metarules and Pre-processing
The core innovation of Konolige’s work is the metarule. A metarule is essentially a "rule for making rules." It consists of a match template and an instantiation template.
During a pre-processing phase, the system scans its base library of grammar rules. If a rule matches the "match template" of a metarule, the system automatically generates a new, derived grammar rule based on the "instantiation template." For example, a metarule could detect a rule for an active transitive verb and automatically generate the corresponding passive rule.
This shift is significant because it moves the computational burden. Instead of transforming the sentence structure (the "tree") during the parsing process—which is slow and complex—the system transforms the grammar itself before parsing begins. The result is a "flattened" and expanded set of PSG rules that the parser can navigate with standard, efficient algorithms.
Evaluation and Results
To test the efficacy of this approach, the system was applied to the DIAGRAM grammar, a comprehensive subset of English developed at SRI International. The goal was to determine if metarules could simplify the existing grammar while maintaining or expanding its coverage.
The results demonstrated a significant reduction in the manual effort required to maintain a large-scale grammar:
- Subcategorization: A single base rule combined with seven metarules successfully generated 20 derived rules.
- Clauses: Eight base rules and five metarules expanded into 25 derived rules.
Beyond mere efficiency, the metarule system acted as a diagnostic tool. It identified valid linguistic structures that had been overlooked by human grammarians during five years of manual development of the DIAGRAM grammar, highlighting the systematic nature of the metarule approach.
Key Insights
The primary "aha moment" of this research is the realization that rule transformation can substitute for tree transformation. By generating rules that expect words in their "transformed" positions, the system preserves the efficiency of context-free parsing.
Furthermore, the use of APSGs allows metarules to remain compact. Because features like number agreement are handled by the annotations (RSET/ASET), the metarules do not need to account for them explicitly; these features are simply carried over to the newly generated rules. This leads to "definitional compactness," where a small number of metarules can cover a vast array of linguistic phenomena.
Limitations and Future Work
Despite its successes, the system faces several challenges:
- Rule Explosion: If not carefully constrained, metarules can generate an exponential number of rules, potentially slowing down the parser.
- Unbounded Dependencies: The current framework struggles with "infinite schemas," such as conjunction reduction (e.g., "John likes apples, oranges, pears..."), which do not have a fixed upper bound.
- Declarative Notation: The original implementation relied on LISP procedures. While powerful, transforming these procedures is difficult. Future work suggests a move toward more declarative notations to make metarules more robust and easier to manipulate.
Conclusion
Konolige’s work represents a pivotal step in bridging the gap between theoretical linguistics and computational efficiency. By utilizing metarules to expand an Annotated Phrase-Structure Grammar, the system provides a method for capturing deep linguistic generalizations while maintaining the practical performance required for real-world natural language processing.
Summary updated