基于预训练的汉语BERT词插入和删除错误检测
Pretraining Chinese BERT for Detecting Word Insertion and Deletion Errors
摘要:
中文BERT模型在处理词替换的语法错误方面取得了显著的进展。但是,它们不能处理单词的插入和删除,因为BERT假设每个位置都存在一个单词。为了解决这个问题,我们提出了一个简单有效的中文预训练模型。其基本思想是使模型能够确定单词是否存在于特定位置。我们通过引入一个特殊的标记\texttt{[null]}来实现这一点,该标记的预测代表一个词的不存在。在训练阶段,我们设计了预训练任务,使得模型学习预测\texttt{[null]}和真实单词。在推理阶段,该模型很容易检测是否应该插入或删除一个词与标准的掩蔽语言建模功能。我们进一步创建了一个评估数据集,以促进对单词插入和删除的研究。它包括对7,726个错误句子的人工注释更正。结果表明,现有的中文BERT在检测插入和删除错误方面表现不佳。我们的方法显着提高了F1分数从24.1%到78.1%的词插入和从26.5%到68.5%的词删除,分别。
英文摘要:
Chinese BERT models achieve remarkable progress in dealing with grammatical errors of word substitution. However, they fail to handle word insertion and deletion because BERT assumes the existence of a word at each position. To address this, we present a simple and effective Chinese pretrained model. The basic idea is to enable the model to determine whether a word exists at a particular position. We achieve this by introducing a special token \texttt{[null]}, the prediction of which stands for the non-existence of a word. In the training stage, we design pretraining tasks such that the model learns to predict \texttt{[null]} and real words jointly given the surrounding context. In the inference stage, the model readily detects whether a word should be inserted or deleted with the standard masked language modeling function. We further create an evaluation dataset to foster research on word insertion and deletion. It includes human-annotated corrections for 7,726 erroneous sentences. Results show that existing Chinese BERT performs poorly on detecting insertion and deletion errors. Our approach significantly improves the F1 scores from 24.1\% to 78.1\% for word insertion and from 26.5\% to 68.5\% for word deletion, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。