Detection-Correction Structure via General Language Model for Grammatical Error Correction

Wei Li, Houfeng Wang
5/28/2024
cs.CL

No official code found. Best implementation: GMago-LeWay/GECFramework (24 stars, last commit 2024-09-17).

Abstract

Grammatical error correction (GEC) is a task dedicated to rectifying texts with minimal edits, which can be decoupled into two components: detection and correction. However, previous works have predominantly focused on direct correction, with no prior efforts to integrate both into a single model. Moreover, the exploration of the detection-correction paradigm by large language models (LLMs) remains underdeveloped. This paper introduces an integrated detection-correction structure, named DeCoGLM, based on the General Language Model (GLM). The detection phase employs a fault-tolerant detection template, while the correction phase leverages autoregressive mask infilling for localized error correction. Through the strategic organization of input tokens and modification of attention masks, we facilitate multi-task learning within a single model. Our model demonstrates competitive performance against the state-of-the-art models on English and Chinese GEC datasets. Further experiments present the effectiveness of the detection-correction structure in LLMs, suggesting a promising direction for GEC.

View on arXivView PDF

Code Implementations(1)

A Code System for Grammar Error Correction Method. Code Repo for ACL 24 Main "Detection-Correction Structure via General Language Model for Grammatical Error Correction"

240Shell, PythonApr 17, 20232 years ago

Similar Papers

Cite this paper

@article{li2024detectioncorrection,
  title  = {Detection-Correction Structure via General Language Model for Grammatical Error Correction},
  author = {Wei Li and Houfeng Wang},
  year   = {2024},
  eprint = {2405.17804},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.17804v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.17804.svg)](https://codeofpaper.com/paper/2405.17804)

Discussion