arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2112.12650cs.CLcs.LG
收藏

使用多个教师提取罗马尼亚BERT的知识

Distilling the Knowledge of Romanian BERTs Using Multiple Teachers

Research Institute for Artificial Intelligence, Romanian Academy(罗马尼亚科学院人工智能研究所)

Andrei-Marius Avram, Darius Catrina, Dumitru-Clementin Cercel, Mihai Dascălu, Traian Rebedea, Vasile Păiş, Dan Tufiş

摘要:

在计算受限的环境中运行大规模预训练语言模型仍然是一个有待解决的挑战性问题,而从这些模型中进行迁移学习在自然语言处理任务中已经变得普遍。之前已经提出了几种解决方案,包括知识蒸馏,网络量化或网络修剪;然而,这些方法主要集中在英语语言上,从而在考虑低资源语言时扩大了差距。在这项工作中,我们介绍了三个轻型和快速版本的蒸馏BERT模型的罗马尼亚语:蒸馏BERT-基-ro,蒸馏-RoBERT-基,蒸馏多BERT-基-ro。前两个模型导致从两个基础版本的罗马尼亚BERT文献中的知识的个人蒸馏,而最后一个是通过蒸馏他们的合奏。据我们所知,这是第一次尝试创建公开可用的罗马尼亚蒸馏BERT模型,这是彻底评估的五个任务:词性标记,命名实体识别,情感分析,语义文本相似性,和方言识别。我们的实验结果表明,这三种蒸馏模型的性能与它们的老师相当,而在GPU上的速度是老师的两倍,体积小了约35%。此外,我们进一步测试我们的学生与他们的老师的预测之间的相似性,通过测量他们的标签和概率忠诚度,以及回归忠诚度-在这项工作中引入的一个新的度量。

英文摘要:

Running large-scale pre-trained language models in computationally constrained environments remains a challenging problem yet to be addressed, while transfer learning from these models has become prevalent in Natural Language Processing tasks. Several solutions, including knowledge distillation, network quantization, or network pruning have been previously proposed; however, these approaches focus mostly on the English language, thus widening the gap when considering low-resource languages. In this work, we introduce three light and fast versions of distilled BERT models for the Romanian language: Distil-BERT-base-ro, Distil-RoBERT-base, and DistilMulti-BERT-base-ro. The first two models resulted from the individual distillation of knowledge from two base versions of Romanian BERTs available in literature, while the last one was obtained by distilling their ensemble. To our knowledge, this is the first attempt to create publicly available Romanian distilled BERT models, which were thoroughly evaluated on five tasks: part-of-speech tagging, named entity recognition, sentiment analysis, semantic textual similarity, and dialect identification. Our experimental results argue that the three distilled models offer performance comparable to their teachers, while being twice as fast on a GPU and ~35% smaller. In addition, we further test the similarity between the predictions of our students versus their teachers by measuring their label and probability loyalty, together with regression loyalty - a new metric introduced in this work.

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

↑