Some Computational Complexity Results for Synchronous Context-Free Grammars
Paper · 2005 · Giorgio Satta and Enoch Peserico
Summary
A translation grammar can specify both how a sentence is built and how its parts change order in another language. The grammar pairs rules for the source and target, so expanding a phrase on one side also expands its counterpart on the other. This gives a translation system a way to represent nested structure and to move whole constituents. Giorgio Satta and Enoch Peserico ask what that flexibility costs when a system must recognize a pair of sentences or choose a target analysis. Their starting point is the context-free grammar and its use in machine translation.
The authors first study membership. Given a grammar and a pair of strings, can its paired rules generate both strings in a single derivation? They prove that this decision is NP-hard when the input grammar can contain arbitrarily long productions. They also examine a common approach that keeps a chart of partial analyses. A rule can order its corresponding constituents so differently across the two strings that every order of combining the constituent pairs leaves many disconnected stretches at some intermediate step. A chart that records the boundaries of those stretches must support states with many position indices. The paper gives a worst-case time lower bound for standard tabular methods that use this representation.
A separate result concerns choosing the most probable target parse tree for a given source string. A parse tree describes how a grammar builds a sentence out of smaller pieces. The same source string can have several such trees, and several of them can contribute probability to the same target tree. Finding the target tree with the largest combined probability is NP-hard even for the short rules used in the proof. By comparison, when both strings are given and rule length has a constant bound, a known polynomial-time search can find the highest-probability pair of trees. The two tasks differ in whether the score belongs to one paired analysis or pools support across source analyses.
The paper establishes these results through constructed instances. Its examples separate the cost of tracking constituent boundaries from the difficulty of aggregating probability across derivations. The authors leave the practical size of these effects to experiments on multilingual corpora.
Deep dive: Some Computational Complexity Results for Synchronous Context-Free Grammars
The paper explains why synchronous context-free grammars can make it hard to recognize a sentence pair or find the most probable translation tree. · about 32 minutes to read
The problem and its context
Why pair grammar rules?
The paper traces statistical translation back to the IBM approach, where elementary operations act on source words. A word can be translated, moved or duplicated as part of constructing the target sentence. Subsequent work uses larger units such as phrases. A phrase can carry several words through the same translation operation, giving the system a larger unit to work with. The paper places this development in the line from Brown and colleagues’ A Statistical Approach to Language Translation to Improved Alignment Models for Statistical Machine Translation and Och and Ney’s Discriminative Training.
In the authors’ account, these systems still have the generative capacity of finite-state machinery. They identify nested structure and substantial differences in word order as reasons to investigate a more expressive formalism. A choice about where a phrase appears in translation can affect material assembled by several further rules. A grammar that treats that phrase as a constituent can express the ordering of the phrase at one level and the ordering of its contents at another. This is the part of the problem that paired rewriting addresses directly.
The idea comes from work on compilers and formal translation. Each production of an ordinary context-free grammar expands a category into a sequence of words, other categories or both. A synchronous production places two such expansions together and links the category occurrences they introduce. A link says which source occurrence and target occurrence must be expanded together later. The two sides can place their linked occurrences in different orders. Once a phrase has been introduced, its internal derivation follows the links independently of where the whole phrase sits in each sentence.
The authors situate their definition among several translation proposals that use synchronous rewriting or related forms of structured correspondence. Wu studies inversion transduction grammars and their use in analyzing paired sentences. Yamada and Knight supply the basis for the paper’s example of a grammar fragment and also illustrate a translation task where a source parse is supplied. The paper identifies Alshawi and colleagues and Gildea as further examples in this line of work. Stochastic Inversion Transduction Grammars and Bilingual Parsing of Parallel Corpora, Yamada and Knight’s syntax-based translation approach, Alshawi and colleagues’ dependency translation approach, Loosely Tree-Based Alignment for Machine Translation
Statistical parameters add a ranking problem to this setup. A grammar may allow several derivations, with some assigned more probability than others. The paper describes automatic estimation from corpora of translation pairs as part of the surrounding field. Its own questions begin once the productions or their probabilities are available. They concern the work of searching a grammar and the information a search procedure has to preserve.
Recognition and decoding pose different questions
Membership is the recognition question. The input supplies a grammar and both strings. The answer is yes if there is some complete linked derivation whose yields are exactly those strings. The yield of a tree is the string obtained by reading its terminal material in order. A yes answer therefore certifies a relationship under the grammar, even if there are several derivations and the grammar gives no basis for preferring one of them.
The paper connects this question to the analysis of parallel corpora. A joint analysis can provide brackets around corresponding phrases or align words and phrases across the strings. A recognition procedure underlies such uses because a proposed correspondence has to fit both sequences. The paper is concerned with this joint parsing problem.
Decoding starts from a different input. A source sentence is supplied, and a target-side result has to be found. Depending on how the task is defined, the input can be a source string or an already chosen source tree. The output can be a representation of possible analyses with probabilities, a target string, or a target tree selected by a scoring rule. Those choices determine which alternatives the algorithm must search over and which probabilities it must combine.
The paper focuses on two tree objectives. One gives the system both strings and asks it to choose a compatible pair of trees. The other supplies only the source string and asks for a single target tree, scoring each candidate across the source trees that can lead to it. In the first objective, the source analysis is part of what the system selects. In the second, it is an unobserved part of the derivation whose contributions enter the score. This is a distinction about what counts as one answer, even when the same grammar supplies all the candidate derivations.
The authors position the work as a continuation of earlier complexity analysis for word-based translation. Adding syntactic structure can make more kinds of rearrangement expressible. Whether a search over these rearrangements is efficient depends on the precise input and objective, including whether the grammar is itself part of the input and whether rule length is bounded independently of that grammar. Knight’s study of decoding complexity
The method, step by step
Read the two sides of a rule together
A terminal is a symbol that can appear in a completed string. A nonterminal is a grammatical category that still needs expanding. In a synchronous rule, each nonterminal occurrence on the first right-hand side has exactly one partner on the second. Indices mark these partnerships. The category name tells the grammar which expansions are possible. The index tells it which occurrence across the two sides must take part in the same expansion.
The distinction matters when a category occurs more than once. Identical category names can label separate constituents that occupy different positions and have different partners. Conversely, two linked occurrences can have different category names. They form a pair because they share an index. In the paper’s definition, the left-hand categories of the paired productions may also differ, which lets that pair of linked occurrences be rewritten together.
The paper illustrates reordering with an English-to-Japanese grammar fragment. In the English expansion of a verbal constituent, a verb category precedes a category for the material headed by “to.” In the Japanese expansion, the corresponding categories occur in reverse order, and the rule adds the terminal “ga.” The inversion operates on the constituents while they are still categories. Further expansions supply their words. The Japanese side can therefore change the order of two corresponding phrases and add lexical material in the same production.
A derivation begins with a linked pair of start symbols. At each step, the grammar expands a linked pair whose category names match the left-hand sides of an available production. The new right-hand sides use fresh indices so that the links they introduce remain distinct from links elsewhere in the current strings. Repeating the operation can produce two terminal strings, together with a tree for each side. A canonical order, such as always expanding the leftmost remaining category on the source side, provides a consistent way to write the sequence of rules.
Building and scoring a synchronous derivation
The steps in order.
Specify the grammar and its derivations
The paper represents the synchronous context-free grammar, abbreviated SCFG, by a tuple.
G = (Vₙ, Vₜ, P, S)
Here G is the grammar, Vₙ is its finite set of nonterminal symbols, Vₜ is its finite set of terminal symbols, P is its finite set of paired productions, and S is its start symbol. The two symbol sets are disjoint, and S belongs to Vₙ. The parentheses group the components that specify G.
The grammar annotates nonterminal occurrences with indices to write the correspondence explicitly.
I(Vₙ) = {A⁽ᵗ⁾ | A ∈ Vₙ, t ∈ ℕ}
I(Vₙ) is the set of indexed nonterminals. A is a nonterminal category, A⁽ᵗ⁾ is an occurrence of that category annotated with t, and t ranges over the integers in the indexing set ℕ. The symbol ∈ means “belongs to.” The braces collect the possible indexed symbols, and the vertical bar introduces the conditions on A and t. An indexed string may contain these symbols and ordinary terminals. Two strings are synchronous if they use the same set of indices and every index occurs exactly once on each side. This condition gives every indexed occurrence a unique partner.
A paired rule has the following form.
[A₁ → α₁, A₂ → α₂]
A₁ and A₂ are the source and target categories being expanded. The arrow means that the category to its left can produce the string to its right. The strings α₁ and α₂ are the two expansions, with their nonterminals linked by indices. The brackets group the expansions into a single production. Each α may place terminals before, after or between its indexed categories. A permutation of the linked positions describes their relative order across the rule, even when some of the corresponding categories have different names.
In measuring the size of a grammar, the authors count the symbols in the productions on both sides.
|G| = ∑[A₁ → α₁, A₂ → α₂] ∈ P |A₁α₁A₂α₂|
The outer bars in |G| denote grammar size. The summation ranges over all paired productions in P. A₁ and A₂ are the categories on the left of the rewrite arrows, and α₁ and α₂ are their expansions. The inner bars give the length of the concatenation A₁α₁A₂α₂. Thus the size measure includes the left-hand category symbols as well as the material introduced by each production.
A single step is written as a relation between pairs of strings.
[γ₁, γ₂] ⇒G [δ₁, δ₂]
The γ symbols name the strings before the step and the δ symbols name the strings after it. The subscripts identify the source and target sides. The brackets keep the two sides together, while ⇒G says that the change is possible by applying one paired production of G. The paper requires the occurrences being expanded to share an index, and it renames the indices on the expansions by a one-to-one function. This function leaves terminals alone, and it chooses new index values that do not occur anywhere in the strings being rewritten. The parts of the strings before and after the chosen occurrences stay in place.
Allowing any finite sequence of steps, including an empty sequence, gives the relation used to define the grammar’s translation possibilities.
T(G) = {[w₁, w₂] | [S⁽¹⁾, S⁽¹⁾] ⇒*G [w₁, w₂], w₁, w₂ ∈ Vₜ*}
T(G) is the set of complete string pairs licensed by G. The two occurrences S⁽¹⁾ are start symbols with matching indices. The arrow with a star, ⇒*G, permits any finite number of grammar steps, and the star on Vₜ means that each w is a finite string of terminal symbols. The braces and vertical bar collect all pairs satisfying both the derivation and terminal-string conditions. Membership asks whether a particular input pair belongs to T(G).
The paper also looks at the translations available when only the first string is fixed.
T(G, w₁) = {w₂ | [w₁, w₂] ∈ T(G)}
T(G, w₁) is the set of target strings reachable from the given source string w₁. Each w₂ is a terminal string. The condition inside the braces refers to the same paired relation, so a target string qualifies whenever at least one synchronous derivation yields that string with w₁.
Turn a truth assignment into a membership instance
The first proof uses a reduction from three-satisfiability, called 3SAT. Its input is a collection of variables and clauses. A literal is a variable or its negation, and a clause is satisfied when at least one of its literals is true. The problem asks whether there is a choice of truth values that satisfies every clause. The grammar and strings in the reduction are constructed from that input. A successful synchronous derivation must encode a satisfying choice of values, while a satisfying choice must allow a derivation of the constructed pair.
The source string is a concatenation of variable-specific blocks. Each block uses alternating symbols assigned to its variable. The target string lists the clause symbols in clause order. A clause is treated as an atomic terminal for this purpose. The source side controls which truth value is chosen for each variable. The target side controls whether those choices supply evidence for every clause. An occurrence of a literal matters on both sides because the start rule creates a linked position for it.
To arrange those positions, the authors first put all occurrences of each variable together. Within the variable’s list, the positive occurrences come before the negative occurrences. Within each sign, the order comes from the order of the clauses. The paper calls the clause number attached to a position d(i, j), where i identifies the variable and j the position in that variable’s list. It uses sᵢ for the number of positive occurrences and tᵢ for the total number of occurrences of that variable. A positive occurrence can contribute a clause under the true choice for the variable, and a negative occurrence under the false choice.
The variable-local position is then mapped to a position in the concatenation of all occurrence lists.
e(i, j) = j + ∑ₖ₌₁ⁱ⁻¹ tₖ
The function e gives the overall source-side position of occurrence j of variable i. The summation adds the occurrence counts tₖ for variables k preceding i, with the sum taken as zero when there are no preceding variables. Adding j places the occurrence at its position within the current variable’s block.
On the target side, the same positions are organized by clause. Each clause reserves a place for each of its literal occurrences. The paper maps every source occurrence to a distinct place within the appropriate target block.
π(e(i, j)) = 3 · [d(i, j) − 1] + h
The permutation π maps the overall source position e(i, j) to its target position. The function d(i, j) identifies the clause containing that occurrence, and h is its occurrence rank among the positions assigned to that clause in the source enumeration. The subtraction and multiplication count the target positions belonging to earlier clauses. Adding h selects a position in the current clause’s block. The mapping gives the single start production a source order grouped by variable and a target order grouped by clause.
The body of the construction uses alternating symbols to force coherence within a variable’s block. The source block for variable i has tᵢ + 1 symbols and is divided among tᵢ linked occurrences. The two patterns of division place the extra symbol at opposite ends. One pattern gives the first occurrence a pair of symbols and the other gives the last occurrence a pair. Each remaining occurrence takes a single symbol. Because the symbols alternate, assigning the extra symbol at one end determines which symbol is available at later positions. The rule choices across the block must fit that same pattern.
This device makes a global truth choice emerge from local production choices. In the pattern associated with truth, the grammar permits a positive occurrence to emit its clause symbol and permits it to emit the empty string. Negative occurrences can only emit the empty string under that choice. In the other pattern the roles of positive and negative occurrences reverse. Here the empty string, conventionally written ε, contributes no terminal to the target yield. A literal occurrence thus has a way to serve as a clause witness when its truth value permits it, and can be silent when another occurrence supplies the witness.
Why offer silence even for a true literal? The target contains each clause symbol once. Several literals in a clause may be true, but the derivation only needs one of them to produce that symbol. Once the start production puts all potential witnesses in clause order, the dispensable emissions can disappear without disturbing the order of the witnesses that remain. The source still uses every literal position because each corresponding production has to contribute its share of the alternating block.
The correctness argument follows the two directions required by the reduction. Given a derivation of the prescribed pair, the source blocks determine consistent truth choices. Each target clause symbol must have come from an occurrence allowed to emit it under those choices. Therefore every clause has a true literal. Given satisfying choices, the source blocks can use the corresponding divisions. For each target clause, one true occurrence emits the clause symbol and the others are silent. The fixed target order then gives the required clause string. The grammar and both strings have sizes polynomially related to the input formula, so the construction transfers the hardness of the starting decision problem.
Count what a chart has to remember
The second proof asks a more specific algorithmic question. Suppose a parser has already recognized some constituent pairs for a production and is gradually combining them. A chart entry records which parts of the two input strings have been accounted for. Neighboring constituents can be represented by the boundaries of their combined span. Separated constituents require separate spans because the material in each gap still has to be accounted for.
The paper gives a left-to-right example. After taking the first constituent pair, the parser records a span on each side. After taking the next source constituent, it can extend the source span to cover both. If the two target constituents are separated, the target side of the chart entry keeps separate boundaries for them. The apparent simplicity of the source order therefore gives little information about the complexity of the target side of the same state.
The proof treats each constituent pair as a choice of positions. Imagine marking the chosen position in the source rule and its partner in the target rule. In each order the marked positions form runs. A run is a maximal stretch of marked positions with no unmarked position between them. The chart representation associates separate runs with separate stretches that have to be recorded. The authors want a permutation that forces many runs somewhere, even if the parser is free to choose the order in which it marks the pairs.
They obtain one by transposing a rectangular arrangement of positions. The source order groups positions into blocks of a certain width. The target order groups together the positions with the same offset in those source blocks. The parameter governing the block width is set as follows.
q = ⌊√(r/2)⌋
Here r is the number of paired positions in the rule used for the construction, and q is the width of a source block. The radical denotes square root, and the floor brackets round down to an integer. For r at least 8, the paper has q at least 2. It uses 2q source blocks, each with q positions, and q target blocks, each with 2q positions. Any positions beyond this rectangle are left as padding.
The map within the rectangle is the transpose.
πᵣ(q · (i − 1) + j) = 2q · (j − 1) + i
The function πᵣ is the permutation on the r linked positions. The index i identifies a source block, and j identifies a position within that block. The argument on the left gives the position in source order. The expression on the right puts it in target block j, at offset i. Multiplication and addition convert each block and offset into a position in its respective order. For the padding positions, the map leaves each position where it is.
The proof compares two events during the gathering of the pairs. One is the first time a source block becomes full. The other is the time the last previously untouched source block receives its first mark. Each block has room for more than one position, so starting a block and completing it are distinct events. A source block between those events contains both marked and unmarked positions.
If every block has started before any block has finished, there is a stage when every source block contains both kinds of positions. Within each such block, a marked position borders an unmarked one somewhere. This gives an endpoint of a marked run. A run can account for endpoints in at most two of those blocks. The result is at least q separate runs in the source order at this stage.
If a block has finished before every block has started, there is a stage with both a full source block and an empty one. Under transposition, the full block supplies a marked position in each target block, at the same offset each time. The empty block supplies an unmarked position at a different fixed offset in each target block. Between the marked positions in consecutive target blocks there is an unmarked position. Thus the target order has at least q separate runs at that stage.
Every order of gathering the pairs falls into one of those cases. The argument needs a stage at which either side has the required number of runs. The side and the stage may differ from one gathering order to another. This is enough for the chart lower bound because the parser has to be able to represent the intermediate state when that stage is reached.
Define what receives probability
For the decoding analysis, the authors equip the paired productions with probabilities. A probabilistic SCFG, abbreviated PSCFG, consists of G and a function pG assigning a probability to each paired production. The normalization is by the ordered pair of nonterminals being expanded. Possible expansions of that pair share the probability assigned to its next rewriting step.
∑α₁, α₂ pG([A₁ → α₁, A₂ → α₂]) = 1
The sum runs over paired productions with left-hand categories A₁ and A₂. The expansions α₁ and α₂ vary over the available right-hand sides for this pair. The function pG supplies each rule probability, and the right-hand side is the total for the distribution. The conditioning on both categories is what allows a source category and a differently named target category to determine the next choice together.
The probability of a derivation multiplies the probabilities of the rules used along it.
pG(σ) = ∏ᵢ₌₁ⁿ pG(sᵢ)
The symbol σ denotes a derivation in canonical order, and n is its number of production applications. The rule at application i is sᵢ. The product sign says to multiply the corresponding values of pG, including a factor for each application when a rule is used repeatedly.
A string pair can be reached through several derivations. The grammar therefore gives the pair a score by summing their contributions.
pG([w₁, w₂]) = ∑σ ∈ D([w₁, w₂]) pG(σ)
Here w₁ and w₂ are the two terminal strings. D([w₁, w₂]) contains all their canonical derivations, and σ ranges over that set. The pG on the left gives the score of the pair, while each pG on the right gives the score of a derivation. The sum treats different analyses that lead to the same strings as contributions to a shared outcome.
The paper writes the paired trees associated with a derivation σ as tσ,ₗ and tσ,ᵣ, for the left and right trees. It assigns their paired analysis the derivation probability pG(σ). If w is a given source string and t a target tree, the score for t pools support over source analyses with the required yield.
pG([w, t]) = ∑y(t′) = w pG([t′, t])
The notation y(t′) gives the terminal yield of source tree t′. The sum ranges over the source trees whose yield equals w. The term pG([t′, t]) is the probability for the paired analysis with those source and target trees. Thus pG([w, t]) is the combined probability attached to the target tree when the source is specified only as a string.
When both strings are given and the desired output is a tree pair, the optimization is different.
argmax y(t₁) = w₁, y(t₂) = w₂ pG([t₁, t₂])
The operator argmax selects an argument at which the displayed score is largest. Here the argument is the pair of trees t₁ and t₂, subject to having the yields w₁ and w₂. The scoring function pG([t₁, t₂]) belongs to that joint analysis. For bounded rule length, the paper points to extensions of Viterbi search that work with parse forests. A parse forest stores alternative analyses with shared pieces. The search uses the best available subanalysis for the relevant state when assembling a highest-probability pair.
When the input is only w and the output is a target tree, maximization applies after the source contributions have been combined.
argmaxₜ pG([w, t])
Here argmaxₜ selects a target tree t, and pG([w, t]) is its summed score for the given source string w. The best individual paired derivation may support a different target from the one with the greatest total support. It is that total that the algorithm has to compare across target trees.
Encode a consensus string in a target tree
The authors study the decision version of this last objective. Given a probabilistic grammar, w and a rational threshold d in the probability interval, the question is whether some target tree attains at least d.
maxₜ pG([w, t]) ≥ d
The operator maxₜ gives the largest score over target trees t. The function pG([w, t]) scores each tree against the source string w by summing over source analyses. The inequality ≥ asks whether the score reaches or exceeds the threshold d. This decision problem supplies the form needed for a reduction from another threshold problem.
The starting point is consensus for a probabilistic regular grammar. In the form used by the authors, a rule either emits one terminal and moves to a new nonterminal, or terminates with ε. A completed run of these rules gives a terminal string, and its probability is the product of the rule probabilities. A string can have several runs. Its total probability includes all of them. Consensus asks whether some string reaches the given probability threshold. The paper uses the result that this decision problem is NP-complete when the rule probabilities are rational.
The reduction transfers the total probability of a string into the total probability of a tree. The new synchronous grammar has one special terminal, written here as m. A complete derivation produces m on both sides. What varies is the sequence of nonterminal labels above that terminal. Each successive rule introduces at most one linked pair of nonterminals. The trees are unary chains, and their labels carry the information that the terminal yields leave out.
The source tree records the regular grammar’s sequence of states, represented by its nonterminals. The target tree records the sequence of symbols emitted during that run. To achieve this, the construction makes the original terminal symbols available as nonterminals in the new grammar. A symbol that was formerly written into the output string now labels a node of the target tree. The left and right category labels can therefore stand for different things at the same derivation step.
At the start, if the regular grammar emits a symbol and moves to a successor state, the paired grammar introduces a node for that state on the left and a node for the emitted symbol on the right. If the regular grammar can terminate immediately, the paired grammar emits the marker on both sides. For a continuation, the current source category identifies the regular state. The current target category records the previously emitted symbol. For each possible such target category, the construction provides the continuation rules appropriate to the source state. These update the left category to the next state and the right category to the next emitted symbol. A terminating rule emits m on both sides.
Each paired production receives the probability of the regular production it represents. The alternatives for a given pair of categories correspond to the regular grammar’s alternatives from the current state. Consequently the correspondence preserves the contribution of every completed derivation. The target tree spells the emitted string along its chain of labels, while different state paths for that string are recorded in different source analyses. All of those source analyses have the same terminal yield m, so they all enter the score of that target tree.
The two threshold questions now agree. Every string from the regular grammar has a corresponding target chain whose summed score is the probability of the string. Every target chain in the construction represents an emission sequence of the regular grammar. The same threshold can be applied on either side. The paper gives a quadratic construction time in the size of the starting grammar. The cost comes from building the finite rule set, including copies of continuation and termination choices for the possible symbol labels on the target side. There is no parameter estimation step in this proof. The rational probabilities are inputs to the construction and are carried over to the paired productions.
Experiments and results
The proof instances take the place of benchmark data
The paper reports theoretical results. Its inputs are families of grammars and strings designed for the proofs. The membership family comes from 3SAT formulas. The chart family comes from rearrangements of the linked positions in a production. The decoding family comes from probabilistic regular grammars. There is no training split, test split or translation quality score. The English–Japanese example shows how a synchronous derivation works, and it serves as an illustration of the formalism.
The relevant comparisons are between decision problems, restrictions on rules and ways of keeping track of partial derivations. For membership, the outcome is whether the complete string pair can be generated. For the chart analysis, the quantities are the number of separately recorded spans and the resulting worst-case running time. For decoding, the score is the probability of a tree or tree pair under the grammar, and the complexity result concerns finding or deciding whether there exists an output that attains the specified score.
With unrestricted productions, membership is NP-hard
The membership theorem applies when the grammar is supplied with the two strings and the productions can grow with that input. The reduction uses a start production whose linked positions reflect the literal occurrences of the formula. It can therefore group all occurrences by variable on one side and by clause on the other in a single step. The shorter occurrence-level productions then verify whether the variable choices supply the clause witnesses.
The length of the start production matters to the scope of the result. The proof gives a way to translate a growing instance of 3SAT into a growing grammar with a rule that contains the needed correspondence. It establishes NP-hardness for the unrestricted membership problem. A constant cap on production length would prevent the start production in this construction from growing in the required way.
The paper notes that the membership result is also connected to known hardness for a more general class of rewriting systems. It gives the direct reduction to expose what the synchronous grammar is doing. The two strings enforce different constraints on the same set of local rule choices. Checking both yields can therefore recover a global satisfiability condition even though neither yield is written as a truth assignment.
The chart bound holds even with a choice of gathering order
The chart result starts from the worst-case running-time form the authors describe for the standard tabular algorithms under discussion.
Θ(|G| · nᵏ⁽ᴳ⁾)
The notation Θ describes the order of growth up to constant factors. The quantity |G| is the grammar size measured over both sides of its productions. Here n is the input string-pair length, and k(G) is the exponent associated with the grammar. The relevant question is how small that exponent can be made by choosing how to combine constituents.
The transposed-block construction yields the following lower bound for the tabular representation.
Ω(|G| · n^(c · √r))
The notation Ω denotes a lower bound on the order of growth. Again |G| is grammar size and n is the input string-pair length. The symbol r is the longest production length in the theorem, and c is a constant. The exponent depends on the square root of r. The proof gets that dependence by forcing a number of disconnected spans that grows with the block width q. The chart has to distinguish possible substring boundaries for the separated pieces that it records.
The comparison in the chart below uses the smallest rule length for which the paper sets out the block construction. At r = 8, it gives q = 2. The two rows are alternative cases in the proof for that same construction. Each gives a guarantee on the number of spans in the dimension it examines. The marked setting ties the other case.
Guaranteed separate spans in the transposed rule at r = 8
The event order determines which side supplies the same span guarantee.
The numbers
| System or setting | guaranteed separate spans |
|---|---|
| Every source block starts before any fills | 2 |
| A source block fills while another is empty (this paper) | 2 |
The chart compares lower bounds in a constructed production, so its unit measures a requirement of the chart state. It makes no claim that a particular input produces exactly that number of spans or that a parser visits a measured number of states. The argument applies at whatever intermediate step the relevant case identifies. For the general construction, the length of the longest rule controls how unfavorable this stage can become.
One reason the result is stronger than an example against left-to-right parsing is that the algorithm can know the permutation in advance. It may choose an order intended to keep its intermediate states compact. If it begins everywhere before completing any block, the source side supplies the lower bound. If it completes a block while another remains empty, the target side supplies it. The same permutation works against both approaches because the proof is stated for arbitrary gathering orders.
Short productions still allow hard target-tree selection
The decoding result concerns a different source of complexity. The proof grammar can use unary trees, and the input string is the single special terminal. Wide synchronous productions and constituent reorderings therefore play no role in this hardness construction. The target tree’s chain can identify an emitted string while the source tree’s chain identifies a state path. Choosing the tree with the highest aggregate score solves the threshold question for the corresponding consensus string.
The theorem establishes NP-hardness for the decision version of best translated tree selection even with a constant bound on synchronous production length. The threshold is a rational probability supplied with the instance. The reduction preserves individual derivation weights and the totals relevant to the threshold. Its quadratic construction time refers to the conversion of the regular grammar into a synchronous grammar. It is a bound on building the instance, separate from the complexity of solving it.
The result contrasts two uses of a parse forest. With given source and target strings and bounded production lengths, the known polynomial-time procedure can maximize over paired analyses. In the target-tree objective, one output may receive probability from many source trees. Keeping the best single source analysis for each part of a derivation would in general change the score being optimized. The regular-grammar construction demonstrates that the summed objective can be hard even when the underlying trees are structurally simple.
The same construction also separates two grammar formalisms
The authors use the decoding construction to outline a result about expressivity. Their comparison is with stochastic syntax-directed translation schemata, a probabilistic version of the earlier formalism that constrains corresponding category labels. Under that restriction the two trees have the same structure up to reordering of siblings. For the unary trees in the construction, there are no siblings to reorder.
In the paper’s argument, reproducing the target-tree distribution with such a schema would tie the labels of the corresponding source and target chains together. The probabilities of continuations would then give a probabilistic deterministic finite automaton over the emitted labels. The authors appeal to the existence of regular-grammar string distributions that such automata cannot realize. Choosing a regular grammar with one of those distributions gives a synchronous target-tree distribution outside the restricted formalism.
The paper also identifies an earlier hardness result for selecting a best output string in the restricted setting with at most one nonterminal on each right-hand side. Its own result concerns selection of a tree in the more general probabilistic synchronous formalism. In the reduction, every target has the same terminal yield, so a system that returned only the target string would discard the distinctions among the candidate trees. Those distinctions are the ones over which the paper proves hardness.
What the ablations show
The paper reports no empirical ablations and instead compares alternative chart orders for the same permutation, bounded and unrestricted production lengths where relevant to the proofs, and tree scores that either select one joint analysis or sum across compatible source analyses.
Limitations
Limits the authors state
The authors frame their results as worst-case analysis and call for experiments on multilingual corpora to assess their practical effect. The constructed grammars establish that difficult cases exist under the stated conditions. The paper contains no measurement of how often those conditions occur in grammars used for translation or in grammars estimated from parallel text. The example of English and Japanese supplies a concrete illustration of reordering, while the complexity theorems rely on separate, purpose-built instances.
The membership hardness result has an explicit qualification about production length. The unrestricted input allows a production to grow with the grammar. The reduction exploits that permission. Its NP-hardness result alone leaves open what happens under a constant cap, and the proof cannot be reapplied to an arbitrary capped system just by regarding a long start rule as several shorter ones. Such a change would have to preserve the linked ordering on both sides.
The chart theorem has a different qualification. It addresses standard tabular methods that build a production from recognized constituent pairs and represent the resulting spans by their boundaries. The freedom to select a gathering order is already built into the result. A method that uses a fundamentally different representation is outside this particular proof. The growth established for the chart exponent and the NP-hardness of unrestricted membership thus have different scopes. One is a bound for a stated algorithmic approach, while the other is a reduction for the decision problem itself.
The distributional comparison with stochastic syntax-directed translation schemata is presented as an outline. It invokes facts about probabilistic regular grammars and automata and sketches the consequence for unary paired trees. The authors give the construction that motivates the separation and the reason a restricted schema would imply a deterministic automaton. A reader looking for a fully developed treatment of the restricted formalism will find that the paper leaves those definitions and supporting results to earlier work.
Limits that follow from the setup
The decoding theorem is about the exact target-tree objective. It supplies a lower bound for deciding whether any target tree reaches the rational threshold. Approximate scoring, pruning and restricted searches may ask different questions. A method evaluated by how frequently it agrees with an exact answer on a corpus would need an empirical study. The proof gives neither that agreement rate nor the time an approximate method would require on such data.
The unary construction isolates probability aggregation. A source sentence consisting of the marker still has many possible source analyses because a regular grammar can reach the same emitted sequence through different state paths. The growing grammar stores those alternatives. Thus the proof shows hardness for the task with the grammar in the input, even on a short source string. It gives no instance with one fixed grammar for which difficulty is established solely by lengthening the source input.
The construction also sharpens the interpretation of a best translation. Its target yield is fixed. The scored object varies because the tree’s internal labels carry an emitted sequence. That is sufficient for a theorem about parse trees, and it prevents reading the result as an empirical judgment about choosing among natural target sentences. Conversely, evaluating only the common yield in this construction would leave the optimization question unresolved, since the probability distinctions live in the analyses.
Likewise, several quantities separate the chart lower bound from a practical running time. A learned grammar would have a particular distribution of production lengths and reorderings. An input pair would allow some boundary assignments and rule out others. The proof chooses arrangements that force a span burden within standard tabulation. It gives no corpus statistics about the frequency of these arrangements and no timings for particular implementations. Direct experimental evaluation would have to measure those properties of the grammar, the inputs and the parser together.
Finally, the theoretical results concern the grammatical relation and the probabilities defined by its productions. They establish no connection between the probability of a parse tree and a human judgment of translation quality. The paper neither fits a probabilistic grammar to translation data nor compares scoring choices against human preferences. Its criterion is internal to the formalism, which is precisely what makes it possible to specify the computational question and prove a result about it.
What came after
Binarization became an explicit translation question
Synchronous Binarization for Machine Translation (2006) cites Satta and Peserico and places synchronous binarization directly in the translation setting. Binarization concerns breaking a multi-part production into combinations of two parts at a time. The connection to the earlier paper is clearest at the level of a partial rule. A binary combination creates an intermediate constituent, so the choice of which parts to combine determines what the intermediate object must cover on each side. Synchronous Binarization for Machine Translation
The earlier chart analysis gives a way to see why the two sides need to be considered together. A group can occupy a continuous region in the source order and several separated regions in target order. A decomposition that is straightforward when read on the source side can therefore leave a harder question about what its intermediate categories mean on the target side. The earlier paper establishes a worst case for an algorithm that must track the resulting spans. The later work’s stated focus brings the organization of wide synchronous rules into the design of translation systems.
The grammar itself became the object of binarization
Binarization of Synchronous Context-Free Grammars (2009) also cites the paper and names the grammar formalism itself as the object of binarization. This is the point at which the distinction between source order and paired correspondence becomes particularly concrete. A synchronous rule describes a joint ordering of linked occurrences. A proposed decomposition has to account for how local combinations on both sides represent that ordering. Binarization of Synchronous Context-Free Grammars
The two citing works address the part of the earlier study where the width and ordering of rules affect parsing. Their titles identify binarization as their shared subject, with one placing it in machine translation and the other focusing on the grammar formalism. The earlier paper also explains why rule decomposition and probability aggregation are separate questions. Its best-target-tree hardness construction already uses unary rules. Changing how wide rules are assembled can address the span problem raised by those rules, while the tree-selection objective still derives its score from all compatible source analyses.
Cite
Cite as Giorgio Satta and Enoch Peserico. 2005. Some Computational Complexity Results for Synchronous Context-Free Grammars. Proceedings of Human Language Technology Conference and Conference on Empirical Methods in Natural Language Processing.
@inproceedings{satta2005some,
title = {{Some Computational Complexity Results for Synchronous Context-Free Grammars}},
author = {Giorgio Satta and Enoch Peserico},
booktitle = {Proceedings of Human Language Technology Conference and Conference on Empirical Methods in Natural Language Processing},
year = {2005},
doi = {10.3115/1220575.1220676},
url = {https://doi.org/10.3115/1220575.1220676}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/satta-2005-some-computational-complexity-results-synchronous/