arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2211.13252cs.CLcs.AI
收藏

屏蔽正确的标记:一种简单得令人尴尬的纠错方法

Mask the Correct Tokens: An Embarrassingly Simple Approach for Error Correction

Zhejiang University(浙江大学);University of Science and Technology of China(中国科学技术大学);Microsoft Research Asia(微软亚洲研究院);Microsoft Azure Speech(微软Azure语音)

Kai Shen, Yichong Leng, Xu Tan, Siliang Tang, Yuan Zhang, Wenjie Liu, Edward Lin

摘要:

文本纠错的目的是纠正文本序列中的错误,例如由人类键入或由语音识别模型生成的文本序列。以往的纠错方法通常将源(错误)句子作为编码器输入,通过解码器生成目标(正确)句子。由于不正确句子的出错率通常较低(例如,10%),纠错模型只能学习对有限的错误标记进行纠错,而对大多数标记(正确标记)进行简单的复制,这不利于纠错的有效训练。在本文中,我们认为应该更好地利用正确的标记来促进有效的训练,然后提出一个简单而有效的掩蔽策略来实现这一目标。具体来说,我们随机屏蔽掉源句子中的一部分正确标记,让模型学习不仅纠正原始错误标记,还根据它们的上下文信息预测被屏蔽的标记。我们的方法有几个优点:1)它简化了琐碎的副本; 2)它利用了来自正确令牌的有效训练信号; 3)它是一个即插即用模块,可以应用于不同的模型和任务。在汉语数据集上的拼写错误纠正和语音识别错误纠正以及英语数据集上的语法错误纠正实验表明,该方法在自回归和非自回归生成模型下均能提高纠正精度。

英文摘要:

Text error correction aims to correct the errors in text sequences such as those typed by humans or generated by speech recognition models. Previous error correction methods usually take the source (incorrect) sentence as encoder input and generate the target (correct) sentence through the decoder. Since the error rate of the incorrect sentence is usually low (e.g., 10\%), the correction model can only learn to correct on limited error tokens but trivially copy on most tokens (correct tokens), which harms the effective training of error correction. In this paper, we argue that the correct tokens should be better utilized to facilitate effective training and then propose a simple yet effective masking strategy to achieve this goal. Specifically, we randomly mask out a part of the correct tokens in the source sentence and let the model learn to not only correct the original error tokens but also predict the masked tokens based on their context information. Our method enjoys several advantages: 1) it alleviates trivial copy; 2) it leverages effective training signals from correct tokens; 3) it is a plug-and-play module and can be applied to different models and tasks. Experiments on spelling error correction and speech recognition error correction on Mandarin datasets and grammar error correction on English datasets with both autoregressive and non-autoregressive generation models show that our method improves the correction accuracy consistently.

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

↑