Elamur Research

Large-scale Expected BLEU Training of Phrase-based Reordering Models

Paper · 2014 · Michael Auli, Michel Galley and Jianfeng Gao

Summary

A phrase-based translation system can choose a plausible translation for each part of a sentence and still put those parts in the wrong order. A jump across the source sentence gives the decoder a clue about how unusual a move is, but the words involved and the phrases already translated can tell it much more. This paper asks how to learn from those clues at the scale of a large translation system. In particular, it asks whether the system can learn reordering preferences from the quality of its own complete translations, as measured by the BLEU score, a reference-based metric for machine translation.

The authors start with a phrase-based decoder that already uses hierarchical reordering. For each training sentence, the decoder generates a list of candidate translations. The training procedure gives each candidate a probability based on its translation score and a quality score based on how well it matches the reference. Expected BLEU is the average of those quality scores, weighted by the candidate probabilities. Training changes the weights of reordering features so that better translations receive more probability. Candidates can contribute useful evidence even when they fall short of the best translation in the list. Keeping the lists fixed while learning the feature weights lets the authors use hundreds of thousands of sentences and millions of sparse features, each of which fires only when its particular conditions are met.

On the WMT newswire tests, adding the largest feature set raises the size-weighted average single-reference BLEU score from 24.72 to 26.26 for French-to-English and from 20.58 to 21.40 for German-to-English. The paper reports individual test gains of up to 2.0 BLEU on French-to-English newstest2012 and 1.1 BLEU on German-to-English newstest2011. The richer feature sets improve the averages for both language pairs, although the largest set does not lead on every test. A separate French-to-English rescoring experiment shows that the approach benefits from increasing the number of training sentences well beyond the small development sets usually used for translation tuning.

The clearest comparison holds the source of the training candidates and the choice of features steady. Conditional likelihood training promotes the candidate with the highest BLEU for each sentence, while expected BLEU uses the quality scores of the other candidates too. For both feature sets tested in this comparison, expected BLEU yields higher scores on every French-to-English test. The result supports a particular approach to learning word order inside a translation system: use the decoder's actual alternatives and let the quality of each full sentence determine how strongly its reordering choices are reinforced.

Deep dive: Large-scale Expected BLEU Training of Phrase-based Reordering Models

How expected BLEU trains phrase reordering at scale and improves French-to-English and German-to-English translation over a hierarchical baseline. · about 35 minutes to read

The problem and its context

Choosing phrases leaves their order open

A phrase-based system constructs a translation from pieces. A phrase pair links a span of source words to a span of target words that can translate it. Selecting a phrase pair settles the arrangement of words inside that target phrase. The decoder must still decide which source span to translate next, and that choice determines which target phrase comes next in the output. The same source sentence can be divided into phrases in different ways, and different choices of phrases and traversal order can compete throughout the search. This is the setting described in Statistical Phrase-Based Translation.

The paper contrasts this architecture with approaches based on synchronous context-free grammars, where a translation rule can encode how corresponding parts on the source and target sides are ordered. Phrase-based decoding has no comparable arrangement built in across phrase boundaries. It can in principle visit the source phrases in unrestricted order, but allowing arbitrarily distant moves makes the search expensive. Practical decoders limit how far they may jump. A reordering feature then helps distinguish the moves that remain available within that search, while the distortion limit controls which moves the decoder gets to consider. Stochastic Inversion Transduction Grammars and Bilingual Parsing of Parallel Corpora and Hierarchical Phrase-Based Translation are examples of the grammar-based line of work cited by the authors.

An early scoring device was linear distortion. It measures displacement using the last source word of the preceding phrase and the first source word of the current phrase. It gives the decoder a way to penalize distant movements, while treating movements of the same displacement alike regardless of the words involved. That makes it a useful general constraint and a poor description of the reasons a particular movement might be appropriate. A lexicalized reordering score addresses the missing distinction by letting the identities of the phrases affect their scores.

Lexicalized reordering describes a move through its orientation relative to what was translated immediately before. In the terminology used in the paper, a monotone move continues directly to the right in the source. A swap takes the adjacent span to the left. A discontinuous move goes to a span that is separated from the preceding one. These categories give the system a small set of events for which to collect evidence. The orientations used by a particular decoder can subdivide them further, as the experimental baseline does. A Unigram Orientation Model for Statistical Machine Translation is among the work the paper cites for this approach.

A phrase may be adjacent to a whole sequence of previously translated material even when it is far from the most recently translated phrase in that sequence. The hierarchical approach cited in the paper addresses this by assembling previously translated spans into contiguous blocks. The current phrase can then be oriented relative to a block rather than to a single predecessor. This also helps when the same target sentence can be assembled with different phrase boundaries. The underlying derivations can differ, while the spans they cover can still be combined into the same block. A Simple and Effective Hierarchical Phrase Reordering Model supplies the hierarchical baseline on which the paper builds.

Where the supervision comes from

One way to train a lexicalized reordering component is to count orientations in a parallel corpus whose source and target words have already been aligned. The alignments indicate which words correspond across the two languages. From these correspondences, the training procedure infers how phrases were arranged and uses smoothed frequency counts to estimate orientation probabilities. Smoothing matters because many specific phrase pairs have little observed evidence. The hierarchical variant changes which context determines the orientation, while retaining the idea of estimating preferences from events inferred in the aligned corpus.

Prior maximum-entropy approaches used indicator features to describe these events. An indicator can represent a property shared by several phrase pairs, such as a boundary word, so the corresponding weight can be learned from more than the occurrences of one full phrase pair. This makes a richer description possible when direct phrase counts are sparse. As the authors recount the earlier comparisons, however, maximum-entropy estimation still relied on word alignments for its training events and had shown little improvement over simpler frequency estimation. Maximum Entropy Based Phrase Reordering Model for Statistical Machine Translation is one of the cited examples.

The paper takes up a distinction emphasized by Cherry. A learner observing aligned human translations sees reordering events inferred from correspondences between the source and reference. A learner observing decoder output sees decisions among the alternatives the translation system actually produces. The second source of evidence makes the decoder's own mistakes available for training. It also allows a feature to be judged through its association with the quality of a complete candidate, even when the reference supplies no explicit label for that feature's orientation. Cherry's approach used sparse indicators derived from hierarchical reordering and adjusted their weights against a translation-quality target. Its reported training regime used a small development set and a restricted feature inventory.

Preserving the task objective while increasing the scale

Learning from complete translations creates a different computational problem from collecting corpus counts. A candidate translation is the result of multiple phrase decisions, and the value of any particular decision depends on the competing candidates and their quality. A tuning procedure must therefore use evidence about alternatives for each input sentence. In the earlier approach described by the authors, the Margin Infused Relaxed Algorithm, or MIRA, trained sparse reordering features alongside the other translation features. The paper cites attempts to extend this sort of tuning to larger training sets and notes that adding data had often failed to improve accuracy for large feature inventories.

This left a practical gap. The hierarchical count-based system could draw on a parallel corpus large enough to estimate millions of parameters. The sparse discriminative approach could learn from the translation system's strengths and mistakes, but its tuning setup operated at a much smaller scale. The paper's aim is to put those properties together. The authors retain the hierarchical system for initial decoding, use its output to define the alternatives seen during training, and fit a richer sparse component by optimizing the expected quality of those alternatives.

Expected BLEU was already available as a training objective in machine translation. The paper cites applications to phrase and lexical translation parameters and to system combination. Its contribution is to bring that objective to large inventories of sparse reordering features, treating the availability of substantial training data as part of the design. The metric supplies a graded signal over whole translations. The fixed lists make that signal possible to compute repeatedly while adjusting the reordering weights. Maximum Expected BLEU Training of Phrase and Lexicon Translation Models and Expected BLEU Training for Graphs are among the earlier uses the paper cites.

The method, step by step

Keeping track of what the decoder has translated

The decoder builds a target sentence by selecting phrase pairs and appending their target sides. Each selected pair identifies a source span. In ordinary lexicalized reordering, the decoder can classify the current move by comparing that span with the last source span it used. Hierarchical reordering keeps track of a broader context in a stack, a structure whose accessible end holds the most recent phrase or block. A new phrase goes onto the stack. If its source span is contiguous with the span immediately below it, the decoder can merge them. The newly merged block can then be checked against the next item on the stack.

The paper's illustration shows why repeated merging matters. Phrase pair pp₈ goes onto the stack and can be merged with pp₇. Additional merges build the block h₁, which represents the five phrase pairs before pp₉. The process stops when it reaches pp₃, whose source span is separated from the block. When the decoder considers pp₉, it uses h₁ as the point of comparison and assigns a swap orientation. The example depends on the location of the block as a whole. The last individual pair by itself supplies a narrower view of the source material to which the new phrase is adjacent.

Block merging also explains how hierarchical reordering can make orientation estimates less sensitive to the decoder's segmentation choices. There can be several derivations of the same surface translation, where a derivation records the phrase segmentation and the choices that assemble the output. Some of those derivations split adjacent material into smaller phrases. Merging the corresponding source spans makes it possible to recover a similar context for the next decision. The paper uses this hierarchical information both in the baseline and as a source of features for the additional scorer.

Scoring a complete candidate

The surrounding translation system uses a log-linear score. It assigns a value to each candidate for each feature, multiplies the values by their respective weights, and adds the contributions. Some features express preferences about the translation of a phrase. Others score properties of the target sentence or the movement among positions in the source. The normal decoding rule chooses the candidate with the highest total score.

ê = arg maxₑ∈E(f) θᵀ h(f, e)

Here f is the source sentence, e is a candidate target sentence, and E(f) is the set of translations considered possible for f. The function h gives the feature vector for a candidate, and θ contains the corresponding weights. The superscript ᵀ denotes transposition, so θᵀ h(f, e) is the sum of feature values multiplied by their weights. The arg max operation returns the maximizing candidate, denoted ê. The decoder uses beam search to approximate this decision, retaining promising partial candidates during construction because exact search is intractable in the paper's setting.

For comparison, the paper writes the lexicalized orientation estimate as a ratio of counts. Orientation is determined using the positions of the source spans, and the counts track how often each orientation was observed with the phrase pair.

p(o | pp, aᵢ₋₁, aᵢ) = cnt(o, pp) / cnt(pp)

The symbol p denotes a conditional probability, with the conditioning information to the right of the vertical bar. The phrase pair is pp, and o denotes its orientation, with M for monotone, S for swap, and D for discontinuous. The index i locates the current phrase in target sentence order. The alignments aᵢ₋₁ and aᵢ identify the previous and current source spans. The function cnt gives smoothed frequencies from word-aligned training data. The numerator counts the phrase pair with orientation o, and the denominator counts the phrase pair across orientations. The source positions determine how the event is classified. The estimate then looks up the preference associated with that pair and orientation.

The discriminative component uses a linear score for orientation evidence. Each time a phrase pair occurs in a candidate, a set of indicator features describes it and the context in which it occurs. The component sums the contributions from these occurrences over the candidate. An indicator involving a particular word or phrase has an effect only when that word or phrase and the associated orientation match the event being scored.

sφ(o, e, f, a) = φᵀ u(o, e, f, a) = ∑ᵢ₌₁ᴵ φᵀ u(o, ppᵢ, cᵢ) = ∑ᵢ₌₁ᴵ sφ(o, ppᵢ, cᵢ)

The function sφ gives the reordering score under the sparse weight vector φ. The symbol a denotes the alignment for the candidate's phrase derivation, and I is the number of phrase pairs in that derivation. The index i runs over those pairs, with ppᵢ denoting the pair at position i and cᵢ its context. The mapping u produces a vector of indicators for the orientation o and the relevant phrase information, either collected across the derivation or evaluated at an individual phrase occurrence. Each ∑ adds the terms from the first occurrence through I. The product with φᵀ adds the weights of the active indicators. The final expression writes the sentence score as the sum of the individual reordering scores.

The translation system receives one aggregate feature for each sparse orientation channel. This makes the interface between the reordering component and the decoder small even when the number of internal indicators is large.

hₘ₊ⱼ = sφ(oⱼ, e, f, a)

The symbol m is the number of baseline features. The subscript m+j denotes the added feature corresponding to orientation oⱼ, where j indexes the added channels. The right-hand side is the sum of sparse reordering contributions for that orientation in the candidate derivation. A feature of this kind is called dense in the paper because it is passed to the translation system as a single feature value for the candidate. Its value can depend on many sparse indicators, with their own weights in φ. The outer log-linear weights θ determine how strongly the aggregated orientation scores influence the full translation score. Separate orientation features in the outer system follow a convention illustrated by the cited Edinburgh IWSLT system description.

Describing phrases at different levels of detail

SparseHRMLocal uses the first and last words of the source phrase and of its target translation. A boundary word can be represented by its identity if it belongs to the 80 most common words on its side. It can also be represented by membership in a Brown cluster. The paper uses clusterings with 20, 50 or 80 classes, so a boundary word may contribute through several representations. A cluster lets different words share an indicator when they belong to the same class. The features are orientation-specific, so a boundary that supports a swap need not acquire the same weight in the monotone channel.

SparseHRM adds information about the block at the top of the hierarchical stack. It draws on the first and last words of that block on the source and target sides and on source words in the interval between the block and the current phrase. This extends the score from the current pair to its relationship with preceding material. A feature involving the intervening source words can, for instance, distinguish cases with similar phrase boundaries but different material in the gap. The authors identify this configuration as the closest to Cherry's feature inventory.

SparseHRM+UncommonWords keeps the contextual features and removes the frequency restriction on word-identity indicators. The distinction is between the range of words with exact identity features and the context in which those words can be used. An infrequent boundary word can already be represented by a class in the smaller set. The expanded set lets it have a separate weight. This gives training the capacity to recognize word-specific behavior if the available candidate lists provide enough evidence for it.

SparseHRM+BiPhrases takes another route to specificity. It extends SparseHRM with indicators for the whole source phrase, the whole target phrase, and the bilingual pair. This gives the scorer ways to share evidence across translations of one source phrase, across source phrases that produce the same target phrase, and to keep separate evidence for an exact pairing. The feature set resembles the hierarchical lexicalized baseline in its use of phrase and orientation identities. The underlying observations differ. The baseline estimates its preferences from word-aligned data, while the sparse phrase indicators receive training evidence from the translations produced by the decoder.

Generating the alternatives used in training

The authors begin by estimating the ordinary translation system, with the added reordering channels set to zero. Given the baseline weights, they decode the training inputs and save lists of high-scoring candidate translations. These are called n-best lists because a fixed number of the best candidates found by the search are retained. The experiments use 100-best lists. The list for a given sentence approximates the larger set E(f) in the scoring rule.

Each list keeps unique target strings. If two derivations produce the same output words in the same order, the decoder retains the derivation with the highest score. This determines which phrase and orientation features represent that string in the training list. The quality score is assigned to the string, while the derivative with respect to an indicator depends on the recorded derivation. Keeping one derivation ensures that a target string appears once in the probability distribution used by the objective.

The authors divide the work of generating training candidates among ten translation systems. Each is estimated on 90% of the available data and decodes the remaining 10%. The aim is to expose the learner to translations produced for sentences the corresponding decoder has not already seen in its own training. The held-out reference for each input is then used to score the candidates. For the main discriminative runs the inputs are drawn from the newswire part of the parallel corpus. Phrase extraction for these systems uses a maximum phrase length of 7 words on each side.

During sparse training, the ordinary translation weights are fixed, and the added aggregate reordering channels are given unit weights. The algorithm changes the internal indicator weights and recomputes candidate scores and probabilities as those weights evolve. Once sparse learning is complete, the indicator weights are held fixed and the outer weights are tuned again with Minimum Error Rate Training, or MERT. This final tuning stage determines the influence of each aggregate reordering score in the full translation system.

Training the sparse reordering component

The steps in order.

Training the sparse reordering componentStep 1: Fit the hierarchical phrase-based baseline1. Fit the hierarchical phrase-based baselineStep 2: Decode held-out training sentences into candidate lists2. Decode held-out training sentences into candidate listsStep 3: Keep the highest-scoring derivation per target string3. Keep the highest-scoring derivation per target stringStep 4: Score each candidate against its reference4. Score each candidate against its referenceStep 5: Update sparse weights to raise expected BLEU5. Update sparse weights to raise expected BLEUStep 6: Freeze sparse weights and retune translation weights6. Freeze sparse weights and retune translation weights

From candidate scores to expected BLEU

The first ingredient of the objective is a probability distribution over the candidates for one source sentence. Exponentiating the scaled translation scores gives each candidate a positive weight. Dividing by their sum makes the weights comparable as probabilities within that list, with plausible alternatives receiving more influence than candidates with very low translation scores.

pθ,φ(e | f) = exp(γ θᵀ h(f, e)) / ∑ₑ′∈E(f) exp(γ θᵀ h(f, e′))

The function pθ,φ gives the probability of target sentence e given source sentence f under outer weights θ and sparse weights φ. The feature vector h depends on φ through the aggregate reordering channels. The function exp is the exponential, and γ is a non-negative score-scaling parameter. The summation variable e′ runs over the candidates in E(f), including e, to form the normalizer. A γ below 1 flattens the distribution relative to the unscaled scores, and a γ above 1 concentrates more probability on candidates with higher scores. The authors use this scaling only for expected BLEU training and find γ = 1 a good setting. Their discussion cites Lattice Minimum Bayes-Risk Decoding in connection with the scaling.

For the second ingredient, the authors score each candidate against its reference with a smoothed sentence-level approximation to BLEU. BLEU rewards overlap with reference word sequences and accounts for candidate length. Here the approximation gives a usable quality signal for an individual sentence, allowing candidates in one list to receive different amounts of credit. The study subsequently reports ordinary single-reference BLEU on evaluation corpora. The sentence scores used to train the sparse weights and the reported corpus scores therefore play different roles. The metric originates in BLEU: a Method for Automatic Evaluation of Machine Translation.

l(φ) = −xBLEU(φ) = −∑ₑ∈E(f) pθ,φ(e | f) sBLEU(e, e⁽ⁱ⁾)

The function l is the loss for the current training input, and xBLEU is the expected smoothed sentence BLEU on its candidate list. The superscript ⁽ⁱ⁾ identifies the training example, so e⁽ⁱ⁾ is its reference translation. The function sBLEU measures the candidate e against that reference. The summation takes the average of these sentence scores with weights pθ,φ(e | f). The minus sign allows the authors to use loss minimization to maximize that average. With the candidates and references fixed, all dependence on φ comes through the probabilities.

The objective measures what would happen on average if translations were drawn according to the current probabilities. Suppose a reordering feature contributes strongly to a candidate with a better reference match than its competitors. Raising that candidate's score increases its share of probability and tends to make the weighted average better. The same feature may appear in other candidates whose reference match is weaker. The gradient has to combine all of that evidence. The highest-BLEU sentence is useful evidence, as is a candidate whose translation is imperfect but still better than the current expectation.

How the training signal reaches an indicator

The derivative can be understood by following the chain from an indicator to its phrase score, from the phrase score to the aggregate feature, and from the aggregate feature to candidate probabilities. An increase in one candidate's score affects the probabilities of the other candidates because all of them share a normalizer. The expected value of BLEU supplies the comparison point that accounts for this shared normalization.

U(φ, e) = sBLEU(e, e⁽ⁱ⁾) − xBLEU(φ)

The quantity U is the candidate's quality relative to the current expectation for its sentence. The arguments φ and e indicate that it depends on the current parameters and the candidate being evaluated. The reference e⁽ⁱ⁾ is fixed for that training example. An above-average candidate has positive U, a below-average candidate has negative U, and equality produces a zero contribution through this term. The average is probability-weighted, so an update can change the comparison point even though the individual sBLEU scores stay fixed.

The paper derives the error term by pulling the shared normalization outside the sum. With the normalizer factored out, expected BLEU is a weighted sum divided by the total of the weights.

l(φ) = −G(φ) / Z(φ)

Here G is the sum over candidates of the exponentiated scaled translation score multiplied by the candidate's sentence BLEU. The function Z is the sum of the same exponentiated scores without the sentence BLEU multipliers. Both depend on φ through the candidate scores. Their ratio is xBLEU, and the sign makes it the loss l.

δₒ,ₚₚ = −∂l(φ) / ∂sφ(o, pp) = [∂G(φ) / ∂sφ(o, pp) − xBLEU(φ) ∂Z(φ) / ∂sφ(o, pp)] / Z(φ)

The symbol δₒ,ₚₚ denotes the derivative of expected BLEU with respect to the reordering score for event (o, pp), equivalently the negative derivative of the loss. In this part of the derivation, pp also stands for the contextual information used by the indicator function. The symbol ∂ denotes a partial derivative. The expression in brackets follows from the quotient rule. It accounts for the change in the weighted quality sum G and subtracts the accompanying change in total weight Z, valued at the present expectation xBLEU. Dividing by Z converts the effect to the scale of the normalized distribution.

The derivatives of the two sums contain the same exponential term for each candidate. In the derivative of G it is multiplied by the candidate quality, and in the derivative of Z it appears on its own. This is where the difference U arises. In each expression the exponential must also be differentiated through the translation score. The paper shows that this last step reduces to an occurrence count with scale factors.

∂[γ θᵀ h(f, e)] / ∂sφ(o, pp) = γ λₖ ∂hₖ / ∂sφ(o, pp) = γ λₖ N(o, pp, e, f)

The index k identifies the added aggregate feature for orientation o. Its outer weight is λₖ, the relevant member of θ, and its feature value is hₖ. The function N counts how frequently the phrase event pp with orientation o occurs in the derivation of e for f. Because hₖ sums the phrase scores for the channel, changing a score that occurs repeatedly changes that channel by the corresponding count. The factor γ comes from the probability scaling, and λₖ comes from the outer translation score.

δₒ,ₚₚ = ∑ₑ∈E(f) pθ,φ(e | f) γ λₖ N(o, pp, e, f) U(φ, e)

The sum now gives the effect of a phrase event across the entire candidate list. For each candidate, pθ,φ measures its current share of probability, γ and λₖ transmit the change through the scaled translation score, N measures how many times the event is used, and U gives the candidate's quality relative to expectation. A candidate that lacks the event contributes nothing to that event's derivative. An event can receive evidence in opposite directions from different candidates. With the added channels given unit weights in the sparse training stage, the direction of a candidate's contribution is governed by whether it lies above or below the expected score.

The score for an individual event is linear in the feature weights. Its derivative can therefore identify the features affected by the event without differentiating anything about the decoder search or about BLEU itself.

∂sφ(o, pp) / ∂φ = ∂[φᵀ u(o, pp)] / ∂φ = u(o, pp)

The function u here is the event's sparse indicator vector, with context absorbed into pp. Differentiating the weighted sum with respect to φ returns each indicator as the corresponding derivative. An inactive indicator gives no contribution from that event. Summing the active contributions gives the loss gradient for the training input.

∂l(φ) / ∂φ = ∑ₒ,ₚₚ [∂l(φ) / ∂sφ(o, pp)] [∂sφ(o, pp) / ∂φ] = −∑ₒ,ₚₚ δₒ,ₚₚ u(o, pp)

The sums run over orientations o and phrase events pp. The first expression applies the chain rule to each event's score. The second writes that score's derivative as its indicator vector u and uses the definition of δ, which carries the opposite sign to the loss derivative. Features shared across phrase events accumulate contributions from all the events that activate them.

Updating the weights

The optimization uses stochastic gradient descent. One training input and all its candidates constitute a mini-batch. The expected score is computed over the list before the candidate contributions are combined. Processing a sentence this way keeps the candidates that share a probability normalizer together in the same update.

φₜ = φₜ₋₁ − μ ∂l(φₜ₋₁) / ∂φₜ₋₁

The subscript t is the update index. The weights φₜ₋₁ are the previous values, and φₜ are the values after the update. The symbol μ is the learning rate, which determines how far to move in the direction that reduces the loss. Substituting the preceding gradient shows that a positive expected-BLEU derivative increases a weight under this descent rule. This agrees with the objective's interpretation: additional weight should favor events associated with better-than-expected translations after the competing candidates' contributions are taken into account.

The authors find 0.1 useful as a learning rate. During training they monitor the objective on held-out validation data and stop when its change falls below the stated factor of 0.0003. They try ℓ₂ regularization, a penalty on large weights, and report no test accuracy improvement in their setting. They also report that tuning the aggregate reordering weights during sparse learning gave the same accuracy with slower training than setting them uniformly to 1. A separate attempt to re-optimize the outer weights after a few gradient iterations likewise gave no accuracy improvement. The main procedure retunes the outer weights after sparse training.

This arrangement is central to the cost of the method. Across passes over the data, the training procedure sees the same candidate strings and their saved derivations. It recomputes which candidates are probable under the current weights, so the learning signal changes as the reordering component changes. The decoder search that produced the candidates is outside that loop. Much of the added feature information can also be computed ahead of time and made available through phrase-table lookups during decoding. The size of the vocabulary of possible indicators and the amount of work required to score a particular phrase occurrence can therefore grow quite differently.

Experiments and results

What is held fixed across the main systems

The experiments use French-to-English and German-to-English data associated with WMT 2012 and evaluate on newswire. The full parallel data used to fit the translation components contain 102M words for French-to-English and 91M for German-to-English. The newswire share ranges from 7.5-8.2M words depending on the language pair. Parliamentary proceedings make up the remainder. The discriminative reordering components generally train on the newswire share, corresponding to 136K-150K sentences. The authors selected this domain after initial experiments indicated it was the most useful part of the corpus for the reordering training. Findings of the 2012 Workshop on Statistical Machine Translation describes the campaign cited in the paper.

The evaluation uses six test sets. They include annual newswire sets from 2008 and 2010 through 2013, plus the 2010 system combination test, labeled sc2010 in the results. The test sets range from 2034 to 3003 sentences. The 2009 development set used to tune the outer translation weights contains 2525 sentences. BLEU is computed with a single reference. The paper reports individual test scores and an aggregate called AllTest, the average of the test-set BLEU scores weighted by corpus size. The development score has its own row and is separate from that aggregate.

The baseline resembles Moses. Its phrase translation features include estimates in both source-to-target and target-to-source directions, using both maximum-likelihood and lexically weighted scores. Word and phrase penalties account for output length and segmentation, and a linear distortion feature scores source displacement. Output sequences receive a score from a word-level language model that uses modified Kneser–Ney smoothing and learns from the target-language portion of the parallel data. These features continue to participate when the sparse reordering channels are added.

The hierarchical baseline has five orientation types. It includes monotone and swap, distinguishes discontinuous moves by the relative positions of the preceding and current phrases, and includes a global monotone category for the case where all previous phrases form one hierarchical block. Its reordering estimates are likelihood-trained. The main baseline is the highest-ranked output found by this full decoder. The results also include a noRM configuration, which removes the dedicated reordering component while the decoder's ordinary distortion feature remains part of the setup. Every main sparse configuration keeps the baseline hierarchical component and adds the learned scores.

French-to-English

Reordering settings on French-to-English WMT AllTest, weighted test BLEU

Each sparse addition improves on hierarchical reordering, and the phrase-identity setting has the highest weighted average.

Reordering settings on French-to-English WMT AllTest, weighted test BLEUnoRM: 23.93noRM23.93HRM baseline: 24.72HRM baseline24.72SparseHRMLocal: 25.77SparseHRMLocal25.77SparseHRM: 25.95SparseHRM25.95SparseHRM+UncommonWords: 26.12SparseHRM+UncommonWords26.12SparseHRM+BiPhrases (this paper): 26.26SparseHRM+BiPhrases (this paper)26.26
The numbers
System or settingBLEU
noRM23.93
HRM baseline24.72
SparseHRMLocal25.77
SparseHRM25.95
SparseHRM+UncommonWords26.12
SparseHRM+BiPhrases (this paper)26.26

On French-to-English, the aggregate rises at every step from the hierarchical baseline through the sequence of sparse settings. The authors report that the smallest feature set improves the weighted test average by 1.0 BLEU over the hierarchical baseline and that the phrase-identity set improves it by 1.5 BLEU. This gain is obtained with a likelihood-trained hierarchical baseline that the paper describes as having been trained on over two million sentence pairs. The result is an improvement to an established reordering component rather than a comparison confined to a system with only distortion scoring.

On the 2012 French-to-English test, the hierarchical baseline scores 25.11 and SparseHRM+BiPhrases scores 27.07. The authors report the gain on that test as up to 2.0 BLEU. The corresponding 2011 scores are 25.68 and 27.55, and the 2013 scores are 25.76 and 27.41. These are scores on separate newswire test sets. Their different starting levels make the within-test comparisons more informative about the added component than a ranking of scores from different years.

The larger sets exchange places on some tests. SparseHRM+UncommonWords scores 21.76 on the 2008 test, while SparseHRM+BiPhrases scores 21.67. On 2010, their scores are 26.30 and 26.19, respectively. On sc2010 they are 26.29 and 26.19. The phrase-identity set leads on the later annual tests and on the aggregate. Both larger sets beat the hierarchical baseline on each test, which is the more consistent result across these comparisons.

Feature counts put the scale of the comparison in view. On French-to-English the local set has 4,407 feature types and the stack-aware SparseHRM set has 9,463. Expanding the word identities gives 897,537 types. The phrase-identity set has 3,043,053. Those figures count distinct sparse features instantiated in each configuration. They are separate from the number of aggregate orientation scores sent to the decoder.

German-to-English

Reordering settings on German-to-English WMT AllTest, weighted test BLEU

The phrase-identity setting has the highest weighted average, and the largest sparse sets lead the smaller ones.

Reordering settings on German-to-English WMT AllTest, weighted test BLEUnoRM: 19.81noRM19.81HRM baseline: 20.58HRM baseline20.58SparseHRMLocal: 20.88SparseHRMLocal20.88SparseHRM: 21.11SparseHRM21.11SparseHRM+UncommonWords: 21.24SparseHRM+UncommonWords21.24SparseHRM+BiPhrases (this paper): 21.40SparseHRM+BiPhrases (this paper)21.40
The numbers
System or settingBLEU
noRM19.81
HRM baseline20.58
SparseHRMLocal20.88
SparseHRM21.11
SparseHRM+UncommonWords21.24
SparseHRM+BiPhrases (this paper)21.40

The German-to-English comparison shows the same ordering in the weighted test averages. The reported gain over the hierarchical baseline grows from 0.3 BLEU for the local set to 0.8 BLEU for the phrase-identity set. On the 2011 test, where the authors report a gain of up to 1.1 BLEU, the baseline scores 19.60 and SparseHRM+BiPhrases scores 20.66. On the 2012 test these settings score 19.80 and 20.75, respectively. The largest set is consistently ahead of the hierarchical baseline on the German-to-English tests.

There is an exception for the simplest sparse set. On German-to-English 2008, the local set scores 19.86 against the hierarchical baseline's 19.96. The set that adds hierarchical context scores 20.27 on that test. The two large inventories are close on some splits, with the uncommon-word setting slightly ahead in 2008 and 2013. On 2013, for instance, it scores 23.30 compared with 23.27 for the phrase-identity setting. Averaging across test sets puts the phrase-identity setting ahead.

For German-to-English the local set contains 4,410 feature types, and the stack-aware set contains 9,477. The uncommon-word inventory contains 1,136,248 types and the phrase-identity inventory contains 3,640,693. A large inventory is therefore feasible for both translation directions in the study. The test gains are smaller for German-to-English even though its larger inventories contain more features than the corresponding French-to-English ones. The amount of parameter capacity is only one part of the comparison. The decoder must also be able to propose the reorderings that its features might usefully reward.

What the timing figures cover

The authors report a training time of 26 minutes for a sparse configuration with 4,407 features and just over two hours for the configuration with over three million parameters. Both timings use 136K training sentences and 100 epochs, where an epoch is a pass over the training examples. The paper's timing passage calls the smaller configuration SparseHRM, while the French-to-English results table assigns 4,407 features to SparseHRMLocal. The feature count is the clearest way to identify the scale of that timing comparison.

These timings apply once the candidate lists are available. Generating those lists is a separate step involving the hierarchical translation systems and their search. The reported speed of the weight fitting comes from processing saved lists without additional full decoding between passes. The authors also report that the larger feature sets do not slow decoding, explaining that most of the feature information can be precomputed and stored in the phrase table. The distinction between fitting the sparse weights, preparing their training lists, and applying the learned scores during decoding matters when interpreting the cost of scaling up.

What the ablations show

Changing the information available to the scorer

The smallest feature inventory is already enough to show that discriminative reordering can add something to the hierarchical baseline. Its indicators look only at the current phrase pair, even though the full decoder continues to use the baseline's hierarchical preferences. The resulting averages, 25.77 BLEU for French-to-English and 20.88 for German-to-English, show the contribution of adding sparse local evidence to that complete system. The comparison does not remove hierarchical context from the decoder. It limits the context visible to the newly trained indicators.

Moving from SparseHRMLocal to SparseHRM adds information from the stack and the source gap. The weighted test averages rise to 25.95 for French-to-English and 21.11 for German-to-English. The comparison is informative because the phrase-local evidence remains present, and the expansion changes what the new component can observe about previous translation decisions. The results show a benefit on average from those added templates. They give the stack boundary and gap features credit jointly, since these are introduced together.

The larger inventories ask whether the system can benefit from more specificity after it already has access to hierarchical context. The uncommon-word setting lets the sparse features distinguish words individually across the vocabulary. The phrase-identity setting instead extends SparseHRM with identities of the full phrases and their pairings. These are separate extensions of the same core inventory. The results compare two ways of spending additional capacity, with exact word identities useful on some individual tests and phrase identities strongest on the aggregates. Against SparseHRM, the paper reports that the phrase-identity setting gains 0.3 BLEU on average for both language pairs and up to 0.5 BLEU on French-to-English.

That comparison supports the value of richer feature inventories on this task. It leaves open why any given phrase indicator helps. Whole-phrase indicators can encode details that no boundary features describe. They also increase the number of parameters, change how evidence is shared across occurrences, and depend on which pairs the decoder happens to produce. The paper tests the package of phrase-identity features together, so the scores establish the value of that package in this setup.

Giving the optimization more sentences

The training-size experiment starts with 2,000 sentences and goes up to 272,000. It uses SparseHRMLocal, which the paper describes here as having just over 4,400 feature types. The modest inventory reduces the overfitting risk at the small end of the sweep. By holding it fixed, the authors can examine whether supplying more sentences improves the learned weights without simultaneously changing which kinds of evidence the reordering component can represent.

For this analysis, the authors evaluate by reranking rather than by integrating the learned features into a new decoder search. They take the 100-best lists from the hierarchical baseline and add the new reordering scores. They then run an additional MERT tuning pass on the development list, initially assigning unit weights to the added channels and using 20 random restarts. Finally, they apply those tuned weights to rescore the test list. Every possible final answer in this analysis has already been generated by the baseline. The learned reordering scores can change which of those answers is selected.

The curve is reported for the development set and the 2011 news test, labeled news2011 in the figure. It shows that increasing the amount of training data improves accuracy and that the best performance occurs with substantially more data than the small development sets typical of earlier sparse tuning. Because the candidate lists used for reranking already exist, the comparison demonstrates a benefit in selecting better alternatives from those lists. It leaves the effect of larger training sets on decoder search to the main end-to-end experiments, which use the learned features inside the translation system.

The authors expect an even greater benefit from additional sentences for the larger feature inventories, because more parameters would need evidence. The reported sweep uses the local inventory throughout. It therefore establishes data sensitivity for this setting while leaving the shape of the corresponding curve for phrase-identity features undetermined.

Giving all candidates graded credit

The conditional log-likelihood comparison is the tightest test of the learning objective. Both learners see candidate translations from the decoder and use the same feature inventory within each comparison. Conditional log-likelihood, abbreviated CLL, treats the highest-BLEU candidate on each training list as the target and maximizes its conditional probability. Expected BLEU uses the sentence BLEU scores of all candidates to calculate what probability shifts would improve the weighted quality of the list.

The distinction is clearest when several candidates have similar quality. With the likelihood target used here, one candidate gets selected as the training answer. Increasing the score of a close alternative still competes with that target for probability. Expected BLEU gives the close alternative credit according to its quality and the expectation for that list. A reordering decision can therefore be reinforced when it helps a partially successful translation, including cases where some other decision prevents that translation from receiving the highest BLEU.

Training objectives on French-to-English WMT AllTest, weighted test BLEU

Expected BLEU leads conditional likelihood at both feature scales, with the phrase-identity setting achieving the best average.

Training objectives on French-to-English WMT AllTest, weighted test BLEUHRM baseline: 24.72HRM baseline24.72SparseHRM with CLL: 24.88SparseHRM with CLL24.88SparseHRM with expected BLEU: 25.95SparseHRM with expected BLEU25.95SparseHRM+BiPhrases with CLL: 24.98SparseHRM+BiPhrases with CLL24.98SparseHRM+BiPhrases with expected BLEU (this paper): 26.26SparseHRM+BiPhrases with expected BLEU(this paper)26.26
The numbers
System or settingBLEU
HRM baseline24.72
SparseHRM with CLL24.88
SparseHRM with expected BLEU25.95
SparseHRM+BiPhrases with CLL24.98
SparseHRM+BiPhrases with expected BLEU (this paper)26.26

The authors describe the smaller CLL result as an average gain of less than 0.2 BLEU over the baseline, compared with 1.2 BLEU for expected BLEU. For the large inventory, they report 0.3 BLEU with CLL and 1.5 BLEU with expected BLEU. The direction is consistent across the individual French-to-English tests. For example, with phrase identities on the 2011 test, CLL scores 25.86 and expected BLEU scores 27.55. The objective comparison also includes the development scores, where the same relative pattern holds.

This experiment clarifies a confound in the earlier comparison between likelihood-trained reordering and discriminative BLEU training. The earlier systems differed in the observations they used, as well as in the objective applied to those observations. Here both variants use machine translations, yet CLL still yields only a small improvement over the hierarchical baseline. For the tested inventories and candidate lists, the quality information supplied by expected BLEU accounts for much of the improvement associated with the sparse method. The result concerns the one-target formulation of CLL used in the experiment. The paper's explanation in terms of strict credit for a single answer describes the training targets, since the likelihood itself changes continuously as the selected candidate's probability changes.

Comparing with a standard tuning setup

The final comparison uses pair-wise ranked optimization, or PRO, which learns preferences between candidate translations. It uses the local inventory of just over 4.4K features on French-to-English. In the PRO setup, the ordinary decoder features and the sparse indicators are tuned together on the development set of 2,525 sentences. The expected-BLEU procedure trains the sparse weights with 136K sentences and tunes the outer weights in a separate stage. The paper limits PRO to the local inventory because it cites earlier difficulties scaling PRO to millions of feature types. Tuning as Ranking introduces the ranking approach used for this comparison.

The authors tune PRO's regularization, sentence-level BLEU smoothing, and length control. The length setting addresses a tendency to produce short translations with sentence-level objectives of this kind. This is part of the comparison setup, since a poorly controlled length preference could impair scores independently of how well the reordering indicators work. The paper discusses the issue with reference to Optimizing for Sentence-Level BLEU+1 Yields Short Translations.

Expected BLEU achieves 25.77 on the weighted test average, compared with 24.94 for PRO. It leads on each listed French-to-English test. On 2012 the scores are 26.34 for expected BLEU and 25.09 for PRO. The development scores are 25.24 and 24.05, respectively. These results compare the full training setups as used in the paper. Training corpus size and the division between sparse learning and outer weight tuning differ along with the objective. The experiment supports the practical value of the expected-BLEU regimen, while the matched CLL comparison gives more direct evidence about the effect of changing the objective.

Limitations

Limits identified by the authors

The authors use a single decoding pass to create the expected-BLEU training lists. They identify repeated decoding as a possible avenue for further improvement and leave it untested for efficiency reasons. Its potential value follows from the role of the current weights in search. After enough learning, the decoder might find plausible derivations or target strings that failed to enter a list produced with baseline scores. Training on new lists would make such alternatives available, at the cost of additional decoding. The gains reported here are for the fixed-list procedure.

The paper also proposes extending training to lattices and estimating the dense baseline feature weights within the expected-BLEU stage. A lattice could represent a larger space of translation alternatives than the saved lists used in the experiments. Joint estimation would change the relationship between the sparse reordering weights and the rest of the translation system. In the reported method, the latter is handled by fixing the outer weights for sparse training and tuning them afterward. The effectiveness and costs of either proposed extension are open in the paper.

The authors caution against comparing the BLEU gains directly with those from the earlier hierarchical and sparse reordering experiments they discuss. The WMT evaluation here has one reference, while those earlier setups used four. A candidate translation can find matching sequences in more than one acceptable reference when several are available. As a result, the reported BLEU changes are comparisons within the paper's evaluation, under a common reference setup.

The paper attributes the smaller German-to-English gains in part to a distortion limit of six words and in part to more difficult reordering patterns for that translation direction. It suggests that more elaborate features might help. This is the authors' interpretation. The reported experiments do not independently vary the distortion limit or test a richer set designed specifically for German. The narrowing effect of the limit is clear from the search design, while its contribution to the observed difference between the language pairs remains unmeasured.

What the experimental design leaves open

The evaluation measures overall translation quality by reference overlap. It does not isolate word order in the same way that a direct assessment of orientation decisions would. Changing reordering scores can change which derivation wins, which phrase translations are selected, and how the system segments the source. The final MERT stage can also change the relative influence of other features. The study therefore establishes that adding the learned component improves BLEU in these systems. It leaves open how much of the improvement a separate assessment would attribute specifically to better ordering of otherwise identical phrases.

The candidate lists impose two further constraints. A target sentence absent from the baseline list cannot contribute to the expected-BLEU gradient, regardless of its quality. When a string occurs through several derivations, only the highest-scoring derivation represents it in the list. Alternative phrase segmentations and orientations for that same target string give no additional evidence. This matters especially for indicators tied to phrase identities or stack context. Those indicators can differ across derivations that receive the same sentence BLEU, so the baseline's choice of representation affects which weights can learn from a given target string.

The newswire focus also bounds the evidence. The full translation system draws on both news and parliamentary data, and the paper's initial observations favor newswire for the discriminative training. The reported test comparison is across newswire sets, with English as the target in both directions. The study does not establish how the best feature inventories or the balance between list quality and data size would transfer to other domains or translation directions.

The authors checked whether using a translation system fitted to all the data to generate candidates changed the result. They report that the BLEU of the translations generated for training increased from 27.5 to 37.8, with negligible effect on end-to-end accuracy. This is evidence that the held-out decoding design made little difference to the final result in that check. The paper gives no comparable sweep of candidate list size or detail about how the mix of candidate errors changed. The experiment therefore leaves open which properties of the list, beyond the observed change in BLEU, are important for supplying reordering supervision.

The timing and scaling claims also have a defined scope. Millions of possible feature types can be handled because each phrase event activates a small subset and the trainer can reuse candidate lists. The timing comparison begins after the lists are prepared, while the training-size sweep uses rescoring and the smallest feature inventory. These choices explain why the authors can cover a large range of training sizes efficiently. They leave the end-to-end cost of repeated decoding, and the accuracy curve for equally large data sweeps with the richest features, outside the reported measurements.

What came after

A later citation comes from Wen and colleagues' 2016 work on generating language for spoken dialogue systems across domains. The title establishes its task and the citation connects it to the reordering paper. The role of that citation is unspecified, so it is unclear whether the later work adopted expected BLEU as a training objective, used it for comparison, or cited it as related work. The documented connection is from phrase-based translation to a study of dialogue systems and text generation. Multi-domain Neural Network Language Generation for Spoken Dialogue Systems

Cite

Cite as Michael Auli, Michel Galley and Jianfeng Gao. 2014. Large-scale Expected BLEU Training of Phrase-based Reordering Models. Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.3115/v1/d14-1132

@inproceedings{auli2014large,
  title = {{Large-scale Expected BLEU Training of Phrase-based Reordering Models}},
  author = {Michael Auli, Michel Galley and Jianfeng Gao},
  booktitle = {Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP)},
  year = {2014},
  doi = {10.3115/v1/d14-1132},
  url = {https://doi.org/10.3115/v1/d14-1132}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/auli-2014-large-scale-expected-bleu-training/