Abstract
In computational linguistics, unification is a fundamental operation for merging feature descriptions to ensure grammatical agreement. However, the introduction of disjunction (logical OR) into these descriptions renders the unification problem NP-complete. Traditional methods relying on Disjunctive Normal Form (DNF) expansion suffer from exponential state-space explosion, making complex grammars computationally intractable. This paper presents a "successive approximation" method that prioritizes definite information to prune the search space, enabling efficient unification even in grammars with hundreds of disjunctions.
The Challenge of Disjunction
Standard unification merges sets of feature-value pairs efficiently. However, modern linguistic theories often require disjunctive descriptions—for example, specifying that a lexical item is either a noun or a verb. The standard approach to handling these disjunctions is to expand them into DNF, creating a separate non-disjunctive structure for every possible combination of choices.
For a grammar with $d$ disjunctions, this leads to $2^d$ possible states. In large-scale grammars, such as Systemic Functional Grammars (SFG), $d$ can exceed 300, resulting in a state space larger than the number of particles in the universe. This "exponential explosion" makes traditional parsing impossible for complex sentences.
The Successive Approximation Algorithm
The proposed method avoids exhaustive expansion by treating unification as a process of narrowing down possibilities. The algorithm operates in three distinct stages:
- Definite Unification: The system first unifies only the "definite" information—the parts of the descriptions that are not contained within disjunctions. This step uses standard, linear-time Directed Graph (DG) unification to establish a base of certain constraints.
- Compatibility Filtering (CHECK-INDEF): The algorithm then examines the "indefinite" (disjunctive) components. Each disjunct is checked against the definite result from Step 1. If a disjunct contradicts the definite information, it is immediately discarded. If only one disjunct remains in a set, it is promoted to "definite" status, and the process iterates.
- N-wise Consistency Checking: If multiple disjunctions remain, the algorithm performs a more exhaustive check to ensure that choices across different disjunctions are mutually compatible. While this step is computationally expensive, the pruning from Step 2 often makes it unnecessary or significantly reduces its scope.
Key Insights: Definite Information as a Constraint
The core innovation lies in using definite information as a powerful filter. In real-world linguistic data, most potential "OR" branches are locally or globally incompatible with the "MUST" requirements of the sentence structure. By delaying DNF expansion and applying these constraints early, the algorithm kills off invalid search paths before they can contribute to combinatorial explosion.
This approach shifts the complexity from the worst-case $O(2^d)$ toward an average-case performance closer to polynomial ($O(d^2 n \log n)$). The algorithm is structured so that the cheapest operations occur first, and the most expensive consistency checks are deferred as long as possible.
Experimental Results and Feasibility
The method was evaluated using an experimental parser and two variants of a Systemic Functional Grammar: $G_{98}$ (98 disjunctions) and $G_{440}$ (440 disjunctions).
Key findings include:
- Scalability: The system successfully parsed sentences that would be impossible under DNF expansion. For a 10-word sentence, the $G_{440}$ grammar took approximately 203.5 seconds. While slower than the smaller $G_{98}$ (28.6 seconds), the growth was not exponential relative to the number of disjunctions.
- Pruning Efficiency: In many test cases, the algorithm resolved all ambiguities during the
CHECK-INDEFphase, avoiding the expensive N-wise consistency checks entirely.
Conclusion
By prioritizing definite constraints and delaying disjunctive expansion, this successive approximation method makes unification-based grammars with heavy disjunction computationally feasible. While the underlying problem remains NP-complete, this approach demonstrates that the average-case complexity for natural language processing is manageable, providing a practical path forward for large-scale computational linguistics.
Summary updated