Paper commentary
Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation
GNMT uses wordpieces and low-precision inference to translate faster
- Problem Neural machine translation has potential but is computationally expensive to train and run. Most NMT systems also struggle with rare words, which limits practical deployment.
- Method GNMT is a deep 8-layer LSTM encoder-decoder with residual connections. It splits words into wordpieces and runs inference with 8-bit integer arithmetic.
- Results On a human side-by-side test, GNMT cut translation errors by 60% compared to the phrase-based production system.
Why NMT stalled in production
Neural machine translation learns the mapping from source text to target text end to end, which avoids many brittle design choices of phrase-based systems. Training on a large dataset takes a long time and a lot of compute, which slows the experiment cycle. At inference, the large number of parameters makes NMT generally slower than phrase-based decoding.
Rare words are a second weakness, because copy models and attention-based copying depend on alignments that are unreliable at scale. Output can also skip parts of the source sentence, which produces surprising translations. These gaps matter because the system must serve live traffic, where accuracy and speed both count.
A deep LSTM stack with residual links
The core idea is to make the encoder and decoder deep, and to add residual links so that the extra layers still train. In the authors' experience, plain LSTM stacks worked well up to 4 layers, barely at 6, and very poorly beyond 8. A residual link adds the input of a layer to its output before the next layer reads it, which improves gradient flow in the backward pass.
GNMT uses 8 LSTM layers, and the authors expect residual connections could train substantially deeper networks.
Only the bottom encoder layer is bi-directional, because bi-directional layers higher up would make each layer wait for both directions below it. The attention takes the bottom decoder layer's output and attends to the top encoder layer, so the remaining decoder layers keep their parallelism. Aligning the top decoder layer instead would, in the authors' view, remove that parallelism.
For rare words, GNMT breaks words into wordpieces, so 'Jet' becomes '_J' and 'et'. A single shared wordpiece model covers both languages, so an identical string segments the same way on each side, which helps the model copy names and numbers. The vocabulary is kept between 8k and 32k wordpieces, which gave good BLEU and fast decoding across the language pairs tried.
Refining with a sentence-level reward
Maximum-likelihood training never sees the model's own mistakes and doesn't optimize the BLEU reward directly. The authors therefore refine a converged model with an expected reward, where the per-sentence reward is the GLEU score.
The mean reward over 15 sampled outputs is subtracted from each reward to stabilize training. \[ O_{Mixed}(\theta)=\alpha\, O_{ML}(\theta)+O_{RL}(\theta) \] Refinement runs until development BLEU stops improving, and the authors describe it as optional.
Quantized inference and its speed
During training the model keeps full-precision floats, but the RNN accumulators are clipped to a range of minus delta to delta and the softmax logits to minus gamma to gamma. At inference the weight matrices are rounded to 8-bit integers, and the accumulators are held in 16-bit integers.
TPU decoding lost 0.0072 in log perplexity, which the authors say matches earlier findings on quantized convolutional networks. Decoding on CPU was 2.3 times faster than on GPU, which the authors attribute partly to host-GPU transfer during beam search. Decoding on TPU was 3.4 times faster than on CPU.
Quantization-aware training reached a log perplexity slightly below normal training, and the authors conjecture the clipping acts as regularization. Training with Adam first and then SGD also matters for the same ML stage, since Adam alone converged to a worse point.
Beam search scoring
The authors rank complete hypotheses by a normalized log probability plus a coverage term. \[ s(Y,X)=\frac{\log P(Y\mid X)}{lp(Y)}+cp(X;Y) \] The length term lp(Y) divides the log probability by (5+|Y|) raised to alpha over (5+1) raised to alpha, and the coverage term sums log of the capped attention mass per source symbol, scaled by beta.
For the ML-only model, alpha and beta at zero gave 30.3 BLEU on the development set. Slightly larger alpha and beta, such as 0.2 and 0.2, raised it to 31.4. With RL refinement, the same parameters move BLEU very little, which fits the idea that refined models already attend to the full source.
WMT and production results
On WMT En to Fr, the WPM-32K single model averaged 38.95 BLEU over 8 models, and its best single run reached 39.37. The word model scored 37.90 and the character model 38.01, so the wordpiece model led on accuracy. On WMT En to De, the WPM-32K model averaged 24.61 BLEU over 8 runs, compared to 23.12 for the word model.
For En to De, the refined model scored 24.60 against 24.67 without refinement, so it slightly hurt test BLEU.
In a four-way human side-by-side test, the reference translations scored 4.82 and the NMT model before RL scored 4.46. The NMT model after RL scored 4.44, and the phrase-based system scored 3.87, so RL barely changed human judgement. On production data, GNMT cut translation errors by 60% compared to the phrase-based system across several language pairs.
Limitations
Only 500 examples were used for the side-by-side test, so small human gains may go undetected. The text calls WPM-32K the fastest model, but Table 4 gives WPM-8K 0.1919 seconds per sentence against 0.2118 for WPM-32K. Table 6 gives 24.67 for the En to De log-likelihood model, while Table 5 gives 24.61 for WPM-32K, so the two tables differ on this result.
Production human evaluation covers English-French, English-Spanish and English-Chinese, without ensembling. Decoding speed was measured on one machine with two Intel Haswell CPUs and one GPU or TPU.
Paper info
- Authors
- Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V. Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, Jeff Klingner, Apurva Shah, Melvin Johnson, Xiaobing Liu, Łukasz Kaiser, Stephan Gouws, Yoshikiyo Kato, Taku Kudo, Hideto Kazawa, Keith Stevens, George Kurian, Nishant Patil, Wei Wang, Cliff Young, Jason Smith, Jason Riesa, Alex Rudnick, Oriol Vinyals, Greg Corrado, Macduff Hughes, Jeffrey Dean
- Venue
- arXiv · Preprint
- First published
- 2016-9-26
- Added
- 2026-11-11
- Updated
- 2016-10-8
- Version
- v2
- arXiv
- 1609.08144
- Category
- cs.CL · cs.AI · cs.LG
- Original paper terms
- arXiv non-exclusive 1.0
- What we show
- Paper info and commentary
AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.
Quote from the paper
Yonghui Wu, Mike Schuster, Zhifeng Chen, Quoc V. Le, Mohammad Norouzi, Wolfgang Macherey, Maxim Krikun, Yuan Cao, Qin Gao, Klaus Macherey, Jeff Klingner, Apurva Shah, Melvin Johnson, Xiaobing Liu, Łukasz Kaiser, Stephan Gouws, Yoshikiyo Kato, Taku Kudo, Hideto Kazawa, Keith Stevens et al. (2016). Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation. arXiv:1609.08144v2. https://arxiv.org/abs/1609.08144v2
BibTeX
@misc{wu2016google,
title = {{Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation}},
author = {Yonghui Wu and Mike Schuster and Zhifeng Chen and Quoc V. Le and Mohammad Norouzi and Wolfgang Macherey and Maxim Krikun and Yuan Cao and Qin Gao and Klaus Macherey and Jeff Klingner and Apurva Shah and Melvin Johnson and Xiaobing Liu and Łukasz Kaiser and Stephan Gouws and Yoshikiyo Kato and Taku Kudo and Hideto Kazawa and Keith Stevens and George Kurian and Nishant Patil and Wei Wang and Cliff Young and Jason Smith and Jason Riesa and Alex Rudnick and Oriol Vinyals and Greg Corrado and Macduff Hughes and Jeffrey Dean},
year = {2016},
eprint = {1609.08144},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/1609.08144v2}
}