Pre-Training with Whole Word Masking for Chinese BERT

Yiming Cui, Wanxiang Che, Ting Liu, Bing Qin, Ziqing Yang
6/19/2019
cs.CLcs.LG

Official code: ymcui/Chinese-BERT-wwm (10,231 stars, Apache-2.0, PyTorch, last commit 2026-04-19).

Abstract

Bidirectional Encoder Representations from Transformers (BERT) has shown marvelous improvements across various NLP tasks, and its consecutive variants have been proposed to further improve the performance of the pre-trained language models. In this paper, we aim to first introduce the whole word masking (wwm) strategy for Chinese BERT, along with a series of Chinese pre-trained language models. Then we also propose a simple but effective model called MacBERT, which improves upon RoBERTa in several ways. Especially, we propose a new masking strategy called MLM as correction (Mac). To demonstrate the effectiveness of these models, we create a series of Chinese pre-trained language models as our baselines, including BERT, RoBERTa, ELECTRA, RBT, etc. We carried out extensive experiments on ten Chinese NLP tasks to evaluate the created Chinese pre-trained language models as well as the proposed MacBERT. Experimental results show that MacBERT could achieve state-of-the-art performances on many NLP tasks, and we also ablate details with several findings that may help future research. We open-source our pre-trained language models for further facilitating our research community. Resources are available: https://github.com/ymcui/Chinese-BERT-wwm

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

Pre-Training with Whole Word Masking for Chinese BERT(中文BERT-wwm系列模型)

10,2311,380PythonJun 19, 20196 months agoApache-2.0
bertbert-wwmbert-wwm-extchinese-bertnlp+5 more

Similar Papers

Cite this paper

@article{cui2019pretraining,
  title  = {Pre-Training with Whole Word Masking for Chinese BERT},
  author = {Yiming Cui and Wanxiang Che and Ting Liu and Bing Qin and Ziqing Yang},
  year   = {2019},
  eprint = {1906.08101},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1906.08101}
}

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

Discussion