Skip to main content
QUICK REVIEW

[Paper Review] Learning Deep Transformer Models for Machine Translation

Qiang Wang, Bei Li|arXiv (Cornell University)|Jun 5, 2019
Natural Language Processing TechniquesComputer Science35 references96 citations
TL;DR

This paper shows that a truly deep Transformer encoder can outperform Transformer-Big by using pre-norm architectures and a dynamic linear combination of layers (DLCL), achieving up to 0.4–2.4 BLEU gains while being smaller and faster.

ABSTRACT

Transformer is the state-of-the-art model in recent machine translation evaluations. Two strands of research are promising to improve models of this kind: the first uses wide networks (a.k.a. Transformer-Big) and has been the de facto standard for the development of the Transformer system, and the other uses deeper language representation but faces the difficulty arising from learning deep networks. Here, we continue the line of research on the latter. We claim that a truly deep Transformer model can surpass the Transformer-Big counterpart by 1) proper use of layer normalization and 2) a novel way of passing the combination of previous layers to the next. On WMT'16 English- German, NIST OpenMT'12 Chinese-English and larger WMT'18 Chinese-English tasks, our deep system (30/25-layer encoder) outperforms the shallow Transformer-Big/Base baseline (6-layer encoder) by 0.4-2.4 BLEU points. As another bonus, the deep model is 1.6X smaller in size and 3X faster in training than Transformer-Big.

Motivation & Objective

  • Investigate whether deeper Transformer encoders can outperform the standard Transformer-Big/Base baselines in MT.
  • Identify optimization strategies that enable training very deep Transformer encoders.
  • Develop a mechanism to reuse information from all preceding layers to improve deep representations.
  • Evaluate the deep Transformer with DLCL on multiple MT benchmarks (En-De, Zh-En-U variants).

Proposed method

  • Study two residual variants in Transformers (post-norm and pre-norm) and their impact on deep networks.
  • Introduce Dynamic Linear Combination of Layers (DLCL) to fuse all previous layer outputs using learnable weights.
  • Train very deep encoders (up to 30 layers) with pre-norm DLCL and compare to Transformer-Big/Base and post-norm variants.
  • Provide ablation studies to assess the importance of layer normalization and the learnable fusion weights.
  • Evaluate on WMT En-De, NIST Zh-En-Small, and WMT Zh-En-Large with BPE vocabularies and beam search.
  • Report training/inference efficiency and model size comparisons.

Experimental results

Research questions

  • RQ1Can deeper Transformer encoders surpass Transformer-Big when optimized properly?
  • RQ2Does pre-norm (vs post-norm) facilitate optimization and training of very deep Transformers?
  • RQ3Does DLCL provide better information flow and utilization of earlier layers than standard residual connections?
  • RQ4What are the trade-offs in depth with respect to training cost, model size, and inference speed across MT tasks?

Key findings

  • A deep encoder (30 layers) with pre-norm and DLCL yields BLEU improvements of 0.4–2.4 over Transformer-Base and can exceed Transformer-Big by 0.4–0.6 BLEU on several tasks.
  • Deep models with pre-norm are easier to optimize and can be trained to greater depths than post-norm variants (e.g., 20- or 30-layer encoders).
  • DLCL enables dynamic, end-to-end weighting of all preceding layer representations, outperforming fixed residual and dense connection schemes.
  • DLCL-based models achieve 1.6x fewer parameters and 3x faster training than Transformer-Big, and ~10% faster inference in some configurations.
  • On En-De, Zh-En-Small, and Zh-En-Large, the deep DLCL models reach or surpass Transformer-Big performance across datasets of varying size.
  • Ablation shows removing layer normalization or using fixed weights degrades performance, highlighting the importance of learnable, normalized layer fusion.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.