arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2008.00177cs.LGcs.CLstat.ML
收藏

多节点Bert预训练:经济高效的方法

Multi-node Bert-pretraining: Cost-efficient Approach

University of Toronto(多伦多大学);Vector Institute(向量研究院)

Jiahuang Lin, Xin Li, Gennady Pekhimenko

摘要:

最近,大规模基于transformer的语言模型,如BERT,GPT-2和XLNet,为许多自然语言处理(NLP)任务带来了令人兴奋的飞跃。这些最新模型中的一个共同趋势是模型复杂性的显着增加,这引入了更多的权重和计算。此外,随着大规模无监督数据集的出现,由于单个训练时期内数据样本量的增加,训练时间进一步延长。因此,为了在合理的时间内训练这些模型,机器学习(ML)程序员通常需要高级硬件设置,例如支持GPU的高级NVIDIA DGX工作站或专用加速器,例如Google的TPU Pods。我们的工作解决了这一限制,并证明了通过仔细的算法和软件优化,BERT预训练模型可以在2周内在学术规模的广泛可用的GPU集群上训练。在本文中,我们提出了这些优化如何提高单个设备的训练吞吐量,分布在多个节点和GPU的训练工作量,并克服了大量的数据交换通过网络引入的通信瓶颈。我们表明,我们能够在合理的时间预算(12天)内在学术环境中对BERT进行预训练,但与之前基于NVIDIA DGX机器或Google TPU Pods的工业环境相比,硬件资源要求要便宜得多。

英文摘要:

Recently, large scale Transformer-based language models such as BERT, GPT-2, and XLNet have brought about exciting leaps in state-of-the-art results for many Natural Language Processing (NLP) tasks. One of the common trends in these recent models is a significant increase in model complexity, which introduces both more weights and computation. Moreover, with the advent of large-scale unsupervised datasets, training time is further extended due to the increased amount of data samples within a single training epoch. As a result, to train these models within a reasonable time, machine learning (ML) programmers often require advanced hardware setups such as the premium GPU-enabled NVIDIA DGX workstations or specialized accelerators such as Google's TPU Pods. Our work addresses this limitation and demonstrates that the BERT pre-trained model can be trained within 2 weeks on an academic-size cluster of widely available GPUs through careful algorithmic and software optimizations. In this paper, we present these optimizations on how to improve single device training throughput, distribute the training workload over multiple nodes and GPUs, and overcome the communication bottleneck introduced by the large data exchanges over the network. We show that we are able to perform pre-training on BERT within a reasonable time budget (12 days) in an academic setting, but with a much less expensive and less aggressive hardware resource requirement than in previously demonstrated industrial settings based on NVIDIA DGX machines or Google's TPU Pods.

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

↑