Abstract
This paper evaluates the performance of Large Language Models (LLMs), specifically GPT-3.5 and GPT-4, in the domain of Grammatical Error Correction (GEC). Traditional GEC systems are optimized for "minimal edits," a paradigm suitable for language learners but often at odds with natural sentence flow. Our analysis reveals that while LLMs struggle with minimal-edit benchmarks like BEA-2019, they excel at holistic revision. Notably, GPT-4 establishes a new state-of-the-art on the fluency-focused JFLEG benchmark, outperforming both specialized systems and human references.
Introduction
Grammatical Error Correction (GEC) has historically been framed as a task of correcting specific errors with minimal changes to the source text. While effective for pedagogical tools, this "minimal edit" approach does not fully capture the nuances of professional writing revision. With the rise of Large Language Models (LLMs), there is a shift toward fluency-oriented correction. This study investigates the efficacy of GPT-3.5 and GPT-4 in GEC, focusing on prompt sensitivity, comparative performance against specialized models, and the limitations of current evaluation metrics.
Methods
The researchers employed a multi-faceted experimental design to evaluate text-davinci-003 (GPT-3.5) and gpt-4-0314 (GPT-4). The methodology included:
- Prompt Engineering: Testing 10 zero-shot prompt variations to identify the most effective instructions for GEC.
- Hyperparameter Tuning: Evaluating the impact of temperature ($\tau$) at 0.1, 0.5, and 0.9.
- Few-Shot Learning: Assessing performance gains from providing 1 to 6 example pairs.
- Human Evaluation: Side-by-side comparisons by crowd workers to validate automated metrics against human judgment.
The study utilized two distinct benchmarks: BEA-2019, which emphasizes grammaticality and precision via the $F_{0.5}$ metric, and JFLEG, which focuses on fluency and holistic revision measured by GLEU.
Key Insights and Results
Prompt Sensitivity and Temperature
The performance of LLMs in GEC is highly sensitive to the specific wording of the prompt. The most successful prompt (Prompt 10) provided detailed instructions, including a fallback to return the original sentence if no errors were detected. Furthermore, a low temperature ($\tau=0.1$) was found to be critical for maintaining accuracy and preventing "hallucinated" content expansions where the model might add extraneous information to fragments.
The "Minimal Edit" Penalty
A significant finding is the performance gap between LLMs and specialized GEC systems on the BEA-2019 benchmark. Specialized models like GECToR+BIFI achieve much higher $F_{0.5}$ scores because they adhere strictly to the minimal-edit requirement. In contrast, GPT models often rewrite sentences for better flow, which the $F_{0.5}$ metric penalizes as "unnecessary" changes, even if the resulting sentence is more natural.
State-of-the-Art Fluency
Despite the penalty in minimal-edit tasks, GPT-4 achieved a record-breaking 65.02 GLEU on the JFLEG test set. This score surpasses previous specialized models and even the human-written "gold standard" references. Human evaluators confirmed this trend, often preferring the "over-edited" versions produced by GPT models because they smoothed awkward phrasing into more natural English compared to technically correct but stiff human references.
Discussion and Limitations
The study highlights a mismatch between traditional GEC metrics and the capabilities of LLMs. Metrics like $F_{0.5}$ are poorly suited for evaluating the "revision-style" corrections that LLMs perform. There is a clear need for "reference-less" metrics that can judge fluency and meaning preservation without relying on a single "minimal edit" gold standard.
Additionally, the researchers noted qualitative "hallucinations" where models would infer context not present in the source text to improve fluency. The proprietary nature of these models also introduces volatility, as updates to the underlying APIs may alter performance over time.
Conclusion
GPT-4 represents a significant leap in automated writing assistance, particularly for fluency-focused revision. While specialized systems remain superior for pedagogical "minimal edit" tasks, LLMs are now the state-of-the-art for general-purpose grammatical correction and stylistic improvement. Future work should focus on developing evaluation frameworks that better align with these advanced revision capabilities.
Summary updated