LM-Critic: Language Models for Unsupervised Grammatical Error Correction

Michihiro Yasunaga, Jure Leskovec, Percy Liang
9/14/2021
cs.CLcs.LG

Official code: michiyasunaga/LM-Critic (118 stars, MIT, last commit 2021-09-26).

Abstract

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).

View on arXivView PDF

Code Implementations(1)

MIT

[EMNLP 2021] LM-Critic: Language Models for Unsupervised Grammatical Error Correction

11811Shell, PythonSep 15, 20215 years agoMIT
grammatical-error-correctionlanguage-modelunsupervised-learning

Similar Papers

Cite this paper

@article{yasunaga2021lmcritic,
  title  = {LM-Critic: Language Models for Unsupervised Grammatical Error Correction},
  author = {Michihiro Yasunaga and Jure Leskovec and Percy Liang},
  year   = {2021},
  eprint = {2109.06822},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.06822}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2109.06822.svg)](https://codeofpaper.com/paper/2109.06822)

Discussion