A Neural Grammatical Error Correction System Built On Better Pre-training and Sequential Transfer Learning

Yo Joong Choe, Jiyeon Ham, Kyubyong Park, Yeoil Yoon

Introduction

Grammatical Error Correction (GEC) is a complex natural language processing task that involves identifying and correcting various linguistic errors in text. While humans can intuitively detect errors such as subject-verb disagreement or incorrect preposition usage, training neural models to perform this task effectively requires substantial amounts of high-quality, human-annotated data. However, parallel corpora of ungrammatical and corrected sentences are notoriously scarce compared to datasets available for tasks like Neural Machine Translation (NMT).

In this work, researchers from Kakao and Kakao Brain present a robust GEC system designed to overcome data scarcity. Their approach leverages realistic synthetic data generation, a sequential transfer learning framework, and a context-aware neural spellchecker to achieve state-of-the-art performance.

Methodology

The system architecture is built upon a multi-stage pipeline that transitions from general synthetic data to domain-specific human-annotated data.

The proposed GEC pipeline, illustrating the sequence of pre-processing, multi-stage training (DAE pre-training, training, and optional fine-tuning), and post-processing.

1. Realistic Synthetic Data Generation

To augment limited human data, the authors utilize Denoising Autoencoders (DAEs) trained on synthetic errors. Unlike traditional methods that use random noise (e.g., random word swaps), this system employs a "realistic" noising function:

  • Token-based Noising: Using the ERRANT toolkit, the authors extract real human edits from existing corpora and apply them in reverse to clean text, mimicking common human mistakes.
  • Type-based Noising: Linguistic rules are applied to target specific error categories, such as noun number, verb inflection, and preposition choice.

2. Copy-Augmented Transformers

Given that GEC tasks often involve minimal changes to the input sentence, the authors employ a copy-augmented Transformer model. This mechanism allows the decoder to choose between generating a new token from the vocabulary or copying a token directly from the source, which significantly improves precision and reduces hallucinations.

3. Sequential Transfer Learning

The training process follows a three-stage sequential strategy:

  1. Pre-training: The model is first trained on 45 million synthetic sentence pairs generated by the realistic noiser.
  2. Training: The model is further trained on a collection of all available human-annotated GEC datasets.
  3. Fine-tuning: A final stage of fine-tuning is performed on data that closely matches the target evaluation domain, such as student essays.

4. Context-Aware Neural Spellchecker

To handle orthographic errors, the system integrates a neural spellchecker. While traditional tools like hunspell evaluate words in isolation, this system uses a pre-trained Language Model (LM) to re-rank spelling suggestions based on their contextual fit within the sentence.

Experimental Setup and Datasets

The authors utilized a diverse set of corpora for different stages of the pipeline. Unannotated data for pre-training was sourced from Project Gutenberg, Tatoeba, and WikiText-103. Annotated training and fine-tuning data included the FCE, Lang-8, NUCLE, and W&I+LOCNESS datasets. The system was evaluated on the BEA 2019 Shared Task (Restricted and Low Resource tracks) and the CoNLL-2014 benchmark.

Results and Discussion

The sequential training approach yielded significant performance improvements at each stage. In the BEA 2019 Restricted Track, the system achieved a final $F_{0.5}$ score of 69.06.

Performance gains across sequential training stages for the BEA-2019 Restricted Track.

A key finding was the impact of noise quality during pre-training. The model pre-trained with realistic noise achieved an initial $F_{0.5}$ of 54.82 on the Restricted Track test set, vastly outperforming a version trained with random noise, which only reached 32.25. The system also demonstrated strong performance in the Low Resource track, reaching an $F_{0.5}$ of 61.47 despite minimal human-annotated data. Error analysis revealed particular strengths in correcting subject-verb agreement ($F_{0.5}$ of 84.09) and spelling ($F_{0.5}$ of 77.26).

Conclusion

This research demonstrates that GEC performance can be substantially improved through better synthetic data generation and a structured sequential transfer learning strategy. By mimicking human error patterns and gradually adapting the model to specific domains, the system effectively addresses the challenge of data scarcity. Future work will focus on improving the handling of complex collocations and incorporating multi-sentence context to resolve long-range dependencies like pronoun consistency.

Summary updated

BibTeX
@inproceedings{choe2019neural,
  author = {Yo Joong Choe and Jiyeon Ham and Kyubyong Park and Yeoil Yoon},
  title = {{A Neural Grammatical Error Correction System Built On Better Pre-training and Sequential Transfer Learning}},
  booktitle = {BEA @ ACL},
  year = {2019},
  doi = {10.18653/v1/w19-4423},
}
Figure