Rethinking Masked Language Modeling for Chinese Spelling Correction

Hongqiu Wu, Shaohua Zhang, Yuchen Zhang, Hai Zhao
5/28/2023
cs.CL

No official code found. Best implementation: gingasan/lemon (86 stars, last commit 2024-08-18).

Abstract

In this paper, we study Chinese Spelling Correction (CSC) as a joint decision made by two separate models: a language model and an error model. Through empirical analysis, we find that fine-tuning BERT tends to over-fit the error model while under-fit the language model, resulting in poor generalization to out-of-distribution error patterns. Given that BERT is the backbone of most CSC models, this phenomenon has a significant negative impact. To address this issue, we are releasing a multi-domain benchmark LEMON, with higher quality and diversity than existing benchmarks, to allow a comprehensive assessment of the open domain generalization of CSC models. Then, we demonstrate that a very simple strategy, randomly masking 20\% non-error tokens from the input sequence during fine-tuning is sufficient for learning a much better language model without sacrificing the error model. This technique can be applied to any model architecture and achieves new state-of-the-art results on SIGHAN, ECSpell, and LEMON.

View on arXivView PDF

Code Implementations(1)

gingasan/lemonCommunity100%
868PythonMay 5, 20232 years ago

Similar Papers

Cite this paper

@article{wu2023rethinking,
  title  = {Rethinking Masked Language Modeling for Chinese Spelling Correction},
  author = {Hongqiu Wu and Shaohua Zhang and Yuchen Zhang and Hai Zhao},
  year   = {2023},
  eprint = {2305.17721},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2305.17721v1}
}

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

Discussion