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

BERMo:BERT能从ELMo中学到什么?

BERMo: What can BERT learn from ELMo?

Purdue University(普渡大学)

Sangamesh Kodge, Kaushik Roy

摘要:

我们提出了BERMo,架构修改BERT,使预测的基础上的层次结构的表面,语法和语义语言功能。我们使用线性组合方案中提出的嵌入从语言模型(ELMo)组合的缩放内部表示从不同的网络深度。我们的方法有两个好处:(1)改进了下游任务的梯度流,因为每一层都与损失函数的梯度有直接的联系;(2)增加了代表性,因为模型不再需要复制下游任务所需的较浅层中学习的特征。此外,我们的模型具有可忽略的参数开销,因为网络中的每一层都有一个标量参数。在SentEval数据集上的探测任务上的实验表明,该模型在语义任务上的准确率比基线提高了$4.65\%$,平均提高了$2.67\%$.当受到压缩技术,我们发现,我们的模型能够稳定修剪压缩小数据集,如SST-2,其中BERT模型通常发散。我们观察到,我们的方法收敛$1.67\times$和$1.15\times$比基线更快的MNLI和QQP任务从GLUE数据集。此外,我们的研究结果表明,我们的方法可以获得更好的参数效率的惩罚为基础的修剪方法的QQP任务。

英文摘要:

We propose BERMo, an architectural modification to BERT, which makes predictions based on a hierarchy of surface, syntactic and semantic language features. We use linear combination scheme proposed in Embeddings from Language Models (ELMo) to combine the scaled internal representations from different network depths. Our approach has two-fold benefits: (1) improved gradient flow for the downstream task as every layer has a direct connection to the gradients of the loss function and (2) increased representative power as the model no longer needs to copy the features learned in the shallower layer which are necessary for the downstream task. Further, our model has a negligible parameter overhead as there is a single scalar parameter associated with each layer in the network. Experiments on the probing task from SentEval dataset show that our model performs up to $4.65\%$ better in accuracy than the baseline with an average improvement of $2.67\%$ on the semantic tasks. When subject to compression techniques, we find that our model enables stable pruning for compressing small datasets like SST-2, where the BERT model commonly diverges. We observe that our approach converges $1.67\times$ and $1.15\times$ faster than the baseline on MNLI and QQP tasks from GLUE dataset. Moreover, our results show that our approach can obtain better parameter efficiency for penalty based pruning approaches on QQP task.

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

↑