MarkBERT: Marking Word Boundaries Improves Chinese BERT

Linyang Li, Yong Dai, Duyu Tang, Xipeng Qiu, Zenglin Xu +1 more
3/12/2022
cs.CL

Official code: daiyongya/markbert (16 stars, Python, last commit 2022-07-29).

Abstract

We present a Chinese BERT model dubbed MarkBERT that uses word information in this work. Existing word-based BERT models regard words as basic units, however, due to the vocabulary limit of BERT, they only cover high-frequency words and fall back to character level when encountering out-of-vocabulary (OOV) words.

Show full abstract

Different from existing works, MarkBERT keeps the vocabulary being Chinese characters and inserts boundary markers between contiguous words. Such design enables the model to handle any words in the same way, no matter they are OOV words or not. Besides, our model has two additional benefits: first, it is convenient to add word-level learning objectives over markers, which is complementary to traditional character and sentence-level pretraining tasks; second, it can easily incorporate richer semantics such as POS tags of words by replacing generic markers with POS tag-specific markers. With the simple markers insertion, MarkBERT can improve the performances of various downstream tasks including language understanding and sequence labeling. \footnote{All the codes and models will be made publicly available at \url{https://github.com/daiyongya/markbert}}

View on arXivView PDF

Code Implementations(1)

daiyongya/markbertOfficial100%
161Python, ShellJul 25, 20224 years ago

Similar Papers

Cite this paper

@article{li2022markbert,
  title  = {MarkBERT: Marking Word Boundaries Improves Chinese BERT},
  author = {Linyang Li and Yong Dai and Duyu Tang and Xipeng Qiu and Zenglin Xu and Shuming Shi},
  year   = {2022},
  eprint = {2203.06378},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.06378}
}

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

Discussion