arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2106.11740cs.CLcs.AIcs.LG
收藏

LV-BERT:利用蛋鸡品种生产BERT

LV-BERT: Exploiting Layer Variety for BERT

National University of Singapore(新加坡国立大学)

Weihao Yu, Zihang Jiang, Fei Chen, Qibin Hou, Jiashi Feng

摘要:

现代预训练的语言模型大多建立在以交错顺序堆叠自注意和前馈层的主干上。在本文中,除了这种刻板的层模式,我们的目标是通过从两个方面利用层的多样性来改进预训练模型:层类型集和层顺序。具体来说,除了原始的自注意和前馈层之外,我们还将卷积引入到层类型集中,实验发现这对预训练模型有利。此外,除了原来的交错顺序,我们探索更多的层顺序,以发现更强大的架构。然而,引入的层多样性导致超过数十亿候选者的大架构空间,而从头开始训练单个候选模型已经需要巨大的计算成本,使得通过直接训练大量候选模型来搜索这样的空间是负担不起的。为了解决这个问题,我们首先预训练一个超网,所有候选模型的权重都可以继承,然后采用一种由预训练精度指导的进化算法来寻找最优架构。大量的实验表明,我们的方法得到的LV-BERT模型优于BERT及其变种的各种下游任务。例如,LV-BERT-small在GLUE测试集上达到79.8,比强基线ELECTRA-small高1.8。

英文摘要:

Modern pre-trained language models are mostly built upon backbones stacking self-attention and feed-forward layers in an interleaved order. In this paper, beyond this stereotyped layer pattern, we aim to improve pre-trained models by exploiting layer variety from two aspects: the layer type set and the layer order. Specifically, besides the original self-attention and feed-forward layers, we introduce convolution into the layer type set, which is experimentally found beneficial to pre-trained models. Furthermore, beyond the original interleaved order, we explore more layer orders to discover more powerful architectures. However, the introduced layer variety leads to a large architecture space of more than billions of candidates, while training a single candidate model from scratch already requires huge computation cost, making it not affordable to search such a space by directly training large amounts of candidate models. To solve this problem, we first pre-train a supernet from which the weights of all candidate models can be inherited, and then adopt an evolutionary algorithm guided by pre-training accuracy to find the optimal architecture. Extensive experiments show that LV-BERT model obtained by our method outperforms BERT and its variants on various downstream tasks. For example, LV-BERT-small achieves 79.8 on the GLUE testing set, 1.8 higher than the strong baseline ELECTRA-small.

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

↑