Instruction-Driven In-Context Learning for Domain-Specific Chinese Spelling Correction

Hyunsoo Park, Hongqiu Wu, Hai Zhao


Abstract
This paper investigates domain adaptation in Chinese Spelling Correction (CSC) based on the instruction-following ability of large language models (LLMs). In the instructions, we include a variety of domain-specific requirements for spelling correction, such as the domain’s formal-ity or writing tone, which go beyond the considerations of previous CSC research. To evaluate the LLMs’ performance on instruction-following, we propose IDSpell, a semi-supervised con-struction pipeline for a CSC dataset containing a wide range of domain-specific sentences along with specific instructions. We construct a dataset with IDSpell and evaluate it on Qwen2.5 andGPT-4o, where we find that instructions serve a meaningful influence in correction, increasing the average F1 score by 10.4% compared to when the instructions are not provided. To further enhance the result, we propose Contrastive Prompting, a method incorporating contrastive false examples into the prompt to better guide the model to understand the instruction. Experiments demonstrate that our method outperforms baseline prompting with an average improvement of 5.4%. Our dataset and code are publicly available for further research.
Anthology ID:
2025.ccl-1.82
Volume:
Proceedings of the 24th China National Conference on Computational Linguistics (CCL 2025)
Month:
August
Year:
2025
Address:
Jinan, China
Editors:
Maosong Sun, Peiyong Duan, Zhiyuan Liu, Ruifeng Xu, Weiwei Sun
Venue:
CCL
SIG:
Publisher:
Chinese Information Processing Society of China
Note:
Pages:
1095–1107
Language:
URL:
https://preview.aclanthology.org/ingest-ccl/2025.ccl-1.82/
DOI:
Bibkey:
Cite (ACL):
Hyunsoo Park, Hongqiu Wu, and Hai Zhao. 2025. Instruction-Driven In-Context Learning for Domain-Specific Chinese Spelling Correction. In Proceedings of the 24th China National Conference on Computational Linguistics (CCL 2025), pages 1095–1107, Jinan, China. Chinese Information Processing Society of China.
Cite (Informal):
Instruction-Driven In-Context Learning for Domain-Specific Chinese Spelling Correction (Park et al., CCL 2025)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-ccl/2025.ccl-1.82.pdf