MixEdit: Revisiting Data Augmentation and Beyond for Grammatical Error Correction

Jingheng Ye, Yinghui Li, Yangning Li, Hai-Tao Zheng

Abstract

Grammatical Error Correction (GEC) relies heavily on large-scale parallel data, often generated through synthetic data augmentation (DA). However, existing DA methods lack formal metrics for quality and often rely on massive, computationally expensive datasets. We introduce MixEdit, a novel DA strategy that "remixes" existing errors from realistic datasets rather than injecting random noise. By proposing two new metrics—Affinity and Diversity—we provide a theoretical framework to evaluate DA quality. Our results show that MixEdit achieves state-of-the-art performance in both English and Chinese GEC by effectively recycling existing data.

Introduction

Grammatical Error Correction (GEC) is typically framed as a sequence-to-sequence task, akin to machine translation. The primary bottleneck in training robust GEC models is the scarcity of high-quality, human-annotated "error-correction" pairs. To mitigate this, researchers employ Data Augmentation (DA) to create pseudo-parallel data from clean monolingual text.

While effective, traditional DA methods—such as back-translation or random character/word noise—are often heuristic-based. There has been a lack of clear metrics to explain why certain augmentation strategies outperform others, leading to a trend of training on increasingly massive synthetic corpora. This paper addresses these gaps by introducing interpretable metrics for DA and a more efficient augmentation method called MixEdit.

The Affinity and Diversity Framework

To move beyond heuristic evaluation, we propose two metrics to quantify the quality of any DA method:

  • Affinity: This measures how closely the distribution of synthetic errors aligns with real-world human errors. It is calculated as the inverse of the KL divergence between the synthetic and real error distributions. High affinity ensures the model learns to correct realistic mistakes.
  • Diversity: This measures the variety or uncertainty of the generated errors, calculated as entropy. Diversity acts as a regularizer, helping the model generalize to unseen error types.

Analysis reveals a very strong correlation (0.9485) between a method’s Affinity score and the model's final performance ($F_{0.5}$), suggesting that mimicking human error patterns is more critical than simply increasing data volume.

The MixEdit Method

Unlike traditional methods that break clean text, MixEdit operates on existing, realistic error-prone sentences. It leverages the existing "wrong" sentences in a dataset and edits them to create new training signals.

The MixEdit framework overview, illustrating error selection from a pattern pool and consistency loss.

The process involves three key components:

  1. Error Pattern Pool: Common error patterns (e.g., "is" $\rightarrow$ "are") are extracted from a small seed of real-world data.
  2. Dynamic Replacement: During training, MixEdit identifies an existing error in a source sentence and replaces it with a different, probable error from the pool that corresponds to the same "correct" target. This ensures the augmentation is label-preserving.
  3. Consistency Regularization: To stabilize training, the model is encouraged to produce the same correct output regardless of the specific error variant it encounters. This is enforced using a Jensen-Shannon divergence loss between the predictions for the original and pseudo-source sentences.

Experimental Results

We evaluated MixEdit across English (CoNLL-2014, BEA-2019) and Chinese (NLPCC-2018, MuCGEC) benchmarks. MixEdit was integrated into a BART-based architecture and compared against various state-of-the-art (SOTA) systems and standard DA baselines like Direct Noise (DN), Pattern Noise (PN), and Back-translation (BT).

Performance comparison of MixEdit against various baselines and state-of-the-art systems on CoNLL-14 and BEA-19 test sets.

As shown in the results table, MixEdit consistently improves performance when added to existing baselines. Notably, it achieved a new SOTA on the BEA-2019 test set with an $F_{0.5}$ of 73.4. A key advantage of MixEdit is its efficiency; it achieves these gains by "recycling" existing data more effectively, without requiring additional massive monolingual corpora.

Discussion and Conclusion

Our findings highlight the importance of Affinity in data augmentation. While increasing Diversity can improve recall, it often comes at the cost of precision if the errors become too unrealistic. MixEdit strikes an optimal balance by using human-like error patterns.

In conclusion, MixEdit represents a shift from "quantity-driven" to "quality-driven" data augmentation for GEC. By focusing on realistic error distributions and consistency training, we provide a more efficient and effective path toward high-performance grammatical error correction.

Summary updated

BibTeX
@inproceedings{ye2023mixedit,
  author = {Jingheng Ye and Yinghui Li and Yangning Li and Hai-Tao Zheng},
  title = {{MixEdit: Revisiting Data Augmentation and Beyond for Grammatical Error Correction}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.681},
}
Figure