Multilingual Tokenization and Vocabulary Allocation › Summary
Michael BrenndoerferNovember 25, 20261 min read
Language AI HandbookAll chapters - Fertility measures tokens per word under a stated word segmentation convention. Bytes per token describes compression, and the tokenization premium compares token counts on parallel text.
- BPE adds each language's eligible pair occurrences to the global count at the current step. Corpus weighting changes candidates' relative counts, and later merges change the symbol stream.
- Coverage targets character occurrence mass. Byte fallback adds 256 reserved pieces and preserves otherwise unsupported characters after normalization.
- Unicode normalization can change code-point and byte sequences. One Hangul syllable can decompose into two or three code points. The final token count depends on how the tokenizer represents them.
- Raw UTF-8 requires one to four bytes per scalar value. Translations can have different numbers of scalars, so the per-scalar bound gives no fixed cross-language premium.
- A fixed context or input rate makes absolute token counts matter. To compare losses on the same text across tokenizers, report bits per byte with the scoring, preprocessing, and boundary conventions stated.
- Token ID overlap measures shared vocabulary usage within a tokenizer. Any overlap can include byte fragments, punctuation, and whitespace.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!