Your Chatbot Is Just Guessing the Next Word. So Why Is It So Good?
Artificial Intelligence

Your Chatbot Is Just Guessing the Next Word. So Why Is It So Good?

ChatGPT doesn't look anything up, doesn't 'know' facts, and has no idea whether it's right. It plays the world's most sophisticated game of autocomplete — and understanding that one idea explains almost everything it gets brilliantly right and embarrassingly wrong.

The tuput Editors · · 3 min read

Ask a modern chatbot to explain quantum mechanics and it will. Ask it how many times the letter “r” appears in “strawberry” and it may confidently tell you two.

That gap — genius and blunder in the same breath — isn’t a bug you can patch. It falls straight out of how these systems actually work. And the secret is almost insultingly simple.

It’s autocomplete. Extremely good autocomplete.

A large language model does exactly one thing: given some text, it predicts the next chunk of text. Then it adds that chunk, looks at the new total, and predicts the next one. And again. And again, hundreds of times, until it’s written you an essay.

That’s it. That’s the whole trick. Your phone’s keyboard does a clumsy version when it suggests the next word. ChatGPT is the same idea scaled up almost unimaginably — trained on a huge slice of the internet, books, and code until its guesses got eerily good.

It is not consulting a database of facts. It is not reasoning through a problem the way you do. It is asking, billions of times a second, given everything so far, what word most plausibly comes next?

Why guessing words produces apparent genius

Here’s the twist that makes it work: to predict the next word really well across all of human writing, a system is forced to absorb the patterns underneath that writing. Grammar. Facts that appear together. The shape of an argument. The rhythm of a joke.

The breakthrough that made this possible was a 2017 design called the transformer, which let models weigh how every word in a passage relates to every other word — paying “attention” to the relevant context instead of reading strictly left to right. Scale that architecture up with enough data and computing power, and next-word prediction stops looking like autocomplete and starts looking like knowledge.

But it isn’t knowledge. It’s a fantastically detailed statistical map of how humans use language. Which is why it can write you a sonnet and still trip over a child’s spelling question.

Why it hallucinates (and always will, a little)

When a chatbot invents a fake court case or a book that doesn’t exist, we call it a “hallucination.” It’s a misleading word. The model isn’t malfunctioning. It’s doing precisely what it always does — producing the most plausible-sounding continuation — in a situation where the plausible answer and the true answer aren’t the same thing.

The model has no separate sense of “true.” It has “likely.” Most of the time those overlap, which is why it’s useful. When they diverge, it will hand you a confident, fluent, completely fabricated answer, with no internal alarm going off — because there’s no alarm to go off.

That “strawberry” problem? It sees text not as letters but as chunks called tokens, so counting individual characters is genuinely awkward for it. It’s not stupid. It’s just built for a different job than the one you handed it.

What this means for actually using it

Once you internalise “it’s predicting plausible text, not retrieving facts,” the whole tool clicks into focus:

  • It’s phenomenal at things where fluency is the goal — drafting, rephrasing, brainstorming, translating, summarising.
  • It’s risky wherever a confident wrong answer costs you — specific facts, figures, citations, legal or medical specifics. Verify those. Always.
  • It doesn’t “know” what it doesn’t know, so it can’t reliably warn you when it’s guessing.

The machines are extraordinary. But the smartest thing you can do with one is remember what it’s actually doing under the hood: not thinking, not knowing — predicting. Once you hold that in mind, it stops being magic and becomes what it really is, which is arguably more impressive: a mirror of everything we’ve ever written, guessing its way, one word at a time, into something that looks a lot like understanding.

Share
Copied!

Sources & further reading

  1. Vaswani et al., 'Attention Is All You Need' (2017)
  2. Encyclopædia Britannica — Artificial intelligence

Researched and written with the help of AI tools and edited for accuracy. Provided for general information and discussion only — not professional advice. See our editorial standards and disclaimer. Spotted an error? Tell us.

#llm#chatgpt#how ai works#transformers

Enjoyed this? Get the next one.

One good read at a time, straight to your inbox. No spam, unsubscribe anytime.

More in Artificial Intelligence
AI Just Won a Nobel Prize for Cracking a Problem That Stumped Biology for 50 Years
For 50 years, working out how a single protein folds took years of lab work. Then an AI learned to predict it in seconds — and it just won a Nobel Prize for it.
← all articles