Introduction
Stuart Shieber’s 1985 paper addresses a fundamental challenge in natural language processing: the efficient parsing of complex-feature-based formalisms. While context-free grammars (CFGs) use a finite set of atomic symbols, modern linguistic theories (like LFG, GPSG, and PATR-II) utilize directed acyclic graphs (DAGs) of features. These feature structures can be recursive, leading to an infinite domain of possible symbols. This infinity causes standard top-down parsers, such as Earley’s algorithm, to fail because the prediction step can enter an infinite loop.
The Problem: Infinite Search Spaces
In the mid-80s, the shift toward feature-rich grammars created a tension between expressive power and computational tractability. Standard Earley parsers rely on a finite set of categories to manage the "prediction" phase. With infinite feature structures, the parser might hypothesize increasingly complex versions of a category indefinitely. Previous attempts to solve this involved stripping features to create a "context-free backbone," but this often resulted in "gap proliferation"—the generation of numerous impossible structures that could have been ruled out early if features were considered.
The Restriction Method
Shieber proposes Restriction as a principled middle ground. The technique involves three core components:
- The Restrictor: A grammar-dependent specification of which feature paths are "significant" for guiding the search.
- The Operation: A mapping that "throws away" information not specified by the restrictor, effectively grouping an infinite space of structures into a finite set of equivalence classes.
- The Algorithm: An extension of Earley’s algorithm where prediction is based on the restricted version of a feature structure rather than the full, potentially infinite structure.
Because the restricted structure subsumes the original, the parser remains correct and complete. Crucially, because the number of restricted structures is finite, the algorithm is guaranteed to terminate.
Evaluation and Results
The method was evaluated using the PATR-II Experimental System at SRI International on a test set of five sentences designed to exercise complex linguistic phenomena like Wh-movement and subcategorization.
As shown in Table 1, increasing the specificity of the restrictor leads to a dramatic reduction in the number of predictions. By moving from a simple category-only restrictor to one including subcategorization, gaps, and verb forms, the parser eliminated between 52% and 88% of unnecessary chart edges. Furthermore, the algorithm successfully handled recursive "counting grammars" that would cause naive extensions of Earley’s algorithm to loop infinitely.
Conclusion and Future Work
Shieber’s work demonstrates that full feature information is not required for effective search filtering; rather, a well-chosen subset of features is sufficient to maintain finiteness and improve efficiency. While the choice of restrictor currently requires manual tuning by a grammar designer, the principle of restriction provides a robust framework for extending parsing algorithms to complex formalisms. Future work may explore automated restrictor selection and the application of restriction to other parsing techniques like LR table construction and efficient indexing of chart edges.
Summary updated