Abstract
Standard Grammatical Error Correction (GEC) models typically follow a "one-size-fits-all" approach, which fails to account for the varying needs of language learners. This paper presents a novel method to control the intensity of corrections by augmenting training data with Word Edit Rate (WER) tokens. By prepending special tokens representing different levels of edit density, a single model can be conditioned to produce outputs ranging from conservative grammatical corrections to more radical stylistic rewrites. Our results demonstrate that this approach not only provides a "control knob" for correction intensity but also yields performance improvements on standard benchmarks like CoNLL-2014 and JFLEG by allowing for task-specific optimization.
Introduction
When a human teacher corrects an essay, they adjust their feedback based on the student's proficiency level. A beginner might require a complete sentence overhaul for basic fluency, while an advanced student may only need minimal edits to fix specific grammar rules.
Existing neural GEC models struggle with this nuance because they are usually trained on static datasets that favor one style over another. For example, the CoNLL-2014 dataset focuses on minimal grammatical fixes, while JFLEG emphasizes broader fluency and stylistic improvements. Without a mechanism to control the degree of intervention, models cannot adapt to the specific needs of a learner or provide diverse correction options.
Methodology
The authors propose a simple yet effective "tagging" approach to control the intensity of corrections using Word Edit Rate (WER)—the Levenshtein distance between the original and corrected sentence, normalized by length—as a proxy for the "degree of correction."
Data Preparation and Training
- Quantifying Correction: WER was calculated for every sentence pair in the training set (comprising Lang-8, NUCLE, and synthetic NYT data).
- Data Binning: The data was divided into five equal-sized bins based on WER, ranging from lowest to highest edit density.
- Special Tokens: Each training sentence was prepended with a special token representing its bin (e.g.,
<1>for minimal changes,<5>for heavy rewrites). - Model Architecture: A multilayer convolutional encoder-decoder model was trained on this augmented data.
Inference and Ranking
At test time, the model can generate five different versions of a sentence by swapping the input token. To automatically select the optimal variant, two ranking methods were tested: Softmax (choosing the output with the highest model confidence) and Language Model (LM) (using an external n-gram language model to pick the most fluent result).
Key Results and Insights
Experiments confirmed that the average WER of the output sentences was directly proportional to the input token used, providing a clear "control knob" for the model.
Precision-Recall Trade-off
There is a clear relationship between control tokens and performance metrics. Lower WER tokens (like <1>) result in high precision (fewer, safer changes), while higher WER tokens increase recall (finding more errors) at the cost of precision. This allows users to tune the model based on whether they prefer accuracy or thoroughness.
Performance Gains
By using the Softmax ranking method, the model achieved an $F_{0.5}$ score of 46.25 on CoNLL-2014, outperforming the baseline of 43.52. On the JFLEG dataset, the LM ranking method resulted in a GLEU score of 53.87, significantly higher than the baseline of 51.77. These results suggest that conditioning the model on edit density allows it to better capture the specific characteristics of different evaluation tasks.
Limitations and Future Work
Despite the success of the control tokens, the authors noted that the highest WER bin (<5>) performed poorly due to "noisy" training data, such as target sentences containing irrelevant comments. Furthermore, automatically selecting the optimal degree of correction for a specific user remains a challenge; the "controlling accuracy" (how often the model's output WER matched the intended gold WER) was only between 53% and 62%. Future research will focus on improving these selection heuristics to better identify the most appropriate correction for a given input.
Summary updated