LLM & Transformer Fundamentals·Question 9 of 109BasicAI-75

Why do LLMs use subword tokenization instead of whole words or raw characters?

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

It's a compression/coverage tradeoff, and subwords are the sweet spot between two bad extremes.

Full worked answer

It's a compression/coverage tradeoff, and subwords are the sweet spot between two bad extremes.

Word-level fails on coverage: natural language has an unbounded vocabulary (names, typos, morphology, code identifiers, other languages). You either carry a vocabulary of millions - an enormous embedding matrix and softmax - or you map everything unseen to an <UNK> token and lose information. Morphologically rich languages make this catastrophic.

Character-level (or raw bytes) has perfect coverage but terrible compression: sequences get ~4-5× longer than subword tokenization in English, and attention cost is quadratic in sequence length - so you pay a large constant factor in compute and effective context. Each character also carries almost no meaning by itself, so the model burns capacity reassembling words before it can do anything else.

Subword tokenization (BPE and relatives) learns a vocabulary of frequent chunks: common words become single tokens, rare words decompose into meaningful pieces ("tokenization" → "token" + "ization"), and with a byte-level base alphabet any string is representable - no OOV ever. You get sequences ~4× shorter than character-level with a vocabulary of manageable size (roughly 32k - 256k), and frequent tokens get well-trained embeddings.

Going further: follow-up territory

The interview-worthy caveat: this efficiency is bought by hiding the character level from the model - which causes the classic failures (letter counting, spelling games, some arithmetic) - and compression quality varies wildly by language, so non-English text is often 2-4× more tokens for the same content, meaning higher cost and less usable context. Tokenization is one of the few remaining hand-engineered, non-learned stages of the pipeline, and there's ongoing research on byte-level models with learned patching (e.g. the Byte Latent Transformer line) aimed at removing it.

What a good answer covers

  • It's a compression/coverage tradeoff, and subwords are the sweet spot between two bad extremes
  • Morphologically rich languages make this catastrophic
  • Character-level (or raw bytes) has perfect coverage but terrible compression
  • Each character also carries almost no meaning by itself, so the model burns capacity reassembling words…

Key terms: Word-level · Character-level · Subword tokenization

Interviewer follow-ups to expect

  1. How does byte-level BPE guarantee no out-of-vocabulary strings?

  2. What's the effect of tokenizer choice on multilingual pricing and quality?

  3. Why hasn't character/byte-level modeling replaced BPE yet?

Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep