arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.08688cs.CL
收藏

DecBERT:使用因果注意掩码增强对BERT的语言理解

DecBERT: Enhancing the Language Understanding of BERT with Causal Attention Masks

Hong Kong Baptist University(香港浸会大学);NetEase Inc.(网易公司);Jilin University(吉林大学)

Ziyang Luo, Yadong Xi, Jing Ma, Zhiwei Yang, Xiaoxi Mao, Changjie Fan, Rongsheng Zhang

摘要:

自2017年以来,基于transformer的模型在各种下游自然语言处理任务中发挥着关键作用。然而,Transformer Encoder中使用的注意力机制的一个共同限制是它不能自动捕获词序信息,因此通常需要将显式位置嵌入馈送到目标模型中。相比之下,Transformer Decoder具有因果注意面具,对词序自然敏感。在这项工作中,我们专注于提高BERT的位置编码能力的因果注意面具。此外,我们提出了一个新的预训练的语言模型DecBERT和评估它的GLUE基准。实验结果表明:(1)因果注意掩模对BERT在语言理解任务上是有效的;(2)我们的DecBERT模型在GLUE基准测试中获得了相当的性能;(3)我们的修改加速了预训练过程,并且在使用相同计算资源的预训练时,DecBERT w/ PE获得了比基线系统更好的整体性能。

英文摘要:

Since 2017, the Transformer-based models play critical roles in various downstream Natural Language Processing tasks. However, a common limitation of the attention mechanism utilized in Transformer Encoder is that it cannot automatically capture the information of word order, so explicit position embeddings are generally required to be fed into the target model. In contrast, Transformer Decoder with the causal attention masks is naturally sensitive to the word order. In this work, we focus on improving the position encoding ability of BERT with the causal attention masks. Furthermore, we propose a new pre-trained language model DecBERT and evaluate it on the GLUE benchmark. Experimental results show that (1) the causal attention mask is effective for BERT on the language understanding tasks; (2) our DecBERT model without position embeddings achieve comparable performance on the GLUE benchmark; and (3) our modification accelerates the pre-training process and DecBERT w/ PE achieves better overall performance than the baseline systems when pre-training with the same amount of computational resources.

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

↑