ELI5: Why do AI language models struggle with counting letters in words?
AI language models struggle to count letters because they do not see words letter-by-letter; instead, they read whole chunks of words all at once.
Imagine you are playing with colorful building blocks. When an adult looks at a toy car made of blocks, they instantly recognize the entire car. If you ask them to quickly tell you how many tiny plastic bumps are on the bottom of the car, they might have to guess because they are focused on the whole toy, not the individual pieces.
An AI reads in the very same way:
- Word Chunks: Instead of reading individual letters like A, B, and C, the computer groups letters together into blocks called tokens.
- Reading by Slices: A short word might be one single block, while a longer word might be sliced into two or three blocks. For example, the computer might see the word "banana" as two puzzle pieces: "ba" and "nana".
- Blind to the Pieces: Because the AI only looks at the big puzzle pieces, it never actually spells the word out in its head. It knows what the word means and how to use it, but it cannot easily "look inside" the piece to count the letters.
Think of it like looking at a picture of a fruit basket in everyday life. You can immediately point to the basket and say, "That is a bunch of grapes!" You know it is sweet, you know it is purple, and you know it belongs in a lunchbox. But if someone suddenly asks, "How many individual grapes are in that picture without counting them one by one?", you will probably make a mistake.
Because the AI is trained to understand the meaning of your sentences rather than the spelling of each tiny part, asking it to count letters is like asking someone to guess how many threads are in their shirt just by looking in the mirror. It simply guesses based on what it usually sees, and those guesses are often wrong.
Ask your own question
Follow-up questions
Test yourself
Three quick questions to see if it stuck. You can challenge a friend after.
Get this entry by email
We'll send it to your inbox, plus one good explanation a week if you like.