Zenaique

Why do modern LLMs use subword tokenization instead of word level or character level approaches?

MCQ·Easy·4.0 · 0·~1 min·Asked atIntuitMetaOpenAI
Attempt it
TL;DR

Subword tokenization is the compromise that handles unseen words by splitting them into known pieces while keeping sequences short, avoiding both word-level OOV failures and character-level length explosion.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

Imagine you have a box of building blocks. With word blocks, you can only build things you have a block for, so a brand-new shape you have never seen is impossible to make. With single-dot blocks, you can build anything, but even a tiny shape needs hundreds of dots and takes forever. Subword blocks are medium-sized pieces. Common shapes have their own ready-made block, and anything new you can still build from smaller pieces. That way you can always make the shape, and you do not need a mountain of tiny dots to do it.

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

Every LLM begins by turning text into integers, and the choice of how to chop the text is one of the earliest and most consequential design decisions. It looks trivial, split on spaces or split on letters, but each obvious option fails in a way that makes the model either ignorant or impossibly slow.

The reason subword tokenization became universal is that it is the resolution of a genuine tension between two requirements: cover any possible input, and keep sequences short enough for attention to handle. Word-level satisfies the second and fails the first; character-level satisfies the first and fails the second. We will walk through each failure with concrete numbers, show how subword threads the needle, and note where the compromise still leaks, because that is what separates a memorized answer from an understood one.

Why word-level breaks: the closed vocabulary

A word-level tokenizer builds its dictionary once, from the training corpus. Every word it has seen gets an ID; everything else is out of luck.

When a word-level model trained before 2022 encounters "ChatGPT", that string is not in the dictionary, so the tokenizer emits a single [UNK] token. The model receives a generic unknown marker with no information about the actual word. It cannot tell "ChatGPT" from "xqzptl"; both are just [UNK].

This is the out of vocabulary problem, and it is fatal for general language. New product names, proper nouns, technical terms, typos, and rare inflections appear constantly, and a closed vocabulary destroys all of them at the input. You cannot enlarge the dictionary to cover every possible string, because the space of possible words is effectively unbounded. So word-level is short and efficient but blind to anything new.

Why character-level breaks: length and the quadratic wall
How subword threads the needle
Where the compromise still leaks
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

Real products, models, and research that use this idea.

  • OpenAI's GPT-5.5 uses the byte-level BPE tokenizer o200k_base, which keeps English near 1.3 tokens per word while never emitting an unknown token.
  • Meta's Llama 4 uses a SentencePiece-derived subword vocabulary so it can represent code, proper nouns, and many languages without an OOV marker.
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QByte-level BPE is said to never emit [UNK]. Why is that guaranteed?
A

Every string reduces to bytes, and the vocabulary always includes all 256 byte values, so any input decomposes into in-vocabulary pieces.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Claiming subword always yields shorter sequences than word-level, when in fact word-level is shortest and subword trades a little length to gain open-vocabulary coverage.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • The word-level coverage failure and the UNK token

  • The character-level sequence-length explosion

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Why does BPE tokenization use subwords instead of words or characters?
Flashcard·Easy