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

Undivided Attention: BERT 是否需要中间层?

Undivided Attention: Are Intermediate Layers Necessary for BERT?

Intel Labs, Intel Corporation(英特尔公司英特尔研究院)

Sharath Nittur Sridhar, Anthony Sarah

AI总结:

本研究探讨了BERT架构中中间层的必要性,发现减少或移除中间层在几乎不影响下游任务微调精度的同时,能有效减少模型参数并缩短训练时间。

摘要:

近年来,基于 BERT 的模型在解决阅读理解、自然语言推理、情感分析等各种自然语言处理(NLP)任务方面取得了极大成功。所有基于 BERT 的架构都以一个自注意力块加上一个中间层块作为基本构建组件。然而,文献中对于包含这些中间层的必要性仍缺乏有力的证明。在本研究中,我们探讨了中间层对下游任务整体网络性能的重要性。我们表明,减少中间层数量并修改 BERT-BASE 的架构,会使下游任务的微调精度产生极小损失,同时减少模型的参数数量和训练时间。此外,我们使用 centered kernel alignment 和 probing linear classifiers 来深入了解我们的架构修改,并证明移除中间层对微调精度的影响微乎其微。

英文摘要:

In recent times, BERT-based models have been extremely successful in solving a variety of natural language processing (NLP) tasks such as reading comprehension, natural language inference, sentiment analysis, etc. All BERT-based architectures have a self-attention block followed by a block of intermediate layers as the basic building component. However, a strong justification for the inclusion of these intermediate layers remains missing in the literature. In this work we investigate the importance of intermediate layers on the overall network performance of downstream tasks. We show that reducing the number of intermediate layers and modifying the architecture for BERT-BASE results in minimal loss in fine-tuning accuracy for downstream tasks while decreasing the number of parameters and training time of the model. Additionally, we use centered kernel alignment and probing linear classifiers to gain insight into our architectural modifications and justify that removal of intermediate layers has little impact on the fine-tuned accuracy.

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

↑