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

尾对尾非自回归序列预测在汉语语法纠错中的应用

Tail-to-Tail Non-Autoregressive Sequence Prediction for Chinese Grammatical Error Correction

Tencent AI Lab(腾讯人工智能实验室)

Piji Li, Shuming Shi

摘要:

针对汉语语法错误纠正(CGEC)中存在的深层问题,提出了一个新的框架--尾对尾(\textbf{TtT})非自回归序列预测。考虑到大多数令牌都是正确的,可以直接从源传递到目标,并且可以根据双向上下文信息估计和纠正错误位置,因此我们采用BERT初始化的Transformer Encoder作为骨干模型进行信息建模和传递。考虑到仅依靠相同位置替换不能处理变长校正情况,需要联合诸如替换、删除、插入和局部释义的各种操作。因此,条件随机场(CRF)层堆叠在上尾,通过对令牌依赖性进行建模来进行非自回归序列预测。由于大多数令牌是正确的,并且容易被预测/传达给目标,因此模型可能会遭受严重的类不平衡问题。为了缓解这个问题,焦点损失惩罚策略被集成到损失函数中。此外,除了典型的定长纠错数据集,我们还构建了一个可变长度的语料库进行实验。在标准数据集上,特别是在变长数据集上的实验结果表明,TtT在错误检测和纠正任务中的准确率、查准率、查全率和F1-Measure方面都是有效的。

英文摘要:

We investigate the problem of Chinese Grammatical Error Correction (CGEC) and present a new framework named Tail-to-Tail (\textbf{TtT}) non-autoregressive sequence prediction to address the deep issues hidden in CGEC. Considering that most tokens are correct and can be conveyed directly from source to target, and the error positions can be estimated and corrected based on the bidirectional context information, thus we employ a BERT-initialized Transformer Encoder as the backbone model to conduct information modeling and conveying. Considering that only relying on the same position substitution cannot handle the variable-length correction cases, various operations such substitution, deletion, insertion, and local paraphrasing are required jointly. Therefore, a Conditional Random Fields (CRF) layer is stacked on the up tail to conduct non-autoregressive sequence prediction by modeling the token dependencies. Since most tokens are correct and easily to be predicted/conveyed to the target, then the models may suffer from a severe class imbalance issue. To alleviate this problem, focal loss penalty strategies are integrated into the loss functions. Moreover, besides the typical fix-length error correction datasets, we also construct a variable-length corpus to conduct experiments. Experimental results on standard datasets, especially on the variable-length datasets, demonstrate the effectiveness of TtT in terms of sentence-level Accuracy, Precision, Recall, and F1-Measure on tasks of error Detection and Correction.

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

↑