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

schuBERT:优化BERT的要素

schuBERT: Optimizing Elements of BERT

Amazon AWS(亚马逊AWS)

Ashish Khetan, Zohar Karnin

摘要:

Transformers \citep{vaswani2017attention}已逐渐成为许多最先进的自然语言表示模型的关键组件。最近基于Transformer的模型-BERT \citep{devlin2018bert}在各种自然语言处理任务上取得了最先进的结果,包括GLUE、SQuAD v1.1和SQuAD v2.0。然而,该模型在计算上是禁止的,并且具有大量的参数。在这项工作中,我们重新审视BERT的架构选择,努力获得一个更轻的模型。我们专注于减少参数的数量,但我们的方法可以应用于其他目标,如FLOP或延迟。我们表明,更有效的光BERT模型可以通过减少算法选择正确的架构设计尺寸,而不是减少Transformer编码器层的数量。特别是,我们的schu BERT在GLUE和SQuAD数据集上为$6.6\%$提供了更高的平均准确度,与具有三个编码器层的BERT相比,同时具有相同数量的参数。

英文摘要:

Transformers \citep{vaswani2017attention} have gradually become a key component for many state-of-the-art natural language representation models. A recent Transformer based model- BERT \citep{devlin2018bert} achieved state-of-the-art results on various natural language processing tasks, including GLUE, SQuAD v1.1, and SQuAD v2.0. This model however is computationally prohibitive and has a huge number of parameters. In this work we revisit the architecture choices of BERT in efforts to obtain a lighter model. We focus on reducing the number of parameters yet our methods can be applied towards other objectives such FLOPs or latency. We show that much efficient light BERT models can be obtained by reducing algorithmically chosen correct architecture design dimensions rather than reducing the number of Transformer encoder layers. In particular, our schuBERT gives $6.6\%$ higher average accuracy on GLUE and SQuAD datasets as compared to BERT with three encoder layers while having the same number of parameters.

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

↑