An Empirical Investigation of Domain Adaptation Ability for Chinese Spelling Check Models

Xi Wang, Ruoqing Zhao, Hongliang Dai, Piji Li · DOI

Abstract

Chinese Spelling Check (CSC) is a fundamental task in natural language processing, essential for downstream applications such as OCR and speech recognition. While current BERT-based models achieve high performance on general-domain benchmarks, their efficacy in specialized fields remains under-explored. This paper investigates the domain adaptation capabilities of various CSC models—including supervised, unsupervised, and large language models (LLMs)—across financial, medical, and legal domains. Our findings reveal a significant performance degradation in supervised models when faced with domain-specific terminology, while unsupervised approaches and models utilizing external dictionaries demonstrate superior robustness.

Introduction

Chinese Spelling Check (CSC) involves the detection and correction of spelling errors in Chinese text, which are primarily categorized into phonetic (pronunciation-based) and visual (shape-based) similarities. While state-of-the-art models fine-tuned on general datasets like SIGHAN15 perform exceptionally well in common contexts, they often struggle with "domain shift." In specialized sectors like law or medicine, a model may misidentify technical jargon as a typo and "correct" it to a more common but contextually incorrect word. This study systematically evaluates how current CSC architectures navigate the complexities of specialized professional vocabularies.

Methodology

To evaluate domain adaptation, the researchers compared three distinct categories of models:

  1. Supervised Models: Including FASPell, Soft-Masked BERT, SpellGCN, and ECSpell. These models are typically trained on large-scale, general-domain labeled datasets.
  2. Unsupervised Models: Specifically uChecker, which utilizes masked language modeling (MLM) without explicit error-labeled training data for specific domains.
  3. Large Language Models (LLMs): ChatGPT was evaluated using customized prompts to determine its zero-shot capabilities in specialized CSC tasks.

Dataset Construction

Because standard benchmarks are limited to general text, the researchers developed three new domain-specific test sets: Financial (from public financial reports), Medical (from the CMeEE corpus), and Legal (from CAIL2018 criminal case records).

To simulate realistic errors, the researchers injected typos into clean corpora using a ratio that mimics human error patterns: 83% phonetic and 48% visual similarity. The final error distribution followed a 3:3:2:2 ratio of phonetic, visual, pinyin-sequence, and HMM-based replacements. To increase task difficulty, sentences were constructed with two error positions.

Key Results and Analysis

The Supervised Performance Gap

The study found that supervised models suffer from a "supervised trap." Because these models are heavily fine-tuned on general-domain word patterns, they become biased against rare terminology. For example, on the general SIGHAN15 dataset, supervised models typically achieve F1 scores in the 70s. However, in the Legal domain, performance plummeted—Soft-Masked BERT’s F1 score dropped to a mere 18.8%.

The Robustness of Unsupervised Learning

In a surprising reversal of typical NLP trends, the unsupervised model uChecker consistently outperformed supervised models across all specialized domains. By avoiding the biases inherent in general-domain labeled data, uChecker maintained a stable character-level F1 score between 85% and 89% across the Financial, Medical, and Legal sets. This suggests that for domain-specific applications, a flexible understanding of context is more valuable than rigid training on general-domain error patterns.

The Role of External Knowledge

Among the supervised models, ECSpell demonstrated the highest resilience. This is attributed to its integration of a user dictionary. By referencing a list of domain-specific terms, ECSpell can verify technical jargon before attempting a correction, effectively mitigating the over-correction trap that hinders its peers.

LLMs and the Precision Crisis

While ChatGPT demonstrated high recall—successfully identifying 84.6% of errors in the Financial domain—its precision was extremely low (9.3%). The model is "trigger-happy," frequently altering valid technical terms into simpler, more common Chinese characters. This high rate of false positives makes current LLMs unreliable for professional CSC tasks without significant prompt engineering or fine-tuning.

Conclusion

This empirical investigation highlights the fragility of supervised CSC models in the face of domain shift. While general-domain performance is high, the "over-correction" of specialized jargon poses a significant hurdle for practical deployment in fields like law and medicine. The success of unsupervised models and dictionary-based supervised models suggests that future research should focus on incorporating external knowledge bases and improving unsupervised pre-training to bridge the gap between general and specialized Chinese spelling check.

Summary updated

BibTeX
@inproceedings{wang2024empirical,
  author = {Xi Wang and Ruoqing Zhao and Hongliang Dai and Piji Li},
  title = {{An Empirical Investigation of Domain Adaptation Ability for Chinese Spelling Check Models}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=QgjCUhfJSV},
}
Figure