SampoNLP: A Self-Referential Toolkit for Morphological Analysis of Subword Tokenizers

Iaroslav Chelombitko, Ekaterina Chelombitko, Aleksey Komissarov
1/8/2026
2 citations
cs.CLcs.IRcs.LG

Official code: AragonerUA/SampoNLP (8 stars, Python, last commit 2025-12-11).

Abstract

The quality of subword tokenization is critical for Large Language Models, yet evaluating tokenizers for morphologically rich Uralic languages is hampered by the lack of clean morpheme lexicons. We introduce SampoNLP, a corpus-free toolkit for morphological lexicon creation using MDL-inspired Self-Referential Atomicity Scoring, which filters composite forms through internal structural cues - suited for low-resource settings.

Show full abstract

Using the high-purity lexicons generated by SampoNLP for Finnish, Hungarian, and Estonian, we conduct a systematic evaluation of BPE tokenizers across a range of vocabulary sizes (8k-256k). We propose a unified metric, the Integrated Performance Score (IPS), to navigate the trade-off between morpheme coverage and over-splitting. By analyzing the IPS curves, we identify the "elbow points" of diminishing returns and provide the first empirically grounded recommendations for optimal vocabulary sizes (k) in these languages. Our study not only offers practical guidance but also quantitatively demonstrates the limitations of standard BPE for highly agglutinative languages. The SampoNLP library and all generated resources are made publicly available: https://github.com/AragonerUA/SampoNLP

View on arXivView PDF

Code Implementations(1)

Unsupervised morphological discovery and tokenizer evaluation for Uralic languages

80Python, RustNov 21, 202511 months agoNOASSERTION
data-cleaningestonianfinnishhungarianlarge-language-models+4 more

Similar Papers

Cite this paper

@article{chelombitko2026samponlp,
  title  = {SampoNLP: A Self-Referential Toolkit for Morphological Analysis of Subword Tokenizers},
  author = {Iaroslav Chelombitko and Ekaterina Chelombitko and Aleksey Komissarov},
  year   = {2026},
  eprint = {2601.04469},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.04469v1}
}

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

Discussion