Lurker News
Back to discussion

Comment by moozilla

moozilla2 replies#
ChatGPT is specifically bad at these kinds of tasks because of tokenization. If you plug your query into https://platform.openai.com/tokenizer, you can see that"egregious" is a single token, so the LLM doesn't actually see any "e" characters -- to answer your question it would have had to learn a fact about how the word was spelled from it's training data, and I imagine texts explicitly talking about how words are spelled are not very common.

Good explanation here if this still doesn't make sense: https://twitter.com/npew/status/1525900849888866307, or check out Andrej Karpathy's latest video if you have 2 hours for a deep dive: https://www.youtube.com/watch?v=zduSFxRajkE
IMO questions about spelling or number sense are pretty tired as gotchas, because they are all basically just artifacts of this implementation detail. There are other language models available that don't have this issue. BTW this is also the reason DALL-E etc suck at generating text in images.

wruza2 replies#
It doesn’t even matter how many tokens there is, because LLMs are completely ignorant about how their input is structured. They don’t see letters or syllables cause they have no “eyes”. The closest analogy with a human is that vocal-ish concepts just emerge in their mind without any visual representation. They can only “recall” how many “e”s are there, but cannot look and count.
brewtide#
Pre-cogs, I knew it.
alickz1 reply#
>They can only “recall” how many “e”s are there, but cannot look and count.

Like a blind person?

Continue this thread — 1 reply

ToValueFunfetti1 reply#
The number of tokens depends on context; if you just entered 'egregious' it will have broken it into three tokens, but with the whole query it's one.
fuzztester1 reply#
Why three tokens, not one?

Continue this thread — 1 reply

redox99#
" egregious" (with a leading space) is the single token. Most lower case word tokens start with a space.
chgs#
Chatgpt could say “I don’t know”