Abstract
Data Augmentation through generating pseudo data has been proven effective in mitigating the challenge of data scarcity in the field of Grammatical Error Correction (GEC). Various augmentation strategies have been widely explored, most of which are motivated by two heuristics, i.e., increasing the distribution similarity and diversity of pseudo data. However, the underlying mechanism responsible for the effectiveness of these strategies remains poorly understood. In this paper, we aim to clarify how data augmentation improves GEC models. To this end, we introduce two interpretable and computationally efficient measures: Affinity and Diversity. Our findings indicate that an excellent GEC data augmentation strategy characterized by high Affinity and appropriate Diversity can better improve the performance of GEC models. Based on this observation, we propose MixEdit, a data augmentation approach that strategically and dynamically augments realistic data, without requiring extra monolingual corpora. To verify the correctness of our findings and the effectiveness of the proposed MixEdit, we conduct experiments on mainstream English and Chinese GEC datasets. The results show that MixEdit substantially improves GEC models and is complementary to traditional data augmentation methods.
Introduction
Grammatical Error Correction (GEC) is a critical task in Natural Language Processing, typically framed as a sequence-to-sequence problem where a model "translates" an ungrammatical sentence into a correct one. Despite its importance, the field suffers from a chronic shortage of high-quality, human-annotated parallel data. To address this, researchers have long relied on data augmentation—creating synthetic "pseudo-data" to train models. While techniques like back-translation and rule-based noise injection are common, the principles governing their success have remained largely heuristic. This work seeks to demystify GEC data augmentation by introducing formal metrics and a novel, dynamic augmentation framework called MixEdit.
Quantifying Augmentation: Affinity and Diversity
To understand why certain augmentation strategies outperform others, we propose two key metrics:
- Affinity: This measures the distributional similarity between synthetic errors and real-world human errors. High affinity suggests that the model is learning from mistakes that closely resemble what it will encounter in practice. Our analysis reveals that Affinity is the primary driver of performance, showing a near-perfect correlation (Pearson’s $r \approx 0.95$) with $F_{0.5}$ scores.
- Diversity: This captures the variety and uncertainty of the generated errors. While diversity helps the model generalize and improves recall, there is often a trade-off: excessive diversity can lead to "hallucinated" noise that degrades precision.
The MixEdit Framework
Building on these insights, we introduce MixEdit. Unlike traditional methods that generate static datasets offline, MixEdit performs dynamic augmentation during the fine-tuning process.
As illustrated in the framework above, MixEdit utilizes an Error Pattern Pool extracted from existing parallel data. During training, it identifies errors in a real source sentence and replaces them with alternative, probable errors from the pool that lead to the same target correction. This "label-preserving" approach ensures high affinity. Furthermore, a Consistency Loss (Jensen-Shannon divergence) is applied to ensure the model produces stable outputs regardless of whether it sees the original error or the "MixEdited" version.
Experimental Evaluation and Results
We evaluated MixEdit on standard English (CoNLL-2014, BEA-2019) and Chinese (MuCGEC) benchmarks. The results demonstrate that MixEdit consistently improves upon strong BART baselines and is complementary to traditional noise methods.
On the BEA-2019 test set, MixEdit combined with traditional back-translation (BT) achieved a state-of-the-art $F_{0.5}$ of 73.4. The method is remarkably data-efficient; it achieves performance comparable to models trained on over 100 million synthetic sentences while using only 2.4 million sentences. This underscores the finding that the quality and affinity of errors matter more than sheer volume.
Conclusion
MixEdit represents a shift from "more data" to "better data." By focusing on high-affinity, dynamic error generation, we can train more robust GEC models with significantly fewer resources. The introduction of Affinity and Diversity provides a rigorous framework for future research into data augmentation for GEC and potentially other low-resource NLP tasks.
Summary updated