All posts

What Is an AI Model — and How Do Machines Learn?

An AI model doesn't know anything — it has compressed patterns from data into numbers. Understand that once, and you understand why AI hallucinates and how to work with it. Explained simply.

The short answer

An AI model stores no rules and no verbatim knowledge — it's patterns from enormous amounts of data, compressed into billions of numbers called weights. Training is guess, measure, adjust, repeated billions of times. Because a model knows what sounds probable rather than what's true, it hallucinates on thinly covered topics. Treat its answers as drafts, and verify anything that has to be factually correct.

"So what actually is an AI model?" — the question is guaranteed to come up. From a colleague, from your boss, at the family dinner table. And most answers are either marketing ("a digital intelligence!") or a math lecture. Neither helps anyone.

The honest answer fits in three sentences — and once you understand it, you also understand why AI is sometimes brilliant and sometimes confidently talks nonsense.

A model is compressed experience

An AI model is not a program with hand-coded rules, and not a database of stored knowledge. It's closer to this: patterns from enormous amounts of data, compressed into billions of numbers.

Those numbers are called weights. Think of them as dials — billions of tiny dials whose combined positions determine what the model does with an input. Not a single sentence from the training data is stored verbatim in those dials. What's stored is the pattern: how language typically continues, which concepts belong together, what usually follows which question.

How machines learn: guess, measure, adjust

Training sounds far less spectacular than the result suggests:

  1. Guess. The model gets a snippet of text and predicts the next word. At the start: pure chance.
  2. Measure. The prediction is compared with the real next word. The error is computed.
  3. Adjust. Each of the billions of dials is turned a tiny bit in the direction that would have made the error smaller.

That's it — just repeated billions of times, across vast amounts of text, on hardware that fills data centres. Out of "guess, measure, adjust" emerges something astonishingly capable: a system that completes language, code, and reasoning well enough to look like understanding.

Why AI hallucinates (and why that's not a defect)

Now the most important consequence becomes visible: a model doesn't know what's true. It knows what sounds probable.

Ask about something well covered by the patterns and you get an excellent answer. Ask about something thinly covered — a niche topic, a current figure, your specific case — and the model completes anyway. Confidently. It fills the gap with whatever is most probable, and the most probable is sometimes pure invention.

This isn't a malfunction the vendors forgot to fix. It follows directly from how the system works. Hallucination is the price of the flexibility.

The rule of thumb for everyday use

All of this collapses into a single rule that spares you 90% of the trouble:

Treat AI answers as drafts, not as answers. For anything creative, linguistic, or structural (texts, summaries, ideas, code scaffolding), the model is an excellent collaborator. For anything that has to be factually correct (numbers, quotes, legal, medical), it's an intern with great self-confidence — verify before you pass it on.

And if you give the model your own material — the contract, the meeting notes, the documentation — you shift its job from guessing to processing. That's exactly why context is the biggest lever in prompting.

What you can do this week

Test the boundary yourself: ask the AI a question from your own field where you know the answer cold — once with no context, once with your material in the prompt. You'll see both sides: how well pattern completion works, and where it quietly tips over. You'll read AI answers differently afterwards.

If you want to build the foundation properly — what a model is, how machines learn, what agents are, all without jargon: my audiobook "KI-Grundlagen lernen für Einsteiger" (German) is on Apple Books and Google Play.

Frequently asked questions

What is an AI model in simple terms?

Not a program with hand-coded rules and not a database of stored knowledge. An AI model is patterns from enormous amounts of data compressed into billions of numbers called weights — think of them as tiny dials whose combined positions determine what the model does with an input. No sentence from the training data is stored verbatim; what's stored is the pattern of how language typically continues.

How does a machine learning model actually learn?

Three steps, repeated billions of times: guess — the model predicts the next word of a text snippet, at first by pure chance; measure — the prediction is compared with the real next word and the error computed; adjust — each of the billions of weights is turned a tiny bit in the direction that would have made the error smaller. Out of that loop emerges a system that completes language and code well enough to look like understanding.

Why do AI models hallucinate?

A model doesn't know what's true — it knows what sounds probable. On topics well covered by its training patterns it answers excellently; on thinly covered ones — niche topics, current figures, your specific case — it completes anyway, confidently filling the gap with whatever is most probable, which is sometimes pure invention. That's not a malfunction vendors forgot to fix; it follows directly from how the system works.

How should I use AI answers safely in everyday work?

Treat AI answers as drafts, not as answers. For creative, linguistic, or structural work — texts, summaries, ideas, code scaffolding — the model is an excellent collaborator. For anything that must be factually correct — numbers, quotes, legal, medical — verify before passing it on. And giving the model your own material shifts its job from guessing to processing, which is why context is the biggest lever.

AI code without tech debt — the checklist

Sign up: the checklist plus new posts on AI engineering. No spam, unsubscribe anytime.