Llama-3 与 Qwen3 分词器在 Pre-Tokenizer 阻塞尼泊尔语词表扩展,英文保留修复方案实测
Merge-Based Vocabulary Extension Stalls at the Pre-Tokenizer: An English-Preserving Repair for Nepali, Tested in Continued Pretraining
AI 导读
一项研究指出,Llama-3、Qwen3 等开源 LLM 的正则预分词只接受 Unicode 字母,导致天城文元音符号被切开,尼泊尔语 token 开销达英语的 2.6 至 5.8 倍,且 merge 式词表扩展无法突破约 2.2 的下限。
正文 · 原文
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.
| Comments: | 18 pages, 4 figures, 9 tables. Code and tokenizers: this https URL |
| Subjects: | Computation and Language (cs.CL); Artificial Intelligence (cs.AI) |
| ACM classes: | I.2.7 |
| Cite as: | arXiv:2610.33016 [cs.CL] |
| (or arXiv:2610.33016v1 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2610.33016 arXiv-issued DOI via DataCite |
Submission history
From: Aarjan Chaudhary [view email]
[v1]
Thu, 8 Oct 2026 13:23:07 UTC (160 KB)
来源:arXiv cs.AI · arxiv.org