Subword Segmental Language Modelling for Nguni Languages

Francois Meyer, Jan Buys
10/12/2022
cs.CL

Official code: francois-meyer/subword-segmental-lm (2 stars, Python, last commit 2026-08-18).

Abstract

Subwords have become the standard units of text in NLP, enabling efficient open-vocabulary models. With algorithms like byte-pair encoding (BPE), subword segmentation is viewed as a preprocessing step applied to the corpus before training.

Show full abstract

This can lead to sub-optimal segmentations for low-resource languages with complex morphologies. We propose a subword segmental language model (SSLM) that learns how to segment words while being trained for autoregressive language modelling. By unifying subword segmentation and language modelling, our model learns subwords that optimise LM performance. We train our model on the 4 Nguni languages of South Africa. These are low-resource agglutinative languages, so subword information is critical. As an LM, SSLM outperforms existing approaches such as BPE-based models on average across the 4 languages. Furthermore, it outperforms standard subword segmenters on unsupervised morphological segmentation. We also train our model as a word-level sequence model, resulting in an unsupervised morphological segmenter that outperforms existing methods by a large margin for all 4 languages. Our results show that learning subword segmentation is an effective alternative to existing subword segmenters, enabling the model to discover morpheme-like subwords that improve its LM capabilities.

View on arXivView PDF

Code Implementations(1)

Code for training and evaluating subword segmental language models, as in the Findings of EMNLP paper "Subword Segmental Language Modelling for Nguni Languages" (Meyer and Buys, 2022)

21PythonOct 8, 20223 months ago

Similar Papers

Cite this paper

@article{meyer2022subword,
  title  = {Subword Segmental Language Modelling for Nguni Languages},
  author = {Francois Meyer and Jan Buys},
  year   = {2022},
  eprint = {2210.06525},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.06525}
}

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

Discussion