Training a multilingual LLM with an English-centric tokenizer can inflate per-word training compute by up to 68% while cutting downstream accuracy across non-English tasks. In a controlled ablation across 26 decoder-only models at 2.6B parameters, Mehdi Ali and colleagues demonstrate that tokenizer design directly alters both training cost and task accuracy, and that standard intrinsic metrics such as fertility (tokens per word) and parity fail to reliably predict which model will win downstream.
- 26 controlled 2.6B models: 24 custom tokenizers plus 2 GPT-2 tokenizer baselines trained on 52.6B tokens (~59,000 A100 GPU hours total), holding model architecture, optimizer, and data distribution fixed.
- Up to 68% extra training FLOPs: pairing an English Unigram tokenizer (
EN-UNI-SP-100, 4.88 GFLOPs per word) instead of a multilingual tokenizer (MULTI-UNI-SP-50, 2.91 GFLOPs per word) raises German training compute per word by 68%. - 3x larger multilingual vocabularies: English accuracy peaks at 33K tokens (
50.81%average for SentencePiece BPE), whereas multilingual accuracy across five European languages keeps climbing to 100K tokens (41.44%). - Up to 28-point task swings: switching only the tokenizer shifts zero-shot accuracy by 9 points on ARC-Easy (
50%to59%), 15 points on MRPC (54%to69%), and 28 points on German10kGNAD(15%to43%).
Isolating Tokenizer Effects at 2.6B Scale
Earlier tokenizer studies focused mostly on encoder models like BERT or evaluated compression in isolation without retraining full decoder-only LLMs. Ali and colleagues closed that gap by building two matched 70B-word corpora (80% OSCAR web text and 20% curated sources such as The Pile, RedPajama, and European parliamentary and legal text): one monolingual English dataset and one balanced across English, German, French, Spanish, and Italian.
For both corpora, the team varied three tokenizer dimensions across vocabulary sizes of 33K, 50K, 82K, and 100K: Byte-Pair Encoding (BPE) in HuggingFace Tokenizers (BPE-HF), BPE in SentencePiece (BPE-SP), and Unigram in SentencePiece (UNI-SP). HuggingFace Unigram was excluded because missing preprocessing options produced vocabularies mismatched against SentencePiece. Each of the 24 custom tokenizers, plus two pre-trained 50K GPT-2 tokenizer baselines, powered an identical 2.6B-parameter GPT-3-style Transformer (32 layers, hidden size 2,560, sequence length 2,048, RoPE, and FlashAttention-2) trained for 52.6B tokens following Chinchilla scaling ratios.
Key Findings
Even implementing the “same” algorithm in a different library creates a surprisingly distinct vocabulary. Comparing BPE-HF and BPE-SP at identical vocabulary sizes, vocabulary overlap sits at just 74% to 77% for English and 61% to 62% for multilingual sets, driven by normalization, digit splitting, and byte-fallback rules. Across language mixes, English and multilingual vocabularies share only 24% to 34% of their tokens.
Downstream zero-shot accuracy across 22 English tasks and 19 non-English tasks shows why those library and size choices matter:
- SentencePiece BPE edges out HuggingFace BPE: averaged across vocabulary sizes,
BPE-SPbeatsBPE-HFin both monolingual English (49.77% vs. 48.98%) and multilingual evaluation (40.85% vs. 40.43%, winning in every tested language). - Algorithms split by language family:
BPE-SPoutperformsUNI-SPon English (47.68%vs.47.10%in multilingual) and German (37.13%vs.36.51%), whereasUNI-SPleads on French (37.66%vs.37.45%) and Spanish (42.56%vs.41.96%). - Over-sizing English hurts while under-sizing multilingual fails: on English,
BPE-SP-33achieves the top average (50.81%), dropping to 48.99% at 82K as extra rare tokens fragment morphological patterns and add softmax cost. On multilingual text,BPE-SP-100wins (41.44%), while the pre-trainedGPT-2-50tokenizer sinks to 39.41%. - Fertility and parity fail as universal rankings: Spearman correlations between fertility (or cross-lingual parity) and task accuracy swing wildly across tasks. Low fertility tracks better downstream accuracy only when vocabulary size is still below saturation, such as non-English languages constrained to 33K–50K tokens. As later work on Single Token Retention Rate also shows, average tokens per word hides which words remain intact.
Compute accounting reveals a second trap: expanding a vocabulary to chase lower fertility does not pay for itself in FLOPs. Using the Megatron-LM per-word compute formula C_word = C_token * fertility, raising vocabulary size from 50K to 100K increases per-word FLOPs across every setting because larger embedding and softmax projections outweigh modest sequence-length reductions. The genuine compute win comes from allocating a balanced multilingual vocabulary rather than over-splitting non-English words into byte fragments with an English-only tokenizer.
Caveats and Builder Takeaway
Because training 26 models consumed roughly 59,000 A100 GPU hours, Ali et al. trained a single random seed per tokenizer without per-tokenizer learning-rate tuning, evaluated only zero-shot accuracy at 2.6B parameters, and restricted the multilingual mix to five Latin-script European languages. Non-Latin scripts, code-heavy mixtures, and few-shot prompting could amplify vocabulary pressure further.
For teams training LLMs today, the operational lesson is clear: treat the tokenizer as a first-class architectural decision rather than a boilerplate import. Use a 32K–50K SentencePiece BPE vocabulary for English-only pretraining, scale to 100K+ with balanced language sampling when supporting multiple languages, and never pick between two candidate tokenizers using fertility scores alone without running small-scale extrinsic ablations.


