Abstract
Grammatical Error Correction (GEC) is traditionally framed as a Neural Machine Translation (NMT) task. However, GEC is uniquely characterized by its conservative nature, where the majority of source tokens remain unchanged in the target. This paper introduces a copy-augmented Transformer architecture designed to explicitly model this "copy-and-edit" behavior. By combining this architecture with large-scale denoising pre-training on unlabeled data and multi-task learning, we achieve a new state-of-the-art $F_{0.5}$ score of 61.15 on the CoNLL-2014 benchmark, representing a significant improvement over previous NMT-based approaches.
Introduction
While framing GEC as NMT has driven progress, it faces two primary hurdles: data scarcity and the inherent "copy" nature of the task. Unlike standard translation, where source and target vocabularies often differ entirely, GEC is highly conservative. Analysis of major benchmarks reveals that between 83% and 96% of tokens in a corrected sentence are identical to the source.
Standard NMT models often struggle with out-of-vocabulary (OOV) words or tend to "over-correct" valid text because they lack an explicit mechanism to preserve the source. Furthermore, high-quality human-labeled GEC pairs are expensive to produce, limiting the scale of supervised training data.
Proposed Methodology
To address these challenges, we propose a three-pronged approach centered on a copy-augmented Transformer architecture.
Copy-Augmented Architecture
We modify the standard Transformer decoder to include a copy mechanism. At each decoding step, the model calculates a balancing factor $\alpha_t^{copy}$ to decide whether to generate a word from the fixed vocabulary or copy a token directly from the input sequence. This allows the model to handle rare words and named entities effortlessly while maintaining the conservative nature of GEC.
Denoising Auto-encoder (DAE) Pre-training
To overcome data scarcity, we utilize the One Billion Word Benchmark as unlabeled text. We introduce synthetic noise—random deletions, additions, replacements, and shuffles—and train the model to reconstruct the original clean text. This pre-training phase allows the model to learn the underlying distribution of correct English before fine-tuning on labeled GEC data.
Multi-task Learning (MTL)
We incorporate two auxiliary tasks to further refine performance:
- Token-level labeling: The encoder is trained to predict whether each input token is correct or incorrect, enhancing its error-detection capabilities.
- Sentence-level copying: The model is trained to reproduce perfectly correct sentences without modification, reducing the tendency to over-correct.
Key Results and Discussion
Our ensemble model achieved a state-of-the-art $F_{0.5}$ score of 61.15 on the CoNLL-2014 test set, a +4.9 point improvement over the previous best result. Ablation studies highlight the impact of each component:
- Copy Mechanism: Adding the copy mechanism to a base Transformer improved $F_{0.5}$ from 48.07 to 54.67 (+6.6 points).
- Pre-training: Utilizing unlabeled data for DAE pre-training provided a further boost of +4.13 points.
While the model excels at mechanical errors like noun number (72.65% recall) and subject-verb agreement (61.79% recall), it still finds subjective errors like collocations and idioms challenging (10.38% recall). These results suggest that while the "copy-and-edit" framework is highly effective for structural grammar, deeper semantic understanding remains a frontier for future GEC research.
Conclusion
By treating GEC as a copy-augmented task and leveraging massive unlabeled datasets, we significantly push the boundaries of automatic grammatical error correction. The combination of architectural innovation and effective pre-training strategies provides a robust framework for building more reliable and conservative correction systems.
Summary updated