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

文字,文字,还是两者都有?再论汉语预训练语言模型的切分粒度

Character, Word, or Both? Revisiting the Segmentation Granularity for Chinese Pre-trained Language Models

State Key Lab of Software Development Environment, Beihang University(北京航空航天大学软件开发环境国家重点实验室);School of Computer Science and Engineering, Northeastern University(东北大学计算机科学与工程学院);Faculty of Computing, Harbin Institute of Technology(哈尔滨工业大学计算学部);Lark Platform Engineering-AI(飞书平台工程-人工智能)

Xinnian Liang, Zefan Zhou, Hui Huang, Shuangzhi Wu, Tong Xiao, Muyun Yang, Zhoujun Li, Chao Bian

摘要:

预训练的语言模型(PLM)在各种NLP任务中表现出惊人的改进。大多数中文PLM只是将输入文本视为字符序列,而完全忽略了单词信息。虽然整个词掩码可以缓解这一点,但单词中的语义仍然没有得到很好的表示。在本文中,我们重新审视了中文PLM的分割粒度。本文提出了一种同时考虑字和词的混合粒度汉语BERT(MigBERT)。为了实现这一点,我们设计了学习字符和单词级表示的目标函数。我们对各种中文NLP任务进行了广泛的实验,以评估现有的PLM以及建议的MigBERT。实验结果表明,MigBERT在所有这些任务上都实现了新的SOTA性能。进一步的分析表明,词比字的语义更丰富。更有趣的是,我们表明MigBERT也适用于日本人。我们的代码和模型已经在这里发布了~ \footnote{https://github.com/xnliang98/MigBERT}。

英文摘要:

Pretrained language models (PLMs) have shown marvelous improvements across various NLP tasks. Most Chinese PLMs simply treat an input text as a sequence of characters, and completely ignore word information. Although Whole Word Masking can alleviate this, the semantics in words is still not well represented. In this paper, we revisit the segmentation granularity of Chinese PLMs. We propose a mixed-granularity Chinese BERT (MigBERT) by considering both characters and words. To achieve this, we design objective functions for learning both character and word-level representations. We conduct extensive experiments on various Chinese NLP tasks to evaluate existing PLMs as well as the proposed MigBERT. Experimental results show that MigBERT achieves new SOTA performance on all these tasks. Further analysis demonstrates that words are semantically richer than characters. More interestingly, we show that MigBERT also works with Japanese. Our code and model have been released here~\footnote{https://github.com/xnliang98/MigBERT}.

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

↑