一种通过跨多领域和语言的自然拼写错误模拟进行生成式拼写纠错的方法论
A Methodology for Generative Spelling Correction via Natural Spelling Errors Emulation across Multiple Domains and Languages
AI总结:
本文提出一种生成式拼写纠错方法,通过模拟自然拼写错误丰富模型预训练,并推出包含预训练模型和增强算法的SAGE库。
摘要:
现代大型语言模型在文本生成和泛化方面展现出令人印象深刻的能力。然而,它们在解决文本编辑任务时常常遇到困难,特别是在纠正拼写错误和打字错误方面。在本文中,我们提出了一种生成式拼写纠错(SC)的方法论,该方法在英语和俄语上进行了测试,并且有可能在稍作修改后扩展到任何语言。我们的研究主要集中于探索文本中的自然拼写错误和打字错误,并研究如何在正确的句子中模拟这些错误,以有效地丰富生成模型的预训练过程。我们调查了此类模拟的影响以及模型在不同文本领域的能力。在这项工作中,我们研究了两种文本拼写破坏技术:1)第一种利用来自特定数据集的错误统计,模拟人类犯错时的行为;2)第二种在文本中添加最常见的拼写错误、键盘误点击和一些启发式方法。我们在预训练和微调阶段采用了各种破坏策略、模型架构和规模进行实验,并使用单领域和多领域测试集对模型进行了评估。作为我们工作的实际成果,我们引入了SAGE(通过增强和生成分布模拟进行拼写检查)。它是一个用于自动生成式SC的库,包含一系列预训练生成模型和内置增强算法。
英文摘要:
Modern large language models demonstrate impressive capabilities in text generation and generalization. However, they often struggle with solving text editing tasks, particularly when it comes to correcting spelling errors and mistypings. In this paper, we present a methodology for generative spelling correction (SC), which was tested on English and Russian languages and potentially can be extended to any language with minor changes. Our research mainly focuses on exploring natural spelling errors and mistypings in texts and studying the ways those errors can be emulated in correct sentences to effectively enrich generative models' pre-train procedure. We investigate the impact of such emulations and the models' abilities across different text domains. In this work, we investigate two spelling corruption techniques: 1) first one mimics human behavior when making a mistake through leveraging statistics of errors from particular dataset and 2) second adds the most common spelling errors, keyboard miss clicks, and some heuristics within the texts. We conducted experiments employing various corruption strategies, models' architectures and sizes on the pre-training and fine-tuning stages and evaluated the models using single-domain and multi-domain test sets. As a practical outcome of our work, we introduce SAGE(Spell checking via Augmentation and Generative distribution Emulation). It is a library for automatic generative SC that includes a family of pre-trained generative models and built-in augmentation algorithms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。