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

C-LLM:学习逐字检查中文拼写错误

C-LLM: Learn to Check Chinese Spelling Errors Character by Character

Tsinghua University(清华大学);WeChat AI, Tencent Inc(腾讯微信人工智能实验室);Xinjiang University(新疆大学)

Kunting Li, Yong Hu, Liang He, Fandong Meng, Jie Zhou

AI总结:

针对 LLM 在中文拼写检查中难以满足等长与音近约束的问题,本文提出字符级分词的 C-LLM,将任务设计为复制为主、替换为辅,在两个基准上平均提升 10%。

摘要:

中文拼写检查(CSC)旨在检测并纠正句子中的拼写错误。尽管大语言模型(LLM)展现出强大能力并被广泛应用于各类任务,但其在 CSC 上的表现往往不尽如人意。我们发现,LLM 无法满足 CSC 任务的中文字符级约束,即等长和语音相似性,从而导致性能瓶颈。进一步分析表明,该问题源于分词的粒度,因为当前的字词混合分词难以满足这些字符级约束。为解决这一问题,我们提出 C-LLM,这是一种基于大语言模型的中文拼写检查方法,学习逐字检查错误。字符级分词使模型能够学习字符级对齐,有效缓解与字符级约束相关的问题。此外,CSC 被简化为以复制为主、替换为辅的任务。在两个 CSC 基准上的实验表明,C-LLM 相比现有方法平均提升 10%。具体而言,其在通用场景中提升 2.1%,在垂直领域场景中显著提升 12%,确立了最先进性能。源代码可在 https://github.com/ktlKTL/C-LLM 获取。

英文摘要:

Chinese Spell Checking (CSC) aims to detect and correct spelling errors in sentences. Despite Large Language Models (LLMs) exhibit robust capabilities and are widely applied in various tasks, their performance on CSC is often unsatisfactory. We find that LLMs fail to meet the Chinese character-level constraints of the CSC task, namely equal length and phonetic similarity, leading to a performance bottleneck. Further analysis reveal that this issue stems from the granularity of tokenization, as current mixed character-word tokenization struggles to satisfy these character-level constraints. To address this issue, we propose C-LLM, a Large Language Model-based Chinese Spell Checking method that learns to check errors Character by Character. Character-level tokenization enables the model to learn character-level alignment, effectively mitigating issues related to character-level constraints. Furthermore, CSC is simplified to replication-dominated and substitution-supplemented tasks. Experiments on two CSC benchmarks demonstrate that C-LLM achieves an average improvement of 10% over existing methods. Specifically, it shows a 2.1% improvement in general scenarios and a significant 12% improvement in vertical domain scenarios, establishing state-of-the-art performance. The source code can be accessed at https://github.com/ktlKTL/C-LLM.

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

↑