Tokka-Bench: Evaluating Tokenizers Across 100 Natural and 20 Programming Languages
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.
Create a lesson
Metadata
- Categories
- cs.CL, cs.AI
- Comments
- 5 pages, 5 figures. Code and data: https://github.com/bgub/tokka-bench. Interactive dashboard: https://tokka-bench.streamlit.app/
Related papers
HGDNA: Overlapping k-mer Tokenization for Efficient Autoregressive Genomic Language Models
Shared title terminologycs.CLXudong Wang, Siwei Cheng, Haozhe Hu
From Vanishing Gradients to Recursive Self-Improvement: Evaluating the Most Influential Papers in Large Language Model Evolution (1997-2026)
Shared title terminologycs.CLSaadh Jawwadh
Self-WSP: Can Language Models Improve Themselves Through Weight-Space Programming?
Shared title terminologycs.CLGuoming Ling, Shanshan Zhong, Kaixuan Zhang et al.
Evaluating Prompting Strategies for Zero-Shot Multilingual Aspect-Based Sentiment Analysis with Large Language Models
Shared title terminologycs.CLJakub Šm{í}d, Pavel Kr{á}l
The Assistant Persona Differs Across Languages in Activation Space
Shared title terminologycs.CLDaniel Yoo, Naama Rozen, Evan Harris
Alignment without Transfer: Tokenization Impacts Cross-lingual Representations during Multilingual Language Model Pretraining
Shared title terminologycs.CLJonathan von Rad, Pontus Stenetorp, Yao Lu