← 返回论文检索
ICLR 2026Blog Track PosterAccept (Poster)

UnigramLM: An Attempt at Writing The Missing Manual

Clara Meister

EPFL

PDF 由论文原始站点提供,PaperCompass 不保存论文文件。

摘要

This post is my attempt to write down the UnigramLM tokenization algorithm cleanly and explicitly because, well, I still haven't found such a derivation and I think understanding the theory behind the method could help us make it better. I'll formalize the generative model around which the algorithm is based, derive the EM updates, explain why pruning is needed (and how it's done), and point out the spots where the practical implementation defined by the SentencePiece library diverges from the pretty mathematical models.