SHUOWEN-JIEZI: Linguistically Informed Tokenizers For Chinese Language Model Pretraining

Chenglei Si,Zhengyan Zhang,Yingfa Chen,Fanchao Qi,Xiaozhi Wang,Zhiyuan Liu,Maosong Sun
2021-01-01
Abstract:Conventional tokenization methods for Chinese pretrained language models (PLMs) treat each character as an indivisible token (Devlin et al., 2019), which ignores the characteristics of Chinese writing system. In this work, we comprehensively study the influences of three main factors on the Chinese tokenization for PLM: pronunciation, glyph (i.e., shape) and word boundary. Correspondingly, we propose three kinds of tokenizer: 1) SHUOWEN (说文, meaning Talk Word), the pronunciation-based tokenizers; 2) JIEZI (解字, meaning Solve Character), the glyph-based tokenizers; 3) Word segmented tokenizers, the tokenizers with Chinese word segmentation. To empirically compare the effectivenesses of studied tokenizers, we pretrain BERT-style language models with them and evaluate the models on various downstream NLU tasks. We find that SHUOWEN and JIEZI tokenizers can generally outperform conventional singlecharacter tokenizers, while Chinese word segmentation shows no benefit as a preprocessing step. Moreover, the proposed SHUOWEN and JIEZI tokenizers exhibit significantly better robustnesses on handling noisy texts. The code and pretrained models will be publicly released to facilitate linguistically informed Chinese NLP. 1
What problem does this paper attempt to address?