Abstract
Typed Feature Structure Grammars (TFSGs) provide a robust framework for complex linguistic description but suffer from significant computational overhead during the unification process. While statistical methods like "quick-check" have been developed to mitigate this, they require extensive training phases that hinder grammar development. This paper presents a non-statistical indexing approach using static analysis of grammar rules and type signatures. By identifying indexing paths at compile-time, the proposed method achieves parsing speedups comparable to statistical techniques without the associated training costs, offering a more efficient workflow for computational linguists.
The Challenge of TFSG Parsing
In computational linguistics, TFSGs (such as HPSG) represent grammatical categories using hundreds of feature-value pairs. The primary bottleneck in parsing these grammars is unification: the process of merging two feature structures to determine compatibility. In a standard chart parser, a vast majority of the system's time is spent attempting to unify "edges" (grammatical constituents) that ultimately fail.
Existing solutions often rely on statistical profiling—running thousands of test parses to identify which paths usually lead to failure. However, this requires a lengthy training phase every time a grammar is updated, creating a significant bottleneck for developers.
Methodology: Static Analysis and Path Indexing
The authors propose a two-layered indexing strategy that replaces statistical training with a static analysis of the grammar's rules and type signatures. This approach consists of two primary components:
- Positional Indexing: A baseline filter that narrows potential matches based on their rule number and position within the grammatical rule.
- Path Indexing: The core innovation involves identifying "indexing paths" at compile-time. The researchers introduced a mathematical framework called StaticCut to identify nodes in a feature structure that can be ignored during the initial indexing phase because they do not influence the final unification outcome.
By classifying variables as "active" or "inactive" based on how they share structure across categories, the parser can extract a vector of types from specific paths. This allows for a high-speed "pre-check" that rules out impossible unifications before the expensive full unification process begins.
Experimental Evaluation
The approach was evaluated on two large-scale grammars: MERGE (a conservative adaptation of the English Resource Grammar) and the standard ERG (English Resource Grammar). Testing involved over 1,500 sentences from the Wall Street Journal and the Brown Corpus.
Key Results
- Efficiency in Development: The static method significantly reduces setup time. For the MERGE grammar, indexing took approximately 8 minutes, compared to over 3.5 hours for statistical quick-check training.
- Parsing Performance: On the ERG, positional indexing improved average parse times by 13.9%, with peak improvements of 36.5%. In the best-case scenarios, static analysis reduced failed unifications by nearly 50%.
- Static vs. Statistical: On the MERGE grammar, the static method provided a consistent boost, whereas the statistical quick-check actually caused a 4.5% slowdown due to its inherent complexity and overhead.
Conclusion
The study demonstrates that the structure of grammar rules themselves contains sufficient information to predict unification failures without the need for empirical data. While statistical methods remain effective, static indexing provides a foundation that can be combined with other techniques for optimal performance. Future work will explore using static analysis to "shrink" data structures in the chart, potentially reducing the memory footprint and copying costs of large-scale parsing.
Summary updated