Training Tips for the Transformer Model

By Martin Popel, Ondrej Bojar. 2018

335 citations recorded by the source corpus.

Abstract This article describes our experiments in neural machine translation using the recent Tensor2Tensor framework and the Transformer sequence-to-sequence model (Vaswani et al., 2017). We examine some of the critical parameters that affect the final translation quality, memory usage, training stability and training time, concluding each experiment with a set of recommendations for fellow researchers. In addition to confirming the general mantra “more data and larger models”, we address scaling to multiple GPUs and provide practical tips for improved training regarding batch size, learning rate, warmup steps, maximum sentence length and checkpoint averaging. We hope that our observations will allow others to get better results given their particular hardware and data constraints.

Subfields: Artificial Intelligence, Computer Vision and Pattern Recognition, Model Architectures

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Jianfeng Gao
  2. Furu Wei
  3. Graham Neubig
  4. Mohit Bansal
  5. Tie-Yan Liu
  6. Luke S. Zettlemoyer
  7. Felix Stahlberg
  8. Percy Liang

In Computer Vision and Pattern Recognition

  1. Jianfeng Gao
  2. Luc Van Gool
  3. Dacheng Tao
  4. Trevor Darrell
  5. Xiaogang Wang
  6. Andrew Zisserman
  7. Ming-Hsuan Yang
  8. Cordelia Schmid

In Model Architectures

  1. Shinji Watanabe
  2. Weizhu Chen
  3. Felix Stahlberg
  4. Furu Wei
  5. Jiawei Han
  6. Ivan Titov
  7. Zhuowei Liu
  8. Canwen Xu

Citations in the corpus