Abstract
While modern Grammatical Error Correction (GEC) tools excel at fixing syntactic errors, they often fail to elevate writing to a natural, idiomatic level. We introduce IdEALS, a framework and dataset designed for Idiomatic Sentence Generation for Writing Improvement (ISG-WI). This task focuses on replacing plain phrases with semantically equivalent idiomatic expressions to enhance prose quality. Our contributions include the IdEALS dataset, comprising over 8,000 training pairs and an expert-annotated test set of real student writing. We demonstrate that fine-tuned models augmented with specialized "checker" wrappers can effectively suggest idioms while maintaining high semantic accuracy and grammatical correctness.
Introduction
Standard writing assistants typically focus on "low-level" corrections such as syntax, spelling, and basic grammar. However, for language learners, the ultimate goal is to sound "natural" rather than just "correct." Existing research in Idiomatic Sentence Generation (ISG) often treats the problem as simple paraphrasing. In a writing improvement context, the challenge is more nuanced: a model must identify a sub-phrase suitable for idiomatic replacement, substitute it with a semantically equivalent expression, and ensure the surrounding sentence remains intact and grammatically sound.
Methods
The researchers explored two primary technical approaches to address the ISG-WI task: fine-tuning with specialized post-processing and in-context learning with large language models (LLMs).
Fine-tuning with "Wrappers"
The primary model is a Parrot paraphraser (based on T5) fine-tuned on the IdEALS dataset. To mitigate "hallucinations" and awkward phrasing, the authors implemented a sophisticated post-processing pipeline known as a Wrapper. This pipeline consists of:
- Fixer Wrapper: Includes Grammar and Fact Fixers to catch common T5-generated errors using rule-based heuristics.
- Checker Wrapper: Employs an IE Checker to verify the presence of an idiom, a Semantic Checker (using a RoBERTa-based NLI model) to ensure meaning preservation, and a Change Checker to confirm that only the intended sub-phrase was modified.
In-Context Learning (ICL)
As a baseline, LLMs such as GPT-3.5-turbo and text-davinci-003 were evaluated using few-shot prompting (10 examples) to determine their zero-shot/few-shot capability in handling idiomatic transformations without task-specific fine-tuning.
The IdEALS Dataset
The paper introduces the IdEALS dataset, which provides a more robust benchmark than previous synthetic datasets like PIE.
- Training Set: Contains 8,827 sentence pairs covering various idiomatic categories, including monosemous and polysemous idioms, phrasal verbs, and prepositional phrases.
- Test Set: Comprises 810 real-world sentences from the ETS Corpus of Non-Native Written English (TOEFL essays), manually annotated by five linguistics graduate students to establish a "gold standard" for idiomatic improvements.
Results and Discussion
Models were evaluated based on Adequacy (semantic preservation), Correctness (grammaticality), and Richness (idiom usage).
The Fine-tuned Parrot + Wrapper emerged as the most balanced system, producing 182 "Good Edits" with only 27 "Bad Edits." In contrast, while GPT-3.5-turbo generated a high number of "Good Edits" (461), it was significantly less reliable, producing 258 "Bad Edits" characterized by grammatical errors or semantic shifts.
Key insights from the evaluation include:
- The Precision-Recall Trade-off: The "Wrapper" system acts as a high-precision filter. While it reduces the total volume of suggestions (lower recall), it drastically improves the reliability (higher precision) necessary for educational tools.
- Sparsity of Idioms: In real student writing, not every sentence warrants an idiomatic change. Learning when to provide "No Edits" is a critical component of a helpful writing assistant.
Conclusion
The IdEALS framework demonstrates that specialized datasets and verification wrappers can bridge the "expressivity gap" in automated writing assistance. While current models struggle with input sentences that already contain heavy syntactic errors, future work aims to integrate idiomatic suggestions directly into standard GEC pipelines. This would allow for simultaneous grammatical correction and stylistic enhancement, providing a more holistic tool for language learners.
Summary updated