English

Which Pieces Does Unigram Tokenization Really Need?

Computation and Language 2026-04-13 v2

Abstract

The Unigram tokenization algorithm offers a probabilistic alternative to the greedy heuristics of Byte-Pair Encoding. Despite its theoretical elegance, its implementation in practice is complex, limiting its adoption to the SentencePiece package and adapters thereof. We bridge this gap between theory and practice by providing a clear guide to implementation and parameter choices. We also identify a simpler algorithm that accepts slightly higher training loss in exchange for improved compression.

Keywords

Cite

@article{arxiv.2512.12641,
  title  = {Which Pieces Does Unigram Tokenization Really Need?},
  author = {Sander Land and Yuval Pinter},
  journal= {arXiv preprint arXiv:2512.12641},
  year   = {2026}
}

Comments

10 pages, 1 figure. For associated code, see https://github.com/sanderland/script_tok

R2 v1 2026-07-01T08:23:56.293Z