arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.04027cs.CL
收藏

一种基于大语言模型的简单有效、无需训练且无需提示的中文拼写纠错方法

A Simple yet Effective Training-free Prompt-free Approach to Chinese Spelling Correction Based on Large Language Models

School of Computer Science and Technology, Soochow University(苏州大学计算机科学与技术学院);DAMO Academy, Alibaba Group(阿里巴巴集团达摩院)

Houquan Zhou, Zhenghua Li, Bo Zhang, Chen Li, Shaopeng Lai, Ji Zhang, Fei Huang, Min Zhang

AI总结:

本研究提出一种无需训练、无需提示的中文拼写纠错方法,通过将大语言模型作传统语言模型使用,结合最小失真模型与两种奖励策略,在五个公开数据集上性能比肩领域内最先进模型。

摘要:

本研究提出了一种利用大语言模型(large language models, LLMs)解决中文拼写纠错(Chinese Spelling Correction, CSC)任务的方法,该方法无需训练、无需提示,与以往所有CSC方法截然不同。其核心思路是以传统方式将LLM纯粹用作语言模型:LLM从头遍历输入句子,在每个推理步骤,基于已生成的部分句子输出词表上的概率分布,以确定下一个token。为保证输出句子与输入句子保持一致,我们设计了最小失真模型,利用原字符与替换字符之间的字音或字形相似性进行约束。此外,我们还提出了两种实用的奖励策略,以应对CSC任务特有的实际挑战。在五个公开数据集上的实验表明,该方法显著提升了LLM的性能,使其能够与最先进的通用领域CSC模型相媲美。

英文摘要:

This work proposes a simple training-free prompt-free approach to leverage large language models (LLMs) for the Chinese spelling correction (CSC) task, which is totally different from all previous CSC approaches. The key idea is to use an LLM as a pure language model in a conventional manner. The LLM goes through the input sentence from the beginning, and at each inference step, produces a distribution over its vocabulary for deciding the next token, given a partial sentence. To ensure that the output sentence remains faithful to the input sentence, we design a minimal distortion model that utilizes pronunciation or shape similarities between the original and replaced characters. Furthermore, we propose two useful reward strategies to address practical challenges specific to the CSC task. Experiments on five public datasets demonstrate that our approach significantly improves LLM performance, enabling them to compete with state-of-the-art domain-general CSC models.

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

↑