arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1804.00247cs.CL
收藏

Transformer模型的培训提示

Training Tips for the Transformer Model

Institute of Formal and Applied Linguistics Faculty of Mathematics and Physics, Charles University(查理大学数学与物理学院形式与应用语言学研究所)

Martin Popel, Ondřej Bojar

摘要:

本文描述了我们使用最近的Tensor2Tensor框架和Transformer序列到序列模型(Vaswani等人,2017年)。我们研究了一些影响最终翻译质量、记忆使用、训练稳定性和训练时间的关键参数,并在每个实验结束时为研究人员提出了一系列建议。除了确认“更多的数据和更大的模型”这一通用口号外,我们还解决了扩展到多个GPU的问题,并提供了有关批量大小、学习率、预热步骤、最大句子长度和检查点平均值的改进训练的实用技巧。我们希望我们的观察将允许其他人在特定的硬件和数据限制下获得更好的结果。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑