arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2101.00063cs.CLcs.AI
收藏

EarlyBERT:通过早鸟彩票进行高效的BERT培训

EarlyBERT: Efficient BERT Training via Early-bird Lottery Tickets

University of Texas at Austin(德克萨斯大学奥斯汀分校);Microsoft Corporation(微软公司)

Xiaohan Chen, Yu Cheng, Shuohang Wang, Zhe Gan, Zhangyang Wang, Jingjing Liu

摘要:

严重过度参数化的语言模型,如BERT,XLNet和T5,在许多NLP任务中取得了令人印象深刻的成功。然而,它们的高模型复杂性需要巨大的计算资源和极长的训练时间来进行预训练和微调。许多工作已经研究了大型NLP模型上的模型压缩,但仅关注于减少推理时间,同时仍然需要昂贵的训练过程。其他作品使用非常大的批量来缩短预训练时间,代价是更高的计算资源需求。在本文中,受最近研究的计算机视觉任务的早鸟彩票的启发,我们提出了EarlyBERT,一种通用的计算效率高的训练算法,适用于大规模语言模型的预训练和微调。通过精简Transformer内部的自注意力和全连接子层,我们是第一个在BERT训练的早期阶段识别结构化中奖彩票的人。我们将这些票应用于有效的BERT训练,并对GLUE和SQuAD下游任务进行全面的预训练和微调实验。我们的实验结果表明,EarlyBERT达到了与标准BERT相当的性能,而训练时间减少了35~45%。代码可在https://github.com/VITA-Group/EarlyBERT上获得。

英文摘要:

Heavily overparameterized language models such as BERT, XLNet and T5 have achieved impressive success in many NLP tasks. However, their high model complexity requires enormous computation resources and extremely long training time for both pre-training and fine-tuning. Many works have studied model compression on large NLP models, but only focusing on reducing inference time while still requiring an expensive training process. Other works use extremely large batch sizes to shorten the pre-training time, at the expense of higher computational resource demands. In this paper, inspired by the Early-Bird Lottery Tickets recently studied for computer vision tasks, we propose EarlyBERT, a general computationally-efficient training algorithm applicable to both pre-training and fine-tuning of large-scale language models. By slimming the self-attention and fully-connected sub-layers inside a transformer, we are the first to identify structured winning tickets in the early stage of BERT training. We apply those tickets towards efficient BERT training, and conduct comprehensive pre-training and fine-tuning experiments on GLUE and SQuAD downstream tasks. Our results show that EarlyBERT achieves comparable performance to standard BERT, with 35~45% less training time. Code is available at https://github.com/VITA-Group/EarlyBERT.

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

↑