arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1909.06695cs.CLcs.LGstat.ML
收藏

Ouroboros:加速基于transformer的语言模型的训练

Ouroboros: On Accelerating Training of Transformer-Based Language Models

Duke University(杜克大学);University of Pittsburgh(匹兹堡大学)

Qian Yang, Zhouyuan Huo, Wenlin Wang, Heng Huang, Lawrence Carin

摘要:

语言模型对于机器翻译和文本摘要等自然语言处理(NLP)任务至关重要。最近,通过一个基于transformer的语言模型(具有超过10亿个参数),在许多NLP领域中展示了显着的性能,验证了模型大小的好处。如果一个模型太大而无法容纳在单个计算设备中,则需要模型并行。当前的模型并行方法要么在反向传播中遭受反向锁定,要么不适用于语言模型。我们提出了第一个模型并行算法,加快了基于transformer的语言模型的训练。我们还证明了我们提出的算法是保证收敛到临界点的非凸问题。在Transformer和Transformer-XL语言模型上的大量实验表明,该算法获得了比数据并行更快的加速比,并且具有相当或更好的精度。重现实验的代码见\url{https://github.com/LaraQianYang/Ouroboros}。

英文摘要:

Language models are essential for natural language processing (NLP) tasks, such as machine translation and text summarization. Remarkable performance has been demonstrated recently across many NLP domains via a Transformer-based language model with over a billion parameters, verifying the benefits of model size. Model parallelism is required if a model is too large to fit in a single computing device. Current methods for model parallelism either suffer from backward locking in backpropagation or are not applicable to language models. We propose the first model-parallel algorithm that speeds the training of Transformer-based language models. We also prove that our proposed algorithm is guaranteed to converge to critical points for non-convex problems. Extensive experiments on Transformer and Transformer-XL language models demonstrate that the proposed algorithm obtains a much faster speedup beyond data parallelism, with comparable or better accuracy. Code to reproduce experiments is to be found at \url{https://github.com/LaraQianYang/Ouroboros}.

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

↑