1.6 β The generative era & hallucination π¨
In 2017, a new architecture called the Transformer (paper βAttention Is All You Needβ) changed everything. Before, AI analyzed (βthis is a photo of a catβ). Now it creates: text, images, code. This is the birth of the Large Language Models (LLMs) like ChatGPT, Claude, or Gemini.
π The secret in 30 seconds: how an LLM βwrites.β It doesnβt βthink throughβ its sentence. It predicts the most probable word (or piece of a word), adds that word, then starts again β over and over. Like a super-powered autocomplete, trained on billions of texts. Example: after βThe cat drinksβ¦β, it computes that βmilkβ is very likely and suggests it.
β οΈ Direct consequence β hallucination. Since the model aims for the plausible and not the true, it can invent a wrong answer with total confidence. This isnβt an occasional bug, itβs structural. Much of this training (prompting, tools, guardrails) exists precisely to tame this behavior.
π’ In plain words β an LLM is a giant autocomplete: it guesses the most probable next word, over and over. It doesnβt know whether itβs telling the truth β it says what sounds right.
β οΈ Common mistake β assuming an AI answer must be true because itβs well written and self-assured. A confident tone proves nothing. The right reflex: verify the important facts (dates, figures, names) against another source.
π Going further
The model doesnβt reason word by word but by βtokensβ (pieces of words). For each token it computes a probability across tens of thousands of candidates and picks one. Thatβs why the same prompt can give two slightly different answers: thereβs an element of controlled randomness.
| Era | Core idea | What the AI does |
|---|---|---|
| Expert systems (70s-80s) | Humans write the rules | Apply IFβ¦THEN |
| Deep Learning (2010s) | The machine learns by example | Analyzes / recognizes |
| Generative (since 2017) | Predict the next item in a sequence | Creates content |
β In short
- The Transformer (2017) architecture moved AI from analysis to creation.
- An LLM writes by predicting the most probable next word, in a loop.
- Hallucination (a wrong but confident answer) is a structural consequence, not a bug.
π My note
A training byBaxIA