ACL Findings2022
"Is Whole Word Masking Always Better for Chinese BERT?": Probing on Chinese Grammatical Error Correction
Yong Dai, Linyang Li, Cong Zhou, Zhangyin Feng, Enbo Zhao, Xipeng Qiu, Piji Li, Duyu Tang
Abstract
Whole word masking (WWM), which masks all subwords corresponding to a word at once, makes a better English BERT model (Sennrich et al., 2016).For the Chinese language, however, there is no subword because each token is an atomic character.The meaning of a word in Chinese is different in that a word is a compositional unit consisting of multiple characters.Such difference motivates us to investigate whether WWM leads to better context understanding ability for Chinese BERT.To achieve this, we introduce two probing tasks related to grammatical error correction and ask pretrained models to revise or insert tokens in a masked language modeling manner.We construct a dataset including labels for 19,075 tokens in 10,448 sentences.We train three Chinese BERT models with standard character-level masking (CLM), WWM, and a combination of CLM and WWM, respectively.Our major findings are as follows: First, when one character needs to be inserted or replaced, the model trained with CLM performs the best.Second, when more than one character needs to be handled, WWM is the key to better performance.Finally, when being fine-tuned on sentence-level downstream tasks, models trained with different masking strategies perform comparably. * Work done during internship at Tencent AI Lab. * indicates equal contributions.† Corresponding author. 1 Next sentence prediction is the other pretraining task adopted in the original BERT paper.However, it is removed in some following works like RoBERTa (Liu et al., 2019).We do not consider the next sentence prediction in this work.
Ask Lune
Ask anything. The answer quotes the paper.
Lune reads all of it and the papers around it, then shows you the passages behind every answer.
Builds on3
- Revisiting Pre-Trained Models for Chinese Natural Language ProcessingYiming Cui, Wanxiang Che, Ting Liu, Bing Qin et al.EMNLP Findings 2020 · 866 citations
- AMBERT: A Pre-trained Language Model with Multi-Grained TokenizationXinsong Zhang, Pengshuai Li, Hang LiACL Findings 2021 · 54 citations
- ChineseBERT: Chinese Pretraining Enhanced by Glyph and Pinyin InformationZijun Sun, Xiaoya Li, Xiaofei Sun, Yuxian Meng et al.ACL 2021
Related papers
- Spelling Error Correction with Soft-Masked BERTShaohua Zhang, Haoran Huang, Jicong Liu, Hang LiACL 2020 · 204 citations
- ZEN: Pre-training Chinese Text Encoder Enhanced by N-gram RepresentationsShizhe Diao, Jiaxin Bai, Yan Song, Tong Zhang et al.EMNLP Findings 2020 · 140 citations
- Unsupervised Boundary-Aware Language Model Pretraining for Chinese Sequence LabelingPeijie Jiang, Dingkun Long, Yanzhao Zhang, Pengjun Xie et al.EMNLP 2022 · 9 citations
- SSMI: Semantic Similarity and Mutual Information Maximization Based Enhancement for Chinese NERPengnian Qi, Biao QinAAAI 2023 · 10 citations
- Improving Multi-Criteria Chinese Word Segmentation through Learning Sentence RepresentationChun Lin, Ying-Jia Lin, Chia-Jen Yeh, Yi-Ting Li et al.EMNLP Findings 2023 · 1 citation
