
Tokens Explained
Ask an AI how many R's are in "strawberry" and it might get it wrong — while writing flawless code in the same conversation. Ask it to do arithmetic a calculator handled in 1970 and it fumbles.
Notes
Ask an AI how many R’s are in “strawberry” and it might get it wrong — while writing flawless code in the same conversation. Ask it to do arithmetic a calculator handled in 1970 and it fumbles. Write the same sentence in Hindi instead of English and it costs you two to three times more.
Four strange behaviours. One shared cause.
The models we use every day never see letters. Text is chopped into pieces called tokens before it reaches the neural network at all — and that chopping step was built by a frequency-counting algorithm originally designed in 1994 to compress files. Once you understand how those pieces are made, almost every confusing thing an AI does starts to make sense.
This video covers what a token actually is, how the vocabulary gets built, why whitespace matters more than you think, where the multilingual cost gap comes from, what glitch tokens were, and the research now trying to remove tokenizers entirely.