Elamur Research

Efficient Left-to-Right Hierarchical Phrase-Based Translation with Improved Reordering

Paper · 2013 · Maryam Siahbani, Baskaran Sankaran and Anoop Sarkar

Summary

A translation system needs to decide where each piece of the input belongs in the output. Hierarchical phrase-based translation can move whole pieces at once by using rules with slots for smaller translations. The usual decoder builds translations for pieces of the input and joins them from the bottom up. Siahbani, Sankaran, and Sarkar investigate an alternative that writes the translation from left to right, appending words to a single growing prefix. This simplifies scoring the fluency of each candidate. It also makes an early decision about word order harder to undo, a tradeoff at the center of this study of machine translation.

The paper develops an earlier left-to-right decoder in two ways. It adapts cube pruning, a way to explore promising combinations of partial translations and rules without evaluating every pairing. It also gives the decoder evidence about word order before all the words involved have been translated. Distortion features measure how far a rule makes the decoder jump between positions in the source sentence, keeping separate totals for ordinary rules and rules that join larger pieces. A further feature counts rules that swap the order of their slots. These scores complement the evidence available from the English words already written.

The experiments cover Czech–English and German–English. On a sample from the Czech–English test set, the cube-pruned left-to-right decoder made an average of 1,303.2 calls to the component that scores target text, compared with 5,679.7 for unrestricted bottom-up Hiero. The German–English sample showed the same pattern, with 1,697.7 calls for the left-to-right decoder and 7,231.62 for unrestricted Hiero. Without cube pruning, the left-to-right decoder made substantially more calls than either bottom-up variant. The authors use these calls as a measure of decoder work, with each call going through the same interface to the language model.

With cube pruning and the new features, left-to-right Hiero scored 20.15 on the Czech–English test set and 24.83 on the German–English test set. In both language pairs, the authors found no statistically significant difference from the phrase-based baseline or from bottom-up Hiero using the same restricted grammar. Bottom-up Hiero with unrestricted rules scored higher in both directions. The choice is therefore between different combinations of search cost and translation quality, and the strength of the quality comparison depends on which grammar the baseline can use. The paper measures translation quality with the BLEU score.

Deep dive: Efficient Left-to-Right Hierarchical Phrase-Based Translation with Improved Reordering

A left-to-right decoder makes hierarchical phrase-based translation cheaper, while new reordering features recover much of the lost accuracy. · about 37 minutes to read

The problem and its context

A translation rule can move a phrase it has yet to translate

A phrase-based translator can learn that a sequence of source words corresponds to a sequence of target words. For a particular input, a decoder has to choose which phrases to use, which translations to give them, and how to order the translated pieces. So even when a phrase table contains useful entries for all the words in an input, the decoder still faces a search problem. Many complete sentences can be assembled from those entries, and a plausible choice in one part of the sentence can interact with a choice somewhere else. This is the setting of Statistical Phrase-Based Translation.

Hiero adds rules that contain both words and slots. A slot on the source side stands for a stretch of the input. Its counterpart on the target side stands for the translation of that stretch. A rule can specify where the slots go in the output while leaving the words that fill them to other rules. It can therefore express a recurring word-order pattern without requiring every phrase that participates in the pattern to have appeared together in training. Each rule describes both sides of the translation, and the same slot can be expanded into further rules. This is the grammar introduced in Hierarchical Phrase-Based Translation.

The flexibility has a cost. Hiero can derive many rules from the same bilingual examples because a larger phrase pair may contain several smaller aligned phrases that qualify as slots. A decoder then has to search both over ways to divide a source passage into smaller pieces and over the rules that combine them. The original extraction procedure already limits which rules it will keep. Among other constraints, it caps the number of slots and disallows adjacent slots on the source side. A separate set of glue rules lets the decoder join translations when an input is longer than the phrases from which ordinary rules were extracted.

The paper calls this representation a synchronous context-free grammar. The context-free part lets a rule expand a slot using the same category independently of the words immediately outside it. Synchrony comes from linking corresponding slots across the source and target forms of each rule. For this paper, the important freedom is that the linked slots can occur in different orders on the two sides. On the source side, they describe where to find the pieces. On the target side, they describe where to put their translations. The rules are learned from aligned text, so the category used here is an abstraction over phrases. The broader grammar formalism is a context-free grammar.

Bottom-up decoding and target fluency

The standard Hiero decoder uses a bottom-up procedure based on CKY. It records candidates for stretches of the input in a chart and combines candidates for shorter stretches into candidates for longer ones. For a particular short span, the decoder can retain useful translations without deciding where those translations will appear in the final target sentence. During a later combination, a rule can place the candidate before or after a neighboring piece. The chart thus gives promising local translations a place to survive while the decoder considers how to use them.

A target fluency score is harder to compute in this order. A candidate for a source span may eventually be placed between target words that are still unknown. Its internal word sequences already provide some evidence about fluency. The joins with other pieces can be scored only when those pieces become available. The decoder therefore retains context at both ends of a candidate, since either end can take part in the next join. The paper points to earlier efforts to reduce the state associated with those boundaries, including Left language model state for syntactic machine translation.

The number of possible spans and split points also matters. The paper characterizes CKY-style decoding as cubic in source length. Pruning can reduce how much work the implementation does inside the chart, but the chart still organizes search around possible input spans and their combinations. Earlier work used cube pruning to manage the combinations the decoder evaluates with the target fluency score. The related work the authors cite includes Forest Rescoring: Faster Decoding with Integrated Language Models.

An incremental decoder can score words in the order in which the reader will see them. Once it has a target prefix, the relevant context for appending more words is at the end of that prefix. Rather than holding target context at both ends of each independently built phrase, the decoder maintains the history of the text it has already produced. The term left-to-right applies to the target text. On the source side, the decoder can still jump between positions as it selects the phrases whose translations belong next. Earlier work had already shown how to organize Hiero decoding around this distinction in Left-to-Right Target Generation for Hierarchical Phrase-Based Translation.

The cost of deciding what comes next

A left-to-right decoder needs rules that let it say something at the current end of the output. In the earlier algorithm, any fixed target words in a rule must appear before its slots. The decoder can append those words immediately and put the slots on a list for later expansion. A rule with target words between its slots would require a different mechanism, since those words could be appended only after the preceding slot had been translated. The restriction reduces the grammar the decoder has to search and also removes some ways of expressing a translation.

The paper sees reasons to think the sacrifice may be manageable. It cites previous experiments in which gaps on the source side of rules contributed more to translation quality than gaps on the target side. This matters because the left-to-right restriction applies to the target. A source rule can still match separated runs of literal words with intervening slots, and those slots can still change order on the target side. The earlier comparisons informed the choice of restriction, though the left-to-right grammar is more specific than the alternatives considered in Accurate Non-Hierarchical Phrase-Based Translation.

The other difficulty comes from pruning. A bottom-up decoder can preserve a good translation for a source span while it searches for somewhere to put it. A left-to-right decoder compares growing target prefixes, and prefixes that cover the same amount of source text can have very different tasks still ahead of them. A candidate may have made a sound decision about where to go next, yet receive little credit for that decision until it produces the words that follow. If the decoder discards the candidate first, those later words can never help it. The paper addresses this issue by changing both which candidates the decoder evaluates and what evidence it uses when ranking them.

The method, step by step

Learn rules that can immediately extend a prefix

Training begins with a bitext, a collection of sentences paired with their translations, with word alignments connecting the two sides. The extraction procedure identifies phrase pairs in the aligned sentences. To obtain a hierarchical rule, it looks for smaller phrase pairs contained inside a larger pair and replaces the smaller stretches with linked slots. The remaining words become the rule’s terminals, meaning literal words. The slots are its nonterminals, meaning positions to be filled by expanding another rule.

The ordinary Hiero rule schema can be written as follows.

X → ⟨γ, α⟩

Here X is the nonterminal being expanded and → denotes a rule expansion. The brackets enclose the paired sides of the rule. γ is the source string and α is the target string. Either string can contain terminals and nonterminals. Nonterminal occurrences on the two sides are linked so that each target slot receives the translation of its corresponding source span.

For left-to-right decoding, extraction keeps rules of the following form.

X → ⟨γ, b̄ β⟩

X, →, the brackets, and γ have the same roles as in the general rule. b̄ is the sequence of target terminals at the front of the rule. β is the sequence of target nonterminals that follows it, and that sequence may be empty. Juxtaposition means concatenation. The authors call these GNF rules, using the name as shorthand for the shape of the target side. The restriction concerns the location of target words and slots. The source side remains a mixed string.

The order matters at the moment of expansion. If the rule begins with a run of target words, the decoder can append that run immediately. It can then handle each target slot in order. If a target word were placed between slots, it would have to wait for the first of those slots to finish. Excluding that rule form makes pending work easier to represent. The decoder can keep a list of source stretches to translate next, with the target words from every applied rule already incorporated into the output prefix.

The German–English example shows how source discontinuity survives the restriction. The authors start from a phrase pair whose English side is “have not yet done their work.” Within that phrase pair, they find alignments that let them abstract away the work phrase and the verb translated as “done.” The resulting rule has the following shape.

X → ⟨X₁ noch nicht X₂ haben, have not yet X₂ X₁⟩

X identifies the category expanded by the rule. The subscripts distinguish the linked occurrences X₁ and X₂, with each occurrence on the target side referring to the source occurrence bearing the same subscript. noch nicht and haben are fixed source terminals. have not yet is the fixed target prefix, and the order X₂ X₁ puts the translated verb before the translated work phrase. The bracketed pair and the arrow retain their usual rule notation.

In the source pattern, the work phrase precedes the verb and the literal words are split into runs. The English prefix can still be emitted in one operation. The decoder then translates the source span for X₂ and follows it with the translation for X₁. This illustrates the difference between limiting the shape of the target rule and requiring monotone translation, where source pieces would be translated in their original order. A rule whose target starts with a slot and contains words after it would be excluded, even if it expressed a valid translation of a similar construction.

Join pieces where an ordinary rule does not reach

The grammar also needs a mechanism for spans that exceed the length of the extracted phrase pairs or lack a suitable matching rule. Standard Hiero can use a separate start category and glue translations together in order.

S → ⟨X, X⟩

S is the category used for the glue derivation, and X stands for a linked hierarchical phrase on the two sides. The arrow and brackets denote expansion and the pair of forms. This rule allows a translation of category X to serve as an S.

S → ⟨S X, S X⟩

S on the right represents the portion already joined, and X represents the phrase being added. The same sequence S X appears on the source and target sides, so this combination preserves their order. The other symbols have the same meanings as in the previous rule.

The left-to-right decoder inherits a different glue mechanism from the earlier work. For a lexical phrase pair with no slots of its own, it can create rule variants that add slots to the source side. Each variant keeps the target words of the original lexical pair at the front. By placing the remaining target slots after those words, the variants can express movement as well as in-order combination.

X → ⟨f̄ X₁, ē X₁⟩

f̄ is the source phrase of the original lexical pair and ē is its target phrase. X is the expanded category and X₁ is the linked slot. Here both sides put the lexical phrase before the slot. The arrow and brackets represent the rule and its paired sides.

X → ⟨X₁ f̄, ē X₁⟩

The symbols identify the same lexical pair and the same linked slot. In this variant, the source phrase f̄ follows the slot, but the target phrase ē is emitted before the slot is translated. The decoder can therefore output the translation of the lexical phrase first even though it came later in the input.

X → ⟨X₁ f̄ X₂, ē X₁ X₂⟩

X₂ introduces a further linked slot. The fixed source phrase f̄ separates the source slots. On the target side, ē precedes both slots, whose relative order remains X₁ X₂. The literal phrase has moved relative to a slot even though the slots remain in the same order as each other.

X → ⟨X₁ f̄ X₂, ē X₂ X₁⟩

This variant has the same source pattern and lexical target prefix as the previous form. Its target puts X₂ before X₁, reversing the relative order of the slots. All other symbols keep their previous meanings.

These alternatives give the decoder ways to build a hierarchy around a lexical pair even when that larger configuration has no extracted rule of its own. They also create a choice that fluency evidence alone may resolve too late. In the last two forms, for instance, the same words ē are appended immediately. The next source span changes, but the words that show the effect of this change have yet to be generated. The new scoring features address that gap.

From aligned phrase pairs to a translation

The steps in order.

From aligned phrase pairs to a translationStep 1: Extract phrase pairs from word-aligned sentences1. Extract phrase pairs from word-aligned sentencesStep 2: Keep rules with target words before slots2. Keep rules with target words before slotsStep 3: Estimate future costs for source spans3. Estimate future costs for source spansStep 4: Group candidates by their next source span4. Group candidates by their next source spanStep 5: Explore promising rule and candidate combinations5. Explore promising rule and candidate combinationsStep 6: Append target words and schedule remaining spans6. Append target words and schedule remaining spansStep 7: Select the highest-scoring complete translation7. Select the highest-scoring complete translation

Keep the target prefix and the pending source spans together

The left-to-right search starts with the entire input awaiting translation and a sentence-start marker in the output. A partial candidate carries the prefix it has written and a list of source spans that remain to be translated. The list is last-in, first-out. During expansion, the span on top is the only one that the decoder can process next. The candidate also records which source words have been covered and its score for ranking in the search.

h = (hₜ, hₛ, h꜀ₒᵥ, h꜀)

h is a partial hypothesis, or candidate translation derivation. hₜ is its target prefix, hₛ is its ordered list of pending source spans, h꜀ₒᵥ is the set of already covered source words, and h꜀ is the candidate’s score. The parentheses group the fields into a tuple and the equals sign specifies its contents.

The decoder removes the first pending span and looks up rules whose source sides match that whole span. Matching decides both where the literal words occur and which stretches of the span are assigned to the rule’s slots. One source pattern can match a span in several ways. The paper illustrates this with a pattern consisting of two slots separated by “the.” In “ok, the more the better,” either occurrence of “the” can act as the fixed word, leaving different spans on its left and right. The lookup procedure makes those possibilities available as distinct matches. The pattern-matching approach draws on Hierarchical Phrase-Based Translation with Suffix Arrays.

For each chosen match, the decoder appends the rule’s initial target words to the prefix. It marks the source terminals in the rule as covered. The source spans assigned to slots are still pending. To put those spans on its list, the decoder reads the slot order from the target side and pushes the spans in reverse. The span whose translation belongs next is pushed last, which puts it on top. Any source spans left over from earlier rules stay underneath the newly added ones.

In the German–English walkthrough, the first rule produces “students” and leaves the rest of the sentence pending. The next rule produces “have” and identifies a span for the main phrase and another for the final punctuation. The main phrase goes on top because its English words come first. The following rule adds “not yet” and supplies new slots for the work phrase and the verb. The verb becomes the next span to expand, yielding “done,” and the work phrase subsequently yields “their work.” Only after those spans are finished does the decoder translate the punctuation. The extraction example includes “have” in a single rule’s target prefix, whereas this walkthrough introduces it through an earlier expansion.

Viewed from the source side, processing starts at one place, moves to the span containing the verb, and then returns to the earlier work phrase. The paper describes these movements with an Earley-style dot. A dot in a parsing rule conventionally marks a position in the rule’s progress. Here its next location is driven by which slot the target requires next, so it can move around the source pattern. Viewed from the target side, the traversal goes down the derivation for the next slot before returning to anything still waiting. The output grows at the right edge throughout.

Rank candidates by what they have done and what remains

Candidate lists, called stacks in the paper, are indexed by the number of covered source words. The stack used to schedule pending spans within a hypothesis and the stacks used to organize hypotheses serve different purposes. The pending list determines which span that particular hypothesis translates next. A hypothesis stack groups all candidates that have covered the same number of source words, even if they covered different words and their English prefixes have different lengths.

ℓ = |h′꜀ₒᵥ|

h′ denotes a candidate just created by applying a rule, and h′꜀ₒᵥ is its updated coverage set. The vertical bars denote the size of that set. ℓ is the index of the stack that receives the new candidate. Taking the size of the set lets the decoder judge progress by coverage even when the rule has moved away from the beginning of the source sentence.

Before search begins, the decoder precomputes a future cost for source spans. The estimate uses the grammar’s terminal rules, so it can be prepared without resolving every possible hierarchical derivation that might later cover a span. During search, the estimate contributes evidence about the parts left untranslated. This matters when comparing hypotheses with the same coverage count. One candidate can leave behind a span that looks easy to translate, and another can leave behind a span that looks expensive, even if their accumulated scores are close.

h₀ = (⟨s⟩, [[0, n]], ∅, F[0,n])

h₀ is the initial hypothesis. ⟨s⟩ represents the sentence-start marker in the target prefix. [[0, n]] is a list containing a single span, with 0 and n marking the beginning and end of the source sentence. ∅ is the empty coverage set. F[0,n] is the precomputed future estimate for that initial span. At this point the hypothesis has scored no translation choices, so its score comes from that estimate.

A candidate’s score combines the feature values for the derivation so far with the estimated cost of finishing the pending source spans. The paper describes the computation in terms of g(h′), the feature scores of the new hypothesis, and F evaluated on its uncovered portion. The feature weights are learned during tuning. A future estimate helps compare unfinished hypotheses, but the terminal rules used to compute it cannot reveal all the evidence that will be available once the decoder chooses a complete hierarchy and writes the remaining English words.

In the beam-search version, the decoder processes the coverage stacks in ascending order. It expands the surviving hypotheses, looks up the matches for their next spans, and generates the resulting candidates. Later stacks may receive many such candidates, most of which will be discarded. The paper gives the practical complexity of this beam-based left-to-right search as follows.

O(n² b)

O describes the growth of the work as the input and search settings change. n is the source sentence length and b is the beam size, which governs how many hypotheses are retained. The exponent in n² describes quadratic growth in sentence length under this characterization. The cited analysis of incremental search is Efficient Incremental Decoding for Tree-to-String Translation.

O(n³)

Here O has the same meaning and n is again the source length. The exponent describes the cubic growth the paper attributes to the CKY procedure. These expressions characterize the search arrangements. They leave open how many candidates an implementation will actually score at the tested beam or pop limits, which is why the paper measures that work separately.

Explore promising pairings before scoring the rest

Cube pruning changes when combinations of rules and hypotheses are evaluated. The beam-search version can generate many candidates from the surviving predecessors, even when only a small fraction will have enough support to stay in the destination stack. Cube pruning builds ordered groups of potential expansions and starts by scoring a promising combination from each group. It then uses those scores to decide where to look for further candidates.

To fill an output stack, the decoder first asks which earlier stacks can reach it. A rule can add only a bounded number of covered source terminals. There is no need to consider a predecessor that would have to cover more words in one expansion than the longest allowed rule can account for. The paper writes the resulting range of eligible predecessor indices as follows.

max(i − MRL, 0) ≤ p ≤ i − 1

i is the destination stack index and p is an earlier stack index. MRL is the maximum rule length used for this bound. max selects the larger of its arguments and ≤ gives the inclusive bounds. 0 denotes the starting stack. i − 1 is the stack immediately before the destination. For a particular p, the rule must cover i − p source terminals to put its candidate in stack i.

Within each predecessor stack, the algorithm groups hypotheses by the identity of their next source span. They already share a coverage count because they came from the same stack. Since they also share the span to be expanded, the decoder can use the same lookup of source-side matches. A group can still contain hypotheses with different target prefixes, coverage sets, scores, and later pending spans. Each generated candidate retains that individual state.

g = (gₛₚₐₙ, gₕᵧₚₛ)

g is a hypothesis group. gₛₚₐₙ is the first uncovered span shared by the members, and gₕᵧₚₛ is the list of those members. The equals sign and parentheses specify the pair that represents the group.

The matching rules are grouped in turn by their source side. A rule group contains alternatives that match the same source pattern and provide different target sides. An eligible group of hypotheses and one compatible group of rules form a cube. In this algorithm it has the shape of a rectangular grid. Rows represent the hypotheses and columns represent the rules. A cell stands for applying the rule in its column to the hypothesis in its row. Different grids can have different numbers of rows and columns, depending on how many hypotheses share the span and how many target alternatives exist for its matching source patterns.

The row and column lists are sorted by their respective scores. The decoder starts with the cell that combines the first hypothesis and the first rule. It runs the same expansion procedure used in beam search, which appends target words, updates coverage, schedules the resulting spans, and computes the resulting score. It puts the expanded candidate in a priority queue together with its grid position. The queue therefore contains fully scored candidates from the currently exposed parts of the grids.

At each iteration, the decoder removes the best-scoring candidate available in the queue and adds it to the destination stack. It then exposes neighboring cells in that candidate’s grid, generates their candidates, and submits them to the same queue. A promising grid can supply several entries before another grid supplies a further one. A grid whose first candidate ranks poorly may receive little additional attention. This is how the decoder saves work. It delays most calls to the target scorer until the corresponding pairing looks likely to matter.

|Q| > 0 and |A| < K

Q is the priority queue of exposed candidates. A is the list of candidates accepted for the destination stack, and K is the limit on how many candidates to collect. The vertical bars count entries. > and < are the strict comparison operators, and and requires both conditions to hold. The merge continues while the queue has something to offer and the destination has room under the limit.

The grid ordering is a guide to likely value. A rule that looks strong in isolation can continue one English prefix poorly and another one well. The decoder learns that interaction when it generates a cell and obtains the updated score. Cube pruning limits how frequently it has to do this, with the queue comparing the pairings it has exposed so far. The procedure eventually fills the stack for complete source coverage and chooses its highest-scoring translation.

Score the source movement implied by a rule

The baseline features include translation probabilities estimated in both directions by relative frequency, lexical probabilities in both directions, a target fluency score, and counts of words and phrases. The method also counts uses of glue rules. The paper writes the directional phrase and lexical feature pairs using the following notation.

p(f | e), p(e | f)

p denotes a relative-frequency translation probability. In these features, f and e are the source and target sides of a translation pair. The bar means “conditioned on.” The first expression scores the source given the target, and the second scores the target given the source. The comma separates the two features.

pₗ(f | e), pₗ(e | f)

The subscript ₗ marks the lexical translation probabilities. f, e, the conditioning bar, and the comma retain the same meanings. These features provide word-level translation evidence alongside the relative-frequency scores for the pair as a whole.

The earlier decoder also scores the height and width of subtrees that a derivation must finish before reaching a waiting slot. Suppose an expansion creates two slots and the first in target order takes several further expansions to finish. The second slot must wait for that entire subtree. Its backtrace, in the paper’s terminology, includes the nonterminals visited before the decoder can pop that waiting slot. Height describes the depth of the preceding subtree, and width refers to its source span size. In the illustrated derivation, the authors report a total height penalty of 3 and a width penalty of 6.

These features describe the work that comes before a waiting slot. Two rules can incur the same kind of penalty even if one puts its slots in their source order and the other reverses them. At a point where two target prefixes contain the same words, the target fluency score may also offer little help in distinguishing the resulting paths. The paper therefore adds evidence that is available from the source match and the rule’s target structure at the time of application.

The distortion calculation starts by representing each contiguous run of source terminals and each matched slot span as an item with source boundaries. The rule’s left and right boundaries act as endpoints for this sequence. The terminal runs are accounted for before the slot spans, and the slots are visited in their target order. For every transition, the decoder measures the distance from the right boundary of the previous item to the left boundary of the next. The resulting feature describes the movement implied by the rule, including the movement into its first item and out of its last.

d(r) = ∑ⱼ₌₁ᵏ |Iⱼᴸ − Iⱼ₋₁ᴿ|

d(r) is the distortion of a matched rule r. I is the ordered sequence of items, with I₀ and Iₖ serving as the dummy endpoints at the boundaries of the match. The summation sign ∑ adds the terms indexed by j from 1 through k. Iⱼᴸ is the left boundary of item j in the input. Iⱼ₋₁ᴿ is the right boundary of the preceding item. The minus sign subtracts these source positions, and the vertical bars take the absolute value so that forward and backward jumps both contribute distance.

For the illustrated rule that adds “not yet,” the decoder starts at the boundary of the larger source span and first accounts for the terminals corresponding to the rule’s prefix. It then visits the source slot for “done,” followed by the earlier slot for “their work,” and finally accounts for the right boundary of the match. The paper gives the component distances for this example as the following expression.

d = 2 + 0 + 5 + 3

d is the distortion for this rule application. The plus signs add the successive distances. 2 is the distance from the initial boundary to the terminal run, 0 is the move from the end of that run to the adjacent verb span, 5 is the jump back to the work span, and 3 is the move from the end of the work span to the final boundary. The last two terms show how the order of the slots changes the path through the input before the translations of those slots are known.

d = ∑ᵣ∈ᴰ d(r)

D is the derivation and r ∈ D ranges over the rule applications used in it. The summation adds the distortion d(r) of each application. d is the resulting derivation-level total. This form describes the single distortion feature, before splitting the contributions by rule type.

The final feature set separates distortion into dₚ for ordinary phrase rules and dᵍ for glue rules. The paper’s reason is that glue can occur high in a derivation, where the source spans can be large and a single join can entail a long jump. Keeping separate totals gives the tuner the freedom to learn how much a jump should matter in each setting. A given jump contributes its distance under either type. Its influence on the hypothesis score then depends on the weight learned for that type.

Count slot reversals as a separate event

The distortion feature can respond to movement even when the relative order of the slots stays the same. In a glue rule with a fixed source phrase between the slots, the corresponding target words are emitted before either slot is expanded. This can cause a jump on the source side while the slots themselves retain their relative order. The distance traveled and the question of whether the slots reversed are distinct properties of the application.

The paper therefore adds a feature that counts rules whose slots occur in a different order on the two sides.

rₕᵢ = rule(D, hi)

rₕᵢ is the derivation’s hierarchical reordering feature. D denotes the derivation. rule(D, hi) denotes the count of rule applications in D that qualify as hierarchical reorderings, with hi identifying that kind of rule application. A rule can qualify only if it has enough slots for their relative order to change. The count includes both ordinary and glue rules.

Consider again the glue alternatives that emit the same English words before expanding the remaining spans. One preserves the order of the slots and one reverses it. At selection time, the decoder already knows which alternative it has applied. It can update the reversal count and calculate the implied jump distances even though the next target words are still unknown. The target fluency score continues to contribute as those words arrive. Reordering features provide earlier evidence about decisions that could otherwise receive their strongest signal after a candidate has been pruned.

Estimate scores and tune their weights

Phrase and lexical translation probabilities come from the aligned bilingual training data. The target fluency component is trained separately on Gigaword. It uses a 5-gram, which scores an appended word using a bounded history of preceding words. The left-to-right decoder can take that history from the end of the current prefix when it applies a rule. The software used to serve the probability queries is KenLM. The unit of context in such a scorer is an n-gram.

The decoder combines its features using a log-linear score, with a weight for each source of evidence. A learned weight determines how translation probabilities, target fluency, counts, and reordering features contribute to the ranking of hypotheses. Minimum error rate training, abbreviated MERT, adjusts the weights to minimize BLEU loss on development data. The results are then evaluated on the test set. The feature definitions specify what to measure for a rule application, while tuning determines how much influence each measurement has for a language pair.

Experiments and results

Data, systems, and measurements

The experiments translate Czech and German into English. The Czech–English data draws on Europarl(v7), CzEng(v0.9), and News commentary. The paper reports 7.95M training sentences, 3000 development sentences, and 3003 test sentences for this pair. The German–English data draws on Europarl(v7) and News commentary, with 1.5M training sentences, 2000 development sentences, and 2000 test sentences. The target scorer is trained on the separate Gigaword corpus, and tuning uses the development split for each language pair.

The unrestricted bottom-up system is Kriya, the authors’ open-source Python implementation of Hiero. A second version, CKY Hiero-GNF, uses the same decoding strategy with the restricted grammar extracted for left-to-right search. This comparison makes it possible to give both search strategies the same inventory of ordinary hierarchical rules. The phrase-based comparison uses Moses. The authors note that Kriya had achieved comparable BLEU to Moses in earlier evaluations across several language pairs, including results discussed in Findings of the 2012 Workshop on Statistical Machine Translation.

The authors implement the earlier left-to-right search in Python and report it both with and without their changes. The configuration labeled LR-Hiero uses the earlier search procedure and feature set. LR-Hiero with reordering features adds the new scoring signals to this search. The final configuration adds cube pruning as well. In the translation-quality comparison, the pop limit is 1000 for Moses and the beam-search left-to-right decoder, and 500 for the cube-pruned CKY and left-to-right decoders. The authors hold settings such as maximum phrase length constant across the compared configurations. For the efficiency experiment they additionally run the beam-search left-to-right decoder with a beam of 500.

The grammar counts show how strongly the extraction restriction changes the inventory. In Czech–English, unrestricted Hiero has 1,961.6 million rules and the left-to-right grammar has 230.5 million. The phrase-based system has 233.0 million. In German–English, unrestricted Hiero has 858.5 million rules, the left-to-right grammar has 101.3 million, and the phrase-based system has 77.2 million. The counts for the left-to-right grammar exclude glue rules generated when needed during decoding. The counts show the scale of the stored rule inventories under the reported extraction procedure.

The paper separates translation quality from decoder work. Translation quality is measured with BLEU on the test sets, using agreement with reference text to summarize the system’s output. For decoder work, the authors count calls to the target fluency scorer on a sample of 50 sentences from the test sets and record the time spent in the calls. The systems in that comparison use the same instrumented wrapper. The call count makes it possible to compare the amount of scoring work with less dependence on low-level timing differences between implementations.

How many candidates reach the scorer

Average language model queries per sentence on the Czech–English test sample

Cube pruning makes left-to-right decoding the least query-intensive configuration in the comparison.

Average language model queries per sentence on the Czech–English test sampleCKY Hiero: 5,679.7CKY Hiero5,679.7CKY Hiero-GNF: 4,952.5CKY Hiero-GNF4,952.5LR-Hiero, beam 1000: 46,333.21LR-Hiero, beam 100046,333.21LR-Hiero, beam 500: 24,141.03LR-Hiero, beam 50024,141.03LR-Hiero with cube pruning (this paper): 1,303.2LR-Hiero with cube pruning (this paper)1,303.2
The numbers
System or settinglanguage model queries
CKY Hiero5,679.7
CKY Hiero-GNF4,952.5
LR-Hiero, beam 100046,333.21
LR-Hiero, beam 50024,141.03
LR-Hiero with cube pruning (this paper)1,303.2

On the Czech–English sample, the query times follow the call counts. The unrestricted CKY system averages 16.12 ms in the scorer and the CKY system with the restricted grammar averages 14.71 ms. Beam-search LR-Hiero averages 163.6 ms with the beam at 1000 and 97.61 ms with the beam at 500. The corresponding time for LR-Hiero with cube pruning is 4.2 ms. These are averages for the instrumented scoring calls on the sampled test sentences.

On the German–English sample, unrestricted CKY Hiero averages 7,231.62 queries and 20.33 ms of query time. CKY Hiero-GNF averages 5,858.74 queries and 18.23 ms. The left-to-right beam runs average 83,518.63 queries and 328.11 ms at 1000, and 42,783.12 queries and 192.23 ms at 500. With cube pruning, left-to-right search averages 1,697.7 queries and 5.67 ms. The authors characterize the overall comparison with unrestricted CKY Hiero as a fourfold advantage in query count.

The ordering of the systems is informative across both samples. With the grammar held to the restricted form, CKY still uses fewer queries than either left-to-right beam run. Cube pruning then brings the left-to-right query count below either CKY configuration. This shows why the paper’s practical efficiency result depends on the search procedure as well as on writing the target in order. Having a single target history simplifies each extension, while selective generation determines how many extensions reach the scorer.

The smaller grammar can contribute to less work since it offers fewer rule alternatives overall, and the restricted CKY comparisons help put that explanation in context. CKY Hiero-GNF makes fewer queries than unrestricted CKY Hiero in both samples. Yet switching the bottom-up decoder to the smaller grammar still leaves it with more queries than the cube-pruned left-to-right search using that grammar. The comparison therefore captures an efficiency advantage beyond the change in extracted rules.

Translation quality on the full test sets

Translation systems compared by BLEU on the Czech–English test set

The new features bring cube-pruned left-to-right decoding close to the phrase-based and restricted-grammar CKY baselines.

Translation systems compared by BLEU on the Czech–English test setPhrase-based: 20.32Phrase-based20.32CKY Hiero: 20.64CKY Hiero20.64CKY Hiero-GNF: 20.04CKY Hiero-GNF20.04LR-Hiero: 18.30LR-Hiero18.30LR-Hiero with reordering features: 20.20LR-Hiero with reordering features20.20LR-Hiero with cube pruning and reordering features (this paper): 20.15LR-Hiero with cube pruning andreordering features (this paper)20.15CKY Hiero-GNF with reordering features: 20.52CKY Hiero-GNF with reordering features20.52CKY Hiero with reordering features: 20.77CKY Hiero with reordering features20.77
The numbers
System or settingBLEU
Phrase-based20.32
CKY Hiero20.64
CKY Hiero-GNF20.04
LR-Hiero18.30
LR-Hiero with reordering features20.20
LR-Hiero with cube pruning and reordering features (this paper)20.15
CKY Hiero-GNF with reordering features20.52
CKY Hiero with reordering features20.77

Translation systems compared by BLEU on the German–English test set

The enhanced left-to-right decoder approaches the restricted-grammar baseline while unrestricted CKY retains the highest scores.

Translation systems compared by BLEU on the German–English test setPhrase-based: 24.71Phrase-based24.71CKY Hiero: 25.52CKY Hiero25.52CKY Hiero-GNF: 24.84CKY Hiero-GNF24.84LR-Hiero: 23.47LR-Hiero23.47LR-Hiero with reordering features: 24.90LR-Hiero with reordering features24.90LR-Hiero with cube pruning and reordering features (this paper): 24.83LR-Hiero with cube pruning andreordering features (this paper)24.83CKY Hiero-GNF with reordering features: 25.09CKY Hiero-GNF with reordering features25.09CKY Hiero with reordering features: 25.72CKY Hiero with reordering features25.72
The numbers
System or settingBLEU
Phrase-based24.71
CKY Hiero25.52
CKY Hiero-GNF24.84
LR-Hiero23.47
LR-Hiero with reordering features24.90
LR-Hiero with cube pruning and reordering features (this paper)24.83
CKY Hiero-GNF with reordering features25.09
CKY Hiero with reordering features25.72

The original left-to-right configuration has the lowest BLEU in each comparison. Adding the new features lifts the score in both directions. The cube-pruned version then scores slightly below the beam-search version with the same features in each direction, while operating at the smaller reported limit. The resulting BLEU is close to that of Moses and to that of CKY Hiero-GNF with the original features. Both unrestricted CKY rows are higher for each language pair.

The paper uses Moses bootstrap resampling and MultEval to test the differences. With both tools, the authors find no statistically significant difference at a reported threshold of 0.1 between cube-pruned LR-Hiero with the new features and each of the following comparisons: Moses, CKY Hiero-GNF with the original features, and left-to-right beam search with the new features. The comparison with the restricted grammar is particularly direct because it shows what happens when the two decoding strategies have the same restriction on hierarchical target rules. The test addresses whether a difference is detectable in these runs.

In their concluding account, the authors describe an average quality shortfall of about 0.67 BLEU relative to CKY using standard Hiero rules. The individual test-set scores show the comparison for each language pair and how it changes when the CKY system receives the new features too. The practical result is that the enhanced left-to-right system combines low scoring work with BLEU in the range of the phrase-based and restricted-grammar baselines. Access to the unrestricted rule set continues to benefit the bottom-up system.

What the ablations show

The clearest comparison for the features holds the basic left-to-right beam search in place and changes the information it uses to score hypotheses. In Czech–English, the baseline scores 18.30 BLEU and the same search with the new features scores 20.20. In German–English, it moves from 23.47 to 24.90. Since cube pruning is absent from both rows, it cannot explain the improvement in this comparison. The new evidence about jumps and slot order is useful even in the original search arrangement.

The paper also describes intermediate versions of the distortion feature. Adding a single distortion total gives about 1 BLEU point in the authors’ account. Splitting it into separate ordinary-rule and glue-rule totals gives a further reported gain of 0.3 BLEU. The paper supplies these gains in prose, without separate language-pair rows for those settings. They suggest that distinguishing where jumps occur helps the tuner. A large movement made while connecting major portions of a sentence can be treated differently from a jump inside an ordinary learned phrase rule.

The full bundle also includes the count of slot reversals. The paper provides a structural argument for that feature through the glue-rule example, where two variants can append identical words and differ in which span they schedule first. The reported test scores establish the effect of the bundle when it is added to the baseline. They leave the reversal count’s individual contribution unresolved, since there is no separate results row for adding or removing only that count. The intermediate distortion gains give more specific evidence for the jump features than the tables give for the reversal feature by itself.

The authors interpret the improvements partly as relief from premature pruning. The walkthrough makes the proposed mechanism plausible. Before writing the next words, the decoder already knows that one rule selects the later verb span and another could direct the search elsewhere. By valuing that structural choice earlier, the new features can change which candidates survive. The BLEU comparison is a measurement of the translations ultimately produced. It does not enumerate the paths that would have been chosen by a search without pruning, so the number of search errors corrected remains unknown.

Cube pruning reduces the cost of obtaining similar scores

The comparison between the two left-to-right configurations with the full feature set asks whether the enhanced beam search’s quality is retained under the selective expansion procedure. On the Czech–English test set, beam search scores 20.20 BLEU and cube pruning scores 20.15. On German–English, the respective scores are 24.90 and 24.83. Those differences are among the ones the authors report as statistically insignificant. This supports the use of selective expansion at the reported search limits.

The efficiency comparison complements that result by including left-to-right beam runs at both 500 and 1000. As the beam is narrowed, fewer candidates reach the scorer, but its query count remains well above that of the cube-pruned run. The useful change is in how the decoder arrives at the candidates it considers. Ordinary beam search restricts the hypotheses that pass through a stack while still generating many successors of those hypotheses. Cube pruning restricts the successor combinations it generates in the first place.

The settings illuminate different parts of the result. The translation-quality rows compare a beam of 1000 with a cube-pruned limit of 500. The timing runs add the narrower beam, making it possible to see whether setting its limit to 500 is sufficient to explain the query advantage. The paper does not give a parallel BLEU row for this narrower beam. It therefore demonstrates the reduced scoring work at the tested limits and reports quality for the main configuration of each search method.

The authors also tried grouping hypotheses by their entire ordered list of remaining spans instead of just the first one. They report no significant change in final BLEU and retain the simpler grouping. This is compatible with the immediate task of a cube. Its next expansion uses only the first pending span, so grouping on that span is enough to share a rule lookup. The comparison provides no quantitative claim about the time saved by using the simpler key.

The features also help bottom-up decoding

Giving the new features to CKY Hiero-GNF raises its Czech–English test BLEU from 20.04 to 20.52 and its German–English result from 24.84 to 25.09. Unrestricted CKY Hiero also improves, from 20.64 to 20.77 in Czech–English and from 25.52 to 25.72 in German–English. In both pairs, the restricted CKY system shows the larger increase. That pattern supports the authors’ interpretation that extra reordering evidence can help when the grammar offers fewer target-side rule forms.

This is also a comparison of where the features can be computed. The distortion feature uses the source match and the order specified by the rule. Its definition can be applied before the slot translations are complete in left-to-right search and can also score rules in bottom-up search. A feature that depended on first finishing each slot would be unavailable at the point where the incremental decoder needs it. The fact that the bottom-up systems benefit suggests that the measurements carry useful information about the derivation as well as addressing the timing of evidence in incremental search.

The authors discuss contemporary work by Nguyen and Vogel that brought distortion and lexicalized reordering features into CKY Hiero. In that approach, distortion for a chart cell was computed once its nonterminal subspans had been translated. The feature in this paper instead assigns distance to the source path implied by the rule while those translations can still be pending. The CKY experiments check that the latter calculation is useful outside the incremental setting. The paper omits Moses from this feature comparison because Moses already uses distortion and the hierarchical reversal count depends on slots in synchronous rules.

Limitations

Limits identified by the authors

The authors identify the restricted target grammar as a remaining source of lost translation quality. Keeping only rules that put their words before their slots removes constructions that standard Hiero can represent directly. Glue rules offer ways to assemble translations with that restricted inventory, and the new features give the decoder a basis for choosing among them. Neither adds the excluded forms back. The unrestricted CKY systems remain ahead in both test directions, including after the restricted systems receive the new features.

The authors also see room to improve the reordering information itself. Jump distances describe how far the traversal moves on the source side, and the reversal count records whether a rule switches the order of its slots. These signals can help the system favor different amounts of reordering for different language pairs. A reversal count treats different words and constructions alike whenever their slots undergo the same change. The authors therefore propose lexicalized reordering as a way to make the score sensitive to the particular phrases involved. They also propose broader glue rules for cases where the available joining patterns provide too little flexibility.

The paper reports its BLEU scores from a single optimizer run. The authors say that they observed little variation across other tuning runs. They also report results from two significance-testing tools for the principal baseline comparisons. The paper gives the individual BLEU values and the reported significance outcome, without publishing a range of tuning results in the quality table. The stability claim rests on the authors’ observations about those additional runs.

Limits of what the setup establishes

The efficiency experiment measures how often the decoder invokes the target scorer and how much time those calls take. That measure is directly relevant to the benefit of avoiding candidate expansions, and the shared wrapper makes the systems easier to compare. It leaves out other work needed to translate a sentence, including matching rules, constructing groups, building candidates, and managing the priority queue. The fourfold claim is about scoring calls. The run times reported beside those calls likewise concern the scoring operation, so the setup does not establish a corresponding factor for end-to-end translation latency.

The work measure also comes from sampled test sentences. The paper presents their average call counts and times, with no breakdown by source sentence length or by reordering difficulty. Those averages capture the efficiency ordering in the samples. They do not show how the gap behaves on the longest inputs or establish the runtime growth of these implementations from measured scaling curves. The complexity descriptions and the query experiment answer different questions.

The phrase-based and restricted-grammar comparisons support a claim about BLEU under the paper’s settings. A failure to detect a statistically significant difference leaves open how large a difference another sample or another set of tuned weights could reveal. In particular, comparing LR-Hiero with the new features to CKY Hiero-GNF without those features addresses a practical question about matching a baseline. Giving the new features to both decoders changes that comparison, and the table shows higher BLEU for the enhanced CKY Hiero-GNF in both directions.

The feature comparisons also stop short of diagnosing individual translation errors. The paper shows how a source jump or a slot reversal can be recognized early in a particular derivation and reports improvements in corpus BLEU. It does not establish how often gains came from selecting a better word order, preserving a hypothesis that would otherwise be pruned, or changing another decision through retuning. Such distinctions matter because the new weights affect rankings throughout the search. Several paths to a better final score are consistent with the results.

Finally, both main experiments translate into English. The authors use earlier studies of target-side discontinuity to motivate the grammar restriction, but those studies do not substitute for testing the full augmented decoder with other target languages. The two test directions support the conclusion for Czech and German inputs in the reported setup. Claims about languages with substantially different reordering requirements remain open. The authors explicitly call out Chinese–English as a direction for testing a more flexible glue mechanism.

What came after

The paper’s proposed extensions leave two questions open. One is how much more a left-to-right decoder could recover if it could learn that particular words or phrases favor a particular movement. The distortion features score distances, and the reversal feature counts a structural event. Lexicalized reordering would condition such preferences on the material involved. For the incremental decoder, a central question would be how much of that evidence can be supplied when the rule is chosen, while some of the target text is still pending.

The other question is what happens when the decoder is given more ways to join pieces. More flexible glue rules could make useful derivations available in cases where a prefix-lexicalized rule inventory offers too few options. They would also give the search more combinations to consider, making the quality of early scoring consequential. The authors suggest that this direction could help with the reordering demands of Chinese–English. They present both lexicalized reordering and broader glue rules as future work, leaving their effects on translation quality and decoding cost unresolved.

Cite

Cite as Maryam Siahbani, Baskaran Sankaran and Anoop Sarkar. 2013. Efficient Left-to-Right Hierarchical Phrase-Based Translation with Improved Reordering. Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{siahbani2013efficient,
  title = {{Efficient Left-to-Right Hierarchical Phrase-Based Translation with Improved Reordering}},
  author = {Maryam Siahbani, Baskaran Sankaran and Anoop Sarkar},
  booktitle = {Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing},
  year = {2013},
  doi = {10.18653/v1/d13-1110},
  url = {https://doi.org/10.18653/v1/d13-1110}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/siahbani-2013-efficient-left-right-hierarchical-phrase/