Efficient Incremental Decoding for Tree-to-String Translation
Paper · 2010 · Liang Huang and Haitao Mi
Summary
A translation system has to decide which words to use and where to put them. A source-language syntax tree can guide both decisions, especially when a phrase belongs far from its original position in the translation. The difficulty is that a conventional tree-to-string decoder builds target fragments separately. To judge how those fragments will read when joined, it has to remember words at both ends of each fragment and consider many ways of combining them. Liang Huang and Haitao Mi redesign this part of machine translation so that the syntax tree still guides reordering while the translation grows from left to right.
The decoder keeps a stack of unfinished translation rules. Each rule specifies the order in which its target words and its remaining source subtrees should be processed. When the next item is a subtree, the decoder chooses a rule for it. When the next item is a word, the decoder appends it to the current translation. When a rule finishes, the decoder returns to its parent and resumes where it left off. Since every new word follows the existing prefix, the language model needs only that prefix’s most recent words to score the extension. The stack records the rest of the work, including source material that a rule has moved later in the target sentence.
The authors give separate complexity arguments for unrestricted search and for beam search, which keeps only a limited number of promising candidates at each stage. The unrestricted algorithm has polynomial average-case time under a stated distributional assumption about the height of source parse trees. The beam algorithm groups candidates by how many source tree nodes their rules have covered. With fixed limits on beam width and rule choices per node, this gives linear decoding time in sentence length while retaining the global reorderings allowed by the grammar.
On the 2008 NIST Chinese-to-English newswire test set, the incremental decoder with beam width 10 scored 29.54 on BLEU and took 0.32 seconds per sentence, including source parsing. Moses, the phrase-based comparison system, scored 29.41 and took 10.8 seconds per sentence at its development-selected distortion limit. That is the comparison behind the paper’s reported speedup of more than 30 times. Against cube pruning on the same tree-to-string system, the speed advantage was smaller. At a test score of 29.96 for both methods, incremental decoding took 0.77 seconds per sentence and cube pruning took 0.96.
Deep dive: Efficient Incremental Decoding for Tree-to-String Translation
Efficient Incremental Decoding for Tree-to-String Translation shows how a source parse can guide fast, left-to-right translation with global reordering. · about 35 minutes to read
The problem and its context
Choosing an order and finding it efficiently
In the paper’s Chinese-to-English example, the source introduces the participants before expressing the event. The English rendering places the meeting before the phrase identifying the other participant. A translation system can make that change by selecting suitable words for the source expressions and arranging their translations in the order expected in English. The search procedure has to keep the earlier source phrase available while it translates material that occurs later in the source.
Phrase-based translation treats an input sentence as a sequence of words from which the decoder can select contiguous spans. A phrase pair supplies a target expression for one such span. The decoder can extend a target prefix by choosing a phrase pair for a source span that remains uncovered. This is a flexible way to build a translation, since taking a span from elsewhere in the sentence changes the order in which source material appears in the output. It also means there can be many choices about where to go next. In the theoretical comparison the paper draws on, allowing arbitrary permutations makes the ordering problem related to the traveling salesman problem. The number of possible coverage patterns is part of the resulting exponential search cost. Knight’s decoding complexity study
The conventional phrase-based solution is to limit how much of that search the decoder actually carries out. A beam keeps the most promising hypotheses among those that have covered the same number of source words. A hypothesis may still have to examine potential extensions across the sentence, so the paper’s general beam-search bound is quadratic in input length at fixed beam width. A distortion limit adds a separate restriction. It limits how far the next phrase can jump from the previous one, reducing the amount of source material the decoder has to consider for each extension. The paper points out that the resulting savings come with a restriction on which orders the system can produce. A useful movement between the usual positions of a verb and its object may exceed a local jump limit.
A syntax-based system places the restriction elsewhere. Its grammar specifies which pieces of a source construction can be translated together and how the remaining pieces can be ordered on the target side. The authors use subject, verb and object order to illustrate why that distinction matters. A grammar can express a change in the arrangement of major constituents as a single structural decision. The distance between those constituents in words can vary with their length, while the rule continues to describe the same arrangement. The authors place synchronous context-free grammars in this tradition. Such a grammar relates a source construction to a target construction and identifies the parts the two sides share. Stochastic Inversion Transduction Grammars · Hierarchical Phrase-Based Translation
Why a syntax tree can still be costly to decode
Tree-to-string translation starts by parsing the source into a tree. The decoder uses that tree to determine where translation rules apply. A rule matches a portion of the tree and provides a target sequence containing words, placeholders for remaining subtrees, or both. Applying rules recursively resolves those placeholders and produces a string. A tree helps localize the search because the decoder already has source constituents to work with. Earlier tree-to-string work cited by the paper describes the approach in terms of rules that can match extended fragments of a source tree. Statistical Syntax-Directed Translation with Extended Domain of Locality
There are two kinds of evidence in the decoder’s score. The rules provide evidence about the translation of the source. A target-side language model gives a score to sequences of target words. An n-gram is a sequence of adjacent words, and a language model of this kind scores a word using a limited amount of immediately preceding context. This information can change which translation rule is preferred. A candidate that fits the source well may make for a poor continuation of the target text, while another candidate for the same source subtree may fit the surrounding words.
The usual bottom-up decoder assembles candidate translations for smaller subtrees and joins them into larger translations. A fragment can eventually have target text on either side. For the joining step, the decoder needs the beginning of the fragment to evaluate the boundary with preceding text, and it needs the end to evaluate the boundary with following text. Two candidate translations of the same subtree can therefore matter separately if they expose different boundary words. Even if both are represented compactly by their boundary contexts, the decoder must consider how candidates from separate subtrees fit together. The need to keep and combine these alternatives accounts for much of the overhead the authors address.
The paper’s cost analysis makes clear why this overhead matters even for a source tree of manageable size. With the target-language score omitted, a tree-to-string search can visit nodes and reuse the result for a node whenever it is needed again. Once target boundaries enter the state, there can be multiple distinct states for the same node. Keeping a beam at each node limits their number, but a rule that joins child translations can still draw a candidate from each child’s list. Cube pruning was already a standard way to explore such combinations selectively. It provides the paper with a strong comparison because it addresses the same expensive part of decoding while retaining the bottom-up organization.
Earlier ways to bring syntax and incremental search together
The paper describes several earlier efforts that approached the speed and reordering problem from different directions. Galley and Manning gave a phrase-based decoder a hierarchical view of reordering through a shift-reduce procedure. That approach lets a phrase-based search capture nonlocal movements. In Huang and Mi’s account, the beam search still has quadratic running time. A Simple and Effective Hierarchical Phrase Reordering Model
The earlier work closest to this paper is Watanabe and colleagues’ incremental decoder for hierarchical phrase-based translation. It also generates the target left to right. In that system, a grammar expansion can require choosing where to split a source span. The number of potential split points grows with sentence length, leaving a quadratic beam-search bound in the comparison made by Huang and Mi. The decoder also uses the number of translated source words to track progress, and its grammar must be transformed so that a prediction advances that count. The paper identifies the required form as binary-branching Greibach Normal Form and says the transformation is sometimes infeasible.
The authors also discuss coarse-to-fine approaches, in which an initial pass prepares a smaller search problem for a later pass. Their example from Dyer and Resnik uses an incremental first pass without target-language scoring and a bottom-up second pass with that score. Huang and Mi move the target-language calculation into the incremental search itself. Their starting point is the particular information a tree-to-string decoder already has at test time. Once source syntax is supplied as a tree, a grammar choice specifies where the remaining work takes place in that tree as well as when it will take place in the target string.
The method, step by step
Read a translation rule as a plan for the target sentence
The decoder begins with a source tree and rules that can match pieces of it. A rule has a source side and a target side. The source side describes a piece of tree, with variables standing for subtrees the rule leaves open. The target side gives an ordered sequence of words and variables. Once the rule matches, each variable refers to a particular node in the input tree. At that point the target side functions as a plan. The decoder can read it in order, producing a word directly when the plan supplies one and translating a particular subtree when it reaches a variable.
The root rule in the paper’s example matches a clause with a noun phrase followed by a verb phrase. It preserves that order on the English side.
r₁: IP(x₁:NP x₂:VP) → x₁ x₂
Here r₁ names the rule, IP is the root category of the matched clause, and NP and VP are the noun-phrase and verb-phrase categories. The parentheses enclose the rule’s description of the children. The colon after each variable attaches a source-side category to that variable, and the arrow leads from the source tree pattern to the target sequence. The variables x₁ and x₂ stand for the subtrees that satisfy their respective positions in the pattern.
The first variable in that target sequence points to the subtree for Bush. The decoder selects a rule whose output is the English name and appends it to the prefix. It then reaches the verb phrase. Here a different rule changes the order of the remaining source material. Its target sequence puts the English verb first, then the translation of the meeting expression, then the word “with” and the translation of the subtree identifying Sharon. The rule can put the meeting expression before the participant because its placeholders already identify both subtrees. When the decoder reaches the placeholder for Sharon, it follows that reference even though the relevant material occurred earlier in the Chinese input.
The paper’s tree addresses make this explicit. An address is a path from the root of the input tree, and a node can be named by its category and address together. The notation VP@2 names the verb phrase at the second child of the root in the example. Deeper addresses identify the noun phrases matched by the verb-phrase rule. After applying the rule, the decoder has a list of English words and references to those addressed nodes in English order. This gives “left to right” a precise meaning. It is the order of the generated translation. Movement between source nodes follows the choices encoded by the rules.
Keep the unfinished plan on a stack
A translation rule can ask the decoder to translate a subtree before it continues. While the decoder works on that subtree, it must retain the rest of the parent rule. The stack stores these pending rules. Each entry has a dot showing how far the decoder has progressed through the rule’s target side. The last entry added is the active rule. A dot before a subtree reference tells the decoder to deal with that subtree next. A dot before a word points to the next output word. A dot at the end signals that the active rule has finished.
At the beginning, a wrapper around the root puts a sentence-start marker into the context and provides for a sentence-end marker after the root translation. The root rule then goes onto the stack. Its dot starts before the noun phrase for Bush. A rule for that noun phrase goes on top, so the decoder is now working inside the noun phrase with the clause rule still visible underneath. After appending “Bush,” the decoder removes the finished noun-phrase rule and advances the dot in the clause rule. Its next job is now the verb phrase.
That step illustrates why completion matters as a distinct operation. The parent’s dot stays at its subtree reference until the child’s rule has finished. Once it advances, the stack accurately describes what is left to produce at both levels. During the verb-phrase translation, the stack may contain a rule that has already produced “held” and is waiting for a noun phrase, with the clause rule still waiting for the entire verb phrase. The decoder can finish the noun phrase, return to the verb-phrase rule for “with,” then open the rule for Sharon. Returning through the stack preserves the surrounding structure while words are added to a single sentence prefix.
How the decoder extends a target prefix
The steps in order.
The example follows a single sequence of rules so that each operation is visible. The actual decoder may have several rules to choose from at a subtree. Applying different rules there can change the English words, the order of later subtree visits, or the amount of the source tree covered in that step. Each possible continuation starts from the current hypothesis and follows the plan given by its own rule. Search is the work of deciding which of these alternatives to pursue.
Separate a hypothesis from the information needed to extend it
The paper describes a search item as a stack paired with a target hypothesis.
⟨s, ρ⟩
The angle brackets denote a pair. The symbol s is the stack of target-side rules with their dots, and ρ is the target prefix that has been generated. The item has an accumulated score, which lets the decoder compare it with alternative ways of reaching a continuation.
For future scoring, the prefix can be represented by a suffix. The decoder needs the full output, or a way to recover it, to return a translation. It needs only the most recent words to evaluate the next language-model event. The paper names this operation as follows.
last_g−1(ρ)
Here last selects the rightmost words of ρ, the target prefix. Its subscript says to retain g−1 words, where g is the order of the language model and the subtraction leaves room for the word being appended. A trigram therefore uses the recent context appropriate to a sequence of that order. At the beginning of generation, the sentence-start marker supplies boundary context.
The stack and this suffix are the information used to identify a state in the dynamic program. The stack determines which work can follow. The suffix determines how the next word will be scored. If two routes reach the same state, both have the same choices and the same future scoring context. Their earlier contributions are already in their accumulated scores. The better-scoring route can represent the state in the search for a best derivation. This ability to share later computation is the reason to spell out exactly what state identity means.
A traditional phrase-based decoder makes a similar distinction. Its coverage vector records which source positions have been used. It also tracks the end of the previous source phrase, because jump cost depends on where the next phrase starts relative to that end. With target-language scoring, the state carries the recent target words as well. The authors illustrate an extension whose new cost consists of the old cost, a phrase-pair cost, a distortion cost, and a bigram cost at the boundary. The score equation can be written with variables for the words in that boundary event.
w′ = w + c + d − log Pₗₘ(a ∣ t)
The symbol w′ denotes the extended hypothesis’s cost and w the cost before the extension. In this equation c is the phrase-pair cost and d is the distortion cost. Pₗₘ(a ∣ t) is the target language model’s probability of the new boundary word a given the preceding word t, and ∣ denotes conditioning. The negative logarithm expresses the probability as an added cost. In the English example, attaching the participant phrase can create the boundary between “talks” and “with.”
The tree-to-string stack takes over the job of describing eligible source continuations. Once the next stack symbol is a subtree, the decoder matches rules at that node. It need not scan a source coverage vector to choose the next span. A coverage total used for the beam, described below, serves a different purpose. It tells the decoder how much of the tree a candidate has processed and helps place that candidate among others at a comparable stage.
Predict, scan and complete
The authors formalize the decoder as a deductive system. Each operation says what new item can be derived from the current item under a particular condition. The dot and active rule tell the decoder which condition applies. This notation exposes a useful distinction between the branching choice of a translation rule and the steps that carry out an already chosen rule.
During prediction, the next symbol is a source node. The decoder considers rules whose source patterns match the subtree at that node. These are the tests and substitutions involved in a successful prediction.
match(η, C(r))
match is the test for whether the source pattern fits the subtree rooted at η, an address in the input tree. The symbol r names the candidate rule, and C(r) denotes its Chinese source side. The test must establish where each variable in the pattern points before the decoder can carry out the target side.
f(η, E(r)) = [xᵢ ↦ η.var(i)]E(r)
The function f produces the instantiated target sequence. E(r) denotes the English side of rule r, and η is the source node at which the match was made. The variable xᵢ is identified by index i. The expression η.var(i) denotes the descendant node matched by that variable under η. The arrow inside the square brackets means substitution, and placing the substitution before E(r) means to apply it throughout the target side. The decoder pushes the resulting sequence with its dot at the beginning.
During scanning, the next symbol is an English word. The decoder adds that word to the target prefix, accounts for the target-language score given the recent context, and moves the dot past the word. The same action works whether the word comes from a rule that translates a whole small subtree or from a larger rule that also leaves open variables. The history used for scoring comes from the whole generated prefix. In the example, the word before a new output can come from a different rule or from a subtree that has just finished. The immediate context is still available because the output is built in a single order.
The active rule has the dot in its final position during completion. The decoder pops the rule and moves the parent’s dot past the subtree that has just been translated. This can cause another completion if that subtree was the final symbol of the parent. It can also expose a word to scan or a new subtree to predict. Repeated completion eventually returns control to the sentence wrapper, which places the end marker after the root translation. For a fixed choice of rule, scanning and completion are determined by the stack. A new prediction is where the decoder can branch again.
A useful consequence is that rule application and word emission can happen at different times. Choosing the verb-phrase rule settles the relative order of its English words and subtrees at once. The decoder realizes that order as it encounters the symbols. A rule can thus affect which part of the source will be visited later even before its first word appears. This is also why the authors choose a measure of beam progress based on rule matches in the source tree.
Count search states at a given tree depth
The cost analysis compares several search procedures. In the phrase-based dynamic program, the source spans covered so far can form many subsets of the input. The paper gives the following time bound for full search with a target language model.
O(2ⁿ n² |V|^(g−1))
O gives an asymptotic upper bound. Here n is source sentence length in words, 2ⁿ is the exponential term associated with coverage subsets, and n² is the quadratic factor in the stated bound. The vertical bars in |V| give the size of the English vocabulary V. Its exponent g−1 comes from retaining that many boundary words for a language model of order g. Keeping a single target boundary helps with the language-model part of the state. The possible coverage patterns are the source of the exponential factor.
For conventional tree-to-string decoding, the authors give a different bound with the language model integrated.
O(nc |V|^(4(g−1)))
Here n is again sentence length, c bounds the number of matching translation rules per tree node, and V and g retain their language-model meanings. The exponent 4(g−1) belongs to the paper’s bound for a procedure that combines subtranslations with boundary contexts. The need to keep both ends of a candidate fragment also affects search with pruning. At beam width b, the paper summarizes the ordinary tree-to-string beam bound this way.
O(ncb²)
The symbol b is the number of retained items at a node. The factor b² reflects the cost of considering combinations from candidate lists, and n and c account for the input size and the rule choices. Cube pruning is the practical comparison in the experiments. It limits which combinations are explored, so the simple beam bound describes the search problem that cube pruning is meant to reduce.
For the incremental search, the authors count the stacks that can arise on an input tree of depth d. Every active child rule descends from the rule below it. The active stack follows a path into the source tree, and its depth is bounded by the depth of that tree. Along a path, the choices include which rule was used and where the dot sits in each active rule. The paper uses c as a bound on the number of rule choices at a node and r as the rule-arity bound in its count of dot positions. In this argument r is a numerical bound on the target-side rule length, separate from the use of r to name an individual rule in the decoding operations.
f(n, d) = c(cr)ᵈ |V|^(g−1) = O((cr)ᵈ n^(g−1))
The function f(n, d) denotes the stated worst-case time at sentence length n and tree depth d. The factor (cr)ᵈ accounts for rule and dot choices along the stack, and the leading c accounts for potential expansions from a state. |V|^(g−1) counts the possible retained target suffixes using the English vocabulary V and language-model order g. The last expression uses the paper’s assumption that the relevant English vocabulary grows at most linearly in n, based on a constant number of target translations per source word. The grammar and language-model bounds are treated as fixed in this analysis.
This is a bound for a particular depth. A deep tree can make the number of possible stacks large even though an individual stack simply follows a path. The average-case argument takes the next step of asking how such depths are distributed for sentences of the same length. Since the search bound grows exponentially with depth, the spread of the distribution matters alongside its center. A mean depth that grows slowly can coexist with occasional deep trees whose contribution to average search time is large.
Turn the tree-depth assumption into an average-case bound
The authors assume that tree depth at a given input length is normally distributed, with mean and variance both at most logarithmic in the input length. They write the assumption using separate parameters for each length.
dₙ ∼ N(μₙ, σₙ²), μₙ = O(log n), σₙ² = O(log n)
dₙ is the depth of a parse tree for an input of n words. The symbol ∼ means distributed according to, and N denotes a normal distribution with mean μₙ and variance σₙ². σₙ is its standard deviation. The log n terms describe the growth rates allowed for the mean and variance, with O again denoting asymptotic upper bounds.
The average-case running time is the expected value of the fixed-depth cost.
h(n) = E[dₙ ∼ N(μₙ, σₙ²)] [f(n, dₙ)]
Here h(n) denotes average-case time for sentence length n, and E denotes expectation over the depth distribution named in the first brackets. The second brackets enclose the cost being averaged. The function f is the fixed-depth cost, evaluated at depth dₙ. The normal distribution’s mean μₙ and variance σₙ² are the ones in the stated assumption.
Taking the expectation isolates the depth-sensitive part of the bound. Sentence length and language-model order are fixed for this expectation, so the vocabulary-based term stays outside it. To handle the remaining factor, the proof writes a power of cr as an exponential.
h(n) = O(n^(g−1) E[exp(dₙ log(cr))])
exp is the exponential function and log is the logarithm used in the depth calculation. Multiplying dₙ by log(cr) converts the depth factor into the argument of that exponential. The constants c and r bound rule choices and rule arity, respectively. The term n^(g−1) comes from the language-model suffix, with g the language-model order. The expectation is still over the distribution of dₙ at length n.
A fixed multiple of a normal random variable is also normal. The proof uses that fact for the exponent and then takes the mean of its exponential, which has a log-normal distribution. This step keeps the effect of the depth variance visible.
E[exp(dₙ log(cr))] = exp(μₙ log(cr) + σₙ² log²(cr)/2)
E averages over parse depths dₙ. The term with μₙ comes from the mean of the scaled depth, and the term with σₙ² comes from its variance. The notation log²(cr) means the square of log(cr), and /2 is the variance coefficient in the log-normal expectation. The constants c and r are the same grammar bounds throughout.
Both depth parameters grow at most logarithmically under the assumption. The expected depth-dependent factor can therefore be bounded by an exponential whose exponent grows with log n, which gives a power of n. Putting the language-model term back into the bound gives the theorem’s polynomial time.
h(n) = O(n^(k log²(cr)+g−1))
Here h(n) is average-case time in the input length n and k is a constant in the bound. The expression k log²(cr) is the contribution from the stack and depth calculation, with c and r fixed. The additional g−1 in the exponent comes from the suffix used for language-model order g. Since these quantities are fixed for the analysis, the exponent is constant with respect to n. The empirical tree-depth analysis addresses the assumptions used at this step.
Use tree coverage to make beam search linear
The practical decoder needs to decide which hypotheses should compete for the limited slots in a beam. In phrase-based search, the decoder can group candidates by their number of covered source words. A phrase extension changes that count and creates a longer partial translation. In tree-to-string search, an important step can cover some source structure while emitting no word at that moment. The example’s first clause rule is just such a step. Its immediate effect is to specify the order in which the noun phrase and the verb phrase will be handled. Counting emitted words would give that prediction the same progress value as the state before it.
The authors measure progress by the number of source tree nodes covered by applied rules. When a prediction chooses a rule, it increments the count by the size of the rule’s source tree fragment. The rule for the verb phrase in the example contributes 6 tree nodes, using the paper’s convention that excludes leaves and variable positions from that example’s count. The variable subtrees remain to be translated. Scanning words and completing rules leave the count unchanged because their source structure was already accounted for during prediction.
The implementation groups scanning and completion into a deterministic continuation after a prediction. After pushing a rule, it consumes words and returns from finished rules as far as it can. The next point at which it needs a beam decision is a subtree for which it must select a new rule, or the end of the translation. This arrangement keeps the branching steps aligned with increments of tree coverage. It also lets hypotheses that have covered the same number of nodes compete even if one has produced more English words so far.
A source tree has size proportional to sentence length in the analysis, so the number of progress bins also grows linearly. Each bin holds at most b candidates, and each candidate can produce at most c successors from the rule choices at the next subtree.
O(ncb)
The symbol n is the number of source words and stands for the linear growth of the number of tree-coverage bins. The symbol c is the bound on translation rules matching a node, and b is the beam width. Holding c and b fixed gives linear time in n for this beam-search analysis. The tree count restricts how many candidates survive at each stage. Each candidate can still follow any reordering specified by its chosen rules.
The contrast with phrase-based beam search comes from the cost of looking for an extension. Phrase-based search groups by coverage and then looks for possible uncovered phrases in the coverage vector. With a beam, the paper gives the following general bound.
O(n²b)
Here n is the source length and b is the beam width. There are linearly many coverage-count bins and up to b hypotheses in each. The remaining factor of n accounts for the scan across the input when considering how to expand a hypothesis. In the incremental tree-to-string decoder, the stack identifies the source node for the next prediction.
A phrase-based distortion limit reduces that expansion cost by restricting the reach of the next jump.
O(nbdₘₐₓ)
n and b retain their meanings, and dₘₐₓ is the maximum allowed distortion distance. A fixed limit makes this bound linear in sentence length too. The two linear-time cases get there through different mechanisms. One bounds the reach of a phrase choice, while the other uses a grammar rule to supply the next source address. The latter address can point back to source material that was deferred by a reordering rule.
Prepare the rules and scores for decoding
The tree-to-string system is trained on parallel Chinese and English sentences. The authors first use GIZA++ to align words across the paired sentences. They then parse the Chinese side with the Berkeley parser. The GHKM extraction algorithm uses the alignments and the source parses to obtain tree-to-string rules. The resulting rule inventory gives the decoder the patterns it can match to a new source tree and the target sequences it may produce from those matches. Improved Inference for Unlexicalized Parsing
The authors train the target trigram with SRILM on the English side of the parallel corpus. They use modified Kneser–Ney smoothing to estimate probabilities from the available word-sequence counts. They also tune feature weights by minimum error-rate training, using development-set BLEU as the objective. Rule extraction produces the translation options, language-model training supplies the target continuation scores, and tuning determines how strongly the available features affect the search’s ranking.
At test time the procedure starts from the input’s best source parse. Matching rules against that tree produces a translation forest that represents alternative derivations for the input. The tree is the syntactic analysis against which the rules are matched, and the translation forest represents the choices those matches make available. The paper uses rule pattern matching from earlier forest-based translation work at this stage. It treats extension of the incremental method to alternatives in the source parse itself as future work. Forest-Based Translation
Experiments and results
Data, systems and how they were measured
The parallel training corpus contains 1.5M sentence pairs, with about 38M Chinese words and 32M English words. The development set is the newswire portion of the 2006 NIST MT Evaluation test set, comprising 616 sentences. The final test set is the newswire portion of the 2008 NIST MT Evaluation test set, comprising 691 sentences. Development data supports feature-weight tuning and the choice of distortion limit for Moses. The final table reports the selected comparisons on the separate 2008 newswire set.
Translation quality is measured with BLEU-4. BLEU evaluates the system output against reference translations using matches of word sequences. The authors use the mteval-v13a.pl script with its default case-insensitive matching. The speed measurements in the final table are seconds per sentence. Both tree-to-string times include 0.21 seconds for source parsing, so the reported cost reflects the need to supply the tree before applying either translation search. The paper also plots time by sentence length to examine how the decoders scale across individual inputs.
The comparison within tree-to-string translation uses two Python implementations on the same system. One performs incremental search. The other assembles translations using cube pruning. The cube-pruning implementation has a beam limit on distinct language-model-aware items as well as a limit of 1000 priority-queue pops. A pop can retrieve a candidate that duplicates an item already encountered, so the pop limit caps a different part of the work from the beam width.
The cross-system baseline is Moses, written in C++. The authors use its standard settings apart from the translation-table limit, which they set to 100. They compare distortion limits of 0, 6, 10 and +∞. The limit of 0 gives monotone decoding, in which phrase choices follow the original source order. The +∞ setting removes the distortion ceiling. Minimum error-rate training tunes weights for each distortion limit, and the limit of 10 gives the best development result for Moses. That is the Moses setting in the final test table.
How time changes with sentence length
The fixed-beam comparison uses beam width 50 in both tree-to-string systems on the development set. The paper plots sentences by their input length and decoding time. The incremental decoder shows the linear scaling predicted by the beam analysis. Cube pruning shows a slight tendency towards superlinear growth. The plot concerns the empirical relationship within the observed length range and at that operating point. The theoretical discussion accounts for the distinct work required by each method when it extends or combines hypotheses.
The Moses plots connect sentence-length scaling to the permitted reordering. With no distortion limit, the observed times follow a quadratic pattern in the authors’ account. With the limit of 0, the observed growth is linear. The intermediate settings give the speed comparison a practical context. Moses can gain a better scaling regime by restricting its next source move, and the system selection considers translation quality through development tuning. The incremental decoder can follow a grammar-specified nonlocal move while retaining the linear beam-search bound.
Quality and speed on the held-out newswire set
The test results compare settings at different beam widths because the same numerical width describes different groups of candidates in the two tree-to-string decoders. A cube-pruning beam holds candidate translations for a subtree. An incremental beam holds partial derivations at a given count of covered source nodes. Matching quality provides a way to compare how long each search takes to reach a similar result.
Decoder settings on 2008 NIST newswire test BLEU-4
The larger incremental beam matches the highest test score reached by cube pruning.
The numbers
| System or setting | BLEU |
|---|---|
| Moses, distortion limit 10 | 29.41 |
| Cube pruning, beam 10 | 29.51 |
| Cube pruning, beam 20 | 29.96 |
| Incremental, beam 10 (this paper) | 29.54 |
| Incremental, beam 50 | 29.96 |
The smaller incremental beam achieves 29.54 BLEU on the 2008 newswire test set. Moses achieves 29.41 under its selected distortion limit. Cube pruning with beam width 10 is also in this range, at 29.51. These scores describe operating points with comparable corpus-level quality. The larger incremental beam achieves 29.96, equal to the score of cube pruning with beam width 20. That equality is at the precision reported in the paper.
Decoder time per sentence on 2008 NIST newswire test
Incremental decoding takes less time at both tested quality levels when compared with the corresponding cube-pruning settings.
The numbers
| System or setting | seconds per sentence |
|---|---|
| Moses, distortion limit 10 | 10.8 |
| Cube pruning, beam 10 | 0.65 |
| Cube pruning, beam 20 | 0.96 |
| Incremental, beam 10 (this paper) | 0.32 |
| Incremental, beam 50 | 0.77 |
At beam width 10 the incremental system takes 0.32 seconds per sentence, with source parsing included. Moses takes 10.8 seconds per sentence. The authors describe the incremental system as more than 30 times faster in this comparison. The comparison is between complete systems with different translation representations and different implementations. It establishes the observed gap at the reported quality levels, with the language and parser differences that belong to those systems.
The larger incremental beam takes 0.77 seconds per sentence. The authors describe that setting as about 15 times faster than Moses while reaching a higher test BLEU. The closer comparison is with the Python cube-pruning decoder, which takes 0.96 seconds per sentence for the same reported score of 29.96. At the lower quality level, cube pruning takes 0.65 seconds per sentence with beam width 10, compared with 0.32 for the incremental decoder with beam width 10. All of these tree-to-string timings include the parsing cost.
The development sweep gives a wider view of the tradeoff. The authors vary the cube-pruning beam over 10–70 and the incremental beam over 10–110. At similar development BLEU, incremental search is generally slightly faster, with a more pronounced advantage among the small beams. Around a development score of 29.5 BLEU, the incremental decoder takes 0.12 seconds in the decoding comparison. According to the authors, this runs approximately four times as fast as cube pruning at the same quality level. The final table separately presents the test times including parsing. The development sweep answers how search speed changes as the beam trades time for output quality, while the final table gives the performance of particular settings on held-out data.
What the ablations show
What can be isolated by using the same tree-to-string system
The paper offers controlled comparisons of decoders and search settings. It reports no component-by-component ablation of the incremental decoder. Its strongest comparison for understanding the decoder change is the one that holds the tree-to-string system and implementation language in common. The systems in that comparison use the same kind of source representation, rule extraction and target-language scoring. The change is how they search the resulting candidates. This makes the speed difference against cube pruning more directly informative about the decoding procedure than the larger difference against Moses.
The development experiment makes two separate comparisons with that shared system. One fixes the width at 50 and looks at the relation between input length and time. This probes scaling under a consistent search setting. The other changes beam widths and compares speed at similar BLEU values. This probes the practical cost of attaining a given level of measured quality. These are distinct questions because a width of 50 in one decoder can lead it to retain a different collection of candidates, with different granularity, from a width of 50 in the other.
The held-out result at 29.96 BLEU strengthens the quality-matched comparison by showing the same reported score with different times. Equal aggregate BLEU still permits different sentence outputs and different derivations. It therefore supports a claim about the observed search tradeoff, without requiring the two procedures to make the same local decisions. A bottom-up candidate can be favored when it is initially scored as a fragment. An incremental candidate enters search with a concrete left context. Changing which candidates compete, and when the language evidence becomes available, can lead to different pruning decisions even with the same underlying translation features.
The comparison measures the combined consequences of several related changes. The stack commits the next source location within a chosen rule. Target scoring uses one boundary context. Tree-node bins organize tentative derivations by source progress. Deterministic scanning and completion advance each chosen rule to the next branching point. Each mechanism has a role in the analysis, but the experiments vary the decoder as a whole. The timing results assign the observed advantage to that whole change in search organization.
What the beam and distortion sweeps test
Increasing the incremental beam from 10 to 50 raises its held-out BLEU from 29.54 to 29.96 and increases time from 0.32 to 0.77 seconds per sentence. Increasing the cube-pruning beam from 10 to 20 raises its test BLEU from 29.51 to 29.96 and increases time from 0.65 to 0.96 seconds. In both cases the beam controls how many competing continuations survive. The measurements show the result of allowing each decoder more search in these settings. They do not provide an exact-search reference against which to count which desirable derivations were pruned.
The development sweep places these selected test points in a broader pattern. Its strongest reported advantage for incremental decoding is near the low-quality end of the sweep. The source analysis gives a reason to expect beam width to matter differently for the two decoders. The incremental procedure generates successors by considering matching rules for one pending subtree. The conventional bottom-up procedure must decide which combinations of subtranslations to explore, and cube pruning reduces that work selectively. The experiment compares the two ways of limiting search and shows where the difference in their practical cost is most visible.
The Moses distortion sweep changes a different part of the search. It varies which source phrase jumps are permitted, with weights tuned for each limit. The observed quadratic behavior at +∞ and linear behavior at 0 agree with the distinction made in the phrase-based complexity analysis. The choice of 10 for the final Moses comparison reflects development BLEU among the tested distortion conditions. The paper does not report an output analysis by reordering type, so the sweep supports the time-scaling account and the chosen operating point without measuring success on any particular long-distance construction.
What the tree-depth measurements support
The authors separately examine tree depth to check the assumptions behind the average-case theorem. For most sentence lengths, they judge the observed depth distributions qualitatively to resemble a normal distribution. Their plot shows mean depth tracking 3.5 log n and variance bounded by 5.5 log n, where n is input length in words. These are measurements of the source parses, distinct from measurements of how long the decoders take.
The separation matters because the theorem and the beam experiment address different procedures. The theorem bounds the mean cost of the unrestricted dynamic program under a particular depth distribution. The growth of depth variance enters the expectation of the stack count. The beam experiment makes search tractable by bounding how many hypotheses it keeps and then measures its observed scaling. The tree-depth results lend empirical support to the distributional assumptions in the first argument. The timing plots check the behavior of the pruned implementation in the second.
Limitations
Limits identified by the authors
The polynomial result is an average-case result under the normal-depth assumption and logarithmic growth bounds for the mean and variance. The authors explicitly allow that a source tree can degenerate into a chain, making depth linear in sentence length. The fixed-depth bound is exponential in that depth. A reader applying the theorem to a different parser or collection of sentences would need to establish whether its depth behavior supports the same average-case argument. The paper’s evidence is a qualitative distribution check and the observed mean and variance trends.
The practical linear-time result concerns approximate search. With a finite beam, some partial derivations are discarded before their consequences are known. The paper gives a bound for the beam procedure with the width and rule count treated as fixed, then reports a quality-versus-time curve to show what that approximation buys in the experiment. Its unrestricted result and its practical linear result therefore carry different guarantees. The former concerns retaining the states needed for dynamic programming under stated assumptions. The latter concerns a constrained search whose quality is measured empirically.
The conclusion identifies higher-order language models, the combination of incremental decoding with cube pruning, and application to forest-based and hierarchical systems as future work. The authors suggest pruning a first-pass forest as part of extending the approach. Their comparison with an existing incremental hierarchical decoder is based on the costs and grammar requirements of the approaches, with a detailed comparison left open. The reported translation experiment evaluates the tree-to-string setup with a trigram and a best source parse.
The relationship between cube pruning and incremental decoding is also narrower than a choice between mutually exclusive algorithms. The comparison pits the authors’ incremental implementation against a separate bottom-up implementation with cube pruning. Since the authors view selective combination and incremental generation as compatible ideas, the observed results leave open what a combined search would cost and how its output quality would change.
Limits of the evaluation setup
The held-out translation evidence covers Chinese-to-English newswire from the 2008 NIST evaluation. The development evidence comes from the 2006 newswire portion. This setup gives a concrete matched evaluation for the paper’s systems. Other source languages, other domains and different grammar inventories are outside the measured scope. The complexity argument explains why the approach can accommodate global reordering, and the worked example shows one such reordering. BLEU summarizes the whole test corpus and does not identify which constructions benefited from that capability.
The result against Moses compares systems with different rule representations and different policies for choosing which reorderings to explore. The fact that the incremental decoder is in Python and Moses is in C++ gives context for the timing, but the experiment does not allocate the speed difference among language, implementation, representation and search. The same-system comparison with cube pruning controls for more of those factors. It gives a smaller advantage and supports a more specific claim about search efficiency in the tested tree-to-string setup.
The fixed-width scaling plot speaks to observed sentence lengths at beam width 50. A larger beam took more time and reached higher BLEU in the final comparisons, so a practical runtime claim should retain its associated beam setting and quality condition. Similarly, the linear beam bound treats rule matches per node as bounded independently of sentence length. If a different setup changes how much work a prediction entails or how the matching rules are supplied, that cost needs to be accounted for alongside the count of retained items. Source parsing is already included in the final tree-to-string times, while the linear search argument is about the work of decoding once the source structure is available.
The quality comparison is based on reported BLEU point estimates. The paper gives no uncertainty intervals or significance tests for the small differences among the final scores. Describing 29.54 and 29.41 as comparable conveys the scale of the observed results. A claim of a reliable quality improvement across test samples would require evidence beyond those point estimates. Even the shared reported value of 29.96 describes a metric outcome, without establishing equivalence in translation choices, human judgments or error types.
Finally, source syntax is supplied by a best parse in the tested decoder. A rule can reorder the parts that the parse exposes, so an input parse influences which rule patterns match and which derivations the search can construct. The experiments include the time needed for parsing, but they do not vary parse quality or compare the best-parse setup directly with translation over competing source parses. The future-work proposal to extend the incremental search to forests identifies a way to study a broader source representation while leaving that question open in the reported evaluation.
What came after
The later citing work is Travatar, a 2013 machine translation engine based on tree transducers that takes a forest as input and produces a string. The citation connects Huang and Mi’s tree-to-string decoding study with an engine in the broader forest-to-string setting. The change in input representation matters to the search question. Huang and Mi’s incremental decoder follows rule matches against a chosen source parse, while a forest can represent alternatives in source structure. Huang and Mi had identified extension to forest-based translation as a direction for future work. Travatar
The documented connection is the citation and the forest-to-string scope of the later engine. It leaves open whether Travatar adopts the stack of active rules, the source-node progress measure, or the left-to-right beam procedure. As a consequence, Huang and Mi’s linear beam-search result and their NIST timing measurements remain claims about the tested tree-to-string decoder. Travatar places the question of efficient target generation in a setting where a decoder can also have alternatives in the source structure to consider.
Cite
Cite as Liang Huang and Haitao Mi. 2010. Efficient Incremental Decoding for Tree-to-String Translation. Proceedings of the 2010 Conference on Empirical Methods in Natural Language Processing.
@inproceedings{huang2010efficient,
title = {{Efficient Incremental Decoding for Tree-to-String Translation}},
author = {Liang Huang and Haitao Mi},
booktitle = {Proceedings of the 2010 Conference on Empirical Methods in Natural Language Processing},
year = {2010},
url = {https://aclanthology.org/D10-1027/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/huang-2010-efficient-incremental-decoding-tree-string/