MDCSpell: A Multi-task Detector-Corrector Framework for Chinese Spelling Correction

Chenxi Zhu, Ziqiang Ying, Boyu Zhang, Feng MaoACL 2022

Introduction

Chinese Spelling Correction (CSC) is a critical task in natural language processing, complicated by the high frequency of homophones (characters with identical sounds) and visually similar characters. For instance, a user might mistakenly type "急遍" (jí biàn) instead of the correct "急变" (jí biàn). While modern models often leverage pre-trained architectures like BERT, they frequently encounter a fundamental "catch-22" in their approach to error handling.

Traditional models generally follow one of two paths: Direct Correction, where the model attempts to fix characters based on raw context, or Detection-then-Masking, where errors are identified and replaced with a [MASK] token before correction. The former often fails because misspelled characters "poison" the semantic context, leading to further errors. The latter cleans the context but discards vital phonological and visual "clues" inherent in the typo that could guide the model toward the correct character.

The MDCSpell Framework

To resolve this conflict, the researchers propose MDCSpell, a multi-task detector-corrector framework designed to retain the useful signals of a typo while neutralizing its misleading semantic influence.

Comparison of CSC architectures: (a) Direct Correction, (b) Detection-then-Masking, and (c) MDCSpell's Late Fusion approach.

Architecture and Late Fusion

MDCSpell consists of two parallel branches that share a word embedding table:

  1. The Detection Network: A lightweight Transformer-based binary classifier that predicts the probability of an error at each character position.
  2. The Correction Network: A powerful BERT-based model that captures the semantic, visual, and phonological features of the input sentence.

Instead of masking the input, MDCSpell employs a Late Fusion strategy. The hidden states from the Detection Network ($H^d$) and the Correction Network ($H^c$) are fused ($H = H^d + H^c$) before the final output layer. This allows the Correction branch to "know" which parts of its input are likely erroneous, effectively filtering out the noise while retaining the phonological and visual hints necessary for accurate correction.

Detailed architecture of MDCSpell, highlighting the interaction between the Correction Network (BERT) and the Detection Network via late fusion.

Key Insights and Results

The authors discovered that misspelled characters are not merely "garbage" but "noisy signals." By flagging errors rather than masking them, MDCSpell maintains the signal-to-noise ratio required for high-performance correction. Furthermore, the study found that initializing the Detection Network with BERT weights—rather than random initialization—significantly boosts performance, suggesting that detection itself benefits from deep linguistic pre-training.

MDCSpell was evaluated on the industry-standard SIGHAN benchmarks (2013, 2014, and 2015), consistently outperforming previous state-of-the-art models such as SpellGCN and Soft-Masked BERT:

  • SIGHAN 13: Achieved an F1 score of 81.8% (vs. 74.6% BERT baseline).
  • SIGHAN 14: Reached 68.3% F1, surpassing the previous best of 67.5%.
  • SIGHAN 15: Reached 78.3% F1, a significant improvement over the 73.0% baseline.

Qualitative analysis shows that MDCSpell is particularly adept at handling consecutive errors (e.g., correcting "纳福境" to "那附近"), where traditional models often struggle due to the severely disrupted sentence structure.

Conclusion and Future Work

MDCSpell demonstrates that a multi-task approach with late fusion is a robust solution for the "poisoned context" problem in CSC. While highly effective, future iterations could benefit from integrating external "confusion sets" (pre-defined lists of similar characters) to further improve recall. Additionally, the authors suggest that this detector-corrector logic could be adapted for broader Grammatical Error Correction (GEC) tasks involving word-level insertions and deletions.

Summary updated

BibTeX
@inproceedings{zhu2022mdcspell,
  author = {Chenxi Zhu and Ziqiang Ying and Boyu Zhang and Feng Mao},
  title = {{MDCSpell: A Multi-task Detector-Corrector Framework for Chinese Spelling Correction}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2022},
  doi = {10.18653/v1/2022.findings-acl.98},
}
Figure