Computer Science > Computation and Language
Title: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+.
| Comments: | 18 pages, 4 figures. Code: this https URL |
|---|---|
| Subjects: | Computation and Language (cs.CL) ; Artificial Intelligence (cs.AI) |
| Cite as: | arXiv:2612.03368 [cs.CL] |
| (or arXiv:2612.03368v1 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2612.03368 arXiv-issued DOI via DataCite (pending registration) |
Submission history
Access Paper:
- HTML (experimental)
Additional Features
- Audio Summary
Current browse context:
References & Citations
- Google Scholar
- Semantic Scholar
BibTeX formatted citation
Bookmark
Bibliographic and Citation Tools
Code, Data and Media Associated with this Article
Demos
Recommenders and Search Tools
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.