English

Training Tips for the Transformer Model

Computation and Language 2018-05-03 v2

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.

Keywords

Cite

@article{arxiv.1804.00247,
  title  = {Training Tips for the Transformer Model},
  author = {Martin Popel and Ondřej Bojar},
  journal= {arXiv preprint arXiv:1804.00247},
  year   = {2018}
}

Comments

This is the version published in PBML (https://ufal.mff.cuni.cz/pbml/110/art-popel-bojar.pdf)

R2 v1 2026-06-23T01:10:40.811Z