The Computational Gap Between Derivations and Structures

This direction is no longer present in the current build. Its last version stays readable and citable here.

Version 1 of 19 papers17 conceptsfrozen 2026-10-04

In natural language processing, we often want to find the "best" interpretation of a sentence. Intuitively, this seems like a single search problem. However, research into probabilistic grammars has revealed a fundamental divide between finding the most likely process to build a sentence and finding the most likely result.

This distinction—between the Most Probable Derivation (MPD) and the Most Probable Parse (MPP)—is the difference between a problem that is computationally trivial and one that is NP-hard.

The Path vs. The Destination

To understand this gap, imagine a city map where multiple different routes (derivations) can lead to the same landmark (a parse tree).

In a simple Probabilistic Context-Free Grammar (PCFG), every unique sequence of rule applications results in a unique tree. Because there is a one-to-one mapping between the "path" and the "destination," finding the most likely tree is as simple as finding the most likely sequence of rules using efficient algorithms like Viterbi or CKY.

The problem changes when we move to more sophisticated models like Data-Oriented Parsing (DOP). As Khalil Sima'an explains in Learning Efficient Disambiguation, these models allow for overlapping subtrees. This means a single syntactic structure can be generated by many different combinations of fragments.

To find the most probable parse tree, you cannot simply pick the best derivation; you must sum the probabilities of all possible derivations that produce that specific tree.

The Complexity Leap

In Computational Complexity of Probabilistic Disambiguation by means of Tree-Grammars, Khalil Sima'an provided the formal proof that this summation requirement triggers a "computational wall."

While identifying the single most likely derivation remains computationally efficient (polynomial time), determining the most probable parse is NP-hard. The difficulty arises because the number of possible derivations for a single structure can grow exponentially. When the objective requires maximizing the sum of probabilities across these hidden paths, the search space becomes intractable for exact solutions.

This isn't just a theoretical quirk of parsing trees. I. Dan Melamed demonstrated in Statistical Machine Translation by Parsing that the same logic applies to translation. If a translation system treats translation as a form of parsing, finding the most probable output string is NP-hard because a single string can be generated by an exponential number of distinct syntactic derivations.

Why the Bottleneck Persists

The "efficiency bottleneck" identified by Khalil Sima'an forced researchers to choose between mathematical exactness and processing speed. If you want the true "Most Probable Parse," you are essentially solving a version of the traveling salesman problem for language.

Recent re-evaluations by Eric Corlett and Gerald Penn in Reanalyzing the Most Probable Sentence Problem suggest that the practical difficulty of these problems is closely tied to entropy. When a grammar is highly ambiguous—meaning the probability is spread out over many different derivations—the "hardness" of finding the aggregate winner becomes more pronounced.

Engineering Around the Hardness

To make these models practical, researchers developed clever approximations. In Efficient Algorithms for Parsing the DOP Model, Joshua Goodman 0001 introduced a breakthrough by showing that the exponentially large grammar of a DOP model could be reduced to a compact, equivalent PCFG.

Instead of trying to solve the NP-hard summation directly, Goodman proposed the "Maximum Constituents" algorithm. This approach shifts the goal: rather than finding the tree with the highest total probability, it finds the tree that maximizes the expected number of correct constituents. This heuristic provided a 500x speedup, proving that while the exact "Most Probable Parse" might be out of reach, we can still achieve high-accuracy disambiguation by changing how we define the "best" result.

Papers in this version

History & citationVersion 1 · 2026-10-04

No longer present in the current build · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_the_computational_gap_between_derivation_39fa3ddd,
  title = {The Computational Gap Between Derivations and Structures},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/the-computational-gap-between-derivations-and-structures/rdr_39fa3ddd2df24bb09cf6bb708cca2f66},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-25},
}

This exact version (version 1, frozen text):

@misc{lacuna_the_computational_gap_between_derivation_39fa3ddd_v1,
  title = {The Computational Gap Between Derivations and Structures},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/the-computational-gap-between-derivations-and-structures/rdr_39fa3ddd2df24bb09cf6bb708cca2f66/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-25},
}