Merge-Based Vocabulary Extension Stalls at the Pre-Tokenizer: An English-Preserving Repair for Nepali, Tested in Continued Pretraining
Aarjan Chaudhary (Naamche Labs)
Key points
From the paper's conclusion- We release the tokenizers and code.
Abstract
Llama-3, Qwen3 and many other open LLMs pre-tokenize text with a regular expression whose word class admits only Unicode letters. Devanagari vowel signs are combining marks, so this regex splits Nepali words at every vowel sign, and models that use it spend 2.6 to 5.8 times as many tokens on Nepali as on the same English text. Merge-based vocabulary extension cannot join the split pieces: for Llama-3 and Qwen3 no number of new merges brings this premium below about 2.2, and ten released extensions already end within 4% of this pre-token floor. We give a small edit to the deployed regex that provably keeps every token id of text without combining marks or Devanagari characters. With 32,000 new merges it brings Nepali to 1.01 times English, about 54% fewer Nepali tokens than standard extension. In small-budget continued pretraining of Llama-3.2-1B and Qwen3-0.6B, the original tokenizer gave the lowest held-out Nepali bits per byte under every recipe we tested. Matching the repair's training steps to standard extension, with about 35% of the data repeated, reversed their order on Qwen but not on Llama. Whether the token savings give a favourable latency and quality trade-off in generation remains untested. We release the tokenizers and code.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Vowel Signs Are Not Letters: A Pre-tokenization Ceiling on Multilingual Tokenizer FertilityarXiv · 2026
- Adapting Small Language Models to Romanized Nepali: Tokenizer Fertility, Reference Likelihood, and Generation MetricsarXiv · 2026
- NEPSEE: A Double-Annotated Benchmark for Nepali Sentiment AnalysisarXiv · 2026
- EvenVLM: A Text and Multimodal Dataset for the Even Language with Vision-Language Fine-TuningarXiv · 2026
- Parameter-Efficient Vocabulary Expansion via Cross-Lingual Embedding AlignmentarXiv · 2026
- A Multi-Word Tokenizer for 204 Languages That Needs Fewer Tokens Than GPT-4o's, Including on EnglisharXiv · 2026