Abstract
Grammatical Error Correction (GEC) is a critical task in Natural Language Processing that suffers from a significant lack of large-scale parallel training data. This paper explores methods to overcome data scarcity by generating massive synthetic and mined datasets. By leveraging Wikipedia revision histories and round-trip translation techniques, we produce over 8 billion tokens of training data. Combined with a Transformer-based model and a novel iterative decoding strategy, these methods achieve new state-of-the-art results on standard GEC benchmarks.
Introduction
Training robust Grammatical Error Correction (GEC) systems typically requires large amounts of parallel data consisting of erroneous sentences paired with their corrections. Unlike standard Machine Translation, which benefits from vast multilingual corpora, GEC is a low-resource task. Publicly available datasets like Lang-8 are orders of magnitude smaller than those used in MT. This paper addresses two primary challenges: the scarcity of high-quality error-correction pairs and the difficulty of correcting multiple overlapping errors within a single sentence.
Large-Scale Data Generation
To bridge the data gap, two distinct strategies were employed to generate training corpora at an unprecedented scale.
Mining Wikipedia Revisions
Wikipedia's edit history provides a rich source of human-corrected text. The authors developed a pipeline to extract these "diffs" with minimal filtering to maximize volume. The process involves downsampling revisions, aligning text segments, and cutting them into manageable pairs. This approach yielded a 4.1-billion-token corpus (WikEd). While noisy, the sheer scale allows the model to learn robust grammatical patterns.
Round-Trip Translation (RTT)
A second 4.1-billion-token dataset was generated using Round-Trip Translation. Clean English Wikipedia sentences were translated into a bridge language and back to English. This process introduces natural-sounding errors typical of machine translation and second-language learners. The data was further augmented with character-level noise and common Wikipedia errors to improve coverage.
Model and Iterative Decoding
The core architecture is based on the Transformer model. However, a single-pass correction often fails when sentences contain multiple complex errors. To address this, the researchers introduced an iterative decoding strategy.
In this approach, the model makes incremental, high-confidence changes. The output of one pass becomes the input for the next, allowing the system to resolve overlapping errors sequentially. This conservative approach reduces the risk of "hallucinations" often seen in aggressive single-pass models.
Results and Discussion
The combination of massive pre-training and iterative decoding led to significant performance gains. On the CoNLL-2014 benchmark, the system achieved an $F_{0.5}$ score of 61.3, a substantial improvement over the previous state-of-the-art of 56.25. Similarly, on the JFLEG fluency benchmark, the model reached a GLEU score of 63.3.
Key findings include:
- Complementary Data: Wikipedia revisions were most effective for morphology and spelling, while RTT improved the handling of prepositions and pronouns.
- Pre-training vs. Fine-tuning: The most effective training regime involved pre-training on the massive generated datasets followed by fine-tuning on smaller, high-quality human-curated data.
- Scale Matters: Minimal filtering of noisy data is viable when the dataset size is increased by several orders of magnitude.
Conclusion
This work demonstrates that the data scarcity problem in GEC can be effectively mitigated through large-scale automated corpora generation. By leveraging existing digital footprints like Wikipedia revisions and synthetic methods like RTT, researchers can train models that significantly outperform those trained on limited human-annotated data. Future work may involve more sophisticated filtering techniques and extending these methods to other languages.
Summary updated