Tokenization
What it is
Byte-pair encoding, WordPiece or Unigram turn text into subword tokens — the model's actual alphabet.
When to use it
Every language model. Vocabulary size and segmentation quality quietly set a ceiling on what a model can do.
Caveats
The vocabulary is fixed once the model is trained and is tied to that model. Subword splits make character-level tasks (spelling, counting letters, arithmetic) harder, and languages under-represented in the tokenizer's training data need more tokens for the same text.
Key ideas
- Tokenization is where multilingual unfairness and arithmetic failures start
- Byte-latent (BLT) and multi-token prediction are the current rethink
Related architectures
Original paper
Neural Machine Translation of Rare Words with Subword Units (2015, arXiv)