Why LLMs Never Read Characters or Whole Words
Transformers only operate on fixed-size numeric tensors, so raw strings must first be sliced into integer **Token IDs**. Splitting by single characters explodes sequence length (`N`) and makes $O(N^2)$ attention impossibly slow; splitting by whole words creates millions of rare out-of-vocabulary words.
**Byte-Pair Encoding (BPE)** repeatedly merges the most frequent adjacent byte pairs to build a vocabulary of ~50K–128K subwords. Notice how `"didn't"` splits cleanly into `didn` + `'t`, achieving ~4.7 characters per token.
idea:Click any token chip on the stage or switch between BPE Subword, Word, and Character granularity to watch token count explode.