Spot the error: 'BPE tokenizers can produce [UNK] when they encounter rare words'
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Click any words you think contain an error. Click again to unmark.
Byte-level BPE cannot emit [UNK]: its 256-byte base vocabulary covers every possible byte, so any UTF-8 string always tokenizes into known pieces.
Imagine a box of alphabet stamps that includes every single letter, so no matter what word someone hands you, you can always spell it out one stamp at a time. You might use a lot of stamps for a weird word, but you are never stuck. Byte-level tokenizers work like that. Their starting box holds all 256 possible bytes, which are the raw building blocks of any text a computer can store. A rare or made-up word just gets stamped out in smaller pieces, maybe even byte by byte. It never hits a wall where it has to throw up an 'unknown' sign, because there is always a stamp for the next byte.
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.
3 min: 256-byte floor + why no [UNK] + where [UNK] really lives (word-level, WordPiece) + token inflation as the real cost.
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.
Carrying the word-level [UNK] worry into byte-level BPE pipelines; GPT-family tokenizers cannot emit [UNK], so the defensive handling is wasted effort.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.