NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improving Grammatical Error Correction with Data Augmentation by Editing Latent Representation

Zhaohong Wan, Xiaojun Wan, Wenguang Wang

Abstract

Neural Grammatical Error Correction (GEC) models are highly dependent on large-scale annotated datasets, which are often scarce. This paper presents a novel data augmentation technique that generates synthetic training data by perturbing the latent representations of sentences. By combining this "latent editing" approach with traditional rule-based methods, we demonstrate significant improvements in model performance. Our hybrid method achieves state-of-the-art results on the CoNLL-2014 and FCE benchmarks, notably improving recall across diverse error types while using substantially less synthetic data than previous approaches.

Introduction

Grammatical Error Correction (GEC) is frequently modeled as a machine translation task, converting "ungrammatical" source sentences into "grammatical" target sentences. The primary bottleneck for neural GEC systems is the lack of high-quality, human-annotated error pairs. While data augmentation—generating synthetic errors from clean text—is a common solution, traditional methods often rely on simple token-level rules (e.g., deletions or swaps). These rules fail to capture the complexity and nuance of human errors, such as incorrect verb tenses or subtle collocation mistakes.

To address this, we propose a hybrid augmentation strategy that integrates rule-based noise with a sophisticated Latent Representation Editing method. This approach allows for the generation of more fluent and structurally diverse errors, better simulating real-world learner mistakes.

Methodology

The core of our approach is the Latent Representation Editing framework, which modifies the "thought vector" of a sentence rather than its surface tokens.

Latent Representation Editing

The process involves three main components:

  1. Autoencoder and Classifier: We train a Transformer-based encoder-decoder as an autoencoder. Simultaneously, a separate classifier is trained to identify specific error categories (e.g., Verb Tense, Noun Number, Prepositions).
  2. Gradient-Based Perturbation: To generate a specific error type, we compute the gradient of the classifier's loss relative to the latent representation $h_x$. We then perturb $h_x$ in the direction that increases the likelihood of the target error.
  3. Decoding and Filtering: The perturbed vector $h'_x$ is passed through the Transformer Decoder to generate a synthetic ungrammatical sentence. A similarity discriminator ensures the output remains semantically close to the original sentence.
Latent Representation Editing Framework

Rule-Based Augmentation

To complement latent editing, we employ standard pre-defined rules to simulate "local" errors like typos and missing words. These include token deletion, addition, replacement, shuffling, and character-level spelling perturbations.

Results and Discussion

Our method was evaluated on standard GEC benchmarks, including CoNLL-2014, BEA-2019, and FCE-test, using 16 million synthetic samples generated from the Gigaword corpus.

Performance Comparison

The hybrid augmentation approach achieved state-of-the-art (SOTA) results. On the CoNLL-2014 benchmark, our ensemble model reached an $F_{0.5}$ score of 65.9, surpassing previous models that used significantly larger augmented datasets (up to 170M samples).

Comparison of GEC Performance against State-of-the-Art Methods

Key Insights

  • Complementary Effects: Rule-based methods are effective for noisy errors, while latent editing excels at generating fluent, human-like grammatical errors.
  • Efficiency: We achieved superior performance with only 16M synthetic samples, demonstrating the high quality and diversity of the generated data.
  • Recall Gains: The full hybrid method significantly boosted recall on CoNLL-2014 from 33.18% (no augmentation) to 48.83%, indicating a much stronger ability to detect and correct errors.

Conclusion

By editing latent representations, we can generate high-quality synthetic data that captures the nuances of human grammatical errors. This method, especially when combined with traditional rules, provides a robust solution to the data scarcity problem in GEC. Future work will focus on handling sentences with multiple overlapping errors and automating the optimization of perturbation parameters.

Summary updated

BibTeX
@inproceedings{wan2020improving,
  author = {Zhaohong Wan and Xiaojun Wan and Wenguang Wang},
  title = {{Improving Grammatical Error Correction with Data Augmentation by Editing Latent Representation}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2020},
  doi = {10.18653/v1/2020.coling-main.200},
}
Figure