NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

G-SPEED: General SParse Efficient Editing MoDel

Haoke Zhang, Yue Wang, Juntao Li, Xiabing Zhou, Min Zhang

Abstract

G-SPEED is a lightweight (508M parameter) text editing model designed to handle diverse editing intents with high efficiency. By combining unsupervised data clustering of Wikipedia revisions with a sparse Mixture-of-Experts (MoE) architecture, G-SPEED outperforms significantly larger models like GPT-3 and ChatGPT on the EditEval benchmark while maintaining a 35x speed advantage over LLaMA-7B.

Introduction

Text editing is a complex, multi-faceted task encompassing grammar correction, simplification, and stylistic adjustments. While Large Language Models (LLMs) like GPT-3 are capable editors, their massive scale makes them computationally expensive and slow for iterative editing tasks. Conversely, specialized models often lack the breadth to handle general-purpose writing assistance. G-SPEED addresses this gap by providing a general, efficient, and lightweight editing model that matches or exceeds the performance of its much larger counterparts.

Methods

The G-SPEED framework relies on two primary innovations: intent-based data clustering and a sparse architectural design.

Unsupervised Data Clustering

A key challenge in training general editing models is the lack of large-scale, intent-labeled data. G-SPEED overcomes this by mining Wikipedia's revision history. Using Sentence-BERT and K-Means clustering, millions of user comments are grouped into four primary editing intents: Fluency, Readability, Simplification, and Neutralization. This process transforms noisy web data into a high-quality, multi-task training set without the need for expensive human annotation.

Unsupervised clustering of Wikipedia revision comments into four distinct intent categories (C1-C4).

Sparse Editing Architecture

G-SPEED utilizes a Sparse BERT architecture incorporating a Mixture-of-Experts (MoE) mechanism. This design allows the model to activate specific "expert" layers based on the detected editing intent (e.g., a "Simplification Expert"), increasing model capacity without adding computational overhead per token. This approach effectively avoids "task interference," where learning one type of edit might degrade performance on another.

The G-SPEED architecture featuring a two-step tagging and generation pipeline with sparse MoE layers.

The model operates in a two-step pipeline:

  1. Tagging: A classifier labels each word with operations such as KEEP (K), DELETE (D), or REPLACE (R).
  2. Generation: A non-autoregressive Masked Language Model (MLM) fills in the necessary text for replacements or additions based on the tags.

Key Results and Insights

Evaluation on the EditEval benchmark demonstrates G-SPEED's effectiveness:

  • Performance: G-SPEED achieved an average SARI score of 43.2, surpassing InstructGPT (40.4) and ChatGPT (39.0).
  • Efficiency: The model is 35.8x faster than LLaMA-7B in terms of tokens processed per second.
  • Iterative Refinement: While most edits are handled in a single pass, the authors found that fluency tasks consistently benefit from multiple iterative passes through the model.
  • Generalization: Even with minimal fine-tuning (500 samples), the pre-trained model showed strong performance on new tasks, validating the Wikipedia-based pre-training strategy.

These findings suggest that for structured tasks like editing, architectural efficiency and high-quality, intent-aligned data are more critical than raw parameter scale.

Conclusion and Future Work

G-SPEED demonstrates that a relatively small model can outperform 175B+ parameter LLMs when optimized for specific multi-task domains. While highly effective, current limitations include a struggle with multi-intent revisions and potential biases from Wikipedia's writing style. Future research will explore more complex routing algorithms and document-level editing capabilities.

Summary updated

BibTeX
@inproceedings{zhang2023g,
  author = {Haoke Zhang and Yue Wang and Juntao Li and Xiabing Zhou and Min Zhang},
  title = {{G-SPEED: General SParse Efficient Editing MoDel}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.142},
}
Figure