Multi-Class Grammatical Error Detection for Correction: A Tale of Two Systems

Zheng Yuan, Shiva Taslimipoor, Christopher Davis, Christopher BryantEMNLP 2021

Abstract

Grammatical Error Correction (GEC) is typically treated as a sequence-to-sequence translation task. However, standard models often struggle with specific error types due to a lack of explicit diagnostic guidance. This paper, presented at EMNLP 2021, proposes a synergistic framework that integrates multi-class Grammatical Error Detection (GED) into the correction process. By utilizing an ELECTRA-based detector to provide fine-grained error labels (e.g., verb tense, noun number) to a multi-encoder Transformer corrector, the authors achieve a new single-model state-of-the-art $F_{0.5}$ score of 70.6 on the BEA-2019 benchmark.

Introduction

Traditional GEC systems often operate blindly, attempting to "translate" ungrammatical text into a corrected version without a formal understanding of the underlying errors. While binary GED (identifying a token as simply "correct" or "incorrect") has been used to assist GEC, it provides coarse feedback. This research argues that "knowing what kind of mistake was made" is as crucial as knowing a mistake exists. The challenge addressed here is the effective injection of fine-grained diagnostic information into a correction model to improve precision without introducing excessive noise or overfitting.

Methodology: A Tale of Two Systems

The proposed architecture consists of two primary components: a high-performance detector and a multi-encoder corrector.

The Detector (GED)

The authors employ ELECTRA as the backbone for a sequence labeling system. ELECTRA's pre-training objective—discriminating between original and replaced tokens—makes it uniquely suited for error detection. The detector is trained to predict error classes based on the ERRANT framework, ranging from binary labels to 55 specific categories (e.g., R:VERB:TENSE).

The Corrector (GEC)

The correction model is a multi-encoder Transformer. One encoder processes the original source sentence, while a second encoder processes the sequence of GED labels predicted by the detector. A gating mechanism is implemented to learn the optimal weighting of information from both encoders before it reaches the decoder.

The multi-encoder Transformer architecture, featuring dual encoders for source text and GED labels, integrated via a gating mechanism.

The integration follows a two-step fine-tuning process to prevent over-reliance on the detector. Additionally, a re-ranking stage uses the GED model to score the top 10 hypotheses generated by the GEC model, selecting the one that best matches the predicted error patterns.

Experiments and Results

The system was evaluated on standard benchmarks including BEA-2019 and CoNLL-2014, using both public (constrained) and private (unconstrained) datasets.

Key Insights

  • ELECTRA Superiority: Fine-tuning ELECTRA established a new state-of-the-art in binary error detection, outperforming BERT-based alternatives due to its inherent "discriminator" nature.
  • Optimal Granularity: The study found a "Goldilocks" effect regarding label detail. For fine-tuning the corrector, 4-class labels (Missing, Replacement, Unnecessary, Correct) provided the best balance of signal and noise. However, for the re-ranking stage, the highly specific 55-class model was most effective.
  • Addressing Omissions: The explicit GED signal significantly improved the model's ability to detect and fix missing words, a common weakness in baseline NMT-based GEC models.

Performance Gains

The integrated system achieved a new single-model NMT state-of-the-art on the BEA-test benchmark with an $F_{0.5}$ score of 70.6. In constrained settings, the approach outperformed previous benchmarks by +9.4 $F_{0.5}$ points.

Impact of GED label granularity on GEC performance. The 'Oracle' bars demonstrate the significant potential for improvement as detector accuracy increases.

Oracle experiments using human-annotated GED labels revealed that GEC performance scales directly with detector quality, reaching $F_{0.5}$ scores over 70 on development sets when provided with perfect error diagnostics.

Conclusion and Future Work

The primary bottleneck for this approach remains the reliability of the multi-class detector, as complex labels are inherently harder to predict than binary ones. Future research directions include joint training of the detector and corrector to allow real-time negotiation and correction of uncertainties between the two modules.

Summary updated

BibTeX
@inproceedings{yuan2021multi,
  author = {Zheng Yuan and Shiva Taslimipoor and Christopher Davis and Christopher Bryant},
  title = {{Multi-Class Grammatical Error Detection for Correction: A Tale of Two Systems}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.687},
}
Figure