Benchmarking Byte-Pair Encoding Tokenizers on Different Languages with Bits per Byte
Summary
A systematic extrinsic cross-language comparison of BPE, SuperBPE, and MorphBPE tokenizers reveals their performance across typologically diverse languages. Researchers evaluated these tokenizers on English, Mandarin, and Hungarian, utilizing bits per byte (BPB) normalized perplexity as the metric, with vocabulary sizes of 8K, 16K, and 32K. The study found that SuperBPE matched BPE for English but underperformed by 0.01–0.06 BPB for Hungarian and Mandarin, indicating that cross-whitespace merging is counterproductive for non-English languages. MorphBPE consistently performed worse than BPE across all settings, showing gaps of 0.02–0.04 BPB at the 32K vocabulary size. These results suggest that standard BPE remains a surprisingly effective baseline.
Key takeaway
For NLP Engineers selecting tokenizers for multilingual language models, you should consider standard BPE as a robust baseline. Newer variants like SuperBPE and MorphBPE, despite theoretical advancements, may underperform BPE, especially for non-English languages like Hungarian and Mandarin. Rigorously benchmark any alternative tokenizer against BPE using metrics like bits per byte normalized perplexity before deployment to ensure optimal cross-lingual performance.
Key insights
Standard BPE tokenization remains surprisingly effective across diverse languages, often outperforming newer variants.
Principles
- Linguistic theory alone does not guarantee practical tokenizer improvements.
- Cross-whitespace merging can be counterproductive for non-English languages.
Method
Extrinsic cross-language comparison of BPE, SuperBPE, and MorphBPE tokenizers using bits per byte (BPB) normalized perplexity on English, Mandarin, and Hungarian with 8K, 16K, and 32K vocabulary sizes.
In practice
- Prioritize standard BPE for multilingual NLP tasks.
- Rigorously benchmark advanced tokenizers for non-English languages.
- Evaluate tokenizer performance using extrinsic metrics.
Topics
- Byte-Pair Encoding
- Tokenization
- Multilingual NLP
- Language Models
- SuperBPE
- MorphBPE
Best for: Research Scientist, AI Scientist, NLP Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Paper Index on ACL Anthology.