Abstract
Grammatical Error Correction (GEC) is a critical task in natural language processing, traditionally requiring extensive human-labeled datasets. We present LM-Critic, a novel method that leverages pretrained language models (LMs) to evaluate grammaticality without supervision. By characterizing grammatical sentences as local optima within a probability space of similar sentence variations, LM-Critic provides a robust signal for the Break-It-Fix-It (BIFI) framework. Our results demonstrate that this approach effectively bootstraps GEC models from unlabeled text, achieving a +7.7 $F_{0.5}$ improvement over unsupervised baselines and enhancing performance even in supervised scenarios.
Introduction
The standard paradigm for Grammatical Error Correction (GEC) treats the problem as a machine translation task, converting "ungrammatical" source text into "grammatical" target text. However, the scarcity of high-quality, human-labeled parallel corpora remains a significant bottleneck. While synthetic data generation—breaking clean sentences with noise—is a common workaround, the resulting errors often fail to reflect the nuance of human linguistic mistakes, such as subtle tense shifts or article omissions.
The Break-It-Fix-It (BIFI) framework was proposed to address this by iteratively training a "fixer" and a "breaker." However, BIFI originally required a perfect "critic" (e.g., a code compiler) to validate corrections. In natural language, where no such formal compiler exists, an alternative is needed.
The LM-Critic Method
The core innovation of this work is LM-Critic, an approximate critic for natural language based on pretrained language models like GPT-2.
The Local Optimum Criterion
A common pitfall in using LMs for grammaticality is relying on absolute probability $p(x)$. Because long or complex sentences inherently have lower probabilities than short, simple ones, absolute scores are poor indicators of correctness. LM-Critic instead employs a Local Optimum Criterion: a sentence is deemed grammatical if its probability is higher than that of its "local neighbors"—sentences within a small edit distance (e.g., one typo, insertion, or deletion).
In practice, the system generates a neighborhood of approximately 100 perturbations for a given sentence. If the original sentence maintains a higher LM score than its neighbors, it is classified as grammatical.
BIFI Integration
LM-Critic is integrated into the BIFI loop to filter and refine training data:
- Fixer: Learns to map ungrammatical sentences to grammatical ones.
- Breaker: Learns to map grammatical sentences back to ungrammatical ones.
- Filtering: The LM-Critic evaluates the fixer's output. If the fixer proposes a change and the critic confirms the result is a local optimum, the resulting pair is added to the training set to further improve the model.
Experimental Results
The researchers evaluated LM-Critic across standard benchmarks (CoNLL-2014, BEA-2019) and multi-domain datasets (Wikipedia, Yahoo! Answers).
Unsupervised and Supervised Performance
In a purely unsupervised setting, the LM-Critic + BIFI framework outperformed standard Transformer baselines by an average of +7.7 $F_{0.5}$ points. Notably, the method also provides a boost to supervised models. When used to fine-tune GECToR, a state-of-the-art supervised model, it yielded a +0.5 $F_{0.5}$ improvement.
The approach is particularly potent in low-resource scenarios, where labeled data is minimal or non-existent, making it highly applicable to specialized domains or less-common languages.
Conclusion and Future Work
LM-Critic demonstrates that approximate, unsupervised critics can significantly bridge the gap between synthetic noise and real-world human errors. By focusing on relative rather than absolute probability, the model captures a cleaner signal for grammaticality. Future research may explore gradient-based sampling to identify "adversarial" neighbors more efficiently and extend the framework to morphologically rich languages where defining a "neighborhood" is more complex.
Summary updated