A tokenizer is 'byte-level'. What does that buy you over a character-level one?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Three wins over character-level: no OOV (every byte is in the base alphabet), a fixed 256-entry base regardless of script, and lossless round tripping. The tradeoff is uneven fertility across scripts.
Imagine the tokenizer is a translator that writes your text using a fixed alphabet. A character-level translator only knows the characters it saw during training; hand it a brand-new character and it does not know what to do. A byte-level translator's alphabet is the 256 possible byte values that all computer text is made of. Since every text in any language is ultimately a sequence of bytes, this translator can always write down what you wrote by spelling out the bytes if it has no shorter symbol. It might need more symbols for Tamil or Hindi than for English, but it never gives up. This is why modern LLMs like GPT-5.5 and Llama 4 use byte-level tokenizers.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
5 min: define byte-level as base alphabet of 256 byte values, explain the lossless UTF-8 consequence, contrast with character-level designs, note SentencePiece's byte_fallback path, name three model families using byte-level BPE, and explain the fertility tradeoff for non-Latin scripts.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Confusing byte-level with character-level. Character-level has an open-ended alphabet bounded by the training corpus and can hit OOV; byte-level has exactly 256 base symbols and cannot.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.