Improved grammatical error correction by ranking elementary edits

Alexey SorokinEMNLP 2022

Abstract

Grammatical Error Correction (GEC) is a critical task in natural language processing, traditionally approached through sequence-to-sequence models or sequence labeling. However, these methods often struggle with error recall and the "greedy trap" of left-to-right decoding. This paper introduces a novel two-stage framework that shifts the focus from rewriting entire sentences to ranking "elementary edits." By utilizing a RoBERTa-based classifier to verify specific changes proposed by an edit generator, the authors achieve new state-of-the-art (SOTA) results on both English and Russian benchmarks. The results demonstrate that a high-quality "editor" (scorer) can significantly improve the output of even mediocre "writers" (generators).

Introduction

Modern GEC systems, while effective, face two primary challenges: low recall—often missing over 60% of errors—and the propagation of early decoding mistakes in autoregressive models. While reranking full-sentence candidates is a common mitigation strategy, it is computationally intensive and often lacks the granularity to evaluate small, local corrections. This research explores a more efficient alternative: ranking individual, elementary edits instead of entire sentences.

Methods

The proposed framework consists of a two-stage pipeline designed to maximize both precision and recall:

  1. Edit Generator: This stage acts as a "brainstormer," proposing potential changes. The authors evaluated three types: rule-based (using dependency trees and GPT-2), sequence-to-sequence (BERT-GEC), and sequence labeling (GECToR).
  2. Scorer (The "Editor"): A RoBERTa-based binary classifier serves as the core innovation. It evaluates pairs consisting of the original source and a proposed edit to determine the probability that the edit is a correct fix.
Figure 1: Example of the iterative editing process where proposed edits are scored and filtered through multiple stages.

Decoding Strategies

Once edits are scored, they can be applied using two strategies:

  • Parallel: Applying all non-overlapping high-confidence edits in a single pass.
  • Stagewise (Iterative): Picking the single best edit, applying it, and then re-evaluating the sentence. This iterative approach allows the model to account for how one correction influences the context of subsequent errors.

Experimental Setup

The model was evaluated on two languages to test its versatility:

  • English: Benchmarked on BEA 2019 and CoNLL 2014. Training utilized massive datasets including Lang-8, NUCLE, FCE, and a 9-million sentence synthetic dataset (PIE) for pre-training.
  • Russian: Evaluated on the RULEC-GEC dataset. Russian presents a unique challenge due to its rich morphology compared to English.

Key Results

The framework established new benchmarks across multiple datasets. Notably, the iterative "Stagewise" decoding consistently outperformed parallel methods, highlighting the interdependent nature of grammatical errors.

Figure 6: Performance comparison on BEA 2019 and CoNLL 2014 benchmarks, showing the proposed framework surpassing previous SOTA models.
  • English SOTA: The model improved upon the previous GECToR SOTA by 2–3 $F_{0.5}$ points on the BEA 2019 test set. Using a RoBERTa-large backbone, the authors established a new high-water mark for the field.
  • Russian Breakthrough: Despite using less data than previous attempts, the approach improved the Russian SOTA by over 3 $F_{0.5}$ points.
  • Robust Verification: The scorer proved remarkably robust, effectively filtering noise even when paired with a relatively weak generator.

Discussion and Conclusion

The "ranking elementary edits" approach provides a powerful mechanism for GEC, though it remains bounded by the recall of the initial generator; if the generator fails to propose a fix, the scorer cannot verify it. While stagewise decoding offers superior accuracy, its computational cost may limit real-time applications. Future research could extend this verification logic to other text-editing tasks, such as machine translation post-editing or style transfer.

Summary updated

BibTeX
@inproceedings{sorokin2022improved,
  author = {Alexey Sorokin},
  title = {{Improved grammatical error correction by ranking elementary edits}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.emnlp-main.785},
}
Figure