Token Efficiency Encyclopedia

Tokenization Efficiency

Choose a model or tokenizer that represents the same workload in fewer billable tokens, provided it delivers comparable task quality. Fewer input tokens lower token-priced API cost and use less of a fixed context window; fewer output tokens also lower cost and usually reduce generation work.

This is a property of the tokenizer plus corpus, not a universal model ranking. An agent implements tokenization efficiency when it measures representative prompts with each candidate model's own token counter and includes the resulting token count in routing or procurement decisions.

How It Works

For each candidate, tokenize an identical, representative corpus using the exact model, message shape, tools, and system prompt intended for production. Compare:

Route to the lowest-cost candidate that clears the same quality threshold. Do not infer cost from a generic “four characters per token” rule: the tokenizer, language, code/data format, and API framing all change the result. Providers expose model-specific counting endpoints for this purpose; Anthropic explicitly advises recounting after tokenizer changes, and Google exposes count_tokens before a request.

Leaderboard: Ukrainian Brown Corpus

The table below is a reproducible published snapshot rather than a universal leaderboard. It ranks the Ukrainian portion of the Brown corpus by fertility (tokens per word; lower is better) from Table 4 of Maksymenko and Turuta (2025). It compares tokenizers, not models at comparable quality or API prices; therefore it must not be read as a recommendation to select the first row.

Rank Tokenizer / model family in study Fertility ↓ Tokens vs. GPT-2 ↓
1 Ukrainian GPT-2 1.30 79% fewer
2 Llama 3.1 1.88 70% fewer
3 Gemma / Gemma 2 / Gemini 1.92 70% fewer
4 GPT-4o / 4o-mini 1.98 69% fewer
5 Mistral Nemo 2.04 68% fewer
6 Llama 2 2.29 64% fewer
7 Phi 3.5 2.29 64% fewer
8 Mistral 7B / Large / Mixtral 2.48 61% fewer
9 Qwen 1.5 / 2 VL 2.83 55% fewer
10 GPT-3.5 / GPT-4 3.32 47% fewer
11 Mamba 3.35 47% fewer
12 Claude 3 (approximated tokenizer) 3.45 45% fewer
13 GPT-2 / Phi 2 6.31 baseline

The source labels several rows as shared tokenizer families, and Claude 3 is explicitly an approximation, so the figures should not be used for current closed-model billing. The study reports different results for English and specialized corpora. A separate 2026 multilingual evaluation likewise finds that efficiency differs greatly by language and that intrinsic tokenizer metrics alone do not establish English downstream quality.

Decision Procedure

  1. Sample real production traffic by language, modality, and format (prose, source code, JSON, tool schemas, and retrieved documents).
  2. Count the exact request with every candidate's official counter, including wrappers that are billable.
  3. Run the same quality evaluation and discard candidates below the minimum quality, safety, latency, or capability requirement.
  4. Compute expected cost per successful task, then route workload segments separately when a tokenizer advantage is segment-specific.
  5. Re-run the measurement after a provider changes models, tokenizers, pricing, or prompt structure.

Trade-offs

Sources

See Also

Tools