DeBERTa:具有分离注意力的解码增强的BERT
DeBERTa: Decoding-enhanced BERT with Disentangled Attention
摘要:
预训练神经语言模型的最新进展显着提高了许多自然语言处理(NLP)任务的性能。在本文中,我们提出了一个新的模型架构DeBERTa(解码增强BERT与解开注意),提高了BERT和RoBERTa模型使用两种新的技术。第一种是解纠缠的注意力机制,其中每个词使用两个向量来表示,这两个向量分别编码其内容和位置,并且词之间的注意力权重分别使用解纠缠矩阵来计算它们的内容和相对位置。第二,增强的掩码解码器用于在解码层中合并绝对位置,以在模型预训练中预测掩码令牌。此外,一种新的虚拟对抗训练方法用于微调,以提高模型的泛化能力。我们表明,这些技术显着提高模型预训练的效率和性能的自然语言理解(NLU)和自然语言生成(NLG)下游任务。与RoBERTa-Large相比,在一半训练数据上训练的DeBERTa模型在广泛的NLP任务上表现更好,MNLI提高了+0.9%(90.2% vs. 91.1%),SQuAD v2.0提高了+2.3%(88.4% vs. 90.7%),RACE提高了+3.6%(83.2% vs. 86.8%)。值得注意的是,我们通过训练一个由48个变换层和15亿个参数组成的更大版本来扩展DeBERTa。显著的性能提升使得单个DeBERTa模型在SuperGLUE基准上超过人类性能(Wang等人,2019年a)首次在宏观平均得分方面(89.9对89.8),并且截至2021年1月6日,整体DeBERTa模型位于SuperGLUE排行榜之首,以相当大的幅度(90.3对89.8)超过人类基线。
英文摘要:
Recent progress in pre-trained neural language models has significantly improved the performance of many natural language processing (NLP) tasks. In this paper we propose a new model architecture DeBERTa (Decoding-enhanced BERT with disentangled attention) that improves the BERT and RoBERTa models using two novel techniques. The first is the disentangled attention mechanism, where each word is represented using two vectors that encode its content and position, respectively, and the attention weights among words are computed using disentangled matrices on their contents and relative positions, respectively. Second, an enhanced mask decoder is used to incorporate absolute positions in the decoding layer to predict the masked tokens in model pre-training. In addition, a new virtual adversarial training method is used for fine-tuning to improve models' generalization. We show that these techniques significantly improve the efficiency of model pre-training and the performance of both natural language understanding (NLU) and natural langauge generation (NLG) downstream tasks. Compared to RoBERTa-Large, a DeBERTa model trained on half of the training data performs consistently better on a wide range of NLP tasks, achieving improvements on MNLI by +0.9% (90.2% vs. 91.1%), on SQuAD v2.0 by +2.3% (88.4% vs. 90.7%) and RACE by +3.6% (83.2% vs. 86.8%). Notably, we scale up DeBERTa by training a larger version that consists of 48 Transform layers with 1.5 billion parameters. The significant performance boost makes the single DeBERTa model surpass the human performance on the SuperGLUE benchmark (Wang et al., 2019a) for the first time in terms of macro-average score (89.9 versus 89.8), and the ensemble DeBERTa model sits atop the SuperGLUE leaderboard as of January 6, 2021, out performing the human baseline by a decent margin (90.3 versus 89.8).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。