KinyaBERT: a Morphology-aware Kinyarwanda Language Model

Antoine Nzeyimana, Andre Niyongabo Rubungo
3/16/2022
cs.CL

Official code: anzeyimana/kinyabert-acl2022 (19 stars, Python, MIT, last commit 2024-02-04).

Abstract

Pre-trained language models such as BERT have been successful at tackling many natural language processing tasks. However, the unsupervised sub-word tokenization methods commonly used in these models (e.g., byte-pair encoding - BPE) are sub-optimal at handling morphologically rich languages.

Show full abstract

Even given a morphological analyzer, naive sequencing of morphemes into a standard BERT architecture is inefficient at capturing morphological compositionality and expressing word-relative syntactic regularities. We address these challenges by proposing a simple yet effective two-tier BERT architecture that leverages a morphological analyzer and explicitly represents morphological compositionality. Despite the success of BERT, most of its evaluations have been conducted on high-resource languages, obscuring its applicability on low-resource languages. We evaluate our proposed method on the low-resource morphologically rich Kinyarwanda language, naming the proposed model architecture KinyaBERT. A robust set of experimental results reveal that KinyaBERT outperforms solid baselines by 2% in F1 score on a named entity recognition task and by 4.3% in average score of a machine-translated GLUE benchmark. KinyaBERT fine-tuning has better convergence and achieves more robust results on multiple tasks even in the presence of translation noise.

View on arXivView PDF

Code Implementations(1)

MIT
196Python, Rich Text FormatNov 14, 20212 years agoMIT

Similar Papers

Cite this paper

@article{nzeyimana2022kinyabert,
  title  = {KinyaBERT: a Morphology-aware Kinyarwanda Language Model},
  author = {Antoine Nzeyimana and Andre Niyongabo Rubungo},
  year   = {2022},
  eprint = {2203.08459},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.08459}
}

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

Discussion