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

Houquan Zhou, Zhenghua Li, Bo Zhang, Chen Li, Shaopeng Lai +3 more
10/5/2024
cs.CL

No official code found. Best implementation: Jacob-Zhou/simple-csc (89 stars, Apache-2.0, last commit 2025-07-09).

Abstract

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.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This repository provides an implementation of "A Simple yet Effective Training-free Prompt-free Approach to Chinese Spelling Correction Based on Large Language Models" and "A Training-free LLM-based Approach to General Chinese Character Error Correction".

8914Shell, PythonMar 25, 20241 years agoApache-2.0
chinese-spell-checkchinese-spelling-correctioncsclarge-language-modelspelling-checker+2 more

Similar Papers

Cite this paper

@article{zhou2024simple,
  title  = {A Simple yet Effective Training-free Prompt-free Approach to Chinese Spelling Correction Based on Large Language Models},
  author = {Houquan Zhou and Zhenghua Li and Bo Zhang and Chen Li and Shaopeng Lai and Ji Zhang and Fei Huang and Min Zhang},
  year   = {2024},
  eprint = {2410.04027},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.04027v1}
}

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/2410.04027.svg)](https://codeofpaper.com/paper/2410.04027)

Discussion