Computational Complexity in Two-Level Morphology

G. Edward Barton Jr.ACL 1986

In 1985, G. Edward Barton, Jr. provided a rigorous theoretical reality check for the field of computational linguistics. While the "two-level" model of morphology was celebrated for its use of efficient finite-state machinery, Barton demonstrated that the general problem of mapping lexical forms to surface spellings is actually NP-complete, and can even escalate to PSPACE-complete under certain conditions.

The Search vs. Step Fallacy

Morphological analysis involves breaking down words into stems and affixes while accounting for spelling changes (e.g., fly + s becomes flies). In the early 1980s, the "Kimmo" system became the gold standard, using finite-state transducers (FSTs) to mediate between a dictionary (lexical level) and actual spelling (surface level).

Barton challenged the assumption that because FSTs are fast to operate, the entire system is inherently efficient. He argued that while individual FST steps are fast, the computer must find a path that satisfies many FSTs simultaneously. This search space can grow exponentially due to local ambiguities.

A recognition trace for the surface form "spiel," illustrating the extensive backtracking and lexicon transitions required during analysis.

As seen in the recognition of "spiel," the system must navigate complex "letter trees." In languages with long-distance dependencies, such as vowel harmony, the system might not realize a stem is invalid until the very end of a word, leading to massive backtracking.

Proving Hardness: SAT Reduction

Barton employed mathematical reduction to prove that two-level morphological analysis is computationally hard. He demonstrated how to encode a Boolean Satisfiability (SAT) problem into a Kimmo system by constructing "consistency automata" to ensure variables are assigned consistent truth values.

A state table for a consistency automaton used in the SAT reduction to enforce uniform truth values for variables.

By encoding logical variables as characters and using state tables to enforce consistency (as shown above), Barton proved that if a Kimmo system can generate a surface string from a lexical string, it effectively solves the SAT problem. This confirms that the general problem is NP-complete.

The Danger of Null Characters

The complexity increases further with the use of "null" characters for insertions and deletions. Barton showed that if these are unrestricted, the lexical and surface strings can differ radically in length, allowing the system to simulate the intersection of an arbitrary number of finite-state automata. This pushes the problem into the realm of PSPACE-completeness, a much harder class of problems.

Conclusion

Barton’s findings suggest that the efficiency of natural language processing is not a guaranteed property of the FST model itself, but likely a property of the specific constraints found in human languages. He suggested that PSPACE-completeness could be avoided by placing restrictions on null characters, such as forbidding an entire lexicon entry from being deleted on the surface. His work remains a foundational reminder that local efficiency does not always scale to global performance.

Summary updated

BibTeX
@inproceedings{jr1986computational,
  author = {G. Edward Barton Jr.},
  title = {{Computational Complexity in Two-Level Morphology}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {1986},
  doi = {10.3115/981131.981140},
}
Figure