Elamur Research

Maximum Expected BLEU Training of Phrase and Lexicon Translation Models

Paper · 2012 · Xiaodong He and Li Deng

Summary

A phrase-based translation system can learn which expressions frequently correspond in bilingual text and still give too much weight to choices that lead to poor sentences. The way it learns the individual correspondences helps explain why. It can estimate how often a source phrase takes a particular translation, then tune a separate set of weights to improve the quality of its finished output. Xiaodong He and Li Deng ask whether the quality of those finished translations can also guide the estimation of the phrase and word probabilities themselves. They use the BLEU score, which measures overlap with reference translations while accounting for output length, to send that feedback through the levels of a machine translation system.

The authors start by having the baseline system propose alternative translations for each source sentence in the training corpus. Each alternative gets a smoothed sentence BLEU score against the reference. The system assigns probabilities to the alternatives and calculates the average score under those probabilities. When a phrase pair occurs disproportionately in candidates that score well, the resulting training signal can increase its probability. Word pairs receive a similar signal, with credit divided among the possible word alignments inside a phrase. A penalty keeps the learned probability distributions close to the starting estimates, and an iterative update keeps the probabilities in each distribution normalized. The authors alternate these updates with tuning the weights that govern how the decoder combines its various features.

On Europarl German-to-English, training the phrase probabilities alone or the word probabilities alone raises test BLEU. Training both works better, and the highest reported scores come from training the phrase probabilities first. That schedule reaches 27.33% test BLEU against the baseline's 26.22%, a gain the authors report as 1.1 BLEU points. On the IWSLT 2011 Chinese-to-English task for TED talks, training the main phrase table and its lexical scores raises test BLEU from 14.68 to 15.92, the best single-system result reported for that task.

The experiments show what changing the parameters inside established translation features can accomplish while keeping the decoder and its overall feature inventory comparable. They also test the assumptions that make the approach practical. Expected sentence BLEU and corpus BLEU for the decoder's top translations move together in a Europarl training analysis, and the gain on validation data shrinks when the penalty for departing from the starting probabilities is removed. The training objective is a surrogate for the final score, so the authors use held-out translations to decide which iteration to keep.

Deep dive: Maximum Expected BLEU Training of Phrase and Lexicon Translation Models

Learn how expected BLEU training changes phrase and word translation probabilities and improves German-to-English and Chinese-to-English results. · about 41 minutes to read

The problem and its context

The decoder relies on probabilities learned at different levels

Phrase-based statistical translation builds a target sentence by combining translations of pieces of a source sentence. A phrase in this setting is a span of words that can be translated together. It can include words whose combined translation is difficult to obtain by translating each one independently. Since a sentence can be divided into spans in different ways, the decoder has choices about where to divide it, what target phrase to use for each span, and where to put those phrases in the finished sentence. The paper builds on the approach described in Statistical Phrase-Based Translation.

The decoder scores these alternatives with several kinds of evidence. A phrase feature reflects how much support the bilingual training data give a particular source–target phrase pair. A lexicon feature looks inside that pair and scores the individual word correspondences that could account for it. A language model supplies evidence about the target wording, and a reordering feature helps evaluate how the decoder has moved the translated spans. The system also scores word and phrase counts. A score for a complete translation combines all these contributions.

The estimation problems at the two levels differ. At one level, the system needs a probability for a particular phrase translation or word translation. At another, it needs to decide how strongly the whole phrase feature or lexicon feature should affect its choice of output relative to the other features. A collective weight can make the decoder more or less sensitive to the entire phrase table. It has no independent setting for favoring one entry while reducing the influence of another. Improving those individual judgments calls for a training signal that reaches the entries themselves.

The conventional phrase estimates in the paper come from counts in bilingual training data. If a source span appears with several target spans, their relative frequencies determine the forward probabilities. The starting word probabilities come from IBM Model 1, which estimates translation correspondences by fitting aligned bilingual text through a likelihood objective. Counts and likelihood give the decoder useful information about the observed corpus. The question is whether the resulting probabilities also distribute the decoder's preference effectively among the full sentences that it can actually produce.

Suppose a phrase translation appears often enough to receive a large initial probability. Its effect in a sentence depends on the rest of the hypothesis, including the phrases that surround it, the chosen word order, and the score from the other features. A competing phrase translation can contribute to better overlap with the reference even if it received a lower estimate from the initial counting procedure. The paper looks for this kind of evidence across many sentences, using the outputs of the decoder to connect a local probability to its consequences in complete translations.

Earlier discriminative training and the reachability problem

The paper identifies minimum error rate training, or MERT, as an established way to tune the relative feature weights. In the setup it describes, the decoder combines features in a log-linear score. MERT varies the weights on a small tuning set with the goal of improving a translation metric. This brings output quality into the system, but the number of weights being tuned is small compared with the number of individual bilingual probabilities inside the features. He and Deng retain MERT for that part of the system and propose a separate method for the much larger estimation problem.

The paper also discusses approaches that added trainable features to an existing decoder. Liang and colleagues introduced lexical and part-of-speech features and used perceptron training on 67K sentences. Their work drew attention to a difficulty that matters for any attempt to learn from a reference translation. The reference is a finished text. The decoder needs a path to that text through its phrase segmentation, alignment, and reordering decisions. A perfectly valid reference can be beyond what the decoder can produce in its usual search.

Even if the system can be made to reproduce the reference, the derivation it uses to get there can distort the training signal. The paper describes the concern that forced reproduction could exploit hidden segmentation or alignment decisions. Liang and colleagues therefore considered a local update toward a candidate chosen for its BLEU score from the decoder's list. That candidate is reachable by construction. Its role as a substitute target still requires the training procedure to designate a single hypothesis as the one to pursue.

He and Deng keep the reachable alternatives and change how the reference is used. It serves as a scoring target for each candidate. The update then depends on the alternatives' relative quality and on how much probability the current system assigns them. An otherwise good hypothesis can inform training even when another candidate has higher BLEU. The comparison also incorporates poor hypotheses that the current system regards as plausible. This gives the authors a way to use reference information without choosing a stand-in reference or aligning the decoder directly to the human translation.

Chiang and colleagues furnish a different comparison in the paper's account. They introduced about ten thousand syntactic features and tuned their weights with the Margin Infused Relaxed Algorithm, or MIRA, using 2010 sentences. He and Deng take the parameter count of established phrase and lexicon components as the starting point for their problem. Those components already contain millions of estimates, and the authors want output quality to affect them across the full parallel training corpus. The scale changes both the optimization problem and the amount of data that has to pass through it.

Earlier uses of quality scores and phrase-table refinement

Expected BLEU was already part of the field's work on choosing or combining translations. The paper cites an approach by Rosti and colleagues that used a differentiable BLEU objective to fit system-combination parameters. It also relates its calculation to Minimum Risk Annealing for Training Log-Linear Models, Lattice Minimum Bayes-Risk Decoding, and Lattice-based Minimum Error Rate Training. The distinction He and Deng draw is where the calculation has its effect. Those uses leave the underlying phrase and word translation probabilities fixed. Here the quality signal reaches into the translation tables.

The paper describes another line of work that does change the phrase table. Wuebker and colleagues used expectation-maximization to re-estimate phrase translation probabilities from phrase-level alignments. Their leave-one-out strategy removed a sentence pair's own phrase statistics from the table before aligning that pair. The precaution addressed the risk of using an example's extracted statistics to support the same example during training. He and Deng point out that the procedure still has to find a phrase alignment between the source and the reference, bringing back the concern about unreliable hidden structure under forced alignment.

These lines of work motivate the design choices that follow. The paper needs a quality measure that can distinguish actual decoder outputs, a way to turn their scores into parameter updates, and a constraint that keeps heavily revised estimates tied to their bilingual evidence. It also needs a procedure that can collect the information required for each update without treating the entire translated corpus as a single search problem.

The method, step by step

From candidate translations to an update

The training procedure starts with an ordinary phrase-based system, including estimates for all the translation probabilities and tuned weights for the decoder's features. The authors decode the parallel training corpus with this system and retain a list of candidates for each source sentence. Each candidate is scored against the corresponding reference using a sentence version of BLEU. Candidate generation and reference scoring provide the examples for the subsequent updates.

An iteration begins by rescoring the candidates with the current translation parameters and turning those scores into probabilities over the list. Consider a source sentence whose high-scoring candidates repeatedly use a particular phrase pair. That pair gets favorable evidence to the extent that its occurrences are associated with above-average quality under the current distribution. A frequently used pair can also get unfavorable evidence when the candidates containing it fall below that average. When the evidence is collected for a word pair, each occurrence contributes according to how plausible the word correspondence is within that candidate's aligned phrases.

The authors then pool the evidence across sentences. They apply a growth transformation, a constrained update developed from extended Baum–Welch, to turn the evidence into revised probability distributions. The transformation incorporates the starting estimates and an additional term that limits how abruptly an update can move. After updating the translation probabilities, they tune the decoder's feature weights again and evaluate the new combination on validation data. The final selection is a pair of settings, since the weights were tuned for a particular version of the table.

Training phrase and lexicon probabilities with expected BLEU

The steps in order.

Training phrase and lexicon probabilities with expected BLEUStep 1: Build the baseline and tune its feature weights1. Build the baseline and tune its feature weightsStep 2: Decode training candidates and score them against references2. Decode training candidates and score them against referencesStep 3: Compute candidate probabilities and expected sentence BLEU3. Compute candidate probabilities and expected sentence BLEUStep 4: Accumulate phrase and word evidence across sentences4. Accumulate phrase and word evidence across sentencesStep 5: Update translation probabilities with a growth transformation5. Update translation probabilities with a growth transformationStep 6: Retune feature weights on the tuning set6. Retune feature weights on the tuning setStep 7: Evaluate the updated system on the validation set7. Evaluate the updated system on the validation setStep 8: Repeat updates and retain the best validation setting8. Repeat updates and retain the best validation setting

How the decoder scores a translation

The decoder selects the candidate with the greatest conditional probability given the input. The paper writes this decision in the following form.

Ê = argmax_E P(E | F)

Ê is the chosen translation. E is a candidate target sentence and F is the source sentence. P(E | F) denotes the conditional probability assigned to that candidate, and argmax_E returns the candidate at which that quantity is largest. The vertical bar means that the source is given.

The conditional distribution uses an exponential of a weighted sum of feature scores. The notation below writes the logged feature contribution explicitly.

P(E | F) = exp(Σ_q λ_q log h_q(E, F)) / Z(F)

The index q runs over the features. The value h_q(E, F) is the feature's value before taking its logarithm, log denotes the logarithm, and λ_q is the feature's weight. The sum Σ_q adds the weighted contributions, and exp is the exponential function. The denominator Z(F) fixes the scale for a given source sentence so the result can be read as a probability. In training, a candidate's feature scores come from its translation analysis, including its chosen phrase pairs.

Z(F) = Σ_E′ exp(Σ_q λ_q log h_q(E′, F))

The sum over E′ ranges over the alternatives being normalized, which in the training implementation are the candidates for F. The inner sum uses the same feature values h_q, weights λ_q, logarithm log, and exponential exp as the numerator. The prime on E′ serves to distinguish the running candidate in the denominator from the candidate E whose probability is being calculated. All candidates for that input share the same denominator, so the ranking for decoding is determined by their scores before normalization. Training needs the probabilities themselves, because it gives credit in proportion to how much of the distribution each candidate occupies.

Common positive rescaling of the weights changes the concentration of that distribution even though it preserves the score ordering. With large absolute weights, a small lead in the weighted score can give the leading candidate a much larger share of the probability. An expected score computed from that distribution would receive little influence from the alternatives. The authors control the scale by dividing each weight by the sum of the magnitudes of all the weights.

λ̄_q = λ_q / Σ_a |λ_a|

The value λ̄_q is the normalized weight for feature q, and λ_q is its value before normalization. Here a ranges over all feature coordinates. The bars around λ_a indicate its absolute value, and the sum of those values is the L1 norm of the weight vector. The normalization concerns weights in the candidate posterior. Each phrase or lexicon probability row has its own separate normalization.

Phrase counts and word correspondences

The forward phrase probabilities initially come from phrase pairs extracted from a word-aligned parallel corpus. Word alignment records which words in a source sentence correspond to words in its bilingual counterpart. Phrase extraction uses those alignments to identify pairs of spans. The relative-frequency estimate for a target phrase given a source phrase is as follows.

p(e | f) = C(e, f) / C(f)

Here f is a source phrase and e is a target phrase. C(e, f) counts the pair in the training data, while C(f) counts the source phrase for the purpose of the relative-frequency estimate. The resulting p(e | f) is the forward phrase probability. The backward component reverses the conditioning direction and estimates which source phrase goes with a given target phrase.

For a candidate assembled from paired phrases, the forward feature multiplies the corresponding probabilities. In the log-linear decoder, the logarithm of that product is the sum of the individual log probabilities, so each occurrence of a phrase pair contributes to the candidate's score.

h_FP(E, F) = ∏_(k=1)^K p(e_k | f_k)

The label FP stands for the forward phrase feature. The source F and candidate E are connected by a derivation using K phrase pairs, and k indexes those pairs. The source phrase in pair k is f_k and its target phrase is e_k. The product ∏_​(k=1)^K uses the probability p(e_k | f_k) for each one, including repeated uses of a pair. The arrangement of the target phrases in the final sentence can differ from the source order.

The lexicon feature supplements this phrase-level evidence with word translation probabilities from IBM Model 1. For each target word, it sums over the possible source-word positions within the paired source phrase. It then multiplies the results for all target words and across all phrase pairs. Expanding that product amounts to considering the combinations of word assignments inside the phrase pairs. This feature follows the scoring approach cited in Dependency Treelet Translation.

h_FL(E, F) = ∏_k ∏_m Σ_r p(e_(k,m) | f_(k,r))

FL labels the forward lexicon feature. The outer product over k visits the paired phrases in the derivation for E and F. The product over m visits the words of target phrase k. Its factor is a sum over r, the positions in the corresponding source phrase. The target word at m is e_(k,m) and the source word at r is f_(k,r). Here p is the word translation probability, as distinct from the phrase probability in the previous display. The feature uses the sum over source positions without dividing it by phrase length. The backward lexicon feature follows the analogous construction with the translation direction reversed.

These two features give training access to different units. A phrase update credits or debits a particular pairing of spans used by the decoder. A lexicon update can affect multiple phrase pairs that share a word correspondence. For that update, the relevant question is how much of the score for a target word comes from positions containing the source word whose parameter is being updated. A fractional assignment answers that question without committing to a single alignment.

The expected quality of the candidate lists

Write θ for the collection of trainable forward and backward phrase and lexicon probabilities. The paper represents these as rows of a matrix, each row corresponding to a conditioning phrase or word in its respective component. This is a convenient way to state a common constraint for all four sets of probabilities.

Σ_j θ_ij = 1

Here θ_ij is the probability of outcome j in row i. The index i identifies the conditioning item in its table, and the sum over j visits its possible translations. The right-hand side specifies a full probability distribution. Rows in the forward and backward directions condition on different sides of the phrase or word pair.

The paper first defines its utility across the training corpus by considering a choice of candidate for every source sentence. The score for such a choice is the sum of sentence BLEU scores. That sum is averaged under the joint probability of the candidate choices.

U(θ) = Σ_(E₁,…,E_N) P_θ(E₁,…,E_N | F₁,…,F_N) · Σ_(n=1)^N BLEU(E_n, E_n*)

U(θ) is the training utility. N is the number of training sentences, F_n is source sentence n, E_n is one of its decoder hypotheses, and E_n* is its reference. The outer sum considers tuples assembled by choosing a hypothesis from each list. P_θ is the conditional probability of the tuple under parameters θ. The inner sum adds BLEU(E_n, E_n*), the sentence score for each chosen hypothesis against its reference, and the centered dot multiplies that sum of scores by the tuple's probability.

Candidates for different sentences are treated as independent conditional on their respective inputs and the fixed system settings. That permits the paper to write the joint probability as a product of sentence probabilities.

P_θ(E₁,…,E_N | F₁,…,F_N) = ∏_(n=1)^N P_θ(E_n | F_n)

The product ranges over the N sentence positions. The term P_θ(E_n | F_n) is the decoder posterior for candidate E_n given source F_n, computed from the features using θ and the weights held fixed for the update. The left side is the probability of selecting the entire tuple. Independence here is about selecting translations for separate inputs, even though the same table entries can affect the scores of candidates in many lists.

Combining the sum of sentence rewards with this factorization gives a utility that can be computed list by list. When evaluating the contribution for a given sentence, the probability factors for all the other sentences sum to one.

U(θ) = Σ_(n=1)^N Σ_(E ∈ Hyp(F_n)) P_θ(E | F_n) · BLEU(E, E_n*)

The outer sum visits source sentences indexed by n. Hyp(F_n) is the list of hypotheses for F_n, and E ranges over that list, as indicated by ∈. The probabilities P_θ weight each candidate's score against the corresponding E_n*. The inner sum is the expected BLEU for that sentence. The whole utility therefore adds the sentence expectations, and the paper notes that it is proportional to their average with factor N. This form avoids enumerating combinations across lists. It also explains why the main accumulation pass can divide the input sentences among processors: the sentence-level contributions can be computed separately and then added.

The same expectation has a role inside an update. For each sentence, the paper uses the current expectation as a point of comparison for every candidate on that list.

U_n(θ′) = Σ_(E ∈ Hyp(F_n)) P_θ′(E | F_n) · BLEU(E, E_n*)

U_n is the utility contribution from sentence n. The prime on θ′ indicates the parameters before the current update. E runs over the candidates in Hyp(F_n), and P_θ′ weights the scores of those candidates under the old distribution. The reference E_n* and the candidate's BLEU score stay fixed during that calculation. When the current distribution changes in later iterations, the expected score can change even with the same candidates and references.

How sentence BLEU is made usable for training

BLEU evaluates matches of contiguous sequences of words, or n-grams, against a reference. Combining precision at several orders rewards agreement on individual words and on increasingly long sequences. The metric also includes a brevity penalty. This matters because a short output can have a high proportion of matching words while omitting material from the reference. The paper gives the usual BLEU-4 form, building on BLEU: a Method for Automatic Evaluation of Machine Translation.

BLEU-4 = BP · exp((1 / 4) · Σ_(a=1)^4 log p_a)

BLEU-4 is the score that uses precision through the fourth order. The index a is the n-gram order, p_a is its precision, and log and exp are the logarithm and exponential. The division by 4 gives each order equal weight in the average of the log precisions. BP is the brevity factor multiplying the precision term. The use of an average in the log domain makes a small precision at any one order consequential.

A single sentence can have very few opportunities to match a longer sequence. In the authors' training calculation, a smoothed estimate supplies information when the raw precision at an order would otherwise depend on a small count. The smoothing rule combines the observed match count with a prior precision for that order.

p_a = (M_a + η · p_a′) / (T_a + η)

The quantity M_a is the number of matched n-grams at order a and T_a is the number of candidate n-grams at that order. The value p_a′ is the prior precision for order a, and η sets the strength of that prior in both the numerator and the denominator. The resulting p_a is the smoothed precision used in the BLEU calculation. The paper gives 5 as the usual value of η. It describes estimating the lower-order precisions empirically and using preceding orders to set the priors for orders 3 and 4.

The sentence-level brevity calculation uses an exponential based on the candidate length and a scaled reference length.

BP = exp(1 − r / c)

BP is the factor for the sentence. The value c is the candidate length, and r is the reference length after the scaling used for training. The subtraction in the exponential reduces the factor when c falls below r. The authors allow the factor to exceed unity when c exceeds r. They motivate this by observing that, under the corpus calculation, the contribution of a sentence to the pooled length comparison can favor extra length even though the corpus penalty itself is capped.

The scale for the reference lengths is chosen so that the total adjusted length of the training references equals the total length of the baseline's output on those inputs. In the authors' rationale, that puts the baseline at the length target and places more emphasis on improvements in n-gram overlap. The reward used to estimate parameters is thus deliberately adapted to training on individual hypotheses. The reported evaluation still uses the corpus output of the decoder, where counts are pooled before the final score is calculated.

Keeping the new estimates close to the initial tables

The paper adds Kullback–Leibler divergence to control how far the estimates can move. Divergence here is a penalty for changing distributions, calculated within each row and then added across the tables. The authors use the starting estimates as a fixed prior.

KL(θ⁰ || θ) = Σ_i Σ_j θ⁰_ij · log(θ⁰_ij / θ_ij)

KL denotes the divergence. The double bar separates the reference distribution θ⁰ from the distribution θ being fitted. In row i and column j, θ⁰_ij is the prior probability and θ_ij is the current probability. The logarithm compares the two, the multiplying weight is the prior probability, and the sums run over rows and outcomes. The order matters because the weights inside the sum come from θ⁰. Each row contributes its own divergence without an extra weight based on how many times the conditioning item was observed.

The prior on phrase probabilities is the relative-frequency table. For word probabilities it is the IBM Model 1 estimate. Those estimates summarize bilingual evidence from sources the conventional system already uses. A candidate list can be sparse evidence for an individual table entry, even when the corpus as a whole is large. The penalty lets the update preserve information from the earlier estimation procedure while responding to the translation-quality signal.

O(θ) = log U(θ) − τ · KL(θ⁰ || θ)

O is the objective to be maximized. U is the summed expected sentence BLEU, log is the logarithm, and KL is the divergence from the fixed prior θ⁰ to the current parameters θ. The coefficient τ controls how strongly the divergence reduces the objective. With τ set to 0, improvement in expected sentence quality is the entire criterion. With a positive value, a change that increases utility has to be considered together with the cost of revising the probability distributions.

The growth transformation

The authors obtain their update from extended Baum–Welch. The underlying optimization problem is to improve a function of probabilities whose rows must each continue to sum to one. The paper reviews the Baum–Eagon inequality for positive-coefficient polynomials and the extension to a ratio of polynomials. The practical appeal is that the resulting updates can be calculated from statistics of the old parameters, with an explicit normalization for each row.

For the ratio case, the method constructs an auxiliary function using the value of the ratio at the old parameters.

f(p) = g(p) − r(p′) · h(p)

Here p is a collection of probability rows and p′ holds their values at the current starting point. The functions g and h are the numerator and positive denominator of the ratio r. The term r(p′) is fixed while the auxiliary function f varies with p. At the old probabilities the numerator and the scaled denominator cancel. A move to a positive value of f therefore raises the ratio above its old value, provided the denominator stays positive.

The general growth transformation uses derivatives of the auxiliary function, evaluated at the old probabilities.

p_ij(new) = p′_ij · ([∂f(p)/∂p_ij]_(p=p′) + D) / (Σ_b p′_ib · [∂f(p)/∂p_ib]_(p=p′) + D)

The element p_ij(new) is the updated probability of outcome j in row i, and p′_ij is its old value. The partial derivative ∂f(p)/∂p_ij measures how the auxiliary function varies with that entry. The subscript p=p′ indicates that the derivative is taken at the old parameters. The index b ranges over the outcomes in row i. D is a smoothing constant. Because the old row sums to one, the denominator is the sum of the numerators for that row. This establishes the normalization when the updated entries are positive.

To use this construction for their training criterion, the authors work with the exponential of O. Because the exponential is increasing, it gives the same preference ordering over parameter settings wherever the objective is defined.

R(θ) = U(θ) · exp(−τ · KL(θ⁰ || θ))

R is the transformed objective. U is the expected quality utility, τ sets the regularization strength, and KL compares the fixed prior θ⁰ with θ. The exponential turns the subtraction of the penalty in O into multiplication by the penalty factor shown here.

The authors then express the result in quotient form, omitting constants that have no effect on optimization.

R(θ) = G(θ) · J(θ) / H(θ)

G collects the BLEU-weighted unnormalized scores of candidate tuples. H sums the same unnormalized scores without the BLEU multiplier, providing the normalization. J is the factor that remains from the regularizer after the constant part is dropped. To make the construction explicit, write the unnormalized score of a tuple as W.

W(E₁,…,E_N; θ) = ∏_(n=1)^N ∏_q h_q(E_n, F_n)^(λ_q)

W uses the hypotheses E₁ through E_N and the current translation parameters θ. The outer product runs over sentence positions n, and the inner product runs over features q. The value h_q is the feature for candidate E_n and its source F_n, with its dependence on θ understood for the translation features. The exponent λ_q is held fixed in this part of an iteration. The semicolon inside W separates the tuple of hypotheses from the parameter argument.

H(θ) = Σ_(E₁,…,E_N) W(E₁,…,E_N; θ)

H sums W over all choices of one hypothesis per source sentence. Each E_n comes from the list for F_n. It is the joint normalization in the quotient representation, and the factorization into sentence scores is what makes evaluating the associated expectations tractable.

G(θ) = Σ_(E₁,…,E_N) W(E₁,…,E_N; θ) · Σ_(n=1)^N BLEU(E_n, E_n*)

G uses the same tuple sum and the same W as H. Each tuple score is now multiplied by the sum of BLEU scores for its candidates against the respective references E_n*. The index n ranges over the N training inputs. Consequently the ratio of G to H gives the expected sum of scores.

J(θ) = ∏_i ∏_j θ_ij^(τ · θ⁰_ij)

J multiplies over the trainable probability entries. Each θ_ij is raised to a power determined by τ and the corresponding prior entry θ⁰_ij. The rows and columns are indexed by i and j. This term follows from exponentiating the part of the KL expression that involves the current probabilities. It gives the auxiliary-function construction a way to carry the prior through to the update.

What the phrase and lexicon updates count

For the forward phrase feature, the essential statistic is a quality-weighted count. A candidate's contribution depends on its probability, the amount by which its BLEU exceeds or falls short of the sentence expectation, and the number of times the candidate uses the phrase pair.

γ_FP(E, n, i, j) = P_θ′(E | F_n) · (BLEU(E, E_n*) − U_n(θ′)) · Σ_k 𝟙[f_(n,k)=i and e_(n,k)=j]

The quantity γ_FP is the contribution from candidate E for training sentence n to forward phrase pair i, j. Here i identifies a source phrase and j a target phrase. The posterior P_θ′ uses the old probabilities. The subtraction centers the candidate's score at U_n, the expected sentence BLEU under that posterior. The sum over k visits the phrase pairs used in E's derivation. The indicator 𝟙 is one when its condition is true and zero otherwise. The symbols f_(n,k) and e_(n,k) are the paired source and target phrases for that candidate at position k.

A strong hypothesis gives a large contribution only if it also has probability under the current system and uses the pair in question. Centering the score has a further effect. A pair that all candidates use to the same extent receives no net discriminative evidence from that list. Changing that pair's contribution uniformly would leave the candidates' relative scores intact. The update focuses on probabilities whose use differs in ways associated with better or worse translations.

p_ij(new) = [Σ_n Σ_E γ_FP(E, n, i, j) + U(θ′) · τ_FP · p⁰_ij + D_i · p′_ij] / [Σ_b Σ_n Σ_E γ_FP(E, n, i, b) + U(θ′) · τ_FP + D_i]

The updated p_ij(new) translates source phrase i to target phrase j. The sums over n and E accumulate contributions across training sentences and the candidate lists belonging to them. The denominator also sums across outcomes b in row i. The prior entry is p⁰_ij, the old entry is p′_ij, and D_i is the smoothing constant for that row. The regularization term uses the full old utility U(θ′) and τ_FP, the strength of regularization divided by the weight of the forward phrase feature. Summing the prior and old entries over the row removes them from the corresponding terms in the denominator because each of those distributions has unit mass.

τ_FP = τ / λ_FP

Here τ is the objective's regularization strength and λ_FP is the forward phrase feature weight used for the update. The ratio τ_FP is the regularization coefficient in the forward phrase formula. It accounts for the scale of the feature's effect when the optimization is expressed in terms of its individual probabilities.

The authors explain that smoothing values derived directly from the inequality can be too large for practical training. They build a row-level value from the negative contributions to the phrase statistics.

D_i = Σ_j Σ_n Σ_E max(0, −γ_FP(E, n, i, j))

The summations cover outcomes j in row i, training sentences n, and their hypotheses E. The function max chooses the larger of zero and the negative of the contribution γ_FP. Positive candidate contributions therefore add nothing to this smoothing calculation, while negative ones increase it. The paper also imposes a lower bound on the row's smoothing value based on the negative aggregate evidence relative to the previous entry, to keep each updated numerator positive. Thus the smoothing term handles signed evidence in the update, while KL regularization has the separate job of anchoring the solution to the initial table.

The lexical update substitutes a fractional count for the discrete phrase-pair count. For each target word, the contribution of a source word type is the share of the within-phrase sum accounted for by positions containing that type.

A(n, k, m, i) = [Σ_r 𝟙[f_(n,k,r)=i] · p′(e_(n,k,m) | f_(n,k,r))] / [Σ_r p′(e_(n,k,m) | f_(n,k,r))]

The value A is the share assigned to source word i for target position m in phrase pair k for the candidate under consideration. The source sentence is indexed by n. The word f_(n,k,r) is at position r in the source phrase, and e_(n,k,m) is at position m in the target phrase. The old lexical probability p′ scores a source–target word pair. The numerator adds this probability at positions r that contain i, selected by the indicator 𝟙, and the denominator adds it at all source positions. If the same source word appears more than once in the phrase, its positions can all contribute to the numerator.

γ_FL(E, n, i, j) = P_θ′(E | F_n) · (BLEU(E, E_n*) − U_n(θ′)) · Σ_k Σ_m 𝟙[e_(n,k,m)=j] · A(n, k, m, i)

The statistic γ_FL belongs to word pair i, j in the forward lexicon feature. E is the candidate for input n, and the probability and centered BLEU factor are the same as for the phrase update. The sums run over the candidate's phrase pairs k and the target word positions m within them. The indicator selects occurrences of target word j. Each one contributes the fractional source assignment A for word i. The calculation therefore preserves uncertainty about the word alignment inside the phrase.

l_ij(new) = [Σ_n Σ_E γ_FL(E, n, i, j) + U(θ′) · τ_FL · l⁰_ij + D_i · l′_ij] / [Σ_b Σ_n Σ_E γ_FL(E, n, i, b) + U(θ′) · τ_FL + D_i]

The new forward lexicon probability l_ij(new) gives the probability of target word j given source word i. The prior is l⁰_ij and the old entry is l′_ij. The sums collect the lexical statistics γ_FL across sentences and hypotheses, and the denominator uses b to sum across the row's outcomes. U(θ′) is again the old corpus utility. Here D_i is the smoothing factor for the lexical row, set in a similar way to the phrase factor. The coefficient τ_FL rescales the global regularization strength for this feature.

τ_FL = τ / λ_FL

Here τ is the global regularization strength, λ_FL is the forward lexicon weight, and τ_FL is the coefficient in the lexical update. The paper gives the forward transformations and describes the backward ones as analogous. The same distinction between whole-phrase counts and fractional word assignments applies when the direction is reversed.

How the training loop uses the data splits

The candidate lists and their sentence scores are prepared with the baseline. The iterations described by the authors then use those lists to recalculate posteriors and accumulate statistics. Generation of the lists can be parallelized across source sentences, as can the accumulation step. The shared table update needs the combined statistics for each row. This separation lets the system use information from an entire training corpus without making the search for translations a joint process across sentences.

The feature weights stay fixed during a table update. The following MERT step uses a smaller tuning set to adjust the weights for the new tables. The validation set then provides a held-out score for that combination. Training and tuning examples can resemble the eventual test conditions to different degrees, so an update that is favorable under fixed weights and a subsequent retuning step can affect validation quality in different ways. The authors keep the particular combination of table parameters and feature weights that gives the best validation score, and evaluate that combination on the test set.

Experiments and results

Europarl German-to-English

The Europarl training corpus contains 751K parallel sentence pairs, with the paper reporting 21 words per sentence on average. The development set contains 2000 sentences. The authors use its first 1000 for MERT tuning and its remaining portion for validation. The test set contains 2000 sentences. These splits give the table updates, feature tuning, checkpoint selection, and final evaluation separate roles.

As its first step, the baseline aligns words with a hidden Markov model that uses lexicalized distortion. The alignments connect corresponding words and account for the way those correspondences can move across positions. The phrase table is then extracted from the aligned bitext. The maximum phrase length is four. The other scoring components include lexicalized ordering, word and phrase counts, and a 3-gram language model fitted on the English side of the training data. A beam-search decoder limits how many alternatives remain under consideration as search proceeds. Its distortion limit is four. The authors tune the feature weights with MERT and use this baseline to produce a 100-best list for each training input.

The paper gives parameter counts to indicate the scale of the estimation. The phrase component has 9.2 M parameters across the forward and backward directions. The IBM-1 lexicon has 12.9 M in the source-to-target direction and 11.9 M in the target-to-source direction. These counts refer to individual translation parameters. MERT still operates on the comparatively small set of weights that governs how each complete feature contributes to the decoder score.

The baseline reaches 26.70 BLEU on the validation set and 26.22 on the test set, with both figures reported on the paper's BLEU percentage scale. The experiment compares keeping those starting table estimates with training the phrase parameters alone, training the lexicon alone, and training both. For the settings that use both types, the authors compare joint updates in each iteration with a schedule that trains phrase probabilities first and then updates word probabilities.

Europarl German-to-English test BLEU by training schedule

Training phrases before the lexicon yields the highest test BLEU.

Europarl German-to-English test BLEU by training scheduleBaseline: 26.22Baseline26.22Phrase probabilities only: 26.94Phrase probabilities only26.94Lexicon probabilities only: 26.71Lexicon probabilities only26.71Simultaneous phrase and lexicon updates: 27.13Simultaneous phrase and lexicon updates27.13Phrase updates followed by lexicon updates (this paper): 27.33Phrase updates followed by lexiconupdates (this paper)27.33
The numbers
System or settingBLEU %
Baseline26.22
Phrase probabilities only26.94
Lexicon probabilities only26.71
Simultaneous phrase and lexicon updates27.13
Phrase updates followed by lexicon updates (this paper)27.33

The validation scores point to the same schedule. They are 27.44 for training phrases alone, 27.36 for training the lexicon alone, 27.65 for simultaneous training, and 27.82 for the staged schedule. The authors report a test gain over the baseline of 1.1 BLEU points for the staged procedure. That is the paper's stated gain. The validation scores come from the split used for selection, while the test scores describe how the selected systems translate a separate set of sentences.

The authors use paired bootstrap resampling, described in Statistical Significance Tests for Machine Translation Evaluation. In a paired comparison, the baseline and the trained system are assessed on resamples of the same test examples, keeping the two translations of each selected input together. The paper marks the phrase-only, simultaneous, and staged test gains over the baseline as significant at its stated level of > 99%. The lexicon-only test gain has no significance mark at that level. These marks pertain to comparisons against the baseline. The comparison between staged and simultaneous training is reported through their observed scores.

IWSLT 2011 Chinese-to-English TED talks

The second task is translation of TED talks from Chinese to English. The talks were originally delivered in English. The system receives Chinese text translated by humans and supplied with punctuation, and its output is evaluated against punctuated English speech transcripts. The problem therefore uses spoken-language material in text form. The training corpus consists of 110K parallel sentences from the talks, averaging 20 words per sentence according to the paper.

The split called dev2010 contains 934 sentences and is used for tuning feature weights. The split called tst2010 contains 1664 sentences and supplies validation scores. The final evaluation uses tst2011, which contains 1450 sentences. The distinction matters because a split whose name begins with “tst” still serves as validation in the authors' training procedure when it is tst2010.

The primary phrase table is trained on the TED pairs. The system also uses a 3-gram language model trained on the English side of those pairs. The authors augment the task-specific data by training a second 5-gram language model on 115M English sentences and building a second phrase table using 500K sentences from the supplementary UN corpus. The UN subset is chosen using the procedure in Domain Adaptation via Pseudo In-Domain Data Selection.

Expected BLEU training uses a 100-best candidate list and changes the translation parameters associated with the primary table. The authors set aside the secondary phrase table in this phase because they consider it less closely matched to the task. They leave the secondary language model out of this phase because it adds substantial cost to generation of the candidate lists. A final MERT pass tunes the weights with the full feature set, including both supplementary components. The full-feature baseline uses those components too, so the comparison is between systems sharing that set of translation resources and differing in the expected BLEU training of the primary table.

IWSLT 2011 Chinese-to-English tst2011 test BLEU

Expected BLEU training of the primary table improves the complete system.

IWSLT 2011 Chinese-to-English tst2011 test BLEUFull-feature baseline: 14.68Full-feature baseline14.68Maximum expected BLEU training (this paper): 15.92Maximum expected BLEU training (thispaper)15.92
The numbers
System or settingBLEU %
Full-feature baseline14.68
Maximum expected BLEU training (this paper)15.92

On the tst2010 validation set, the baseline scores 11.48 and the new system scores 12.39. These are corpus BLEU scores on the same percentage scale as the test results. The reported run uses six iterations of phrase training and two of lexicon training. The authors report the test improvement as 1.2 BLEU points and identify the result as the best for a single system on this task. The experiment extends the evidence beyond the Europarl setup because the language direction, parallel corpus, development splits, and use of supplementary resources all differ. It evaluates the method as part of that task's complete system.

What the ablations show

Regularization helps on the validation set

The regularization comparison on Europarl changes τ while training the phrase probabilities. The authors restrict this comparison to the phrase component for simplicity and use the validation set to select the setting for the rest of the Europarl experiments. The baseline validation score is 26.70. With τ = 0, the validation score is 26.91, a reported gain of +0.21. The regularized settings in the paper give 27.31, 27.44, and 27.27. The selected setting is the one with the 27.44 validation score and a reported gain of +0.74.

This comparison gives direct evidence about what the prior contributes under the phrase-only setup. The expected-quality objective can improve validation BLEU by itself, and the tested penalty strengths yield larger improvements. The best result occurs at an intermediate setting among those tested. This is consistent with the role of the penalty in the objective. Giving the candidate lists full control of the new estimates leaves the probabilities more dependent on the list evidence. Putting weight on earlier estimates preserves information collected from the aligned corpus. At the same time, the penalty charges for movement that could be helpful, so its strength has to leave room for the quality signal.

Because the authors use validation data to choose τ, this comparison describes a tuning decision and the evidence for it on that split. The training stage that provides this evidence is narrower than the final experiments involving both kinds of translation probabilities. The paper carries the selected value forward into those Europarl experiments and chooses a task-specific value for IWSLT. The regularization comparison thus supports the usefulness of the prior in this training regime while leaving the effect of a full regularization sweep over joint settings open.

Phrase and lexicon training each contribute

The phrase-only and lexicon-only Europarl settings hold the other class of translation probabilities at its baseline estimate. They show that the method has a route to higher BLEU through each class independently. The paper reports test gains of 0.7 BLEU points for the phrase-only system and 0.5 for the lexicon-only system. The significance marks give these observations different evidential weight. The phrase-only gain is marked against the baseline at the paper's stated level. The lexicon-only score rises in the observed test comparison and has no corresponding mark.

There is a functional reason to expect different behavior from these updates. The phrase feature acts on the complete pairing selected by the decoder. The lexicon feature aggregates evidence from word correspondences that can recur in quite different pairs. A phrase can receive a better score because its exact pairing tends to occur in higher-BLEU candidates. A lexical probability can receive a better score because it helps explain individual word matches across candidates, with the strength of that evidence shared among the plausible source positions. The ablation measures the effect of opening one route at a time. It does not assign the resulting BLEU gain to specific words or phrases.

Both joint schedules give higher validation and test BLEU than either class of update alone. The result is consistent with useful contributions at both levels, but the effects are measured in a decoder that recombines features and retunes their weights. A hypothesis affected by both changes can move differently in the ranking than it would under either change in isolation. The paper's evidence is in the combined system scores, which directly reflect those interactions.

The order of training affects the outcome

The simultaneous schedule lets all trainable probability tables change within each iteration. The staged schedule trains the phrase probabilities until the authors select a phrase-stage checkpoint using validation BLEU. It then trains the lexicon. The distinction matters because the posterior for a candidate depends on both feature scores. After the first stage, lexical updates see a different distribution over hypotheses from the one they would see at the start of joint training. The distribution determines both the current expectation and the weight of each candidate's contribution.

In the Europarl trajectory, the paper reports that the phrase stage reaches its validation peak after five iterations, followed by fluctuation if phrase training continues. The lexicon stage begins at the sixth iteration. The authors report another 0.4 BLEU points after three additional iterations of lexical training and describe the full procedure as taking nine iterations in total. The curve makes it possible to see why the authors use validation performance at the handoff: the phrase-stage score varies with iteration, and later updates take place after the checkpoint chosen for the first stage.

The staged schedule gives the top reported Europarl score on both splits. The test significance labels in this comparison concern improvement over the baseline. The observed ordering of the schedules supports the chosen procedure but leaves the size and reliability of the difference between those schedules unquantified. The IWSLT run demonstrates use of the staged schedule in the second setup. A corresponding simultaneous IWSLT result is outside the reported comparison.

Expected sentence BLEU tracks corpus BLEU during training

The paper also examines whether the surrogate behaves like the quantity ultimately used for evaluation. On the 751K Europarl training examples, the authors follow two quantities over training iterations. One is expected sentence BLEU under the probability distribution on each candidate list. The other is corpus BLEU for the 1-best translations. The first can respond when probability moves among hypotheses; the second responds to changes in the selected outputs and their pooled match and length statistics.

The authors hold the decoder feature weights fixed in this comparison. This controls an important source of variation. A change in the overall magnitude of the weights can make the candidate distributions sharper or flatter, altering the expectation even if the top candidates stay in the same order. Holding the weights fixed makes the plotted relationship easier to interpret as the translation probabilities change.

The paper describes the two scores as strongly correlated over the plotted iterations. This gives empirical support for the surrogate in the training regime examined. It complements the held-out results in a different way. The plot compares two notions of quality on the training corpus under fixed weights. The test comparisons show the performance of the selected systems after the alternating training and tuning procedure. Together they connect the surrogate to decoder behavior and the final procedure to held-out translation scores.

Limitations

Limits identified by the authors

The authors explicitly caution that the alternating process may fail to converge because the data used for table updates and the data used to tune feature weights can differ. A growth transformation addresses the objective with the feature weights fixed. MERT then changes those weights on separate examples, changing the posterior distribution and the objective used in the next table update. The paper addresses this practical issue by selecting a checkpoint on validation BLEU. That means the returned system is the best evaluated combination along the training path, according to the validation split.

The theoretical review also distinguishes the smoothing levels associated with the growth inequality from values that are practical to use. The authors say that the former are typically too large in this application. The implementation uses evidence-dependent smoothing and a lower bound to keep the updated probabilities positive. Positivity and row normalization address the validity of the new tables. A claim of monotonic improvement for the entire alternating pipeline would require more, including a link between the fixed-weight objective and the criteria used when retuning and selecting checkpoints. The paper provides the closed-form translation updates and summarizes their derivation. It omits the derivation of the forward phrase update and leaves the analogous backward formulas implicit.

There is also a practical limit in the IWSLT experiment. The authors restrict the discriminative update to the primary table. They regard the supplementary phrase table as less relevant to TED translation and find that including the large supplementary language model slows candidate generation considerably. They restore these features for final tuning and evaluation. The measured result therefore covers discriminative training within the task-specific component of a larger system, while the costs and benefits of extending that training to the supplementary translation probabilities remain unmeasured.

Limits of the evidence

The candidate lists put a boundary on what the training objective can reward. Sentence BLEU can distinguish translations in the baseline's list even when the human reference is unreachable as a complete output. If a good candidate is absent from the list, it gives no direct positive evidence to the update. The candidates originate in the baseline search, with its initial estimates, features, search limits, and phrase inventory. Reweighting this evidence can improve the selected translations, as the experiments show. The study gives no comparison with regenerating the training lists during learning, and it does not establish how the procedure behaves when the initial search misses most of the useful alternatives.

The evaluation metric introduces a separate limit. The paper optimizes a sum of smoothed sentence scores, with a length adjustment specific to training. Corpus BLEU on top outputs pools evidence in a different order. A gain in the expectation can come from changing the probability of candidates below the top rank, while a change of top rank can affect corpus length and overlap differently from its effect on sentence scores. The training-corpus plot examines whether they move together empirically. It establishes a relationship for the observed iterations, with weights held fixed, and cannot guarantee that every update or every candidate distribution will improve the final corpus score.

The experiments report BLEU, giving evidence about agreement with the references under that metric. They do not include a separate human assessment or a breakdown by translation error type. A particular score change consequently does not show how much improvement came from preserving meaning, producing better word order, choosing a more natural phrase, or matching the reference length. The paper isolates some training decisions through controlled comparisons, especially on Europarl. It does not isolate the contribution of each sentence-scoring choice, such as higher-order precision smoothing and length scaling.

The two tasks support a claim for the demonstrated phrase-based setups and baselines. They differ in meaningful ways, including language direction and training material, but each uses a restricted candidate list, the same basic kind of decoder, and validation-based model selection. The Europarl statistical tests are paired comparisons to that task's baseline. Their labels do not establish significance for every pair of schedules or provide a significance result for IWSLT. Similarly, the IWSLT single-system ranking is specific to the task the authors report.

The paper shows that candidate scoring and accumulation can be parallelized and identifies a cost that shaped the IWSLT setup. It does not give a runtime comparison that quantifies the total price of candidate generation, table estimation, repeated tuning, and validation. The experimental contribution is the demonstrated translation improvement with that procedure. Its resource requirements at other corpus sizes or with broader candidate sets remain a question beyond the measured results.

What came after

The citing works extend the discussion to sequence-level training, minimum risk, reinforcement learning, dialogue generation, and the length effects of sentence BLEU. Their titles establish those subjects and their citation of He and Deng establishes a connection to the paper. More specific claims about what each work adopted, changed, or tested would require details of its method or experiments. The relationship that can be traced here is how each subject bears on the original paper's choices about what to score, when to score it, and how to train with that signal.

Optimizing for Sentence-Level BLEU+1 Yields Short Translations raises the most immediate question about the reward itself. Its title identifies shortened translations as a consequence of optimizing its sentence-level criterion. He and Deng make separate choices about smoothing higher-order precisions, allowing the sentence brevity factor to exceed unity, and scaling reference lengths. The connection is that a score constructed for individual sentences can influence output length through the reward used in training. The title identifies BLEU+1 as the formulation at issue in the citing work, while He and Deng evaluate their own sentence score as a surrogate for corpus BLEU.

Sequence Level Training with Recurrent Neural Networks places the level of the training signal in its title. He and Deng score a finished candidate sentence and then trace that score back to the phrase and word probabilities used in its derivation. Sequence-level training poses the corresponding question for recurrent networks. A complete output is the unit of evaluation, and training has to assign the consequences of that evaluation to decisions made while generating it. The citation connects the settings through that problem of assigning credit from a sequence score.

Minimum Risk Training for Neural Machine Translation connects most directly to the use of an expectation. He and Deng maximize the expected utility of translation candidates under a conditional distribution. Minimum risk frames the choice in terms of expected loss, which is the corresponding direction when good outputs are assigned low loss. The title takes that training question into neural machine translation. It establishes the relationship in objective design without specifying that the citing work uses the same candidate lists, sentence score, or parameter update.

A Study of Reinforcement Learning for Neural Machine Translation names reinforcement learning as the focus of its investigation. The relation to He and Deng's paper is the problem of bringing the quality of an output sequence to bear on the parameters that produced it. Here a candidate's BLEU score feeds a growth transformation through posterior-weighted evidence. The reinforcement learning framing places the emphasis on learning from rewards for generated outputs. The citation links these approaches at the level of the training problem, while the titles identify different settings and optimization approaches.

Multi-domain Neural Network Language Generation for Spoken Dialogue Systems brings a broader generation setting into the citing literature. A translation system must produce a complete sentence that conveys a source sentence. A spoken dialogue system generates an utterance for use in a conversation, and the cited title identifies generation across domains as the focus. The connection is the need to judge a realized utterance as a sequence when fitting a system that generates language. The domain and task change what constitutes a good output, so the citation alone leaves open which aspects of the translation criterion were relevant to that study.

Cite

Cite as Xiaodong He and Li Deng. 2012. Maximum Expected BLEU Training of Phrase and Lexicon Translation Models. Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).

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

@inproceedings{he2012maximum,
  title = {{Maximum Expected BLEU Training of Phrase and Lexicon Translation Models}},
  author = {Xiaodong He and Li Deng},
  booktitle = {Proceedings of the 50th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  year = {2012},
  url = {https://aclanthology.org/P12-1031/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/he-2012-maximum-expected-bleu-training-phrase/