The Best of Both Worlds: Combining Recent Advances in Neural Machine Translation

Mia Xu Chen, Orhan Firat, Ankur Bapna, Melvin Johnson, Wolfgang Macherey, George Foster, Llion Jones, Mike Schuster, Noam Shazeer, Niki Parmar, Ashish Vaswani, Jakob Uszkoreit, Lukasz Kaiser, Zhifeng Chen, Yonghui Wu, Macduff Hughes

Abstract

The past year has witnessed rapid advances in sequence-to-sequence (seq2seq) modeling for Machine Translation (MT). The classic RNN-based approaches to MT were first out-performed by the convolutional seq2seq model, which was then out-performed by the more recent Transformer model. Each of these new approaches consists of a fundamental architecture accompanied by a set of modeling and training techniques that are in principle applicable to other seq2seq architectures. In this paper, we tease apart the new architectures and their accompanying techniques in two ways. First, we identify several key modeling and training techniques, and apply them to the RNN architecture, yielding a new RNMT+ model that outperforms all of the three fundamental architectures on the benchmark WMT'14 English to French and English to German tasks. Second, we analyze the properties of each fundamental seq2seq architecture and devise new hybrid architectures intended to combine their strengths. Our hybrid models obtain further improvements, outperforming the RNMT+ model on both benchmark datasets.

Introduction: The "Confounding Variable" of NMT Progress

In the mid-2010s, Neural Machine Translation (NMT) evolved at a breakneck pace. The field transitioned from Recurrent Neural Networks (RNNs) to Convolutional models (ConvS2S) and finally to the self-attention-based Transformer in just a few years. However, each new architecture arrived as part of a package deal—a "bag of tricks" including specific optimization schedules, regularization techniques, and architectural tweaks like layer normalization.

This rapid progression created a scientific confounding variable: were the performance gains driven by the fundamental architectures themselves, or simply by the improved training recipes? Furthermore, while Transformers offered significant training speed advantages, researchers questioned whether the inherent strengths of RNNs—such as their stateful memory and infinite receptive field—were being prematurely abandoned. This research seeks to isolate these factors and identify the optimal combination of architecture and technique.

RNMT+: Modernizing the Recurrent Architecture

To establish a fair baseline, the researchers developed RNMT+, an upgraded version of the standard Google NMT (GNMT) architecture. By injecting the RNN with modern techniques typically associated with the Transformer, they demonstrated that the recurrent approach is far from obsolete.

The RNMT+ architecture, featuring a bidirectional LSTM encoder and a unidirectional LSTM decoder enhanced with multi-head attention and layer normalization.

Key enhancements in RNMT+ include:

  • Architecture: A deep stack of 6 bidirectional LSTM layers in the encoder and 8 unidirectional layers in the decoder.
  • Multi-head Attention: Replacing standard single-head attention with multi-head additive attention to allow the model to focus on different parts of the source sequence simultaneously.
  • Regularization and Optimization: Implementation of layer normalization within each LSTM cell, heavy use of label smoothing and dropout, and a custom "warmup-then-decay" learning rate schedule using the Adam optimizer.

Hybrid Architectures: Combining Strengths

Beyond upgrading the RNN, the study explored hybrid models designed to leverage the complementary strengths of different architectures. The researchers found that Transformers are exceptionally efficient at encoding (extracting rich, global features from the source), while RNNs excel at decoding (generating the target sentence while maintaining a consistent internal state of the translation history).

Two primary hybrid strategies were explored:

  1. Encoder-Decoder Hybrids: Pairing a Transformer encoder with an RNMT+ decoder.
  2. Advanced Encoder Structures: Designing encoders that utilize both Transformer and RNN layers to capture both local and global dependencies.
Hybrid encoder designs: (a) the Cascaded Encoder, which stacks Transformer layers on top of RNN layers, and (b) the Multi-Column Encoder, which processes the source sequence through both architectures in parallel.

Key Results and Insights

The experimental results on WMT’14 benchmarks (English→French and English→German) revealed that the "bag of tricks" is largely architecture-agnostic. When properly tuned, RNMT+ outperformed the original "Transformer Big" model on both datasets, achieving 41.00 BLEU on En→Fr compared to the Transformer's 40.73.

However, the hybrid approach proved superior to any single architecture. The Transformer Encoder + RNMT+ Decoder hybrid set a new state-of-the-art performance with 41.12 BLEU on En→Fr and 28.84 BLEU on En→De. While RNMT+ remains slower to train due to the sequential nature of LSTMs, it demonstrated greater stability in BLEU scores during training compared to the often-volatile Transformer Big.

Conclusion

This research demonstrates that the choice of architecture and the choice of training techniques are distinct levers for performance. By modernizing the RNN and subsequently merging it with Transformer components, we can achieve the "best of both worlds." These findings suggest that the future of NMT may lie in hybrid models that strategically deploy different architectural paradigms where they are most effective.

Summary updated

BibTeX
@inproceedings{chen2018best,
  author = {Mia Xu Chen and Orhan Firat and Ankur Bapna and Melvin Johnson and Wolfgang Macherey and George Foster and Llion Jones and Mike Schuster and Noam Shazeer and Niki Parmar and Ashish Vaswani and Jakob Uszkoreit and Lukasz Kaiser and Zhifeng Chen and Yonghui Wu and Macduff Hughes},
  title = {{The Best of Both Worlds: Combining Recent Advances in Neural Machine Translation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2018},
  url = {https://openreview.net/forum?id=HkbWXal_bH},
}
Figure