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

利用混合池化网络与 Drop Mask 改进 BERT

Improving BERT with Hybrid Pooling Network and Drop Mask

Alibaba Group(阿里巴巴集团);DAMO Academy(达摩院)

Qian Chen, Wen Wang, Qinglin Zhang, Chong Deng, Ma Yukun, Siqi Zheng

AI总结:

提出 HybridBERT,通过层内混合自注意力与池化网络编码上下文,并以 DropMask 缓解预训练与微调不匹配,显著提升训练效率和下游准确率。

摘要:

基于 Transformer 的预训练语言模型(如 BERT)在各类自然语言理解任务中取得了巨大成功。先前研究发现,BERT 在不同层捕获了丰富的语言信息层级。然而,原始 BERT 在每一层都使用相同的自注意力机制来建模不同的上下文特征。本文提出一种 HybridBERT 模型,该模型结合自注意力与池化网络,在每一层编码不同的上下文特征。此外,我们提出一种简单的 DropMask 方法,以解决在 Masked Language Modeling 预训练期间因过度使用特殊 mask 标记而导致的预训练与微调不匹配问题。实验表明,HybridBERT 在预训练中优于 BERT:损失更低、训练速度更快(相对提升 8%)、内存成本更低(相对降低 13%);在迁移学习中,其下游任务准确率相对提高 1.5%。此外,DropMask 在多种遮蔽率下均提高了 BERT 在下游任务上的准确率。

英文摘要:

Transformer-based pre-trained language models, such as BERT, achieve great success in various natural language understanding tasks. Prior research found that BERT captures a rich hierarchy of linguistic information at different layers. However, the vanilla BERT uses the same self-attention mechanism for each layer to model the different contextual features. In this paper, we propose a HybridBERT model which combines self-attention and pooling networks to encode different contextual features in each layer. Additionally, we propose a simple DropMask method to address the mismatch between pre-training and fine-tuning caused by excessive use of special mask tokens during Masked Language Modeling pre-training. Experiments show that HybridBERT outperforms BERT in pre-training with lower loss, faster training speed (8% relative), lower memory cost (13% relative), and also in transfer learning with 1.5% relative higher accuracies on downstream tasks. Additionally, DropMask improves accuracies of BERT on downstream tasks across various masking rates.

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

↑