Tokka-Bench: Evaluating Tokenizers Across 100 Natural and 20 Programming Languages
Ben Gubler
Key points
From the paper's conclusion- We introduce Tokka-Bench, an open-source framework that evaluates tokenizers on five complementary metrics -- bytes per token, unique token coverage, subword fertility, word-split rate, and vocabulary composition -- across 100 natural languages (30+ scripts) and 20 programming languages, using language-aware segmentation adapted to each writing system.
Abstract
Large language models rely on subword tokenizers whose quality varies across languages, yet no standardized multi-metric framework exists for broad comparative evaluation. We introduce Tokka-Bench, an open-source framework that evaluates tokenizers on five complementary metrics -- bytes per token, unique token coverage, subword fertility, word-split rate, and vocabulary composition -- across 100 natural languages (30+ scripts) and 20 programming languages, using language-aware segmentation adapted to each writing system. Comparing seven BPE tokenizers (GPT-2, GPT-4, gpt-oss, Llama 3.1, Gemma 3, Qwen3, and Kimi K2) within individual languages, we find that vocabulary allocation strategy matters more than raw vocabulary size, and that programming-language efficiency has converged among recent tokenizers despite divergent natural-language profiles. The framework, data, and interactive dashboard are publicly available.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A Multi-Word Tokenizer for 204 Languages That Needs Fewer Tokens Than GPT-4o's, Including on EnglisharXiv · 2026
- No Single Tokenizer Feature Reliably Predicts Downstream Language Model PerformancearXiv · 2026
- Adaptive Frequency Threshold Byte Pair Encoding for Mixed Natural Language and Structured Symbolic CorporaarXiv · 2026
- Efficiency Measured in English: Tokeniser Coverage Bounds Small Language Models on Indic ScriptsarXiv · 2026
- A Corpus-Driven SentencePiece Unigram Tokenizer for Sindhi: Design and Benchmark Against Fourteen Existing TokenizersarXiv · 2026
- Language-Specific Effects of Tokenizer Choice in Multilingual Language ModelsarXiv · 2026