Controllable data synthesis method for grammatical error correction

Liner Yang, Chengcheng Wang, Yun Chen, Yongping Du, Erhong YangFrontiers of Computer Science 2019 · DOI

Abstract

Grammatical Error Correction (GEC) is often framed as a sequence-to-sequence task, yet its progress is hindered by a severe shortage of parallel training data. This paper presents a novel framework for controllable data synthesis, enabling precise adjustment of error density and type distribution. By generating 100 million synthetic sentence pairs with a targeted 40% error rate and balanced error categories, the researchers achieved state-of-the-art results on the CoNLL-2014 benchmark. The findings suggest that the quality and distribution of synthetic noise are more critical than the total volume of data.

Introduction

The primary challenge in Grammatical Error Correction (GEC) is the scarcity of parallel corpora—pairs of erroneous and corrected sentences. While synthetic data generation via noise injection is a common workaround, it often falls into two pitfalls: the Conservatism Trap, where low error density leads the model to avoid making corrections, and Distribution Mismatch, where synthetic noise fails to reflect the nuances of human errors. This work addresses these issues by introducing controllable synthesis methods that "tune" the noise for optimal model training.

Methodology

The authors propose a multi-stage pipeline involving data synthesis, pre-training, and fine-tuning. This approach allows the model to learn from massive amounts of synthetic data before being refined on smaller, high-quality human-labeled datasets.

The overall GEC training pipeline, including controllable synthesis (I), pre-training (II), and fine-tuning (III).

Controllable Synthesis Strategies

Two primary methods are employed to generate synthetic pairs from clean monolingual text:

  1. Rule-Based Corruption: Clean sentences are modified by token-level operations (deletion, insertion, or replacement) based on a fixed probability ($E_{rate}$). This allows for a perfectly balanced distribution of basic error types.
  2. Back-translation with Filtering: An "error generation" model is trained to reverse-translate correct text into erroneous text. A greedy Filtering Strategy is then applied to prune sentences, ensuring the resulting dataset matches a desired error density and distribution.

Key Insights: The 40% "Sweet Spot"

A critical finding of this research is the relationship between synthetic error rate and model performance. As shown in the experimental results, the model's $F_{0.5}$ score peaks when the synthetic training data has an error rate of approximately 40%.

Impact of synthetic data error rate on model performance ($F_{0.5}$ scores), highlighting the 40% optimal threshold.

Below a 30% error rate, the model becomes overly conservative, frequently opting to copy the input rather than correcting it. Conversely, while back-translation offers more "human-like" errors, the simpler rule-based method proved highly effective due to the ease of balancing error types (Missing, Unnecessary, and Replacement).

Results and Performance

The final model, an ensemble of eight Transformers pre-trained on 100 million synthetic sentences and fine-tuned on human-labeled data (NUCLE and Lang-8), achieved an $F_{0.5}$ score of 59.79 on the CoNLL-2014 benchmark. Notably, this performance matches or exceeds previous state-of-the-art models that used nearly double the amount of synthetic data (e.g., 170 million sentences), proving that controlled data quality can compensate for lower quantity. Additionally, the integration of a dedicated spell-checker (CyHunspell) provided a significant boost, addressing the character-level limitations of standard Transformer models.

Conclusion and Future Directions

This work demonstrates that GEC models benefit significantly from pre-training on synthetic data with a specific, controlled noise profile. However, limitations remain. The current synthesis methods struggle to replicate complex "Word Order" (WO) errors and lack deep semantic reasoning. Future work will explore finer-grained control over specific error types (e.g., prepositions vs. determiners) and the integration of sentence-shuffling techniques to better address structural mistakes in learner English.

Summary updated

BibTeX
@article{yang2019controllable,
  author = {Liner Yang and Chengcheng Wang and Yun Chen and Yongping Du and Erhong Yang},
  title = {{Controllable data synthesis method for grammatical error correction}},
  journal = {Frontiers of Computer Science},
  year = {2019},
  doi = {10.1007/s11704-020-0286-4},
}
Figure