Skip to content

Multilingual tokenizer design under a fixed budget

Train a tokenizer for 16 languages and source code. Compare it with the baseline BPE tokenizer on language modeling and the token costs of the least well-served languages.

By Mayank Kulkarni
On this page
  1. Task and metric
  2. Results
  3. Statistics
  4. Validation and hidden test

Task and metric

Full task description

Design one tokenizer for sixteen typologically diverse languages and source code that two fixed GPT models of different sizes are trained with under a fixed parameter, byte and token budget: improve per-language bits per byte, the worst-served languages and related unseen languages, and the token cost of serving the worst-served languages, over the standard temperature-resampled BPE recipe.

Reward. (2/3) S_large + (1/3) S_small + 0.1 serve, from two fixed models (107.0M and 32.3M parameters) trained with the submitted tokenizer on the fixed corpus with three hidden seeds.

Full reward definition

(2/3) S_large + (1/3) S_small + 0.1 serve, from two fixed models (107.0M and 32.3M parameters) trained with the submitted tokenizer on the fixed corpus with three hidden seeds. S_m = 0.3 mean + 0.3 worst-3 mean of the per-domain relative BPB reduction against a fixed reference tokenizer (the standard recipe at 65,536 entries) over 16 languages and code, + 0.2 the mean reduction over the six low-resource languages (at most 0.5% of the corpus each), + 0.2 the mean reduction over the generalization domains (romanized Hindi and related languages absent from the training corpus). serve is the relative reduction in the mean token count of the 3 worst-served languages on parallel test text, against the same reference. The reference scores 0 and the baseline (the same recipe cut to 49,152 entries) above it; an invalid submission scores -1. theoretical_best is a submission with zero test BPB everywhere and zero tokens.

Normalized score. The baseline below corresponds to 0 points and the theoretical best to 100. The theoretical best is not always achievable in practice. A valid submission that performs below baseline receives a negative score, bounded at −100. An invalid submission receives 0. Score formula

SetupValue
Research areaPre-training
DirectionHigher is better
Baseline, hidden-test mean0.009405
Baseline, hidden-test std0.00329
Theoretical best1.1
Time budget2 h
Compute1 × H100
GPU-hours2

Results

The two highest mean scores were 1.1 (GPT-6 Astra) and 1.1 (GPT-6.2 Astra). Across all 13 models, the mean was 0.4 points. Of those, 10 averaged above baseline.

Mean hidden-test score by model

  • Claude Code
  • Codex
  • Antigravity SDK
  • Muse Code
  • Grok Build
  • Terminus 2
Mean hidden-test score by modelBar chart with 13 bars; every value is in the data table.−0.50.00.51.01.5Normalized scoreGPT-6 Astra1.1GPT-6.2 Astra1.1Claude Fable 5.20.9Claude Sonnet 5.50.6GPT-6.1 Sol0.6Claude Opus 5.50.5Muse Wonder0.4DeepSeek V4.1 Flash0.1GLM-5.30.1Qwen3.8-Max0.1Gemini 4 Carbon0.0Kimi K3−0.1Grok 4.7−0.2
Each bar averages the model’s scored attempts on this task. Zero marks the starting baseline. Scoring rules.
View data
Mean hidden-test score by model: data
LabelSeriesMean score
GPT-6 AstraCodex1.1
GPT-6.2 AstraCodex1.1
Claude Fable 5.2Claude Code0.9
Claude Sonnet 5.5Claude Code0.6
GPT-6.1 SolCodex0.6
Claude Opus 5.5Claude Code0.5
Muse WonderMuse Code0.4
DeepSeek V4.1 FlashTerminus 20.1
GLM-5.3Terminus 20.1
Qwen3.8-MaxTerminus 20.1
Gemini 4 CarbonAntigravity SDK0.0
Kimi K3Terminus 2−0.1
Grok 4.7Grok Build−0.2

Download CSV · 13 rows

Scores are in normalized points.
#ModelMean of 3Best of 3AttemptsOutcomes
1GPT-6 Astra1.11.533 valid
2GPT-6.2 Astra1.12.133 valid
3Claude Fable 5.20.91.233 valid
4Claude Sonnet 5.50.60.933 valid
5GPT-6.1 Sol0.61.033 valid
6Claude Opus 5.50.51.233 valid
7Muse Wonder0.40.633 valid
8DeepSeek V4.1 Flash0.10.233 valid
9GLM-5.30.10.333 valid
10Qwen3.8-Max0.10.133 valid
11Gemini 4 Carbon0.00.432 valid, 1 out of time
12Kimi K3−0.10.133 valid
13Grok 4.7−0.20.233 valid

Statistics

StatisticValue
IRT difficulty1.50
IRT discrimination2.18
IRT pass bar (normalized score)0.6
Attempts above the pass bar33.3%
Median share of time budget used84%
Median output tokens per attempt155k

IRT: two-parameter model of pass or fail against the pass bar (statistics).

Time and tokens over all tasks: results. Medians are over this task's 39 scored attempts.

The trajectory of 1 of 39 attempts (Gemini 4 Carbon, out of time) was not recorded: the output-token medians cover 38 attempts.

Validation and hidden test

The validation scores extracted from the logs disagreed with a manual check on this task.