Fewer Tokens Are Not Enough: A Devanagari Tokenizer with Protected Letter Units, Tested at the Model Level
Abstract
Tokenizers are usually judged by how few tokens they need. We test whether that predicts model quality for Devanagari languages. We build Ancoda, a lossless byte-level BPE tokenizer that keeps frequent Devanagari letter units intact inside an ordinary merge table. In each of four vocabulary-size classes it needs the fewest tokens per word on Devanagari text of the 20 tokenizers we compare, though it loses English at 32k to 128k. We then train 59M-parameter language models that differ only in the tokenizer, three seeds each, under a pre-registered decision rule. Our main finding is that tokens per word on test text, the usual measure, did not predict model quality. A Nepali-only tokenizer needs 6% fewer Nepali tokens, yet Ancoda's model has 4% lower bits per byte. A plain BPE tokenizer trained on the same text as Ancoda needs more Nepali tokens, yet gives an equally good model. And Ancoda's small lead over two Yak tokenizers on held-out text from its own sources disappears on FLORES+. On our held-out set, the best models came from the two tokenizers trained on text like the models' own; our design for keeping letters intact added nothing to bits per byte. Ancoda's models are worse on text with joiners; removing synthetic joiner text from its training helps with ZWJ but not ZWNJ, which it hurts on FLORES+.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI
- Comments
- 18 pages, 4 figures. Code: https://github.com/SirAlchemist1/ancoda-tokenizer
Related papers
Training-Free Improvement with Translation-Instruction Soft-Token Injection for Indonesian Retrieval Augmented Generation
Shared title terminologycs.CLTjeng Wawan Cenggoro, Ganjar Widiatmansyah, Evan Purnama
A Token Rendering Perspective on Large Language Model Unlearning
Shared title terminologycs.CLHui Zhang, Wenxing Chen, Xiaojing Chen et al.
Recurloop Transformer: Superposition Across Depth and Tokens
Shared title terminologycs.CLWenjun Feng, Yifei Shen, Hao Liu et al.
One Token Flips the Verdict: Hypergraph Propagation and State Readout Dissociate in Selective Belief Revision
Shared title terminologycs.CLYilin Huang, Yining Sun, Hongming Tan et al.
Paired Evaluation of Reader- and Question-Level Response Information for Eye-Tracking-Based Reading-Comprehension Prediction
Shared title terminologycs.CLHyunsu Go, Sumin Lee, Kyeonghun Kim et al.
When Budget Forcing Fails: Forced "Wait" Extensions Add Little Beyond the Token Cap and Run-to-Run Noise
Shared title terminologycs.CLLuis Leal