CoCoGEC:面向鲁棒语法纠错的反事实生成
CoCoGEC: Counterfactual Generation for Robust Grammatical Error Correction
AI总结:
提出CoCoGEC框架,通过生成词级和句级反事实样本并筛选高互信息实例,提升语法纠错模型在上下文扰动下的稳定性,在三个扰动数据集上取得显著F0.5提升。
摘要:
语法纠错(GEC)系统通常在GEC基准上进行训练和评估,但一旦周围上下文发生轻微扰动或扩展,其性能往往会急剧下降。这表明现有的GEC模型通常无法理解变化上下文中的错误模式。在本文中,我们深入研究了GEC任务的反事实,其中上下文的细微变化可能导致标签翻转问题。我们提出了CoCoGEC,一个反事实生成框架,该框架创建训练实例的副本,并改变与错误无关的上下文。我们的框架通过以下方式系统地生成反事实:(1)通过改变词级和句级上下文,生成保持原始实例错误模式及语法的句内和句间反事实;(2)通过选择具有翻转标签和高GEC互信息(MI)系数的实例来修正生成的反事实。大量实验表明,我们的方法显著提高了GEC模型的稳定性,优于一组数据增强基线。特别是,在扰动的BEA-19*、CoNLL-14*和TEM-8*数据集上,它分别实现了+9.9、+11.3和+20.8个点的绝对F0.5增益。我们的代码已发布在https://github.com/Quinnok/CoCoGEC。
英文摘要:
Grammatical error correction (GEC) systems are usually trained and evaluated on GEC benchmarks, but their performance often drops sharply once the surrounding context is slightly perturbed or extended. This indicates that the existing GEC models usually fail to understand the error patterns in the varying contexts. In this paper, we thoroughly investigate the counterfactuals for GEC tasks, where the subtle changes to the contexts could lead to the label flipping issue. We propose CoCoGEC, a counterfactual generation framework that creates copies of training instances with error-irrelevant contexts altered. Our framework systematically generates counterfactuals by (1) generating intra- and inter-sentence counterfactuals that maintain the error patterns as well as syntax of the original instances by altering the word-level and sentence-level contexts; (2) revising the generated counterfactuals by selecting the instances with flipped labels and high GEC Mutual Information (MI) coefficient. Extensive experiments show that our method substantially improves the stability of GEC models, outperforming a set of data augmentation baselines. Particularly, it could achieve absolute F0.5 gains of +9.9, +11.3, and +20.8 points on the perturbed BEA-19*,CoNLL-14*, and TEM-8* data set.Our code is released at https://github.com/Quinnok/CoCoGEC
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。