At its core, an AI is a prediction system

If you strip away all the complicated technology, an astonishingly simple description remains: a modern AI is a statistical prediction system. It gets a beginning, a question, a sentence, an image, and considers: What most likely comes next?

That sounds trivial at first. But that's exactly where the trick lies. If a system is very, very good at predicting what comes next, it can write texts, answer questions, produce translations, generate code, and much more. Prediction is more powerful than it looks at first glance.

Analogy

Imagine a person who has done nothing their whole life but read books. Very many books. If you interrupt this person in the middle of a sentence, they can guess pretty well how it will continue. That's exactly how a modern language model works, except it hasn't seen thousands but billions of texts.

Probability instead of truth

Here is the single most important idea: the AI has no concept of true or false. It only has a concept of probable. If you write "The capital of France is…", the AI has seen countless times in its training data that the word "Paris" follows this beginning. So it suggests "Paris". Not because it knows that Paris is the capital, but because "Paris" statistically appears there almost every time.

For very clear questions, this leads to the correct result. But for vague questions or topics with little training data, the system can just as confidently generate a wrong answer. The AI always sounds convinced, whether it's right or not.

Careful

"Probable" is not "true". An AI can tell you with the same confidence that Paris is in France and that a book that never existed was written by an author who never existed. More on this in the chapter on hallucinations.

Probability prediction live
"Today I'd like to eat ___", what does the AI choose?
Move the slider: at low temperature the AI almost always picks the most probable word. At high temperature, stranger words gain a chance, the AI becomes more creative, but also more unpredictable.

Tokens, the small building blocks

Before we go deeper, we need to talk about tokens. A token is a small piece of text. Some tokens are whole words, others are just syllables or a few letters. An AI doesn't see "text" the way we do, it sees a sequence of tokens.

Imagine you were reading a story aloud, but instead of words, thousands of small blocks lay on your table, each carrying a bit of text. The AI works exactly like that. It takes these blocks, looks at which ones are already laid out, and decides which block gets placed next.

Here's what it visually looks like when you break a sentence down into tokens:

Artificial intelligence is exciting
This is what a sentence looks like to the AI
Click the box to watch the tokens appear one by one.
Every colored block is a token, a small unit of text. The AI processes these pieces, not whole words or letters.

You see: "Artificial intelligence is exciting" isn't four words for the AI, but nine tokens. Some words, especially rarer or compound ones, get split into several pieces. Common small words like "is" are often a single token. Other languages, other AIs, other tokenizations, but the principle is the same everywhere.

Key takeaway

An AI doesn't think in sentences, not even in words. It thinks in tokens. If you read somewhere "the model has 4000 tokens of context", that means roughly: it can hold about 3000 words in mind at once, sometimes more, sometimes less, depending on the language.

How a sentence is formed: one token after another

Now here's the big realization: when you ask an AI a question, it doesn't write its answer "all at once". It writes it one token after another. At every step it asks itself: "What comes next, most probably?", and the result gets appended to the answer so far. Then the game starts over, with the new, slightly longer text.

The model receives your question

Your text is broken into tokens. "What is Artificial Intelligence?" becomes roughly seven or eight tokens.

It considers: which token comes first?

The model calculates, for thousands of possible tokens, how likely each one would be as the next token.

It picks a token

Usually the most probable one, but not always. This is where chance comes into play (see Temperature below).

It appends the token to the answer

The new token lands in the answer. Now the model sees your question plus the first token of the answer.

It repeats. Token by token

Steps 2 through 4 run over and over until a stop signal comes, or the answer is long enough.

This is also why the answer in ChatGPT or similar tools appears typing, token by token. You're essentially watching the model predict, live.

An AI doesn't write what it knows. It writes what would most likely come next.

Temperature, how creative is the AI allowed to be?

If the AI always chose the most probable token, it would sound pretty boring and predictable. That's why there's a small dial that can be adjusted on every model: Temperature. It determines how much randomness enters the selection.

Low temperature (e.g. 0.2)

  • The AI almost always picks the most probable token
  • Answers are precise and predictable
  • Good for facts, code, formal texts
  • Sometimes sounds a bit stiff

High temperature (e.g. 0.9)

  • The AI more often reaches for less probable tokens
  • Answers are more creative, more varied
  • Good for stories, brainstorming, texts
  • Sounds more alive, but can also produce more nonsense

Think of temperature like the dice cup in a board game. At low temperature, the AI almost always rolls nearly the same number. At high temperature, the cup gets shaken vigorously, sometimes producing a rare answer, sometimes an everyday one. Both have their place.

Example

Question: "How do I describe a sunny day?" At temperature 0.1 you get something like "A sunny day is bright and warm." At temperature 0.9, maybe: "A sunny day tastes like light-caramel and the quiet hum of bees over the asphalt." Both are correct English, but a different way of answering.

Why the AI doesn't know truth

Now comes the most important insight of this chapter. An AI, as we know it today, has no built-in concept whatsoever of what is true and what is not. It only has a concept of how probable it is that a particular sequence of words appears in the training data in this form.

Concretely, that means: if the correct answer appeared often in the training data, the AI usually gets it right. If the correct answer didn't appear, or rarely, or was rendered incorrectly, then the AI still generates something plausible. It doesn't say "I don't know", it produces the answer that would best fit your question, if it were true.

This is not malicious intent. It's the nature of the system. It's a probability machine. It knows only patterns, not facts.

Key takeaway

An AI doesn't lie in the human sense, it has no intent. But it can write things that aren't true with complete conviction. That's why fact-checking is essential for important topics. The AI helps you think; it doesn't replace thinking.

What does this mean for you?

Once you understand that an AI answers token by token based on probability, a few things follow almost automatically:

With this picture in mind, the next chapters are much easier to understand. We'll now look at where these probabilities actually come from, namely from a neural network.

In three sentences

What you now know

  • A modern AI is a prediction system. It breaks text into small building blocks (tokens) and, at every step, considers: which token most likely comes next?
  • The "temperature" dial controls how creative or predictable the AI's answers are, low for facts, high for stories and ideas.
  • The AI knows no truth, only probabilities. It can state falsehoods with complete conviction, precisely because it always sounds plausible. Fact-checking remains your job.