MVP-BERT: Redesigning Vocabularies for Chinese BERT and Multi-Vocab Pretraining

Wei Zhu · DOI

Abstract: Despite the development of pre-trained language models (PLMs) significantly raising the performances of various Chinese natural language processing (NLP) tasks, the vocabulary for these Chinese PLMs remains the one provided by Google Chinese BERT, which is based on Chinese characters. Furthermore, masked language model pre-training is typically based on a single vocabulary, limiting downstream task performance. In this work, we first propose a novel method, seg_tok, to form the vocabulary of Chinese BERT using Chinese word segmentation (CWS) and subword tokenization. We then propose three versions of multi-vocabulary pretraining (MVP) to improve model expressiveness. Experiments show that: (a) compared with character-based vocabularies, seg_tok improves performance on sentence-level tasks and enhances efficiency; (b) MVP improves downstream performance, particularly for seg_tok on sequence labeling tasks.

Introduction

In English NLP, models like BERT utilize subword tokenization (e.g., WordPiece) to balance vocabulary size and semantic richness. However, Chinese BERT implementations often default to character-based approaches, treating each Hanzi character as a discrete token. While robust against out-of-vocabulary (OOV) issues, this ignores the multi-character word structure inherent to Chinese. Conversely, word-based models suffer from segmentation errors and data sparsity. MVP-BERT addresses these issues by introducing a hybrid vocabulary and a multi-vocabulary pretraining framework.

The seg_tok Vocabulary

The authors propose seg_tok, a hybrid vocabulary construction method. It begins by using a Chinese Word Segmentation (CWS) tool, such as Jieba, to identify word boundaries. Subsequently, Byte Pair Encoding (BPE) is applied to these segments. This process creates a vocabulary that includes common multi-character words as single tokens while decomposing rare words into smaller sub-components, effectively bridging the gap between character-level and word-level representations.

The process of generating different vocabularies including seg_tok and character-based tokens.

Multi-Vocab Pretraining (MVP) Strategies

To capture complementary information from different levels of granularity, the researchers introduced three Multi-Vocab Pretraining (MVP) strategies:

  1. $MVP_{hier}$ (Hierarchical): Character embeddings are aggregated into word-level representations before being processed by the Transformer. The model is then trained to predict the masked word.
  2. $MVP_{obj}$ (Multi-Objective): A single encoder processes character-level inputs but utilizes two distinct heads to predict both the masked character and the corresponding coarse-grained word.
  3. $MVP_{pair}$ (Paired Encoders): Two parallel encoders—one for characters and one for seg_tok—share parameters. They are trained to predict masked tokens in their respective vocabularies simultaneously, allowing for cross-granularity knowledge transfer.
Three proposed MVP strategies: (a) Hierarchical, (b) Multi-Objective, and (c) Paired Encoders.

Experimental Results

The models were pre-trained on the Chinese Wikipedia corpus and evaluated across several classification and sequence labeling tasks including ChnSentiCorp, XNLI, and MSRA NER.

Efficiency and Classification

By representing multi-character words as single tokens, seg_tok reduces sequence length, resulting in a 1.35x speedup in training and inference compared to character-based models. In classification tasks, the seg_tok ALBERT model consistently outperformed the character-based baseline, demonstrating the superiority of word-based features for high-level semantic tasks.

Sequence Labeling (NER)

While word-based models typically struggle with Named Entity Recognition (NER) due to boundary sensitivity, the $MVP_{pair}$ strategy significantly improved performance. By allowing the character-based model to absorb word-level semantic knowledge through parameter sharing, the $MVP_{pair}$ ensemble achieved state-of-the-art results on MSRA NER (82.28 F1) and CCKS medical NER (87.85 F1).

Conclusion

MVP-BERT demonstrates that redesigning Chinese vocabularies and leveraging multi-vocabulary pretraining can lead to substantial gains in both performance and efficiency. While the $MVP_{pair}$ ensemble offers the best performance, $MVP_{obj}$ provides a practical alternative for single-vocabulary deployment. Future work may explore more sophisticated aggregation methods for character-to-word mapping to further enhance model expressiveness.

Summary updated

BibTeX
@misc{zhu2020mvp,
  author = {Wei Zhu},
  title = {{MVP-BERT: Redesigning Vocabularies for Chinese BERT and Multi-Vocab Pretraining}},
  year = {2020},
  eprint = {2011.08539},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.08539},
}
Figure