Abstract
We introduce CoEdIT, a state-of-the-art text editing system for writing assistance. CoEdIT takes instructions from the user specifying the attributes of the desired text, such as "Make the sentence simpler" or "Write it in a more neutral style," and outputs the edited text. We present a large language model fine-tuned on a diverse collection of task-specific instructions for text editing (a total of 82K instructions). Our model (1) achieves state-of-the-art performance on various text editing benchmarks, (2) is competitive with publicly available largest-sized LLMs trained on instructions while being ∼60x smaller, (3) is capable of generalizing to unseen edit instructions, and (4) exhibits abilities to generalize to composite instructions containing different combinations of edit actions. Through extensive qualitative and quantitative analysis, we show that writers prefer the edits suggested by CoEdIT relative to other state-of-the-art text editing models.
Introduction
While general-purpose large language models (LLMs) like ChatGPT are capable of editing text, they are often "underfitted" for the specific nuances of writing assistance. They may repeat input, generate irrelevant continuations, or fail to grasp complex constraints such as "make this more neutral without changing the meaning." Existing specialized editing models are typically "one-trick ponies"—focused solely on grammar or simplification—and lack a natural language interface.
CoEdIT addresses this gap by providing a versatile, instruction-following system that understands the broad "instruction space" of editing, including fluency, clarity, coherence, and style. By training on a dense collection of 82,000 task-specific instructions, the researchers produced a suite of models that consistently outperform general-purpose models 60 times their size.
Methods and Data
The researchers developed CoEdIT by fine-tuning the Flan-T5 family of models, ranging from 770M to 11B parameters. The core innovation is Task-Specific Instruction Tuning, which involves converting existing text-editing datasets into instruction-based pairs.
The training process utilized several key strategies:
- Instructional Formatting: Aggregating datasets for Fluency (e.g., GEC), Clarity (Simplification), Coherence (Sentence Fusion), and Style (Formality, Neutralization, Paraphrasing).
- Diverse Verbalizers: To ensure robustness, the models were trained with various phrasings for the same intent (e.g., "Clarify," "Make the text more understandable").
- Composite Training: A variant, CoEdIT-XL-C, was trained on multi-task instructions to handle requests like "fix the grammar and make this simpler" in a single pass.
Key Results
The primary finding is that density over scale is a winning strategy for text editing. CoEdIT-XL (3B parameters) achieves state-of-the-art performance on nearly all benchmarks, including the iterative editing suite (ITERATER), and significantly outperforms models like GPT-3 (175B).
Efficiency and Human Preference
CoEdIT-XL is roughly 60x smaller than the largest models it was compared against, making it a far more viable candidate for real-time writing assistant applications. In head-to-head comparisons, professional linguists preferred CoEdIT-XL’s outputs 64% of the time over GPT3-Edit (the 175B parameter specialized editing version of GPT-3).
Generalization to Unseen Tasks
CoEdIT exhibits strong zero-shot generalization to "adjacent" tasks not explicitly seen during training, such as politeness transfer and sentence compression. This suggests that by learning a broad range of editing intents, the model develops a latent understanding of "text transformation" as a general concept.
Limitations and Future Work
Despite its success, CoEdIT has limitations. Most training data consists of single sentences or short paragraphs, leaving its effectiveness on long-form document coherence as a subject for future research. Additionally, the model is specifically tuned to be non-meaning-changing, which limits its use in creative writing where expansion is desired. Future directions include moving toward document-level editing and exploring integration into human-in-the-loop iterative writing workflows.
Summary updated