DeBERTaV3:使用ELECTRA风格的预训练和非纠缠嵌入共享来改进DeBERTa
DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharing
摘要:
提出了一种新的预训练语言模型DeBERTaV 3,它改进了原有的DeBERTa模型,用一种样本效率更高的预训练任务替换标记检测(RTD)代替掩码语言建模(MLM)。我们的分析表明,ELECTRA中的香草嵌入共享会损害训练效率和模型性能。这是因为训练器和生成器的训练损失在不同的方向上拉动令牌嵌入,从而产生“拔河”动态。因此,我们提出了一种新的梯度分离嵌入共享方法,避免了拔河动态,提高了训练效率和预训练模型的质量。我们使用与DeBERTa相同的设置对DeBERTaV 3进行了预训练,以展示其在广泛的下游自然语言理解(NLU)任务上的卓越性能。以8个任务的GLUE基准测试为例,DeBERTaV 3 Large模型的平均得分为91.37%,比DeBERTa高1.37%,比ELECTRA高1.91%,在结构相似的模型中创下了新的最先进水平(SOTA)。此外,我们已经预训练了一个多语言模型mDeBERTa,并观察到与英语模型相比,在强基线上有更大的改进。例如,mDeBERTa Base在XNLI上实现了79.8%的zero-shot跨语言准确性,比XLM-R Base提高了3.6%,在此基准上创建了新的SOTA。我们已经在https://github.com/microsoft/DeBERTa上公开了我们的预训练模型和推理代码。
英文摘要:
This paper presents a new pre-trained language model, DeBERTaV3, which improves the original DeBERTa model by replacing mask language modeling (MLM) with replaced token detection (RTD), a more sample-efficient pre-training task. Our analysis shows that vanilla embedding sharing in ELECTRA hurts training efficiency and model performance. This is because the training losses of the discriminator and the generator pull token embeddings in different directions, creating the "tug-of-war" dynamics. We thus propose a new gradient-disentangled embedding sharing method that avoids the tug-of-war dynamics, improving both training efficiency and the quality of the pre-trained model. We have pre-trained DeBERTaV3 using the same settings as DeBERTa to demonstrate its exceptional performance on a wide range of downstream natural language understanding (NLU) tasks. Taking the GLUE benchmark with eight tasks as an example, the DeBERTaV3 Large model achieves a 91.37% average score, which is 1.37% over DeBERTa and 1.91% over ELECTRA, setting a new state-of-the-art (SOTA) among the models with a similar structure. Furthermore, we have pre-trained a multi-lingual model mDeBERTa and observed a larger improvement over strong baselines compared to English models. For example, the mDeBERTa Base achieves a 79.8% zero-shot cross-lingual accuracy on XNLI and a 3.6% improvement over XLM-R Base, creating a new SOTA on this benchmark. We have made our pre-trained models and inference code publicly available at https://github.com/microsoft/DeBERTa.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。