arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2107.07113cs.CLcs.AI
收藏

基于多源噪声模拟和硬样本挖掘的文本分类鲁棒学习

Robust Learning for Text Classification with Multi-source Noise Simulation and Hard Example Mining

TAL Education Group(好未来教育集团)

Guowei Xu, Wenbiao Ding, Weiping Fu, Zhongqin Wu, Zitao Liu

摘要:

许多现实世界的应用涉及使用光学字符识别(OCR)引擎将手写图像转换为转录本,在转录本上应用下游自然语言处理(NLP)模型。在这个过程中,OCR引擎可能会引入错误,并且下游NLP模型的输入变得嘈杂。尽管预训练模型在许多NLP基准测试中达到了最先进的性能,但我们证明了它们对真实OCR引擎生成的噪声文本并不鲁棒。这极大地限制了NLP模型在现实世界场景中的应用。为了提高模型在有噪声的OCR成绩单上的性能,在带标记的有噪声的文本上训练NLP模型是很自然的。然而,在大多数情况下,只有标记为干净的文本。由于不存在对应于文本的手写图片,因此不可能直接使用识别模型来获得带噪声的标记数据。可以雇用人力资源来复制文本和拍照,但考虑到模型训练的数据量,这是非常昂贵的。因此,我们有兴趣以低资源的方式使NLP模型对OCR错误具有内在的鲁棒性。我们提出了一种新的鲁棒训练框架,该框架1)采用简单但有效的方法直接从干净的文本中模拟自然OCR噪声,2)迭代地从大量模拟样本中挖掘硬样本以获得最佳性能。3)为了使我们的模型学习噪声不变的表示,采用了稳定性损失。在三个真实世界数据集上的实验表明,该框架大大提高了预训练模型的鲁棒性。我们相信,这项工作可以大大促进NLP模型在实际场景中的应用,尽管我们使用的算法简单明了。我们公开了我们的代码和三个数据集\footnote{https://github.com/tal-ai/Robust-learning-MSSHEM}。

英文摘要:

Many real-world applications involve the use of Optical Character Recognition (OCR) engines to transform handwritten images into transcripts on which downstream Natural Language Processing (NLP) models are applied. In this process, OCR engines may introduce errors and inputs to downstream NLP models become noisy. Despite that pre-trained models achieve state-of-the-art performance in many NLP benchmarks, we prove that they are not robust to noisy texts generated by real OCR engines. This greatly limits the application of NLP models in real-world scenarios. In order to improve model performance on noisy OCR transcripts, it is natural to train the NLP model on labelled noisy texts. However, in most cases there are only labelled clean texts. Since there is no handwritten pictures corresponding to the text, it is impossible to directly use the recognition model to obtain noisy labelled data. Human resources can be employed to copy texts and take pictures, but it is extremely expensive considering the size of data for model training. Consequently, we are interested in making NLP models intrinsically robust to OCR errors in a low resource manner. We propose a novel robust training framework which 1) employs simple but effective methods to directly simulate natural OCR noises from clean texts and 2) iteratively mines the hard examples from a large number of simulated samples for optimal performance. 3) To make our model learn noise-invariant representations, a stability loss is employed. Experiments on three real-world datasets show that the proposed framework boosts the robustness of pre-trained models by a large margin. We believe that this work can greatly promote the application of NLP models in actual scenarios, although the algorithm we use is simple and straightforward. We make our codes and three datasets publicly available\footnote{https://github.com/tal-ai/Robust-learning-MSSHEM}.

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

↑