Elamur Research

Decoder Integration and Expected BLEU Training for Recurrent Neural Network Language Models

Paper · 2014 · Michael Auli and Jianfeng Gao

Summary

A translation system can use a language model to choose among finished sentences, or it can consult that same component while assembling a sentence. The timing matters. If the system waits until the end, it can only reconsider translations that survived its original search. Michael Auli and Jianfeng Gao study how to bring a recurrent neural network into that search without making the decoder keep a separate state for every possible sentence prefix. They also ask whether the network can learn from the quality of complete translations, as measured by BLEU, rather than learning solely to predict the next word.

The search problem arises because recurrence gives the network a memory of earlier words. A phrase-based decoder already knows how to merge partial translations that share a short, fixed context. Two prefixes can agree in that context while leaving different memories in the network. The authors keep the decoder's usual rules for merging hypotheses and carry forward the recurrent state of the highest-scoring hypothesis in each group. This lets the network affect which hypotheses survive during decoding. On the French-English and German-English newswire tests, the integrated system outscored both kinds of rescoring tested, which reconsidered either a list of finished translations or a graph representing alternative paths. The largest gains over the phrase-based baseline were 2.0 BLEU for French-English and 1.3 BLEU for German-English.

For training, the authors start with lists of alternative translations generated by the baseline. Each alternative receives a smoothed sentence-level BLEU score against the reference and a probability calculated from its score in the translation system. The average of those BLEU scores, weighted by the probabilities, is the quantity the network learns to raise. A translation above the current average supplies a reason to increase its probability. One below the average supplies a reason to reduce it. The feedback comes from the whole sentence, even though the network assigns scores word by word.

The training experiment adds this expected-BLEU feature to a decoder that already uses a cross-entropy-trained recurrent feature. In that smaller French-English setup, the combined system scored 25.71 BLEU on the corpus-weighted test average, compared with 25.29 for the cross-entropy system alone. The paper reports gains of up to 0.6 BLEU on the individual tests. Training on lists required the network to process far more words, while scoring a candidate with the expected-BLEU network was about 5 times faster at test time because its output layer did not need to normalize scores over the vocabulary. The search and training experiments address different decisions in a machine translation system. One concerns when the recurrent score can affect a decision. The other concerns what evidence shapes that score.

Deep dive: Decoder Integration and Expected BLEU Training for Recurrent Neural Network Language Models

How recurrent language scores guide phrase-based translation during search, and what changes when training rewards expected BLEU. · about 34 minutes to read

The problem and its context

When the decoder first needs a language score

A phrase-based translation system builds a target sentence from successive translation choices. A decoder is the part of the system that searches over those choices. It tracks source coverage, the target text produced so far, and the information it will need to score extensions. Its features act as different sources of evidence. Some describe how well source and target phrases correspond. Some describe their order. The target-side language score gives the system evidence about how the English words fit together.

The decoder has to make decisions about partial sentences before it can compare complete translations. It cannot keep expanding every partial choice. It needs ways to discard weak hypotheses and merge hypotheses whose differences will cease to matter for future scoring. Both operations depend on the evidence available during search. If a recurrent score enters only after the search finishes, a hypothesis that would have benefited from that score might already have been discarded. A later score can improve the ordering of surviving translations. Its influence ends at the boundary of what the first pass kept.

In much of the earlier neural translation work described by the authors, that boundary was accepted as a practical engineering choice. A phrase-based decoder first generated a smaller space of translations. A neural component then rescored that space. The space could be an n-best list, a ranked collection of complete candidates, or a lattice, a graph that can encode multiple candidates using shared paths. Both give the neural component a translation task it can perform after the baseline decoder has done the more expensive work of searching over possible phrase choices.

The authors identify Decoding with Large-Scale Neural Language Models Improves Translation as a recent exception. The cited study found that a feed-forward neural language score helped more when included during initial decoding than when used for rescoring. A feed-forward network of the kind discussed in the paper predicts from a fixed-size input. The decoder can retain the words needed to reconstruct that input, just as it does for an n-gram feature. The earlier result made direct integration worth investigating for recurrence, whose input to future predictions cannot in general be recovered from a suffix of fixed length.

An n-gram language feature scores the next word using a limited number of preceding words. When two partial translations end with the same relevant suffix, the feature will assign the same increment to a given extension. If the hypotheses also agree on the other information required for decoding, keeping the one with the stronger score preserves the useful continuation under that scoring rule. This is the principle behind recombination. The decoder avoids repeating downstream work for histories that are equivalent for future decisions.

A recurrent network stores its history in a hidden state. At each position it reads the new word and updates that state using the state from the preceding position. A word that has dropped out of a fixed context can still influence the recurrent state. The state has a fixed size, while the prefix that contributes to it can be arbitrarily long. That property is why the authors are interested in recurrence for language prediction, and it is why suffix agreement no longer guarantees that the decoder can merge paths without changing their scores.

Consider two partial translations that cover the same source words and end in the same target context. Their earlier English wording can differ. For an n-gram feature, a common suffix makes the differences irrelevant to its next increment. For a recurrent feature, the two earlier word sequences may have produced different hidden states. A continuation could receive a more favorable score from the currently weaker hypothesis. Exact treatment of recurrent history would therefore make fewer hypotheses eligible for recombination. Preserving more histories would make the search more expensive.

The paper draws on earlier work that had already confronted this issue in recurrent lattice rescoring. That work kept a beam of hidden states at a lattice state. Each retained state represented a different history through the graph. A beam lets the system keep a limited collection of alternatives and continue them separately. The authors simplify that approach for initial decoding. Their version keeps one recurrent state at a recombination point. The central empirical question is whether the recurrent score's influence on a broader search can outweigh the distinctions lost by this simplification.

The introduction situates the work among applications of recurrence to translation, including Recurrent Continuous Translation Models. The task in this paper is narrower than building a translation system around a recurrent architecture. The network scores English word sequences inside an existing phrase-based system. The source sentence, lexical evidence, and phrase ordering continue to enter through the decoder and its other features. This division makes the integration question concrete. The decoder must retain just enough extra information to use the target-language score while its existing search is still in progress.

Why the training criterion matters

A language predictor trained by cross-entropy is rewarded for giving observed words high probability in their observed contexts. This supplies a training signal at every word. A translation system, however, is evaluated on the sentences it produces. A score that improves prediction of observed words can be useful to a decoder, while the decoder's actual choices also depend on phrase probabilities, reordering, length preferences and other scores. The language predictor's training objective and the final translation metric give feedback at different levels.

The paper describes likelihood training as common for neural language and translation components. It also mentions noise-contrastive estimation as a more recent option used in prior neural work. Separately, the authors point to a tradition of optimizing task measures directly, including Maximum Expected BLEU Training of Phrase and Lexicon Translation Models and Expected BLEU Training for Graphs. The proposal here applies that family of objectives to the internal weights of a recurrent language component. The training examples include competing translations, so the network can learn how its scores change the relative standing of outputs that the phrase-based system actually considers.

Minimum Error Rate Training, abbreviated MERT, already gives the phrase-based system a way to tune feature weights against translation performance. It can increase or decrease the weight on an entire language feature. If the feature itself assigns an unhelpful relative score to a pair of hypotheses, adjusting its weight has limited flexibility. Expected-BLEU training reaches inside the recurrent component. It can change the score the component gives a word in a particular history and thereby change how different candidate sentences are ranked. The authors retain MERT for tuning the mixture of features after the recurrent weights have been learned.

These questions about search and training can be tested separately. A conventional cross-entropy network can be moved into first-pass decoding to test the effect of when its scores become available. A decoder already using such a feature can also receive an expected-BLEU feature, testing whether feedback about finished translations adds useful information. The paper uses this separation to examine both parts of its proposal.

The method, step by step

From a word to a recurrent state

The network reads an English sequence in order. Its input says which vocabulary item occupies the current position. Its hidden layer combines that input with a summary of the preceding words. The output layer uses the resulting state to give a score for the following word. The network can repeat this operation as a phrase is appended to a translation hypothesis. Once the phrase ends, its final hidden state serves as the initial history for the next extension.

The paper represents an input word with a one-hot vector, called a 1-of-N vector in its description of the architecture. The coordinate associated with the word is active and the other coordinates are inactive. The size of the input is the vocabulary size. The output is also indexed by the vocabulary. The hidden state sits between those layers and carries the information the network has learned to preserve. This architecture is similar to the recurrent language predictor attributed to Mikolov and colleagues in the paper.

hₜ = tanh(Uwₜ + Whₜ₋₁)

Here t indexes the word just read, wₜ is its input vector, and hₜ is the new hidden state. hₜ₋₁ is the state inherited from the preceding step. U maps the input into hidden units and W maps the previous state into those same units. The two mapped vectors are added, then tanh, the hyperbolic tangent, is applied to each coordinate. This lets the same input word produce a different new state when the previous state differs.

yₜ = tanh(Vhₜ)

Here yₜ is the output vector following the reading of word t, hₜ is its hidden state, and V is the matrix connecting hidden units to output units. The elementwise tanh produces activations indexed by words that could follow the prefix. The paper uses the symbol V for this matrix and uses |V| separately to denote vocabulary size. The input at the current step and the word scored from the output occupy successive positions. That distinction matters when a sentence score is assembled.

sθ(wₜ) = s(wₜ | w₁ … wₜ₋₁, hₜ₋₁)

Here sθ is the recurrent word score determined by the weights θ, which consist of U, W and V. wₜ is the word being scored. The vertical bar introduces its conditioning information, the earlier words w₁ … wₜ₋₁ and their final state hₜ₋₁. The earlier words describe the history that produced the state. The recurrent calculation carries the state forward and can score the next word without replaying the entire prefix each time.

For expected-BLEU training, the network uses an unnormalized word score. The authors dispense with the output softmax, which would normalize across all possible next words. If a candidate translation already specifies the next word, the computation can focus on the score for that word. This is a different normalization question from the one used later to assign probabilities to complete translations. The training criterion still needs those sentence probabilities, which are obtained from the candidates for the current source sentence.

As written, the paper gives a tanh output equation and later takes the logarithm of the word score. The logarithm requires a positive input, whereas a raw hyperbolic tangent can be nonpositive. The paper leaves the mapping from the displayed output activation to the positive score required by the logarithm unspecified. The following equations use sθ as the word score that enters the logged sentence feature.

From a sequence of words to a decoder decision

The phrase-based system compares proposed English translations using multiple features. Each feature supplies a number. A weight determines how strongly that number contributes to the translation score. A log-linear system combines the features by a weighted sum for the purpose of ranking, so a candidate's overall standing depends on the mix of its scores.

ê = arg max[e ∈ E(f)] Λᵀh(f, e)

Here f is the source sentence, e is a possible English translation, and E(f) is the set over which the decision is made. h(f, e) is the vector of feature values for the sentence pair. Λ is the matching vector of feature weights and the superscript ᵀ indicates a transpose, so the product is their dot product. The expression arg max returns a candidate ê with the largest score in the indicated set. In a decoder, the search is what supplies the competing hypotheses and attempts to find the winner.

The recurrent network enters as one more feature. It reads a candidate from left to right and accumulates the contribution of each word under its own prefix. The result is a feature for the entire English sentence, independent of how the source phrases were selected. The authors place it after the original collection of features.

hₘ₊₁(e) = sθ(e) = ∑[t=1…|e|] log sθ(wₜ)

Here m denotes the total number of original features, written as upper-case M in the paper. hₘ₊₁(e) is the added recurrent feature, also written as the sentence score sθ(e). The sum runs over target positions t from 1 through |e|, the length of the candidate. wₜ is the word at that position and log is the logarithm. The decoder multiplies this sentence feature by its own feature weight when adding it to the overall translation score. The sum also lets a partial score be extended as words are appended.

The same letter h has different jobs in the network and the translation system. With a time index it is a hidden state. With source and target arguments it denotes the translation features, and with a feature index it denotes a member of that vector. Likewise, the matrices in θ determine how the network processes words, whereas the weights in Λ determine how much the resulting feature and the other features count in the decoder. The distinction determines which quantities the authors hold fixed at different points in training.

How the candidate lists become training examples

The pipeline starts with a phrase-based system whose feature weights have already been estimated. The authors use this baseline to translate the source sentences in the training data, with the recurrent feature's weight set to zero. They retain unique 100-best lists. If different phrase derivations produce the same English string, only the highest-scoring derivation is represented. A candidate list therefore contains distinct alternative translations instead of a collection in which a repeated string can occupy several places.

For a source sentence, training now has its list of alternative English outputs, the baseline feature values associated with those outputs, and the reference. This is enough to ask how the network should change the relative scores of the alternatives. The lists approximate the set of translations in the decision rule. During this stage they remain the lists generated by the baseline. The network is free to change the scores of what is on a list and learns from those changes.

Next the authors hold the other translation weights fixed and give the recurrent feature a weight of 1. They adjust the network matrices with stochastic gradient descent, which makes updates from batches of training examples. The authors tried tuning the recurrent feature's weight on development data for this stage and report that leaving it at 1 made training faster at equal accuracy. When network training ends, they freeze its matrices and use MERT on the development set to retune the translation weights in the presence of the new feature. The weight used inside the training calculation is thus a choice for that stage. The subsequent tuning gives the system a way to decide how the result should be combined with its other evidence.

From baseline translation lists to recurrent decoding

The steps in order.

From baseline translation lists to recurrent decodingStep 1: Generate distinct translations with the baseline decoder1. Generate distinct translations with the baseline decoderStep 2: Score candidates against their reference sentences2. Score candidates against their reference sentencesStep 3: Add recurrent scores to candidate features3. Add recurrent scores to candidate featuresStep 4: Normalize scores within each candidate list4. Normalize scores within each candidate listStep 5: Train the network to raise expected BLEU5. Train the network to raise expected BLEUStep 6: Retune decoder weights with the network fixed6. Retune decoder weights with the network fixedStep 7: Carry the strongest recurrent state through recombination7. Carry the strongest recurrent state through recombination

How BLEU becomes a training signal

For each source sentence, every listed hypothesis gets a smoothed sentence-level BLEU score against its reference. The sentence score is a measure of overlap with the reference that can be used on individual candidate sentences. Smoothing makes that comparison usable where a short candidate supplies sparse evidence about matching word sequences. The authors use an approximation similar to the one in their cited work on phrase and lexicon training. They also report that a BLEU+1 alternative, discussed in Optimizing for Sentence-Level BLEU+1 Yields Short Translations, worked equally well in early experiments in their setting.

A candidate's BLEU score supplies its reward. Its probability comes from the translation system, which may favor a candidate for reasons that differ from the reward. The loss is the negative of the probability-weighted reward. Minimizing it moves probability towards candidates with more favorable reference scores, to the extent that the recurrent feature can distinguish them. The paper defines the expectation for the list belonging to a given source sentence.

ℓ(θ) = −xBLEU(θ) = −∑[e ∈ E(f)] pΛ,θ(e | f) sBLEU(e, e⁽ⁱ⁾)

Here ℓ(θ) is the loss and xBLEU(θ) is expected sentence-level BLEU. θ denotes the recurrent weights being learned and Λ denotes the translation feature weights used to form candidate scores. e ranges over E(f), the fixed list for source sentence f. pΛ,θ(e | f) is the candidate probability within that list. sBLEU(e, e⁽ⁱ⁾) is the smoothed BLEU score of e against the reference e⁽ⁱ⁾, where i identifies the training item. The leading minus sign converts the problem of raising the expectation into one of minimizing a loss.

The decoder's score for a candidate is useful for comparing candidates, but the weighted average requires probabilities. The authors exponentiate each translation score and divide by the total across the list. They include a scale factor so they can control how strongly differences in decoder score affect the training distribution.

pΛ,θ(e | f) = exp(γΛᵀh(f, e)) / ∑[e′ ∈ E(f)] exp(γΛᵀh(f, e′))

Here pΛ,θ(e | f) is the probability assigned to target candidate e for source f. h is the feature vector and Λᵀh is the weighted score, now including the recurrent feature with parameters θ. The function exp is the exponential. e′ is a candidate index used to sum the exponential scores across E(f), the list for f. γ is a non-negative scaling factor. Values below 1 flatten the distribution relative to the unit scale and values above 1 sharpen it. The paper uses this factor in expected-BLEU training and removes it from the subsequent MERT procedure.

The probabilities have meaning relative to the generated list. Changing the score of a candidate changes the denominator shared by all of its competitors. This is what makes the objective sensitive to the other translations the system is considering. A sentence with a fixed BLEU reward can have a different effect on training depending on what is on its list and where the current system puts its probability. The reward measures the match to the reference, while the current expectation supplies the standard against which that reward is compared.

How sentence feedback reaches individual word scores

The authors derive the gradient by writing the expectation as a quotient. In the numerator, each exponential translation score is weighted by the corresponding sentence's BLEU reward. In the denominator, the same exponential scores are summed without their rewards. This form makes it possible to see the effects of changing a network score on both quantities.

G(θ) = ∑[e ∈ E(f)] exp(γΛᵀh(f, e)) sBLEU(e, e⁽ⁱ⁾)

Here G(θ) is the reward-weighted sum for the current training item. θ enters through the recurrent feature in h(f, e). The source is f, the candidates e belong to E(f), γ scales the dot product of the weights Λ and the feature vector h, and exp converts that score to a positive quantity. sBLEU supplies the candidate's smoothed BLEU reward against e⁽ⁱ⁾, the reference for item i.

Z(θ) = ∑[e ∈ E(f)] exp(γΛᵀh(f, e))

Here Z(θ) is the normalization sum for the item. E(f) is the list for source f, e indexes that list, h(f, e) is the candidate feature vector, Λᵀ forms the weighted score, γ scales it, and exp exponentiates it. The dependence on θ again comes from the recurrent feature inside h. In this sum the contribution of each translation depends on its score in the system.

ℓ(θ) = −xBLEU(θ) = −G(θ) / Z(θ)

Here ℓ(θ) is the loss, xBLEU(θ) is expected BLEU, G(θ) is the reward-weighted sum and Z(θ) is the normalization sum. The same recurrent weights θ influence both. Increasing a word score that raises a candidate's translation score increases its contribution to both sums. The effect on the quotient depends on the candidate's reward in relation to the current expectation.

The gradient starts with the derivative of this expectation with respect to a recurrent word score. The paper calls that quantity the error term and accounts for the minus sign later, when forming the gradient of the loss. An error term is associated with a scored occurrence. If a word appears more than once in a sentence, the histories at those positions can differ and the network computes a separate term for each occurrence.

δwₜ = ∂xBLEU(θ)/∂sθ(wₜ)
     = (1/Z(θ)) (∂G(θ)/∂sθ(wₜ) − xBLEU(θ) ∂Z(θ)/∂sθ(wₜ))

Here δwₜ is the derivative of the expectation xBLEU(θ) with respect to sθ(wₜ), the score for the English word wₜ at position t with its particular history. The symbol ∂ denotes partial differentiation. G(θ) and Z(θ) are the numerator and denominator sums, and θ denotes the recurrent weights. The factor 1/Z(θ) and the subtraction follow from differentiating a quotient. The subtraction captures the fact that putting more weight on one candidate also changes how much all the candidates count after normalization.

The only term in the overall translation score that depends on a recurrent word score is the recurrent feature. For an occurrence that contributes to a candidate, its contribution goes through the logarithm in the sentence feature. The derivative of that logarithm introduces the inverse word score.

∂(γΛᵀh(f, e))/∂sθ(wₜ)
  = γλₘ₊₁ ∂hₘ₊₁(e)/∂sθ(wₜ)
  = γλₘ₊₁ / sθ(wₜ)

Here γ scales the candidate score, Λ is the vector of translation weights and h(f, e) is the feature vector for source f and candidate e. The added recurrent feature is hₘ₊₁(e), with weight λₘ₊₁, where m is the number of original features. sθ(wₜ) is the recurrent score of the occurrence at position t and ∂ indicates differentiation with respect to that score. The last equality uses the logarithm in the feature definition for that occurrence.

The authors express the reward comparison by subtracting expected BLEU from the candidate's BLEU. The resulting quantity can be positive, negative or zero. It compares the candidate with the system's current distribution of alternatives for the same input.

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

Here U(θ, e) is the centered reward for candidate e under recurrent weights θ. sBLEU is the smoothed candidate score against reference e⁽ⁱ⁾ for training item i, and xBLEU(θ) is the list's current expected BLEU. The U used for the reward here is distinct from the matrix U in the hidden-state equation.

δwₜ = ∑[e ∈ E(f) containing the scored occurrence]
      pΛ,θ(e | f) U(θ, e) λₘ₊₁ γ / sθ(wₜ)

Here δwₜ is the derivative for the word score sθ(wₜ) under recurrent weights θ. The sum ranges over candidates e in the list E(f) for source f whose scores depend on that occurrence with its history. pΛ,θ(e | f) is the normalized candidate probability using translation weights Λ. U(θ, e) is the centered reward, λₘ₊₁ is the recurrent feature weight, and γ is the training scale. A candidate with more probability has more influence at a given reward difference. The centering gives a positive contribution from a candidate with above-average reward when the feature weight is positive.

This gives a direct interpretation of the word-level signal. A whole candidate receives a reward, and the network scores that helped place the candidate in the distribution receive feedback according to the resulting expectation. A word need not itself match any particular part of the reference to receive a positive contribution. Its role in the learned feature is determined through the standing of the sentence that contains it. Other candidates can supply different feedback for their own word scores, and the parameters that produce those scores are shared.

∂ℓ(θ)/∂θ = ∑[e ∈ E(f)] ∑[t=1…|e|] (−δwₜ) ∂sθ(wₜ)/∂θ

Here ∂ℓ(θ)/∂θ is the gradient of the negative expected BLEU loss with respect to the network parameters θ. The outer sum is over candidates e in the training list E(f) and the inner sum is over positions t through the candidate length |e|. The factor −δwₜ changes the sign from the derivative of the expectation to the derivative of the loss. ∂sθ(wₜ)/∂θ is the sensitivity of the recurrent word score at that position to its network weights. In the sum, each word score is evaluated with the history in its candidate.

The network obtains this last sensitivity by back-propagation through time. It treats the recurrent calculation along a sequence as a series of steps sharing the same weights, then propagates derivatives back through those steps. A parameter can influence a score directly through the current computation and indirectly by changing earlier hidden states. Expected BLEU changes the error passed to the network's output. The recurrence still determines how that error is distributed through preceding steps.

How the decoder carries the recurrent score

Once training and feature tuning are complete, there are separate ways to use the score. In list rescoring, the decoder first produces complete translations and the recurrent feature helps rerank them. In lattice rescoring, the recurrent component can assess routes through a graph left by the initial decoder. For first-pass integration, the network supplies a score as a partial translation is extended. The decoder already has the current hidden state for that partial translation and can process the words of an appended phrase from that state.

The decoder continues grouping hypotheses according to its usual recombination conditions. The paper describes matching hypotheses in terms of the source span, the translation phrase and the relevant contexts. In particular, the states still retain their n-gram context for the existing language feature. Among hypotheses that fall into the same group the decoder keeps the highest-scoring one and carries forward its recurrent state. Thus it uses an actual history associated with a surviving path. The approximation lies in discarding the other histories in the group even though the recurrent scores of their future extensions could differ.

The authors' reason for expecting this rule to work is that hypotheses in a recombination group already share both source information and local target context. These commonalities make their recurrent histories plausible substitutes in many cases. The rule trades some information about alternative prefixes for the ability to prune aggressively while using the recurrent feature early. Its accuracy has to be judged by the translation experiments because the recombination conditions do not establish equivalence of future recurrent scores.

A separate issue is how to estimate the score of work the decoder has yet to do. The authors use a phrase-level estimate for future cost. They score a phrase on its own after resetting the hidden state at the phrase boundary. The estimate can then be computed without knowing the prefix that will eventually precede that phrase. When an actual hypothesis is extended, the recurrent score can use the state carried by that hypothesis. Resetting the state is part of estimating a future contribution, while carrying it forward is part of evaluating the proposed continuation. The paper reports that the phrase estimate was more accurate than using no future cost estimate.

Experiments and results

Data, tuning and the baseline

The experiments draw on the WMT 2012 campaign and evaluate translation into English from French and German. The French-English translation components are estimated from 102M words of parallel text and the German-English components from 99M words. For each language pair, about 6.5M words are newswire. The rest come from parliamentary proceedings. These are the amounts used for the translation components, while neural training uses a smaller portion of the data.

The authors use the news part of the parallel data for all their neural experiments. It comprises 136K sentences and was the most useful portion in their initial experiments. A word enters the recurrent vocabulary if it appears in two or more distinct sentences, giving each language pair a vocabulary of 31K words. The authors describe training the phrase-based system and the neural component with data in common. In particular, the baseline generates the candidate lists for the sentences used in recurrent training. They report that this overlap did not hurt end-to-end accuracy in their experiments.

The newswire evaluation spans the years 2008 to 2013. The six test sets contain between 2034 and 3003 sentences. The development set is the 2009 data, which contains 2525 sentences and is used to tune the log-linear weights. The result tables distinguish that development set from the test sets. In particular, syscomb2010 appears alongside the other 2010 test in the tables. AllTest is the corpus-weighted average BLEU across the test sets.

The phrase-based baseline is similar to Moses. It combines estimates of phrase translation in both directions with lexically weighted estimates, also in both directions. Word and phrase penalties contribute to the preferences among complete candidates. The system uses a linear distortion feature and a reordering component from A Simple and Effective Hierarchical Phrase Reordering Model. Its modified Kneser-Ney language feature is trained on the target side of the parallel data. MERT sets the translation feature weights. When a recurrent feature is added, the target-side n-gram feature stays part of the comparison.

The authors select the mini-batch trainer's learning rate µ and the probability scale γ on held-out data. They use µ = 0.1 and γ = 1. During training they monitor a held-out objective and stop when its change is less than 0.0003. The ordinary hidden layer contains 100 neurons. The expected-BLEU comparison uses a smaller hidden layer for computational reasons. The paper evaluates translation accuracy with BLEU against a single reference. The BLEU used to report system performance and the smoothed sentence-level quantity used to train the expected-BLEU feature serve different purposes in the experiment.

Initial decoding versus rescoring

The search experiment uses a network trained with cross-entropy. This lets the paper compare placements of a recurrent score without introducing expected-BLEU training into the comparison. For rescoring, the baseline yields either a lattice or a list of unique 100-best translations. The development candidates are augmented with neural scores and the authors run a further MERT iteration to estimate feature weights. They use the resulting weights for rescoring at test time. In the integrated condition the recurrent score participates during the initial decoder search.

French-English AllTest BLEU for first-pass decoding and rescoring

First-pass use of the recurrent score leads both rescoring conditions.

French-English AllTest BLEU for first-pass decoding and rescoringPhrase-based baseline: 24.53Phrase-based baseline24.53Recurrent n-best rescoring: 25.25Recurrent n-best rescoring25.25Recurrent lattice rescoring: 25.72Recurrent lattice rescoring25.72First-pass recurrent decoding (this paper): 26.06First-pass recurrent decoding (thispaper)26.06
The numbers
System or settingBLEU
Phrase-based baseline24.53
Recurrent n-best rescoring25.25
Recurrent lattice rescoring25.72
First-pass recurrent decoding (this paper)26.06

The French-English aggregate rises in the order of the baseline, list rescoring, lattice rescoring, and first-pass decoding. That order also holds on each individual French-English test set. On the 2008 test, for example, the baseline scores 20.73 BLEU and first-pass decoding scores 22.03. On the 2012 test, list rescoring reaches 25.74, lattice rescoring reaches 26.43, and the integrated decoder reaches 26.86. The latter test shows why it is useful to report the lattice as a separate comparison. Considerable benefit is available through the wider rescoring representation, while the decoder still gains from consulting the network during search.

For French-English, the authors report a maximum first-pass gain of 1.1 BLEU over n-best rescoring and 0.4 BLEU over lattice rescoring. Against the phrase-based baseline, first-pass integration improves by up to 2.0 BLEU. The paper gives an average gain of 1.5 BLEU over the baseline across the French-English tests. These reported gains are comparisons of translation outputs evaluated against the single reference. They do not require treating the recurrent word score itself as a translation probability.

German-English AllTest BLEU for first-pass decoding and rescoring

The integrated decoder also has the highest test average for German-English.

German-English AllTest BLEU for first-pass decoding and rescoringPhrase-based baseline: 20.58Phrase-based baseline20.58Recurrent n-best rescoring: 21.21Recurrent n-best rescoring21.21Recurrent lattice rescoring: 21.38Recurrent lattice rescoring21.38First-pass recurrent decoding (this paper): 21.61First-pass recurrent decoding (thispaper)21.61
The numbers
System or settingBLEU
Phrase-based baseline20.58
Recurrent n-best rescoring21.21
Recurrent lattice rescoring21.38
First-pass recurrent decoding (this paper)21.61

German-English has the same ordering on the corpus-weighted test average and across its individual test sets. On the 2008 test, lattice rescoring yields 20.38 BLEU and first-pass decoding yields 20.51. On the 2013 test those conditions yield 23.23 and 23.53, respectively. The development set has a different ordering. There, German-English lattice rescoring scores 20.24 and list rescoring scores 20.17, while first-pass decoding scores 20.13. The paper's claim of consistent first-pass gains concerns the held-out test sets.

On German-English, the authors report maximum gains of 0.5 BLEU over n-best rescoring and 0.3 BLEU over lattice rescoring. Against the baseline, they report a maximum gain of 1.3 BLEU and an average improvement of 1.0 BLEU on the test sets. The recurring test-set pattern across languages supports the practical usefulness of early scoring. In both cases rescoring already retrieves some of the benefit of the recurrent feature, and a stronger result is obtained by giving it access to search decisions.

Adding the expected-BLEU feature

The training comparison is a separate French-English experiment. The authors reduce the hidden layer to 30 neurons to keep expected-BLEU training tractable, and compare a decoder-integrated cross-entropy feature with that feature plus an expected-BLEU feature. The relevant control is the cross-entropy condition in this experiment. The larger-network decoding scores in the previous comparisons use a different capacity and therefore answer a different question.

French-English AllTest BLEU with cross-entropy and expected-BLEU features

Adding the expected-BLEU feature raises the average over the cross-entropy feature alone.

French-English AllTest BLEU with cross-entropy and expected-BLEU featuresPhrase-based baseline: 24.53Phrase-based baseline24.53Cross-entropy recurrent feature: 25.29Cross-entropy recurrent feature25.29Cross-entropy plus expected-BLEU features (this paper): 25.71Cross-entropy plus expected-BLEUfeatures (this paper)25.71
The numbers
System or settingBLEU
Phrase-based baseline24.53
Cross-entropy recurrent feature25.29
Cross-entropy plus expected-BLEU features (this paper)25.71

The combined system improves on the cross-entropy recurrent condition on every French-English test in this comparison. On the 2008 test, the corresponding scores are 21.15 BLEU for cross-entropy and 21.74 for the combination. On the 2011 test they are 26.45 and 27.06. On the 2012 test they are 25.83 and 26.42. On the 2013 test the results are much closer, at 26.69 and 26.72. The pattern supports an additional contribution from the expected-BLEU feature whose size varies by test set. The authors report a maximum gain of 0.6 BLEU and an average gain of 0.4 BLEU across the test sets.

The change in the training example explains much of the computational burden. A cross-entropy example supplies a sentence whose observed next words are the targets. Expected-BLEU training supplies a list, and the network has to score its candidates to form the distribution and work out the error. The authors report that the number of words to process grows from 3.5M to 340M. This is the volume of word processing for the training comparison. The larger number reflects the use of candidate sentences produced by the phrase-based system.

At test time, the authors report that the expected-BLEU network scores about 5 times faster than the cross-entropy network because it can skip vocabulary-wide output normalization. That refers to scoring by the recurrent component. The training experiment's best translation result uses both recurrent features, so the speed claim has a different scope from the BLEU claim. The paper establishes an advantage for computing the expected-BLEU feature itself alongside an accuracy gain for adding that feature to the decoder.

What the ablations show

The candidate space affects the value of a recurrent score

The search comparison varies when the language score can affect a choice and how much of the baseline search is open to reconsideration. The baseline establishes the quality of the original phrase-based system. List rescoring asks what the recurrent feature can do with a restricted set of finished translations. Lattice rescoring offers it a graph of alternatives from the initial search. First-pass decoding allows the feature to affect which partial hypotheses survive in the first place.

The lattice results are important for interpreting the gains. A comparison against the list alone would combine the benefit of reconsidering a richer set of hypotheses with the benefit of using the recurrent score during search. On both language pairs, the lattice is a stronger competitor than the list. First-pass integration improves on it on the test sets as well. That makes the decoder result evidence for using the feature before the baseline has fixed the space available to the later pass. It also shows that the one-state approximation can be useful in that setting, even when the rescoring system already has a richer representation than a short list.

The experiment measures these choices through final BLEU. It does not trace a translation from a specific pruning decision to a particular improvement in reference overlap. The result is therefore best read as an end-to-end comparison of usable setups. The recurrent first pass has an advantage over the reported alternatives, while the contribution of individual mechanisms inside its search is less directly measured.

What the search approximation tests indirectly

Keeping a single recurrent state per recombination group changes which distinctions the decoder preserves. The tests show that this search can deliver better output than the rescoring conditions. They do not compare the single retained state with a larger beam of states inside an otherwise identical first-pass decoder. Nor is there an exact recurrent search score that could show how much the approximation loses. A decoder might benefit both from using recurrence early and from retaining more histories, if it could afford the latter.

A useful distinction is between equivalence and similarity. Matching an n-gram context provides the equivalence that the n-gram feature needs to score the next word. Matching on the same decoder state gives only a reason to expect similar recurrent behavior. It can still be worthwhile to keep the currently better hypothesis and prune the other one. The experiments show that doing so preserves enough useful variation for translation quality to improve under the chosen comparison. They leave open how frequently two discarded and retained histories give materially different continuation scores.

The future-cost analysis is more limited. The paper reports a better estimate from scoring isolated phrases than from using no future cost estimate, without a separate BLEU breakdown for this comparison. The two techniques solve different problems. Carrying the best recurrent state lets the decoder maintain a history for the path it is actually exploring. Scoring in isolation supplies a provisional value for a future phrase whose preceding history is unavailable. The result tables evaluate the integrated decoder that uses these choices together.

The objective adds evidence to a cross-entropy system

The expected-BLEU comparison controls the hidden-layer size and keeps the cross-entropy feature in the decoder. It asks what happens when a new feature learned from candidate rewards becomes available. The gain on each French-English test indicates that the feature supplies a contribution beyond the cross-entropy feature in that setup. The margin is small on the 2013 test and larger on other tests, so the result involves both a consistent direction and a variable magnitude.

The addition of a feature is the experimental intervention. Both the source of training feedback and the output scoring convention distinguish the expected-BLEU feature from the cross-entropy feature. The paper does not show the score of an expected-BLEU-only decoder in the same comparison or an alternative combination of two cross-entropy features. Those controls would address whether the new training objective is the full explanation for the gain. The result shown in the table establishes that the combined system performs better than the reported cross-entropy condition.

The authors also describe choices explored during development. Tuning the recurrent feature's training weight gave equal accuracy and slower training than setting it to 1. Trying L2 regularization produced no accuracy gain. The authors suggest that stochastic gradient descent already provided enough regularization in their setting. They report similar early performance from the two sentence-BLEU approximations they tried. These observations explain why simpler settings were used for the main runs. Their scope is the authors' implementation and experiments, with the principal numerical comparisons reserved for the search setups and the addition of the expected-BLEU feature.

Limitations

Limits the authors identify

The authors identify training cost as a constraint on the expected-BLEU experiment. Scoring the alternatives in a list increases the volume of training computation. They use 30 hidden neurons to make the experiment manageable, compared with the ordinary 100-neuron setting. The paper explicitly cautions against directly comparing the scores from the smaller training experiment with the larger French-English integration results. In particular, their absolute BLEU values cannot establish what would happen if expected-BLEU training were applied at the larger size.

The authors propose parallelization as a way to investigate larger datasets and more complex networks. The reported experiment trains on the news portion of the available corpus and uses unique candidate lists of fixed depth. The paper demonstrates that objective-driven training is feasible under those choices. It leaves the behavior of the method at the proposed larger scale open.

They also identify future cost as an aspect of decoding that could be improved. The isolated-phrase score is cheap because it requires no earlier context. A recurrent predictor is designed to use that context, so resetting the state removes one source of information when estimating future contributions. The authors suggest estimating a phrase score by averaging scores for that phrase across occurrences in a large corpus. That proposal appears as future work. The experiment establishes the performance of the decoder with the simpler estimate.

Limits visible in the evaluation

The expected-BLEU probability distribution is conditional on the translations generated by the baseline. The loss can favor the better available candidates. It gives no direct comparison with an alternative that the baseline failed to put on the list. This matters because a stated reason for integrating the recurrent feature is that it can affect which candidates survive search. The deployed feature can therefore help produce translations outside the sets on which its reward was optimized. The training and search procedures need not encounter the same alternatives, and the paper does not measure the effect of periodically rebuilding the training lists using the learned score.

Deduplication also affects what the objective represents. Where several derivations produce the same English string, the objective uses the best-scoring derivation retained by the baseline. The candidate's probability is obtained from that entry. There is no sum of the probability contributions of its separate derivations. This is a sensible way to give each proposed sentence one reward and avoid repetition in training. It leaves unanswered whether preserving other derivations would affect learning in the log-linear system.

The training reward and final evaluation operate at different granularities. Training uses smoothed BLEU for a candidate sentence, taken in expectation over a list. Evaluation reports BLEU for output selected by the decoder, with an aggregate across test sets. During training a candidate can help raise the expected reward without ever becoming the system's final choice. The experiment measures whether the resulting feature is useful once it is combined with the other features and the decoder selects an output. It does not establish that gains in the training objective are numerically equivalent to gains in corpus BLEU.

The evaluations use a single reference and newswire tests. A single reference supplies one expression against which a translation is compared. Plausible English translations may differ from that expression. The results therefore establish improvements under the reported reference-based metric. They offer no separate evidence about human judgments or the frequency of particular changes in meaning, word order or fluency. The decoder result covers both tested language pairs, which share English as the target. The expected-BLEU addition is tested only on French-English in the reported results, and the paper does not show the corresponding German-English comparison.

The two experimental contributions are supported by different controls. The first-pass gains are obtained using cross-entropy, so they can be attributed to the tested search setup without requiring the new objective. The loss experiment shows a gain from adding an expected-BLEU feature to an already integrated system. It leaves the performance of that feature by itself, and the interaction between objective and search placement, undetermined. The paper reports consistent test improvements, while supplying neither uncertainty intervals nor a statistical significance analysis for the comparisons.

Finally, the runtime result concerns computing a recurrent score. End-to-end translation also involves expanding and pruning hypotheses, evaluating other features, and, in the combined condition, computing the cross-entropy score. The scoring result explains a computational advantage of the unnormalized output. It does not establish the same speed gain for the full decoder or quantify the search cost of retaining different numbers of recurrent states.

What came after

The later citations place the paper alongside work on sequence-level training, broader accounts of neural methods, and applications where a system must choose among generated texts. The titles establish those points of contact, while the citations alone leave each work's use of the decoder approximation or BLEU gradient unspecified.

Sequence Level Training with Recurrent Neural Networks takes up the question of training recurrent networks at the level of a sequence. That is the closest connection to the expected-BLEU part of Auli and Gao's paper. Their setup gives an entire English candidate a reward and uses it to derive feedback at individual word positions. The later title puts the sequence-level training question in the foreground. The citation establishes a connection to that line of work without specifying whether it keeps a baseline candidate list, a sentence BLEU reward, or the same way of assigning credit to a word score.

A Primer on Neural Network Models for Natural Language Processing gives the paper a place in an overview of neural methods for natural language processing. The connection is useful because the original experiment combines a recurrent architecture with decisions made outside it. Network weights determine word scores, a translation system combines them with other features, and a sequence reward supplies the signal for one training condition. A primer's citation situates this combination within the broader subject. It supplies no further empirical result about the decoder.

Multi-domain Neural Network Language Generation for Spoken Dialogue Systems cites the paper in work on generating language for dialogue systems. That setting shares a concern with the quality of complete outputs, while changing the task from translation to wording for spoken dialogue and making multiple domains part of the problem. The link to Auli and Gao's experiment is the use of neural scoring in a system that produces sentences for a task. The citation does not establish that the dialogue work adopts the phrase-based decoder, its pooling of recurrent histories, or its particular reward.

Quark: Controllable Text Generation with Reinforced Unlearning brings a later point of contact in controllable text generation. Its title identifies reinforced unlearning as the approach and control over generated text as the task. Auli and Gao's paper similarly frames learning around a desired property of finished text, with reference overlap supplying that property in translation. The specific connection supported here is the citation and the common concern with shaping generation through training. The later work's use of the earlier objective or decoder cannot be determined from that connection alone.

Cite

Cite as Michael Auli and Jianfeng Gao. 2014. Decoder Integration and Expected BLEU Training for Recurrent Neural Network Language Models. Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers).

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

@inproceedings{auli2014decoder,
  title = {{Decoder Integration and Expected BLEU Training for Recurrent Neural Network Language Models}},
  author = {Michael Auli and Jianfeng Gao},
  booktitle = {Proceedings of the 52nd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers)},
  year = {2014},
  doi = {10.3115/v1/p14-2023},
  url = {https://doi.org/10.3115/v1/p14-2023}
}

↑ back to top

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