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

LM-Critic:用于无监督语法纠错的语言模型

LM-Critic: Language Models for Unsupervised Grammatical Error Correction

Stanford University(斯坦福大学)

Michihiro Yasunaga, Jure Leskovec, Percy Liang

摘要:

训练语法错误纠正(GEC)模型需要一组标记的不符合语法/符合语法的句子对,但手动注释这些句子对可能很昂贵。最近,Break-It-Fix-It(BIFI)框架已经展示了在没有任何标记示例的情况下学习修复损坏程序的强大结果,但这依赖于完美的批评者(例如,编译器),它返回一个例子是否有效,这对于GEC任务来说是不存在的。在这项工作中,我们展示了如何利用预训练的语言模型(LM)来定义LM-Critic,如果LM分配给它的概率高于它的局部扰动,则该LM-Critic判断一个句子是语法的。我们应用这个LM-Critic和BIFI以及大量未标记的句子来引导现实的不符合语法/语法的对来训练校正器。我们在多个领域的GEC数据集上评估了我们的方法(CoNLL-2014,GMEG-2019,GMEG-wiki和GMEG-yahoo),并表明它在无监督设置(+7.7 F0.5)和监督设置(+0.5 F0.5)中优于现有方法。

英文摘要:

Training a model for grammatical error correction (GEC) requires a set of labeled ungrammatical / grammatical sentence pairs, but manually annotating such pairs can be expensive. Recently, the Break-It-Fix-It (BIFI) framework has demonstrated strong results on learning to repair a broken program without any labeled examples, but this relies on a perfect critic (e.g., a compiler) that returns whether an example is valid or not, which does not exist for the GEC task. In this work, we show how to leverage a pretrained language model (LM) in defining an LM-Critic, which judges a sentence to be grammatical if the LM assigns it a higher probability than its local perturbations. We apply this LM-Critic and BIFI along with a large set of unlabeled sentences to bootstrap realistic ungrammatical / grammatical pairs for training a corrector. We evaluate our approach on GEC datasets across multiple domains (CoNLL-2014, BEA-2019, GMEG-wiki and GMEG-yahoo) and show that it outperforms existing methods in both the unsupervised setting (+7.7 F0.5) and the supervised setting (+0.5 F0.5).

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

↑