Skip to main content
QUICK REVIEW

[Paper Review] KR-BERT: A Small-Scale Korean-Specific Language Model

Sangah Lee, Hansol Jang|arXiv (Cornell University)|Aug 10, 2020
Topic ModelingComputer Science12 references23 citations
TL;DR

KR-BERT is a small-scale, Korean-specific BERT model that uses a sub-character-level vocabulary and a novel BidirectionalWordPiece tokenizer to effectively capture morphologically rich Korean linguistic features. Despite training on only 1/10 the data of multilingual BERT, it outperforms multilingual BERT and matches or exceeds other Korean models on sentiment analysis, NER, and question-answering tasks, especially in handling out-of-vocabulary words.

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. 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.

Motivation & Objective

  • To develop a lightweight, high-performing Korean-specific language model that overcomes limitations of multilingual BERT in handling morphologically rich, non-Latin scripts.
  • To address the challenges of Korean's agglutinative morphology and complex writing system (Hangul) with a tailored tokenizer and sub-character-level representation.
  • To achieve competitive performance with smaller models using significantly less training data than large-scale models like RoBERTa or XLNet.
  • To evaluate the effectiveness of sub-character-level tokenization and a bidirectional WordPiece approach in improving OOV (out-of-vocabulary) handling and morphological generalization.

Proposed method

  • Proposed a BidirectionalWordPiece tokenizer that considers both left and right context during sub-word segmentation, improving morphological representation in Korean.
  • Constructed a vocabulary using sub-character units (e.g., jamo) as the smallest tokenization unit, reducing the number of rare or unknown tokens.
  • Trained KR-BERT from scratch on a curated Korean corpus of ~1.5GB, approximately 1/10 the size of multilingual BERT’s training data.
  • Used masked language modeling (MLM) and next sentence prediction (NSP) as pre-training objectives, similar to BERT, but adapted for Korean linguistic structure.
  • Compared multiple tokenization strategies: character-level, morpheme-level, and sub-character-level, with and without bidirectional context in WordPiece.
  • Applied vocabulary pruning and minimal span adjustments to balance coverage and sub-word granularity, optimizing for morphological richness.

Experimental results

Research questions

  • RQ1Can a small-scale, Korean-specific BERT model achieve performance comparable to larger multilingual or multilingual models on downstream Korean NLP tasks?
  • RQ2How does sub-character-level tokenization improve performance on morphologically complex, low-resource languages like Korean?
  • RQ3Does a bidirectional WordPiece tokenizer outperform standard WordPiece or SentencePiece in capturing Korean morphological units and reducing [UNK] tokens?
  • RQ4To what extent does a smaller training corpus (1/10 of multilingual BERT) affect model performance when combined with language-specific tokenization?
  • RQ5How do different tokenization strategies impact OOV (out-of-vocabulary) handling in real-world, noisy datasets like NSMC and KorNER?

Key findings

  • KR-BERT outperformed multilingual BERT on all four downstream tasks: sentiment analysis, NER, question-answering, and paraphrase detection, with a 7% improvement on KorNER and KorQuAD.
  • The KR-BERT sub-character BidirectionalWordPiece model achieved the highest F1 score on NER (87.6) and showed the best consistency across tasks, especially on noisy, out-of-vocabulary-rich data.
  • The [UNK] ratio was reduced to 0.00015 for the sub-character BidirectionalWordPiece model, significantly lower than multilingual BERT’s 1.024%, indicating superior OOV handling.
  • On the NSMC sentiment dataset, the BidirectionalWordPiece model correctly tokenized non-standard forms like 'caymisnunteyng' as 'caymi#s#nuntey#ng', preserving semantic units.
  • The character-level WordPiece model in KR-BERT achieved the highest accuracy on paraphrase detection and was second only to KorBERT on this task.
  • Despite using only ~1.5GB of training data (1/10 of multilingual BERT), KR-BERT matched or exceeded performance of larger models like KorBERT and KoBERT, demonstrating efficiency and effectiveness.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.