arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.17804cs.CL
收藏

基于通用语言模型的检测-纠正结构用于语法纠错

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

Peking University(北京大学)

Wei Li, Houfeng Wang

AI总结:

本文提出DeCoGLM,基于通用语言模型GLM的集成检测-纠正结构,通过容错检测模板和自回归掩码填充实现多任务学习,在英语和中文GEC数据集上达到先进水平。

摘要:

语法纠错(GEC)是一项致力于以最小编辑量修正文本的任务,可分解为两个组成部分:检测和纠正。然而,以往的工作主要集中于直接纠正,没有先前努力将两者整合到单一模型中。此外,大型语言模型(LLMs)对检测-纠正范式的探索仍不充分。本文介绍了一种集成的检测-纠正结构,命名为DeCoGLM,基于通用语言模型(GLM)。检测阶段采用容错检测模板,而纠正阶段利用自回归掩码填充进行局部错误纠正。通过输入标记的策略性组织和注意力掩码的修改,我们在单一模型内促进了多任务学习。我们的模型在英语和中文GEC数据集上展示了与最先进模型相当的性能。进一步的实验证明了检测-纠正结构在LLMs中的有效性,为GEC指明了一个有前景的方向。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑