Elamur Research

Deep Neural Language Models for Machine Translation

Paper · 2015 · Thang Luong, Michael Kayser and Christopher D. Manning

Summary

A Chinese sentence can have several plausible English translations. A translation system has to choose among them, weighing how naturally each candidate reads and how well it fits the source. This paper asks whether a better judge of those candidates can be built by adding hidden layers to a neural language model. Earlier work in machine translation generally used shallow networks for this job, and the evidence for adding a second hidden layer was mixed. The authors test what happens when a network goes deeper while keeping the information it receives about each word fixed.

The network scores an English word using both the English words immediately before it and a window around an aligned Chinese word. The authors train it on Chinese–English sentence pairs and add its scores to a separate system that reorders translations already proposed by a phrase-based decoder. Increasing depth improves held-out perplexity, a measure of how much probability the network assigns to the words that actually appear. BOLT test perplexity is 8.99 with 1 hidden layer and 7.71 with 4. The deeper networks also come closer to producing scores that can be used directly during reranking, avoiding a vocabulary-wide calculation for each word in each candidate.

On web-forum translation, the authors report average gains of 0.5 TER and 0.5 BLEU points for the deeper networks over reranking with a single hidden layer. TER estimates the editing required to reach a reference translation, while BLEU reflects overlap with the reference. Which depth gives the best score depends on the test set. On dev10wb syscomtune, the 4-layer reranker gives both the lowest TER, 54.1, and the highest BLEU, 32.4. On p1r6 dev, the 3-layer reranker leads on both measures, with 62.5 TER and 17.3 BLEU.

The authors also adapt the networks to SMS chat by continuing training on a smaller collection of chat translations. On the SMS translation test set, the 3-layer version reaches 55.2 TER and 26.4 BLEU, compared with 56.2 TER and 25.9 BLEU for the single-layer reranker. The TER gain is statistically significant, while the BLEU gain is inconclusive and the development-set BLEU favors the shallower network. In these experiments, depth gives a phrase-based system a better way to choose from its candidates, with the clearest evidence on web forums and a narrower benefit after adaptation to chat.

Deep dive: Deep Neural Language Models for Machine Translation

How deeper neural language models improve Chinese–English translation by scoring candidate sentences, and where the gains hold up. · about 33 minutes to read

The problem and its context

What a translation score has to capture

A translator choosing among candidate sentences has to answer two related questions. Would the sequence of words make sense in the target language? Would it make sense as a translation of this particular source sentence? A target-language score helps with the first question. A source-conditioned score can bring evidence about both to the same decision. An English continuation may be entirely ordinary after the preceding English words, yet a nearby Chinese word may make a different continuation more appropriate. The paper is concerned with assigning scores that respond to such differences and using them where the translation system chooses an output.

The system at issue is phrase-based. Its decoder assembles a candidate translation from phrase-level options and uses several features to weigh those choices. Some features connect words or phrases across the languages. Others evaluate the target sequence or account for the rearrangement of source material. Because these signals can disagree, the score used in decoding combines them. The authors start with a system that already uses this kind of combination, including several sources of evidence about fluency. Their question concerns what a deeper network adds to the decision that system already makes.

The network applies a single prediction procedure to many contexts. It represents each word by a learned vector. The hidden layers then transform the vectors for the preceding target words and nearby source words into a representation from which the next target word can be scored. Sharing parameters across contexts gives the network a way to generalize across word sequences. A particular combination of source and target words can receive a score even if the exact combination is uncommon in the training text. The study asks whether adding layers helps the network make better use of that opportunity.

Depth and context size refer to different parts of the architecture. A wider context would give the predictor access to more words. Adding layers gives it more successive transformations of the same input. An extra layer can combine patterns represented by the preceding layer, but it still starts from the words in the original window. This distinction matters because the research question is about what the network does with its evidence. An improvement from widening the window would answer a different question from an improvement obtained by changing the computations that follow it.

Why the usual depths left the question open

The paper places the experiment in a period when deep networks had shown that successive layers could support complex predictions in speech and vision. The translation literature it describes had already adopted feed-forward neural scoring, but established practice concentrated on one or two hidden layers. Some earlier work used a single hidden layer to rerank translations. Other work put neural scores into decoding, so they could affect the search while a translation was still being assembled. These are different tests of a scoring function. Reranking asks how it orders surviving candidates. Using it during decoding gives it a chance to change which candidates survive.

The immediate architectural precedent is the feed-forward predictor in A Neural Probabilistic Language Model. It looks up representations for the contextual words, combines them into an input, and uses the resulting representation to assign probabilities to potential next words. The paper retains that basic structure. It investigates what happens when additional hidden transformations sit between the word representations and the output. A Neural Probabilistic Language Model

The authors describe earlier evidence on depth as incomplete in two ways. One study used a two-layer network during decoding without presenting a comparison across depths. Another directly compared single-layer and two-layer versions and reported only a small gain from the additional layer. That leaves open whether deeper networks are useful, as well as whether the move from one to two layers is representative of subsequent increases. The useful comparison therefore spans the shallow settings already in use and settings beyond them. Decoding with Large-Scale Neural Language Models Improves Translation, Fast and Robust Neural Network Joint Models for Statistical Machine Translation

Devlin and colleagues also supply a direct precedent for making the score depend on both sides of the translation. The source side gives the predictor words close to an aligned position. The target side gives it the available history before the word being scored. This is a practical compromise. The source sentence is already present when translation begins, so the source window can extend in both directions around its center. The target history describes how the candidate has unfolded up to that point. This asymmetry lets the scorer connect its prediction to words that are available in the source even when their English counterparts occur at different points in the output. Fast and Robust Neural Network Joint Models for Statistical Machine Translation

The cost of turning scores into probabilities

For every prediction, a standard softmax assigns a score to each word in the output vocabulary and divides the exponentiated score for the observed or proposed word by a sum over that vocabulary. Computing the one score of interest can be relatively cheap once the context representation is available. Computing the divisor requires contributions from all output words. In translation, this cost can recur for many words across many candidates. A network can therefore be a good probability estimator and still be costly to apply at the scale of a decoder's candidate list.

The paper discusses several earlier ways to address this expense. Hierarchical and class-based softmax methods change how the output distribution is organized. Noise-contrastive estimation offers a training approach that avoids explicit evaluation of the normalizer. The self-normalization approach taken from Devlin and colleagues keeps the usual softmax during training and adds a penalty that encourages its divisor to stay close to a fixed value. This sets up a different division of labor between training and use. The trainer can pay for the full probability calculation, while the reranker can make use of the unnormalized score if the learned normalization is close enough. A Fast and Simple Algorithm for Training Neural Probabilistic Language Models, Fast and Robust Neural Network Joint Models for Statistical Machine Translation

The authors also describe end-to-end neural translation as a separate line of research already active at the time. The work they cite includes recurrent continuous translation, sequence-to-sequence prediction, and a system that learns alignment as part of translation. These approaches take responsibility for producing the translated sequence. In the study here, the phrase-based decoder retains that responsibility and the network contributes a score for its candidates. That choice makes it possible to study the depth of one component inside an existing system. The paper frames both lines of work in terms of the state of translation research at the time, including the challenge of translation between Chinese and English. Recurrent Continuous Translation Models, Sequence to Sequence Learning with Neural Networks, Neural Machine Translation by Jointly Learning to Align and Translate

The method, step by step

From parallel sentences to a prediction problem

The basic training example consists of a context and the English word that occurs in that context. The target half of the context is the immediately preceding English history. The source half comes from the Chinese sentence paired with that English sentence. An alignment heuristic adapted to the phrase-based system supplies the source position used to build the window. Across the sentence pair, successive English positions furnish successive prediction examples. Each example teaches the network about a single next-word decision instead of assigning a single label to the entire translation.

The source window has size 5 in the paper's terminology, giving an 11-gram source context centered on the aligned position. The target history contains 4 words, making the target portion a 5-gram prediction when the word being predicted is counted. An n-gram describes a sequence of a fixed number of word positions. Here those settings serve different purposes. The source window gives the predictor local evidence on either side of the alignment. The target history gives it the English phrasing that has led up to the current position. Successive positions can therefore have different source windows as well as different target histories.

The source anchor is especially important when reading the architecture as a translation component. The network receives words from a neighborhood selected by the alignment heuristic. If a relevant clue falls in that neighborhood, the network can learn how it should affect the English prediction. If the clue lies outside the window, it has no direct input slot for it. During reranking, this same arrangement lets the score vary with how a candidate's English words relate to the source. The paper identifies the heuristic by its relation to Devlin and colleagues' method and by its suitability for phrase-based translation. It leaves the detailed alignment rules unspecified.

Each context word has a vector with 256 entries. The vector lookup produces the set of inputs conventionally called word embeddings. The network concatenates the vectors in context order, so an input block corresponds to a particular position in the source window or the target history. A word in the most recent target position and the same word farther back contribute through different input slots. Within a language, the same learned representation can be looked up when the word occurs in different contexts. The transformations after concatenation can then learn which combinations matter for the next prediction.

The Chinese and English vocabularies each retain the top 40K words by frequency. Forms outside the selected vocabularies are mapped to a universal unknown symbol. The unknown symbol allows the network to handle contexts that include words outside those lists, with the consequence that their individual identities are merged in this representation. On the English side the authors use the same vocabulary for embeddings and the softmax. An English word available as a distinct prediction also has a distinct vocabulary entry when it appears in the English history. Vocabulary sharing here concerns the entries covered by the matrices. The matrix that represents an input word and the matrix that produces output scores serve different functions.

Training and applying the source-conditioned translation scorer

The steps in order.

Training and applying the source-conditioned translation scorerStep 1: Align target positions to source positions1. Align target positions to source positionsStep 2: Collect source windows and target histories2. Collect source windows and target historiesStep 3: Join embeddings in context order3. Join embeddings in context orderStep 4: Transform the input through hidden layers4. Transform the input through hidden layersStep 5: Train word scores with self-normalization5. Train word scores with self-normalizationStep 6: Score candidates produced by the phrase-based decoder6. Score candidates produced by the phrase-based decoderStep 7: Combine neural and decoder features to rerank7. Combine neural and decoder features to rerank

From context vectors to word probabilities

Let the concatenated embeddings be the input representation. The first hidden layer transforms that input, and each succeeding layer transforms the representation immediately below it. All hidden layers have 512 units. Thus the depth comparison changes the number of transformations applied at that width. The output layer then uses the representation from the last hidden layer to score the English vocabulary.

h⁽ˡ⁾ = f(W⁽ˡ⁾h⁽ˡ⁻¹⁾ + b⁽ˡ⁾)

Here l is the index of a hidden layer, and h⁽ˡ⁾ is the vector it produces. The preceding vector is h⁽ˡ⁻¹⁾, with h⁽⁰⁾ denoting the concatenated inputs when the preceding representation is the original context. W⁽ˡ⁾ is the layer's weight matrix, which combines the entries of the preceding vector, and b⁽ˡ⁾ is its bias vector, added to the result. The superscripts identify layers. The function f is applied to the entries of the resulting vector and supplies the nonlinearity. The final hidden layer is indexed by n, the network depth.

The authors use the rectified linear function for f. It preserves positive input values and sets negative ones to zero. This makes the transformation depend on which hidden units receive positive input. Each layer can then use the resulting activations as input for another transformation. If the layers consisted entirely of affine transformations, stacking them would still produce an affine transformation. The nonlinearity is what allows the stack to express a more complicated dependence on the same context. The authors report that rectification worked better for them than the hyperbolic tangent, which they discuss as an alternative.

f(x) = max{0, x}

x is the scalar input to a hidden unit after weighting and adding its bias. f(x) is the unit's output. max chooses the larger of the constant 0 and x. Braces enclose those alternatives.

The final hidden representation has to be translated into a set of scores, one for each possible next word. The output layer accomplishes this with a matrix multiplication and an additional bias. A word's score depends on its output weights, the values in the last hidden representation, and its output bias. It can therefore respond to cues assembled across successive layers.

s = W⁽ˢᵐ⁾h⁽ⁿ⁾ + b⁽ˢᵐ⁾

s is the vector of output scores. h⁽ⁿ⁾ is the representation produced by hidden layer n, the last one. The superscript sm identifies the softmax output layer. W⁽ˢᵐ⁾ is its weight matrix, and b⁽ˢᵐ⁾ is its bias vector. An entry of s is a raw score for one output vocabulary item.

A raw score can be positive or negative and carries no direct interpretation as a probability. The softmax converts the scores to probabilities by exponentiating them and dividing by the sum of the exponentials. A word's probability depends on its score relative to those of other words in the same context. The paper's softmax equation and its discussion of self-normalization use the same sum. Writing that quantity explicitly makes the training procedure easier to follow.

Z꜀ = ∑ᵤ∈ⱽ exp(sᵤ)

Z꜀ denotes the normalization factor for context c. The summation ranges over u, a word in the output vocabulary V. sᵤ is the score assigned to u in context c, and exp is the exponential function. The notation leaves the dependence of sᵤ on c implicit.

p(w | c) = exp(sʷ) / Z꜀

p(w | c) is the probability of target word w given context c. sʷ denotes the entry of the score vector for w, with the superscript serving as a word index. exp(sʷ) gives its contribution to the normalizer, and / denotes division by the full sum Z꜀. The vertical bar marks the conditioning relation. Since the same denominator is used for all words in this context, the resulting probabilities sum to one.

Using conditional probabilities brings competition among output words into training. For the observed word to gain probability, its score has to improve relative to the other scores for that example. A uniform increase in all the raw scores leaves the normalized probabilities unchanged. That observation also explains the separate purpose of the self-normalization penalty. The usual probability objective specifies how scores should compare within a context. The penalty constrains their common scale across contexts, which matters when scores from different word positions and different candidates are later combined.

Training for accurate and inexpensive scores

The starting objective is cross-entropy, written in the paper as the sum of the negative log probabilities of the observed target words. Assigning a small probability to an observed word gives a large training cost. Assigning it a higher probability reduces the cost. The dataset supplies the correct next word for each training context, which allows the cost to guide updates to the embeddings and to the hidden and output weights.

∑₍꜀, ʷ₎∈ᵀ [−log p(w | c)]

T is the collection of training examples, with each example written as a pair of context c and observed next word w. The summation adds the bracketed cost for those pairs. p(w | c) is the probability assigned to the observed word, log denotes the natural logarithm, and the minus sign converts the log probability into a loss. Minimizing this sum is equivalent to maximizing the likelihood assigned to the observed words across the training examples.

The authors add a term that penalizes the squared log of the normalizer. The log is zero when the normalizer is one. Penalizing its square therefore discourages departures in either direction. The authors refer to the resulting procedure as self-normalization. It encourages the output score of a word to approximate its log probability, because the correction that would ordinarily be applied to the raw score becomes small when the log normalizer is small.

J = ∑₍꜀, ʷ₎∈ᵀ [−log p(w | c) + α(log Z꜀)²]

J is the training objective. T, c, w, p, and log have the same meanings as in the cross-entropy expression. Z꜀ is the softmax normalizer for context c. The exponent ² squares its logarithm, and α weights this penalty relative to the word prediction loss. The experiments use α = 0.1.

This objective leaves normalization in the training computation. The loss depends on the probability of the correct word and on the normalizer itself, so both require the vocabulary-wide sum. The authors use the standard softmax and carry out the large matrix multiplications on a GPU. The expected saving is at application time. Once a network has been trained, the reranker can use a word's raw score and omit the full sum. The paper checks the quality of that approximation separately from the quality of the normalized word probabilities.

Training uses stochastic gradient descent on mini-batches of size 128. A mini-batch groups training examples for one update, and the training cost is normalized by the mini-batch size. The initial learning rate is 0.1. All weights are drawn uniformly from the interval [−0.01, 0.01] at initialization. The general training phase lasts four epochs. Once two epochs have elapsed, the learning rate drops by half every 0.5 epoch. This gives the later part of training smaller steps, a choice the authors found helpful for the deeper networks. They use bias terms in every hidden layer and in the softmax output layer.

The authors train without gradient clipping and report that learning was more stable after removing sentences of length 2 or less. These choices belong to the training recipe alongside rectified activations and the learning-rate schedule. The depth experiment uses that recipe to make comparisons among networks trainable under a common setup. The paper also makes the implementation and related materials available. On a Tesla K40, its measured training throughput is approximately 1000 target words a second, and it reports that a single network typically takes 10–14 days to train.

From word predictions to a translated sentence

Reranking starts once the phrase-based decoder has generated its 1000-best output for the source. This list contains candidates from the decoder's own search and reflects its original feature weights. The reranker scores these candidates again using the neural word predictions along with information from the decoder. Each candidate supplies a target history at each English position, and its source correspondence supplies the window for that position. The network applies the same word scorer across positions. Those local evaluations contribute to the candidate's neural feature.

The translation system is built with Phrasal. Its decoder uses dense features such as forward and backward translation scores, lexical weighting, a distortion feature for reordering, penalties for words and phrases, and language-model scores. Rules, pairs of words, and word classes are also represented using sparse features. The distinction matters when the system enters the reranking stage. The aggregate decoder score carries information from the original feature combination. By including individual dense features as well, the reranker can give them different weights when the neural score enters the decision. Phrasal, An Empirical Comparison of Features and Tuning for Phrase-based Machine Translation

The decoder has three language-scoring components before the new neural score is added. One learns from the English side of the parallel training text. Another learns from a cross-domain monolingual corpus of 16.3 billion words. A class-based component uses the same large monolingual corpus. These resources give the baseline substantial evidence about English word sequences. The new score has to help in combination with them, and it brings its own conditioning on the Chinese input. The baseline comparison consequently tests the practical value of adding a source-conditioned neural feature to an established system. The comparison across depths then asks how much that value depends on the hidden stack.

For the web-forum decoder, the authors use a tuning set of 396K words drawn from newswire and web text. They tune decoder weights with online expected error rate training. The scoring criterion combines BLEU and TER, orienting them so that better translation increases the criterion. Scaling the difference leaves the direction of preference intact.

(BLEU − TER) / 2

BLEU is the reference-overlap score, for which higher values are preferred. TER is translation edit rate, for which lower values are preferred. The minus sign gives a fall in TER the same direction of effect as a rise in BLEU. The constant 2 scales the difference.

The discriminative reranker uses minimum error rate training on a separate tuning set of 33K web-forum words. In its full configuration it uses the dense decoder features, the aggregate decoder score, and the neural score. The separate tuning set lets the authors fit the new combination on data distinct from the text used to choose the original decoder weights. They describe this separation as a way to reduce the reranker's bias toward the dense features. The reranker adjusts their contribution to the final choice from the available candidates.

Adapting the scorer to SMS chat

The SMS experiment begins from networks trained on the general parallel corpus. The authors continue training these networks on parallel SMS-chat text. The additional training lets the previously learned representations and scores adjust to the prediction patterns in another domain. The paper gives a duration of about 4 hours for this stage and reports 8 iterations using the same hyper-parameters. Starting with the general network preserves a source of information from the much larger initial corpus while giving the adaptation data a direct effect on the network weights.

Domain adaptation also reaches the phrase-based system. The SMS decoder weights are tuned on 260K words covering newswire, web, and SMS chat. A separate set of 8K words is reserved for tuning the reranker. These stages give the study a domain-adapted baseline and a domain-adapted neural scoring feature. The network's adaptation data teach it to predict words in chat contexts. The reranker tuning data teach the system how to weigh those predictions alongside its other scores. The experiment measures the resulting translation choices on the SMS splits.

Experiments and results

Data and measures

The general training resource is Chinese–English parallel text from the Broad Operational Language Translation program, or BOLT. It contains 11.1M parallel sentences, with 281M Chinese words and 307M English words. The authors reserve 585 sentences for validation and 1124 sentences for testing the word predictor. They identify the latter set as p1r6 dev. Though the release name contains dev, the paper uses it as a test set. The separate web-forum reranker tuning set is dev10wb dev. The other web-forum translation test set is dev10wb syscomtune.

The evaluation distinguishes three questions. Perplexity asks how well the network predicts the observed English words given their contexts. The absolute log normalizer asks how close the raw scores come to being usable as log probabilities without adjustment. TER and BLEU ask whether the selected translations score better against references. The measurements operate at different stages. A vocabulary-normalized probability is available for an observed word even in a sentence for which no candidate list is used. A translation score reflects the candidate finally selected by the decoder or reranker.

Perplexity is derived from cross-entropy and increases when the observed words receive lower probabilities. The authors explicitly calculate softmax normalizers when measuring perplexity, so the evaluation compares actual normalized probabilities for every depth. This matters because the objective encourages approximate normalization. Treating the raw score as exact at evaluation time would mix the quality of the probability distribution with error due to the approximation. The reported perplexities measure the probability distributions, while the separate normalization statistic measures that approximation.

TER captures how much editing would bring a system output into agreement with a reference. A lower score favors output that needs less editing. BLEU captures overlap between the candidate and reference word sequences, and higher scores are preferred. Because these measures reward different aspects of agreement, the results report them side by side. An improvement in one measure can coexist with a weak or contrary change in the other, as the SMS development results illustrate.

Prediction and normalization on BOLT

The intrinsic comparison spans networks with 1, 2, 3, and 4 hidden layers. BOLT validation perplexity is 9.39, 9.20, 8.64, and 8.10 in that order. The test results follow the same ordering, with the first two settings much closer to each other on test than either is to the deeper settings. The result is visible on both held-out splits. The deeper predictor assigns more probability to the observed target sequences under the context and vocabulary rules shared by the comparison.

Test perplexity by hidden-layer depth on BOLT p1r6 dev

Test perplexity decreases with depth, with the shallow settings close together.

Test perplexity by hidden-layer depth on BOLT p1r6 dev1 hidden layer: 8.991 hidden layer8.992 hidden layers: 8.962 hidden layers8.963 hidden layers: 8.133 hidden layers8.134 hidden layers (this paper): 7.714 hidden layers (this paper)7.71
The numbers
System or settingperplexity
1 hidden layer8.99
2 hidden layers8.96
3 hidden layers8.13
4 hidden layers (this paper)7.71

The normalization diagnostic also improves as depth increases. The mean absolute natural log of the normalizer is 0.51 with 1 layer, 0.50 with 2, 0.43 with 3, and 0.35 with 4. Taking the absolute value makes this statistic sensitive to departures on either side of the desired value. A log normalizer above zero and one below zero each contribute a positive amount. A lower average means the scores generally require a smaller normalization correction. It leaves room for some contexts to require a larger correction than others.

For perspective, the authors mention that Devlin and colleagues report 0.68 for the same kind of statistic with α = 0.1 on a different test set. They explicitly describe that result as a reference point. The comparisons inside the BOLT experiment are the ones that hold the evaluation data fixed and thus give direct evidence about the relationship between depth and this diagnostic. Fast and Robust Neural Network Joint Models for Statistical Machine Translation

Translation of web-forum text

The web-forum baseline is the phrase-based system with its existing dense and sparse features and its three language-scoring components. The neural systems rerank candidates from that baseline. Comparing the baseline against the single-layer reranker shows what adding the shallow neural score and the reranking procedure can achieve. Comparing the rerankers against one another narrows the question to depth under the shared method. The paper uses both comparisons when describing the translation gains.

On the web-forum development set dev10wb dev, the baseline scores 53.7 TER and 33.1 BLEU. With 1 layer the scores are 52.9 TER and 34.3 BLEU, and with 2 layers they are 52.7 TER and 34.1 BLEU. The 3-layer configuration gives 52.5 TER and 34.5 BLEU. With 4 layers the scores are 52.6 TER and 34.7 BLEU. The minimum TER and maximum BLEU occur at different depths on this split. The development data were used for fitting the reranker weights, so the test splits supply the held-out comparison for translation.

On the first test set, dev10wb syscomtune, both metrics favor the 4-layer reranker among the reported configurations. The baseline BLEU is 31.3. The rerankers with 1, 2, 3, and 4 layers give 32.0, 31.9, 32.3, and 32.4 BLEU respectively. The TER comparison is below. In particular, the 2-layer reranker improves TER over the 1-layer reranker while losing a little BLEU. The deeper settings improve both scores relative to the shallow reference on this test set.

Web-forum translation TER on the dev10wb syscomtune test set

Reranking improves on the decoder baseline, and the deepest scorer gives the lowest edit rate.

Web-forum translation TER on the dev10wb syscomtune test setPhrase-based baseline: 55.1Phrase-based baseline55.1Reranking with 1 hidden layer: 54.5Reranking with 1 hidden layer54.5Reranking with 2 hidden layers: 54.3Reranking with 2 hidden layers54.3Reranking with 3 hidden layers: 54.3Reranking with 3 hidden layers54.3Reranking with 4 hidden layers (this paper): 54.1Reranking with 4 hidden layers (thispaper)54.1
The numbers
System or settingTER
Phrase-based baseline55.1
Reranking with 1 hidden layer54.5
Reranking with 2 hidden layers54.3
Reranking with 3 hidden layers54.3
Reranking with 4 hidden layers (this paper)54.1

On the second test set, p1r6 dev, the phrase-based baseline scores 63.5 TER and 16.5 BLEU. The 1-layer reranker produces 63.1 TER and 16.7 BLEU. The 2-layer reranker produces 63.0 TER and 16.8 BLEU. The 3-layer reranker improves these results to 62.5 TER and 17.3 BLEU. With 4 layers, the result is 62.7 TER and 17.2 BLEU. Here both measures favor 3 layers. This is also the split on which depth gives the best intrinsic perplexity to the 4-layer network. Reading the two evaluations together shows that lower perplexity accompanies the broader improvement from shallow to deep scoring, while the final choice between the deepest settings can depend on the translation metric and split.

The authors report average web-forum gains of 1.0 TER and 1.0 BLEU points over the baseline, and of 0.5 TER and 0.5 BLEU points over reranking with a single layer. Their significance markers refer to comparisons of the best result with the relevant baseline or shallow reranker. They report statistical significance at p < 0.05 for the marked web-forum improvements using the testing approach they attribute to Riezler and Maxwell. These comparisons answer whether the best deeper settings make a detectable difference under the translation evaluation. They give less direct evidence about the size of the separation between the deeper settings themselves. On Some Pitfalls in Automatic Evaluation and Significance Testing for MT

Translation after adaptation to chat

The SMS-chat corpus has 146K sentence pairs, comprising 1.6M Chinese words and 1.9M English words. To evaluate the word predictors, the authors draw 3000 sentences at random for validation and another 3000 at random for testing. The translation evaluation uses p2r2smscht dev for development and p2r2smscht syscomtune for testing. The paper reports adapted prediction results alongside translation scores, with the former evaluating the network and the latter evaluating the full selection system.

Adapted test perplexity is 5.42 for the 1-layer network, 5.50 for the 2-layer network, and 5.34 for the 3-layer network. Their corresponding mean absolute log normalization statistics are 0.51, 0.51, and 0.43. The 3-layer network offers a modest perplexity improvement over the 1-layer version in this domain, and the 2-layer network is weaker on that measure. The differences concern the adapted versions. The prediction tasks and material for the general BOLT and adapted SMS results differ.

On p2r2smscht dev, the domain-adapted baseline scores 62.2 TER and 18.7 BLEU. With the 1-layer reranker, those scores reach 60.1 TER and 22.0 BLEU. The 2-layer reranker gives 60.7 TER and 21.5 BLEU, and the 3-layer reranker gives 59.9 TER and 21.4 BLEU. The 3-layer scorer therefore achieves the lowest edit rate on development, while the single layer achieves the strongest BLEU. The paper reports the best development results as gains of +2.3 TER and +3.3 BLEU over the baseline, with each gain coming from the best configuration on its own metric.

On p2r2smscht syscomtune, the baseline scores 57.3 TER and 23.3 BLEU. With 1 hidden layer the reranker scores 56.2 TER and 25.9 BLEU. The 2-layer version gives 56.3 TER and 26.0 BLEU. The 3-layer version gives 55.2 TER and 26.4 BLEU and leads the test comparison on both measures.

SMS-chat translation TER on the p2r2smscht syscomtune test set

The adapted scorer with the deepest reported setting gives the lowest test edit rate.

SMS-chat translation TER on the p2r2smscht syscomtune test setDomain-adapted phrase-based baseline: 57.3Domain-adapted phrase-based baseline57.3Reranking with 1 hidden layer: 56.2Reranking with 1 hidden layer56.2Reranking with 2 hidden layers: 56.3Reranking with 2 hidden layers56.3Reranking with 3 hidden layers (this paper): 55.2Reranking with 3 hidden layers (thispaper)55.2
The numbers
System or settingTER
Domain-adapted phrase-based baseline57.3
Reranking with 1 hidden layer56.2
Reranking with 2 hidden layers56.3
Reranking with 3 hidden layers (this paper)55.2

The authors report test gains of +2.1 TER and +3.1 BLEU for the 3-layer reranker over the domain-adapted baseline, both marked significant at p < 0.01. Against the 1-layer reranker, the reported gains are +1.0 TER and +0.5 BLEU. Only the TER improvement has the significance marker in that comparison. That distinction assigns the evidence to the right part of the system. The adapted reranker improves both metrics over the baseline, while the gain attributable to using the deeper of the reported scorers is clearest in TER.

What the ablations show

The effect of depth under a common recipe

The depth comparison keeps the source window, target history, vocabulary, embedding size, hidden-layer width, and training procedure common across settings. Within this design, the single-layer and two-layer networks are the shallow controls. They represent the range the authors describe as typical of earlier work. Their closeness in BOLT test perplexity and their mixed web-forum translation results support the authors' concern that a comparison restricted to shallow depths can give an incomplete picture. The settings beyond that range perform better on both kinds of evaluation.

This is a controlled test of adding layers at fixed width. Adding those layers also increases the number of trainable parameters and transformations. Accordingly, the result supports the effectiveness of the tested architectural change as a whole. It leaves open how a wider shallow network with a comparable parameter count would perform. For the practical choice the authors set up, the comparison shows that stacking additional layers can make the joint source–target scorer more useful. For a claim about depth in isolation from capacity, the experiment would need a comparison that independently varied those properties.

Development and test results also clarify the shape of the effect. On BOLT, the intrinsic scores improve monotonically across the tested depth range. On web-forum translation, the advantage of the deeper group is clearer than the ordering within that group. In dev10wb dev, the best TER and BLEU belong to different depths. In dev10wb syscomtune, both favor the 4-layer system. In p1r6 dev, both favor the 3-layer system. That pattern is compatible with the network becoming a better word predictor while the translation decision remains subject to the competing features and to the candidates available for each sentence.

What happens during training

The learning curves plot test cross-entropy, which the paper describes as the natural log of perplexity, against the number of mini-batches processed. The curves give a view of the prediction comparison while the networks are still being trained. The paper reports that beginning at mini-batch 20K, deeper networks generally maintain the better cross-entropies. The curves become harder to distinguish from mini-batch 30K onward. The authors still report average gaps in perplexity, listing them as 40.1, 1.1, and 2.0 as depth increases.

The curves add evidence of persistence. If an endpoint were the entire comparison, a reader would know only which setting finished with the lower perplexity under the chosen schedule. The curves show that the typical depth ordering appears earlier and is generally maintained through the reported part of training. They give no estimate of how the ordering would change under a different schedule or after independently choosing the amount of training for each setting. Similarly, the authors' observations about rectification, short-sentence removal, and learning rates help explain how they arrived at the recipe. The paper gives no isolated result for these choices within the reported depth comparison.

The mean absolute log normalizer follows a similar depth ordering in the general experiment. That is evidence that the deeper networks satisfy the normalization penalty more closely while improving their word predictions. The two outcomes could in principle have pulled in different directions, since the training objective asks a network both to put more probability on the observed word and to keep the sum of exponentiated scores near one. The observed joint improvement describes how the settings behaved at the shared penalty weight. A comparison across different penalty weights would address how sensitive either outcome is to that choice.

Which decoder features matter in reranking

The feature analysis changes the information available to the reranker while retaining the aggregate decoder score and the neural score in every setting. The full version gives it all the dense features individually. A reduced version gives it the dense language-model features and a separate word penalty. The most restricted version gives it the dense language-model features alone, alongside the two scores shared by every condition. The comparison tests how much the reranker benefits from reweighting particular decoder signals after the neural feature has been added.

For this analysis, the paper presents the combined criterion in the direction where a lower score is better. The criterion has the same two ingredients used in tuning, with the subtraction reversed.

(TER − BLEU) / 2

TER is translation edit rate, and BLEU is the reference-overlap score. Subtracting BLEU from TER makes either a higher BLEU or a lower TER reduce the combined score. The denominator 2 scales that score.

Using all dense features gives combined web-forum reranking scores of 11.3, 11.2, 11.0, and 10.9 for depths 1 through 4. Using the dense language features and a word penalty gives 11.3, 11.4, 11.1, and 11.2. The corresponding scores with just the dense language features are 11.4, 11.5, 11.4, and 11.3. The full feature set matches the best reduced setting at depth 1 and has the lowest score at the other reported depths. The full set with 4 layers gives the lowest score in the comparison.

The aggregate decoder score is important to interpreting this analysis. Even the most restricted reranker has access to the decoder's original assessment. Giving the reranker every dense feature individually also allows it to change the relative emphasis of those features. The result supports preserving that flexibility when adding the neural score. It offers little basis for assigning the improvement to a particular translation or lexical feature because the full condition adds them as a group. The word penalty gets a more isolated comparison. Giving it a separate weight improves the combined score relative to using the dense language features alone at each reported depth, although the full combination still does at least as well.

How adaptation changes the comparison

The SMS results show that the improvements associated with depth depend on the domain, the depth range, and the evaluation. The 3-layer adapted scorer has the best test perplexity among the reported SMS settings. It improves test TER over the 1-layer scorer with statistical significance. The test BLEU difference lacks that support, and the development BLEU favors the single layer. The authors connect this reduced consistency to the relatively small amount of adaptation data. They exclude the 4-layer version because it appears to have overfit.

The study's broad claim about the relationship between perplexity and translation quality is most persuasive at the level of the general shallow-versus-deep comparison. There, the word predictor improves on held-out text and the resulting rereanking improves translation. The individual rankings give a more qualified picture. On p1r6 dev, the network with the best perplexity differs from the one with the best translation scores. In SMS chat, the depth preferred by BLEU changes between development and test. Normalized word prediction gives the reranker a useful signal. Its value for the final output also depends on the feature weights and on which choices the candidate list presents.

Limitations

Limits the authors identify

The authors' main qualification concerns SMS adaptation. They say the smaller amount of adaptation material makes additional depth less effective, citing the inconclusive BLEU improvement on test and the drop in development BLEU from the single-layer to the 3-layer scorer. The adaptability result is therefore strongest as evidence for the combination of fine-tuning and reranking in this setting, with a further depth benefit supported by test TER. Their explanation in terms of data size is consistent with the observations. An experiment that varied the amount of SMS training data would be needed to establish how that relationship changes with corpus size.

The authors also report that the 4-layer network appeared to overfit in SMS adaptation and omit it from the translation comparison. The general training result for that depth is available, but the SMS tables stop at 3 layers. This constrains the comparison across domains. The paper shows an advantage for a reported deep configuration in chat and gives the authors' reason for excluding the deepest setting. The size of the omitted setting's train-to-test gap and the point at which its adaptation began to overfit are left unspecified.

For normalization, the authors acknowledge that use of the full softmax keeps training expensive. Self-normalization makes efficient application possible when the network is trained, and the normalization statistic characterizes how close the raw scores are to a convenient scale. The development and test perplexities still require explicit normalization. The paper also calls out the data difference when mentioning another study's normalization result. This is a useful limit for interpreting the metric, since the typical correction depends on which contexts the scorer is given.

Limits of the experimental design

The translation evidence comes from reranking a fixed list of phrase-based candidates. Increasing the quality of the score can help when the decoder has already generated a better candidate and placed it among those returned. The reranker can choose that candidate with a new set of weights. Search errors that prevent a better translation from reaching the list are outside this experiment's reach. The authors discuss past work in which neural scores were used during decoding, but the results here establish the value of depth at the later selection stage. The effect of moving the same scorer into search remains open.

The inputs are local and alignment-dependent. A larger hidden stack changes how the available words interact, while the same source window and target history bound the information entering the network. Direct access to distant source material, a longer English history, or information outside the sentence falls beyond the tested architecture. The experiments offer no separate evaluation of how the neural score behaves under better or worse alignments. A successful result with the chosen heuristic establishes that its source windows can support better decisions in this system, leaving the contribution of alignment quality to be measured separately.

The experiment fixes hidden-layer width and grows the network by adding layers. The results therefore combine depth with a change in parameter count and computation. They also reflect a common schedule, common activation, and common self-normalization weight. Independent comparisons at matched capacity or training cost would be needed to identify which of those dimensions explains the most improvement. The reported training time and throughput give a sense of the expense of the recipe. They leave unanswered how much the training and reranking costs vary by depth or how large the runtime saving from approximate scoring is for the full translation system.

The normalization statistic is an average absolute log correction. It says how close to self-normalizing a network is on average. It leaves the distribution of corrections across contexts unspecified. A small average can coexist with particular contexts that require a substantial correction, and a candidate's ordering might depend on such contexts. A translation comparison between raw-score reranking and fully normalized reranking would directly measure that consequence. The paper evaluates the intrinsic probabilities with full normalization and reports the raw-score diagnostic separately, so the connection between that diagnostic and specific decisions remains unmeasured.

The language pair, direction, domains, and baseline define the empirical scope. Both translation studies use Chinese source text and English output, with web forums and SMS chat providing different conditions for the same general method. The frequency-limited vocabularies also mean the scorer treats excluded forms through the unknown symbol. These choices leave questions about transfer to other language pairs, other domain shifts, other vocabularies, and other translation architectures. They also matter when reading the magnitude of the gains, because the baseline's features and search determine what new evidence the reranker can exploit.

Finally, the translation analysis relies on aggregate automatic scores and their significance tests. The scores show that the selected outputs tend to agree better with the references under the reported conditions. The paper leaves the individual changes in the translations unclassified. It does not show which errors in word choice, phrasing, or ordering account for the gains, or how consistently the gains are distributed across sentences. The strongest conclusion concerns candidate selection as evaluated by TER and BLEU, together with improved held-out word prediction. A more detailed account of the linguistic decisions responsible for that result would require additional evidence.

What came after

The subsequent use of this specific reranking method is undocumented here. The related work the authors discuss belongs to the research context in which they designed the study. It includes systems that learn alignment as part of translation, approaches to using a very large target vocabulary, and methods for addressing rare words. Those papers establish that vocabulary coverage, alignment, and the construction of a translation were active questions alongside the study of reranker depth. Their relationship in this paper is that of contemporaneous research on different parts of the translation problem. Neural Machine Translation by Jointly Learning to Align and Translate, On Using Very Large Target Vocabulary for Neural Machine Translation, Addressing the Rare Word Problem in Neural Machine Translation

The paper itself connects its result most directly to the earlier observation in the rare-word study that better source-conditioned perplexity accompanies better translation scores. It adds evidence for that relationship within a candidate reranker, where a phrase-based decoder holds the search space fixed and the scoring depth varies. The web-forum results support the connection across shallow and deep settings, while the SMS comparison shows where the choice of metric affects the strength of the evidence. That is the extent of the documented connection between this experiment and the other work it discusses. Addressing the Rare Word Problem in Neural Machine Translation

Cite

Cite as Thang Luong, Michael Kayser and Christopher D. Manning. 2015. Deep Neural Language Models for Machine Translation. Proceedings of the Nineteenth Conference on Computational Natural Language Learning.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/k15-1031

@inproceedings{luong2015deep,
  title = {{Deep Neural Language Models for Machine Translation}},
  author = {Thang Luong, Michael Kayser and Christopher D. Manning},
  booktitle = {Proceedings of the Nineteenth Conference on Computational Natural Language Learning},
  year = {2015},
  doi = {10.18653/v1/k15-1031},
  url = {https://doi.org/10.18653/v1/k15-1031}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/luong-2015-deep-neural-language-models-machine/