Skip to article
Zeroth State Contact
WorkRoadmapResearchContact

Tokenizer research · Muna

Why Token Efficiency Matters for Low-Resource Languages

A tokenizer determines how expensive a language is for a model to read. We measured that cost, trained four controlled candidates, and selected a 32k Unigram tokenizer for Nepali and Romanized Nepali.

A solid stream entering a machine and emerging as many small fragments, representing token tax
5 millionmatched training rows
24,500held-out rows
1.5296held-out tokens per word

The problem

The token tax

Language models do not read words directly. They read tokens. When one tokenizer needs more tokens than another to represent the same sentence, it spends more context and compute on the same meaning. That extra fragmentation is the token tax.

For low-resource languages, the cost compounds. There is already less high-quality text to learn from; inefficient segmentation then carries fewer complete ideas through each context window. Nepali also spans Devanagari, Romanized spelling, English code-mix, school terminology, dates, rupees, forms, and noisy web text.

Same textfewer tokens
Same context windowmore language
Same training budgetless fragmentation

Token efficiency is a compression property. It does not by itself make a language model more capable.

Method

Experimental design

We held the corpus constant and changed only the tokenizer family and vocabulary size. BPE and Unigram candidates at 24k and 32k were trained on the same shuffled five-million-row sample. Evaluation text was excluded before training.

Matched training data

Every candidate saw the same source mix, row count, and seed.

Held-out measurement

Fertility was measured on 24,500 excluded rows containing 9.81 million words.

Lossless text handling

Unknown tokens and content-changing round trips were blocking failures, not secondary metrics.

Candidate study

The 5M bakeoff

Vocabulary size helped both families. The 32k Unigram candidate produced the lowest held-out fertility and retained the high throughput measured in the tokenizer speed test.

Held-out tokens per wordLower is better
BPE 24k420k tokens/s
1.7339
BPE 32k364k tokens/s
1.5948
Unigram 24k598k tokens/s
1.6185
Unigram 32k593k tokens/s
1.5296
Four SentencePiece candidates trained on the same five-million-row corpus. All passed the content-preservation gate.

Robustness

Evidence beyond the training sample

A good result on one held-out split was not enough. We added progressively harder views that were not used to select training rows.

Held-out

24,500 rows and 9.81 million words established the primary matched comparison.

Stress audit

201,150 documents and 86 million words: Unigram 32k used 4.39% fewer tokens than BPE 32k.

External quarantine

89,242 records and 17.78 million words: the advantage over BPE 32k was 4.68%.

Release gate passed. Zero exact train/evaluation overlaps, unknown tokens, or content-changing round-trip failures were detected.

Public controls

General tokenizer comparison

The same frozen held-out text was encoded as raw text with Muna, OpenAI o200k_base, Qwen3, and OpenAI cl100k_base. The broad tokenizers are controls for the reading cost paid by this corpus, not opponents in a universal ranking.

Tokens per word on the same 24,500 rows9.81M words
Muna 32k Unigramspecialized
1.5296
OpenAI o200k_basebroad public encoding
1.8964
Qwen3open multilingual control
3.5772
OpenAI cl100k_basehistorical control
3.7242
Muna used 19.34% fewer tokens than o200k_base. Paired row bootstrap 95% confidence interval: 18.813% to 19.859%, 1,000 resamples.
आज काठमाडौंमा मौसम सफा छ र विद्यार्थीहरू विद्यालय जाँदैछन्।
11 Muna16 OpenAI o200k60 Qwen3

Interpretation

Where specialization helps

The aggregate result hides the main trade. Muna is materially more efficient on Nepali, Wikipedia, Romanized, and code-mixed text, while paying some cost on English and structured forms. The vocabulary is allocated around the intended product surface rather than broad global coverage.

Held-out sourceMunao200kChange
Nepali web1.34122.1129−36.5%
Romanized Nepali1.56742.5660−38.9%
Code-mix1.56672.5669−39.0%
Wikipedia1.67712.4176−30.6%
English anchor1.56651.2421+26.1%
Forms2.58302.4368+6.0%

Allocation

Corpus distribution is part of the design

Tokenizer quality did not come from choosing a family alone. We reserved explicit space for writing styles that matter to the intended model instead of allowing the largest web source to erase them.

47%Nepali web · 2.35M
25%Romanized · 1.25M
10%English · 500K
8%Education · 400K
7%Wikipedia · 350K
3%Forms/code-mix · 150K

The next controlled experiment

An allocation frontier would vary Romanized and education shares while holding the five-million-row budget, tokenizer family, vocabulary, seed, and evaluation fixed. That would measure the marginal token savings purchased by each corpus slice rather than proposing a universal sampling formula.

Inspection

What the tokenizer learned to keep together

Aggregate scores can hide brittle segmentations. These examples show the actual pieces emitted by the selected tokenizer.

आज काठमाडौंमा मौसम सफा छ र विद्यार्थीहरू विद्यालय जाँदैछन्।
▁आज▁काठमाडौंमा▁मौसम▁सफा▁छ▁र▁विद्यार्थीहरू▁विद्यालय▁जाँदैछन्

Common words remain mostly whole. Eleven pieces represent the sentence.

Conclusion

Efficiency is an allocation decision

The strongest result is not that one algorithm always wins. It is that a small-language tokenizer improves when its finite vocabulary and training sample are allocated around real use: Devanagari, Romanized Nepali, education, code-mix, and public-language formats.

The selected tokenizer makes this corpus cheaper to read while preserving its text. Whether that advantage improves a language model must still be established through pretraining and downstream evaluation.

Artifact

Download the tokenizer

The exact 32k SentencePiece Unigram model used in this study is available directly. It is a tokenizer artifact, not a trained language model.

Download Muna tokenizer (.model)717 KB · SentencePiece Unigram · 32k vocabulary