KR-BERT: A Small-Scale Korean-Specific Language Model

Sangah Lee, Hansol Jang, Yunmee Baik, Suzi Park, Hyopil Shin
8/10/2020
cs.CL

Official code: snunlp/KR-BERT (209 stars, Python, last commit 2024-04-24).

Abstract

Since the appearance of BERT, recent works including XLNet and RoBERTa utilize sentence embedding models pre-trained by large corpora and a large number of parameters. Because such models have large hardware and a huge amount of data, they take a long time to pre-train.

Show full abstract

Therefore it is important to attempt to make smaller models that perform comparatively. In this paper, we trained a Korean-specific model KR-BERT, utilizing a smaller vocabulary and dataset. Since Korean is one of the morphologically rich languages with poor resources using non-Latin alphabets, it is also important to capture language-specific linguistic phenomena that the Multilingual BERT model missed. We tested several tokenizers including our BidirectionalWordPiece Tokenizer and adjusted the minimal span of tokens for tokenization ranging from sub-character level to character-level to construct a better vocabulary for our model. With those adjustments, our KR-BERT model performed comparably and even better than other existing pre-trained models using a corpus about 1/10 of the size.

View on arXivView PDF

Code Implementations(1)

snunlp/KR-BERTOfficial100%

KoRean based BERT pre-trained models (KR-BERT) for Tensorflow and PyTorch

20920PythonMar 9, 20202 years ago
nlp

Similar Papers

Cite this paper

@article{lee2020krbert,
  title  = {KR-BERT: A Small-Scale Korean-Specific Language Model},
  author = {Sangah Lee and Hansol Jang and Yunmee Baik and Suzi Park and Hyopil Shin},
  year   = {2020},
  eprint = {2008.03979},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2008.03979}
}

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

Discussion