GEE! Grammar Error Explanation with Large Language Models

Yixiao Song, Kalpesh Krishna, Rajesh Bhatt, Kevin Gimpel, Mohit Iyyer

Introduction

While modern AI can correct grammatical errors with high proficiency, it rarely explains the reasoning behind those corrections. For language learners, simply seeing a corrected sentence is often insufficient; understanding the underlying linguistic rules—such as why "ein" should be "einen" due to masculine accusative case agreement—is essential for long-term improvement.

This paper introduces GEE (Grammar Error Explanation), a framework designed to transform Grammatical Error Correction (GEC) from a "black box" into a transparent educational tool. The authors demonstrate that while state-of-the-art models like GPT-4 struggle to identify and explain errors simultaneously (often missing up to 40% of errors in end-to-end tasks), a modular approach significantly improves accuracy and reduces hallucinations.

The GEE Pipeline

The core innovation of GEE is a two-step pipeline that separates the identification of changes from the linguistic explanation of those changes.

The GEE two-step pipeline: extracting atomic edits followed by natural language explanation.
  1. Atomic Token Edit Extraction: The system first breaks down corrections into "atomic edits"—the smallest linguistically meaningful units. These include operations like insert, delete, replace, or relocate. By treating word order changes as "relocations" rather than separate deletions and insertions, the system provides much clearer feedback for languages with complex syntax like German.
  2. Explanation Generation: These extracted edits are fed into GPT-4 with language-specific prompts. The model then generates a succinct explanation and assigns a specific error type (e.g., "gender and case" or "spelling").

Experimental Setup and Datasets

The researchers evaluated GEE across three typologically distinct languages using established GEC corpora:

  • German: Merlin and Falko (L2 learner essays).
  • Chinese: CGED2017 (HSK proficiency test writing tasks).
  • English: BEA-2019 (W&I+LOCNESS dataset).

To ensure rigorous testing, the authors manually annotated subsets of these datasets to create "gold" benchmarks for atomic edits, which have been open-sourced to facilitate future research in the field.

Key Results and Insights

The modular approach proved highly effective across all tested languages. Fine-tuned models achieved F1 scores for edit identification as high as 0.93 for German and 0.91 for Chinese.

Human evaluation results demonstrating that over 96% of generated explanations were fully correct.

Human evaluation by professional language teachers and researchers confirmed the system's utility. As shown in the evaluation data, 96.37% of explanations were rated as fully correct, with zero instances of hallucinated errors. This represents a massive improvement over one-shot GPT-4 baselines, which correctly explained only about 40.6% of errors in head-to-head comparisons.

The "Atomic" Advantage

The study highlights that LLMs are excellent at explaining rules when a specific error is pointed out, but mediocre at finding those errors in raw text. By forcing the model to focus on surgical, atomic units, the logic remains precise and the explanations avoid the "muddiness" often found in multi-word phrase corrections.

Limitations and Future Directions

While GEE marks a significant step forward, the authors noted several areas for future development:

  • Contextual Constraints: The current system operates at the sentence level and may miss errors requiring document-level context, such as discourse markers.
  • Granularity of Error Types: In some languages, particularly Chinese, the model occasionally provides overly general error categories (e.g., labeling idiomatic errors as simple "word choice").
  • Integration: Future work will focus on integrating GEE into interactive writing assistants to provide real-time, pedagogically sound feedback to students worldwide.

Summary updated

BibTeX
@inproceedings{song2024gee,
  author = {Yixiao Song and Kalpesh Krishna and Rajesh Bhatt and Kevin Gimpel and Mohit Iyyer},
  title = {{GEE! Grammar Error Explanation with Large Language Models}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-naacl.49},
}
Figure