From pure math to chips to agents that do your work — the whole magic trick in one coffee break, explained like you're five. No equations, promise.
← → arrow keys · hover the dotted words for pro-level detailThe big secret
AI doesn't know. It guesses
Underneath every clever answer is one simple game: guess the nexttoken. The model plays it absurdly well — and those percentages come from a step called softmax.
FIG.01 — The only game it plays
Step 1 — The math
Words become numbers
The model can't read. Every word becomes an embedding — a list of numbers — pushed through a neural network: billions of dials called weights, each followed by a tiny gate called ReLU.
FIG.02 — A word, entering the machine
Step 2 — Inside a neuron
One neuron, one gate
Rosenblatt's 1958 blueprint still holds: multiply inputs by dials, add them up, squeeze through a gate — the activation function. The gates got smoother over the decades; stack millions of gated neurons and you're doing deep learning.
FIG.03 — The perceptron, and its gates
Step 3 — Training
Learning = turning dials
Show it a sentence, hide the ending, let it guess. Wrong? Nudge every dial slightly downhill — that's gradient descent — until the wrongness score, the loss, stops shrinking. Repeat trillions of times.
FIG.04 — The training loop
Step 4 — The chips
One genius vs ten thousand helpers
A CPU is one brilliant chef. A GPU is a stadium of kids each doing one tiny sum, all at once. Dial-math is really one enormous matrix multiply — exactly what GPUs were built for.
FIG.05 — CPU vs GPU
Step 5 — Transformers
Every word watches every other word
The 2017 trick that changed everything is called attention: to understand "IT", the model glances back at every word and finds "THE CAT". Stack that trick dozens of layers deep and you've built a transformer — the T in Chat-GP-T.
FIG.06 — Attention, watching
Step 6 — The family tree
Many brains came before
AI tried many brain shapes first: the one-neuron perceptron, stacked ANNs, loops that remember (RNNs), grids that see (CNNs), duelling twins that paint (GANs). Then 2017 happened.
FIG.07 — 60 years of brain shapes
Step 7 — Why the transformer won
It killed the bottleneck
Older brains — autoencoders & seq2seq — squeezed a whole sentence through one tiny summary, like retelling a movie from a single sticky note. The transformer let every word talk to every word, all at once. No bottleneck, fully parallel — so it could scale to the whole internet.
FIG.08 — Before and after 2017
Step 8 — New models
Bigger brains that now think first
From the single-neuron perceptron of 1958 to today's deep neural networks: more dials + more examples + more chips = smarter. That's scaling. The newest models also think before answering — reasoning.
FIG.09 — Scaling, then reasoning
Step 9 — Your request, then vs now
Same question, more machinery
Ask GPT-3.5 (2022) and your words ran straight through — one pass, one answer. GPT-4 (2023) added vision, longer memory, safety checks. Ask GPT-5.6 today and a router picks a brain, it thinks in private, calls tools and checks itself — all before you see a word.
FIG.10 — The pipeline, by generation
Step 10 — Fine-tuning
School, then job training
Pre-training = reading half the internet. School.Fine-tuning = a short course on top: manners, honesty, or a specialty like medicine or code. Job training.
FIG.11 — Base model, then the polish
Step 11 — Agents
Give the brain hands
A chatbot can only talk. An agent can act: think → use a tool → look at what happened → try again. Around the loop until the job is done.
FIG.12 — The agent loop
Step 12 — Harnesses
The cockpit around the brain
Raw models never ship alone. A harness wraps them — instructions, tools, memory, guardrails. It's the difference between an engine and a car you can drive.
FIG.13 — Model + harness = product
The whole story
Sand to systems
That's the stack: math on chips, transformers trained into models, polished by fine-tuning, given hands as agents, wrapped in harnesses. Now you know how AI works.