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

AMBERT:一种多粒度预训练语言模型Tokenization

AMBERT: A Pre-trained Language Model with Multi-Grained Tokenization

ByteDance(字节跳动)

Xinsong Zhang, Pengshuai Li, Hang Li

摘要:

预先训练的语言模型,如BERT,在自然语言理解(NLU)的许多任务中表现出显着的性能。模型中的标记通常是细粒度的,对于像英语这样的语言,它们是单词或子单词,而对于像中文这样的语言,它们是字符。例如,在英语中,存在形成自然词汇单元的多词表达,因此粗粒度标记化的使用似乎也是合理的。事实上,细粒度和粗粒度标记化对于预训练的语言模型的学习都有优点和缺点。在本文中,我们提出了一种新的预训练的语言模型,称为AM BERT(多粒度BERT),细粒度和粗粒度的标记化的基础上。对于英语,AMBERT将单词序列(细粒度标记)和短语序列(粗粒度令牌)作为令牌化之后的输入,采用一个编码器来处理单词序列,而另一个编码器来处理短语序列,利用两个编码器之间的共享参数,并最终创建单词的上下文化表示序列和短语的上下文化表示序列。实验在中英文基准数据集CLUE、GLUE、SQuAD和RACE上进行。实验结果表明,在所有情况下,AM BERT的性能都优于BERT,特别是对中国人的改进是显著的。我们还开发了一种方法,以提高效率的AM BERT的推理,它仍然表现得比BERT与BERT相同的计算成本。

英文摘要:

Pre-trained language models such as BERT have exhibited remarkable performances in many tasks in natural language understanding (NLU). The tokens in the models are usually fine-grained in the sense that for languages like English they are words or sub-words and for languages like Chinese they are characters. In English, for example, there are multi-word expressions which form natural lexical units and thus the use of coarse-grained tokenization also appears to be reasonable. In fact, both fine-grained and coarse-grained tokenizations have advantages and disadvantages for learning of pre-trained language models. In this paper, we propose a novel pre-trained language model, referred to as AMBERT (A Multi-grained BERT), on the basis of both fine-grained and coarse-grained tokenizations. For English, AMBERT takes both the sequence of words (fine-grained tokens) and the sequence of phrases (coarse-grained tokens) as input after tokenization, employs one encoder for processing the sequence of words and the other encoder for processing the sequence of the phrases, utilizes shared parameters between the two encoders, and finally creates a sequence of contextualized representations of the words and a sequence of contextualized representations of the phrases. Experiments have been conducted on benchmark datasets for Chinese and English, including CLUE, GLUE, SQuAD and RACE. The results show that AMBERT can outperform BERT in all cases, particularly the improvements are significant for Chinese. We also develop a method to improve the efficiency of AMBERT in inference, which still performs better than BERT with the same computational cost as BERT.

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

↑