Why don't LLMs simply use character-level tokenization?
mediumAnswer
- Character-level: very long sequences (5-10x longer than BPE) → attention becomes prohibitive.
- Also, characters carry little semantic information — each attention step handles less content, requiring deeper / wider models.
- BPE / SentencePiece with 32k-200k vocab balances sequence length vs semantic density.
- Byte-level BPE gives the character-level robustness (any Unicode) without the sequence-length penalty.
Check yourself — multiple choice
- Character-level is more expressive
- Sequences would be 5-10× longer → attention becomes too expensive; also less semantic density per token
- Characters have too few tokens
- Only used for Chinese
Char-level: sequences too long for attention; BPE trades vocab size for compact sequences.
#tokenization#fundamentals
Practise LLMs & GenAI
214 interview questions in this topic.
Related questions
- How does Byte-Pair Encoding (BPE) tokenization work?
- What is a large language model, in one paragraph?
- Walk through how one training step of an autoregressive LLM works.
- How does SentencePiece differ from BPE?
- Name three practical failure modes caused by tokenization.
- What does 'emergence' mean in LLM capabilities and is it real?