Source-linked AI summary

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, Niki Parmar, Mike Schuster, Zhifeng Chen, Yonghui Wu, Macduff Hughes

arXiv:1804.09849v2cs.CLcs.AI

TL;DR

Recent NMT advances combine new architectures with training techniques whose separate contributions are often unclear. The paper transfers these techniques to RNMT, producing RNMT+, and builds hybrid architectures from RNMT+ and Transformer components. RNMT+ surpasses the fundamental architectures on two WMT’14 tasks, while hybrids improve further; the study remains scoped to standard single-language-pair translation.

  • Problem

    Underdocumented training and inference techniques make it unclear how much NMT gains come from new architectures versus associated methods.

  • Method

    The paper evaluates recent modeling and optimization techniques across architectures, applies them to RNMT+, and combines RNMT+ and Transformer components into hybrids.

  • Results

    RNMT+ significantly outperforms the three fundamental architectures on WMT’14 English-to-French and English-to-German tasks, while hybrid models obtain further improvements over RNMT+.

  • Takeaways & Limitations

    Many recent modeling and training techniques are broadly applicable, and combining architectural components can outperform individual model families.

  • Takeaways & Limitations

    The study focuses on a standard single-language-pair translation task, leaving multilingual, finer-grained input/output, transfer, and characteristic-error questions open.

Abstract

from arXiv · show

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.

1 Introduction

Recent NMT progress reflects both new seq2seq architectures and accompanying training techniques whose separate contributions are often unclear. This paper evaluates their transferability, develops RNMT+, and combines architectural components into hybrids that improve benchmark performance.

  • NMT progressed from RNN-based systems to convolutional seq2seq models and then Transformer models, with gains in translation quality and speed.
  • Underdocumented training and inference techniques obscure how much observed improvement comes from architecture versus associated methods.
  • The paper applies recent modeling and optimization techniques to RNMT and develops RNMT+, while enforcing a shared framework, preprocessing, and absence of post-processing for fair comparison.
  • Ablation studies examine multi-head attention, layer normalization, synchronous replica training, and label smoothing, demonstrating that these techniques apply across model architectures.
  • RNMT+ significantly outperforms the fundamental architectures on WMT’14 English-to-French and English-to-German benchmarks.
  • Hybrid architectures combine RNMT+, ConvS2S, and Transformer components and achieve better results than the individual architectures.

2 Background

The paper contrasts recurrent, convolutional, and Transformer seq2seq architectures through their different context, memory, parallelization, and trainability properties. These comparisons motivate the hybrid designs explored later.

  • RNMT: RNMT uses encoder and decoder RNNs coupled by attention, summarizing inputs into vectors and generating outputs one token at a time.
  • RNMT: Successful RNMT systems stack bidirectional or unidirectional LSTMs or GRUs with residual or highway connections; GNMT uses a bidirectional layer followed by seven unidirectional encoder layers.
  • ConvS2S: ConvS2S stacks convolutional layers with GLUs, separate decoder-layer attention, positional embeddings, gradient scaling, and residual connections.
  • Transformer: Transformer removes sequential dependencies for parallelizable training and uses pervasive self-attention to address convolutional models’ limited receptive fields.
  • Transformer: Transformer encoder layers combine self-attention and feed-forward submodules, while decoder layers add cross-attention to encoder outputs.
  • Transformer: Transformer performance depends on normalize→transform→dropout→residual-add ordering and normalization of the final encoder output.
  • Architectural trade-offs: RNNs offer infinite receptive fields but are difficult to train, whereas convolutions capture local context and Transformers lack recurrent memory and therefore require positional information.

3 Experiment Setup

Experiments use standard WMT’14 English-to-French and English-to-German data, shared preprocessing, and consistent evaluation procedures. Results focus on mean converged model performance without checkpoint averaging or ensembles.

  • Data: The datasets contain 36.3M English-to-French and 4.5M English-to-German sentence pairs, encoded as sub-word sequences after Moses tokenization.
  • Data: Each source-target language pair uses a shared vocabulary of 32K sub-word units, with no manual or rule-based post-processing beyond recombining subwords.
  • Evaluation: Models are evaluated on newstest 2014, using newstest 2012 and 2013 for validation.
  • Evaluation: BLEU is computed on tokenized, true-case output, and reported scores are means and standard deviations over a selected post-convergence window of 21 evaluations.
  • Comparison protocol: All architectures share preprocessing and evaluation methodology, while checkpoint averaging and checkpoint ensembles are excluded to assess individual models.

4 RNMT+

RNMT+ combines a deeper bidirectional LSTM encoder, recurrent attention, stabilization techniques, and large-scale synchronous training. On WMT’14 En→Fr and En→De, it matches or exceeds Transformer Big quality while using fewer FLOPs than Transformer Big.

  • Architecture: RNMT+ uses six bidirectional LSTM encoder layers, an eight-layer unidirectional LSTM decoder, residual connections, and projected recurrent attention.Attention context is fed to every decoder LSTM layer and the softmax.
  • Training: The training recipe combines dropout, label smoothing, task-specific weight decay, Adam, a warmup-and-decay learning-rate schedule, synchronous training, and adaptive gradient clipping.The learning rate increases linearly during warmup, remains constant, then decays exponentially before reaching a final floor.
  • Results: On WMT’14 En→Fr, RNMT+ is slightly better than Transformer Big in mean BLEU and has much lower standard deviation, though both require about 5 days to converge.Both models outperform GNMT and ConvS2S by about 2 BLEU points.
  • Results: On WMT’14 En→De, RNMT+ outperforms Transformer Big with an averaged BLEU of 28.49 and converges slightly faster with more stable post-convergence performance.Transformer Base and Big improve over GNMT and ConvS2S by more than 2 and 3 BLEU points, respectively.
  • Efficiency: RNMT+ uses fewer FLOPs than Transformer Big despite comparable parameter counts, while Transformer Base is the fastest model to train.The performance comparison normalizes examples per second by the number of GPUs and assumes source and target lengths of 50 for FLOP estimates.

5 Ablation Experiments

Ablation experiments remove four techniques independently from RNMT+ and Transformer Big to measure their effects on quality and training stability. Label smoothing and multi-head attention improve BLEU, while layer normalization and synchronous training are central to stable training.

  • Experimental design: The ablations independently remove four techniques from RNMT+ and Transformer Big to assess performance effects and contributions to stable training.The study evaluates label smoothing, multi-head attention, layer normalization, and synchronous training.
  • Label Smoothing: Label smoothing increases average BLEU by 0.7 for RNMT+ and 0.2 for Transformer Big.The reported gains are averaged across the evaluated results.
  • Multi-head Attention: Multi-head attention increases average BLEU by 0.6 for RNMT+ and 0.9 for Transformer Big.The authors describe its contribution to both models’ translation quality as significant.
  • Layer Normalization: Removing layer normalization produces unstable training runs for both models, especially when multi-head attention is used.Its quantitative contribution could not be isolated because the ablations removed one technique at a time.
  • Synchronous Training: Removing synchronous training causes a significant quality drop for RNMT+ and instability for Transformer Big.Synchronous training succeeds only with a tailored learning-rate schedule containing an initial warmup stage.

6 Hybrid NMT Models

The paper combines Transformer and RNMT+ components to study encoder and decoder strengths and build hybrid NMT architectures. These hybrids outperform individual architectures on both benchmark datasets.

  • Encoder-decoder hybrids: Hybrid models combine encoder and decoder components from different model families to compare their representational and conditional-generation capabilities.The study focuses on Transformer encoder with RNMT+ decoder and RNMT+ encoder with Transformer decoder.
  • Encoder-decoder hybrids: A stateful RNMT+ decoder is better at conditional language modeling, while the Transformer encoder is better at encoding and feature extraction.This comparison confirms the benefit of state tracking in conditional generation.
  • Mixed encoders: The cascaded encoder combines RNN and self-attention representations by stacking Transformer layers on a pre-trained frozen RNMT+ encoder.Pre-training avoids optimization difficulties while increasing encoder capacity.
  • Mixed encoders: The multi-column encoder merges outputs from independent encoders, with the best setup using simple concatenation followed by a unified representation.This design tests whether the RNMT+ decoder benefits from information arriving through multiple channels.
  • Hybrid results: Multi-column encoders followed by RNMT+ decoders achieve better results than Transformer and RNMT models on both WMT’14 benchmark tasks.The result is reported for the hybrid encoder evaluated in Table 6.

7 Conclusion

The paper shows that recent modeling and training techniques transfer across seq2seq architectures, producing RNMT+ and stronger hybrid models. It also identifies open questions beyond standard single-language-pair translation.

  • Conclusion: RNMT+ applies recent architectural and training techniques to RNMT and significantly outperforms the three fundamental architectures on WMT’14 En→Fr and En→De.The techniques include improvements studied across recent seq2seq models.
  • Conclusion: Hybrid models combining Transformer and RNMT+ components further improve over RNMT+ and demonstrate the superiority of Transformer encoders and RNMT+ decoders.The paper also mixes components horizontally and vertically within encoder architectures.
  • Conclusion: The study aims to motivate investigation of generally applicable training and optimization techniques and further architecture search for NMT.This consequence is stated as a direction for future research.
  • Open questions: The evaluation focuses on a standard single-language-pair translation task, leaving multilingual comparisons and interlingua modeling open.The paper explicitly identifies multilingual settings as an unanswered question.
  • Open questions: Transferability of representations to other tasks and characteristic linguistic errors also remain open questions.The paper gives linguistic plausibility as an example of a characteristic error to investigate.

A.1 ConvS2S

The ConvS2S appendix passage specifies deep convolutional encoder and decoder configurations for the WMT’14 English-to-German and English-to-French tasks.

  • WMT’14 En→De: For WMT’14 En→De, both encoder and decoder use 15 layers with task-specific hidden-unit widths and kernel widths.The first 13 layers use kernel width 3, while the final two use kernel width 1.
  • WMT’14 En→Fr: For WMT’14 En→Fr, both encoder and decoder use 14 layers with task-specific hidden-unit widths.The passage lists widths for the first five, subsequent four, next three, and final layers, but is truncated before the final specification.

A.2 Transformer

The Transformer appendix specifies model dimensions, dropout configurations, learning-rate schedules, and synchronous-training settings for base and big models across the two WMT’14 tasks.

  • Model configurations: Both Transformer base and big models use six encoder layers and six decoder layers, with larger dimensions and more attention heads in the big model.The base model uses dimension 512, hidden dimension 2048, and 8 heads; the big model uses dimension 1024, hidden dimension 8192, and 16 heads.
  • Optimization: The learning-rate schedule depends on the current step, warmup steps, model dimension, and a magnitude-adjustment constant.The symbols are defined as t, p, dmodel, and r0 respectively.
  • WMT’14 En→De: On WMT’14 En→De, Transformer Base uses dropout probability 0.1 with r0 = 2.0 and p = 8000, while Big uses dropout probability 0.3 with r0 = 3.0 and p = 40000.The two model sizes use different dropout-type configurations.
  • WMT’14 En→Fr: On WMT’14 En→Fr, the Base schedule uses r0 = 1.0 and p = 4000, while the Big schedule uses r0 = 3.0 and p = 40000.Dropout types and probabilities also differ between the two model sizes.
  • Training: Both Transformer base and big models use synchronous training with 16 GPUs.This setting is stated for the Transformer experiments.

A.3 RNMT+

The section specifies RNMT+ training and architectural settings, then describes hybrid encoder designs that combine RNMT+ with Transformer components. These hybrids reuse established hyperparameters and pretrained representations while applying concatenation or stacking.

  • RNMT+: RNMT+ uses 1024-dimensional LSTM layers and embeddings, a 2048-to-1024 encoder projection, four attention heads, and label smoothing with uncertainty 0.1.The encoder projection reduces the final bidirectional output to the model dimension.
  • RNMT+: RNMT+ models use synchronous training with 32 GPUs, with task-specific learning-rate schedules, dropout, and weight-decay settings.English–German uses dropout probability 0.3 and λ = 10^-5; English–French uses dropout probability 0.2 without weight decay.
  • Encoder-decoder hybrids: Both encoder-decoder hybrid directions retain the original Transformer Big and RNMT+ model hyperparameters and use the Transformer learning-rate schedule.Hybrid training uses synchronous optimization with 32 GPUs.
  • Cascaded hybrid: One hybrid stacks a four-layer Transformer encoder on top of a pretrained RNMT+ encoder whose layer-normalized outputs feed the Transformer.Because the underlying RNN captures position information, this layout can omit hand-crafted sinusoidal positional embeddings.
  • Multi-column hybrid: Another hybrid concatenates encoder representations and projects the combined representation to the decoder dimension using a layer-normalized affine transformation.The design is not practically restricted to two encoder columns and may combine multiple encoder representations.
  • Multi-column hybrid: The multi-column hybrid combines pretrained RNMT+ and Transformer encoders with an RNMT+ decoder, using synchronous training on 16 GPUs.It retains simple concatenation as the merger operation.
Loading 1804.09849v2…