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

加载您所需的内容:多语言BERT的较小版本

Load What You Need: Smaller Versions of Multilingual BERT

Geotrend(吉创科技(Geotrend))

Amine Abdaoui, Camille Pradel, Grégoire Sigel

摘要:

预训练的基于transformer的模型在各种自然语言处理数据集上实现了最先进的结果。然而,这些模型的大小通常是它们在实际生产应用程序中部署的一个缺点。在多语言模型的情况下,大多数参数都位于嵌入层。因此,减少词汇量应该对参数总数有重要影响。在本文中,我们建议根据目标语料库生成更小的模型,处理更少的语言。我们提出了一个较小版本的多语言BERT的XNLI数据集的评估,但我们相信,这种方法可以应用于其他多语言的Transformers。所获得的结果证实,我们可以生成更小的模型,保持可比的结果,同时减少高达45%的参数总数。我们将我们的模型与Distilm BERT(多语言BERT的蒸馏版本)进行了比较,结果表明,与语言简化不同,蒸馏导致XNLI数据集的整体准确性下降了1.7%至6%。所提出的模型和代码是公开的。

英文摘要:

Pre-trained Transformer-based models are achieving state-of-the-art results on a variety of Natural Language Processing data sets. However, the size of these models is often a drawback for their deployment in real production applications. In the case of multilingual models, most of the parameters are located in the embeddings layer. Therefore, reducing the vocabulary size should have an important impact on the total number of parameters. In this paper, we propose to generate smaller models that handle fewer number of languages according to the targeted corpora. We present an evaluation of smaller versions of multilingual BERT on the XNLI data set, but we believe that this method may be applied to other multilingual transformers. The obtained results confirm that we can generate smaller models that keep comparable results, while reducing up to 45% of the total number of parameters. We compared our models with DistilmBERT (a distilled version of multilingual BERT) and showed that unlike language reduction, distillation induced a 1.7% to 6% drop in the overall accuracy on the XNLI data set. The presented models and code are publicly available.

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

↑