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

“整词屏蔽对中国人BERT总是更好吗?“:汉语语法纠错初探

"Is Whole Word Masking Always Better for Chinese BERT?": Probing on Chinese Grammatical Error Correction

Fudan University(复旦大学);Tencent AI Lab(腾讯人工智能实验室)

Yong Dai, Linyang Li, Cong Zhou, Zhangyin Feng, Enbo Zhao, Xipeng Qiu, Piji Li, Duyu Tang

摘要:

全词屏蔽(WWM),它屏蔽所有子词对应的一个词,使一个更好的英语BERT模型。然而,对于中文,没有子字,因为每个记号都是一个原子字符。在汉语中,一个词的含义是不同的,因为一个词是由多个字符组成的组成单位。这种差异促使我们研究WWM是否能提高中文BERT的语境理解能力。为了实现这一点,我们引入了两个与语法错误纠正相关的探测任务,并要求预训练模型以掩码语言建模方式修改或插入标记。我们构建了一个数据集,包括10,448个句子中的19,075个标记的标签。我们训练了三个中文BERT模型,分别使用标准字符级掩码(CLM),WWM,以及CLM和WWM的组合。我们的主要发现如下:首先,当需要插入或替换一个字符时,使用CLM训练的模型表现最好。其次,当需要处理多个字符时,WWM是获得更好性能的关键。最后,当在并行级下游任务上进行微调时,使用不同掩蔽策略训练的模型执行并行。

英文摘要:

Whole word masking (WWM), which masks all subwords corresponding to a word at once, makes a better English BERT model. For the Chinese language, however, there is no subword because each token is an atomic character. The meaning of a word in Chinese is different in that a word is a compositional unit consisting of multiple characters. Such difference motivates us to investigate whether WWM leads to better context understanding ability for Chinese BERT. To achieve this, we introduce two probing tasks related to grammatical error correction and ask pretrained models to revise or insert tokens in a masked language modeling manner. We construct a dataset including labels for 19,075 tokens in 10,448 sentences. We train three Chinese BERT models with standard character-level masking (CLM), WWM, and a combination of CLM and WWM, respectively. Our major findings are as follows: First, when one character needs to be inserted or replaced, the model trained with CLM performs the best. Second, when more than one character needs to be handled, WWM is the key to better performance. Finally, when being fine-tuned on sentence-level downstream tasks, models trained with different masking strategies perform comparably.

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

↑