The map of AI
Nested circles, four ways to learn, eighty years of history, day-one vocabulary
Before you learn any technique you need a map: what counts as AI, where machine learning, deep learning and generative AI sit inside it, how an agent differs from a model, and which learning paradigm each method belongs to. You also need the day-one vocabulary — model, parameters, loss, training versus inference, token, embedding — because every later lesson uses these words without pausing. The history matters too: knowing that the transformer (7.1 Attention Is All You Need: the big picture) answered a specific weakness of recurrent networks (6.6 Seq2seq, encoder–decoder and beam search) makes the architecture feel inevitable instead of arbitrary.
You'll be able to
- Place any technique on the AI ⊃ ML ⊃ DL ⊃ GenAI map and explain what an agent adds on top
- Distinguish supervised, unsupervised, self-supervised and reinforcement learning by the signal they learn from
- Recount the main milestones from 1943 to 2026 and the problem each one solved
- Define the day-one vocabulary precisely, including the notation , and
Key ideas
- AI ⊃ ML ⊃ DL ⊃ GenAI: rules → learned from data → deep networks by gradient descent → models that generate data. Agents are systems built around a model: perceive, reason, act, loop.
- Four paradigms by signal: supervised (labels), unsupervised (structure), self-supervised (labels manufactured from the data), reinforcement (rewards).
- LLMs are self-supervised at heart (predict the next token) and then refined with supervised examples and reinforcement learning.
Show 3 more key ideas
- Progress alternates between ideas (backprop, attention) and scale (GPUs, data); almost every breakthrough fixed a specific failure of its predecessor.
- Training adjusts parameters θ to lower the loss L(θ); inference applies the trained function. Train/validation/test splits exist to measure generalization honestly.
- A token is roughly three-quarters of an English word; an embedding is a learned vector whose geometry encodes meaning.
Suggested path through this lesson
Four nested circles
Artificial intelligence is the broad goal: systems that perform tasks we associate with intelligence — perceiving, reasoning, planning, using language. Early AI was mostly hand-written rules and search. Machine learning is the subset where the behavior is learned from data rather than programmed: you choose a family of functions and let an algorithm pick the member that fits examples. Deep learning is the subset of ML whose function families are neural networks with many layers, trained by gradient descent (4.1 From perceptron to MLP; universal approximation, 4.4 Backpropagation, fully derived). Generative AI is the subset of deep learning that learns to produce data — text, images, audio, code — by modeling the distribution of the data itself (7.6 Decoder-only: GPT and autoregressive generation, 8.9 Generative models II: Diffusion and flow matching).
An agent is not a fifth circle; it is a system built around a model. It perceives (reads inputs and tool results), reasons (the model), and acts (calls tools, writes files, browses) in a loop until a goal is met (10.1 What is an agent? Loops, autonomy and workflows vs agents). The model is the brain; the agent is the brain plus hands, memory and a loop.
Intuition. A model answers one question. An agent decides which questions to ask, in what order, and what to do with the answers.
Four ways a machine can learn
| paradigm | what the signal is | example | lessons |
|---|---|---|---|
| supervised | labeled pairs | spam vs not spam; image → class | 3.2 Linear regression, 3.3 Logistic regression and softmax classification, 5.3 Architectures: LeNet → AlexNet → VGG → Inception → ResNet → EfficientNet → ConvNeXt |
| unsupervised | structure in unlabeled | clustering customers; compressing images | 3.11 Clustering: k-means, GMMs/EM, DBSCAN and hierarchical, 3.12 Dimensionality reduction: PCA, t-SNE and UMAP, 4.10 Autoencoders, embeddings and representation learning |
| self-supervised | labels manufactured from the data itself | predict the next word; fill in masked pixels | 7.5 Encoder-only: BERT and friends (and sentence embeddings), 7.6 Decoder-only: GPT and autoregressive generation, 5.8 Self-supervised and contrastive learning |
| reinforcement | rewards from an environment after actions | play Go; align a chatbot with human preferences | 4.11 Reinforcement learning essentials, 8.3 Alignment: RLHF, PPO, DPO, GRPO and Constitutional AI |
The big story of the last decade is the third row: large language models are self-supervised — the internet provides the labels for free, because the next token is always known — and then refined with supervised examples and reinforcement learning (8.1 The LLM lifecycle and model landscape, 8.3 Alignment: RLHF, PPO, DPO, GRPO and Constitutional AI).
A short history, 1943 → 2026
| year | milestone | why it mattered |
|---|---|---|
| 1943 | McCulloch–Pitts artificial neuron | a neuron as a thresholded weighted sum — the unit we still use |
| 1958 | Rosenblatt's perceptron | the first learning rule for that unit (4.1 From perceptron to MLP; universal approximation) |
| 1969 | Minsky & Papert show a single perceptron cannot do XOR | the first "AI winter" begins |
| 1986 | backpropagation popularized (Rumelhart, Hinton, Williams) | multi-layer networks become trainable (4.4 Backpropagation, fully derived) |
| 1989–98 | LeCun's convolutional networks (LeNet) read handwritten digits | convolution + backprop works on real images (5.3 Architectures: LeNet → AlexNet → VGG → Inception → ResNet → EfficientNet → ConvNeXt) |
| 1995–2005 | support vector machines and kernels dominate | principled, convex, and better than small nets on most benchmarks (3.10 Support vector machines and kernels) |
| 1997 | long short-term memory (LSTM) | recurrent networks that remember (6.5 LSTM and GRU) |
| 2012 | AlexNet wins ImageNet by a wide margin | GPUs + ReLU + dropout + big data: the deep learning era starts |
| 2013–14 | word2vec, sequence-to-sequence, GANs, VAEs, Adam | embeddings, encoder–decoders, generative models and the default optimizer (6.3 Word embeddings, 6.6 Seq2seq, encoder–decoder and beam search, 8.8 Generative models I: VAEs and GANs, 1.10 Optimization: from gradient descent to Adam) |
| 2015 | ResNet, batch normalization, attention in translation | very deep networks train; attention is born (5.3 Architectures: LeNet → AlexNet → VGG → Inception → ResNet → EfficientNet → ConvNeXt, 4.6 Initialization and normalization, 6.7 Attention is born) |
| 2016 | AlphaGo | deep RL + search beats a world champion |
| 2017 | the transformer ("Attention Is All You Need") | recurrence removed; the architecture of everything since (7.1 Attention Is All You Need: the big picture) |
| 2018–19 | BERT, GPT-1, GPT-2 | pretrain once, fine-tune or prompt for many tasks (7.5 Encoder-only: BERT and friends (and sentence embeddings), 7.6 Decoder-only: GPT and autoregressive generation) |
| 2020 | GPT-3, scaling laws, DDPM diffusion, vision transformers | scale is predictable; diffusion rivals GANs; attention conquers images (7.9 Scaling laws and compute-optimal training, 8.9 Generative models II: Diffusion and flow matching, 5.7 Vision Transformers) |
| 2021–22 | CLIP, Codex, LoRA, chain-of-thought, InstructGPT, Stable Diffusion, ChatGPT | multimodality, cheap fine-tuning, reasoning by prompting, alignment with human feedback, and the public arrival of chat assistants (8.10 Multimodal models, 8.2 Fine-tuning and PEFT, 8.4 Prompting as programming, 8.3 Alignment: RLHF, PPO, DPO, GRPO and Constitutional AI) |
| 2023 | GPT-4, LLaMA and the open-weights wave, ReAct agents, RAG everywhere | frontier capability meets open models; tool use and retrieval become standard (9.1 Why RAG, and the canonical pipeline, 10.2 Tool use and function calling) |
| 2024 | reasoning models (o1), Model Context Protocol, GraphRAG, Llama 3, Claude 3 | models think longer at inference time; a standard for connecting tools (8.6 Reasoning models and test-time compute, 10.7 MCP and interoperability (plus Agent Skills and A2A)) |
| 2025 | DeepSeek-R1 and RL on verifiable rewards, coding and computer-use agents, MCP adoption | reasoning becomes reproducible in the open; agents start doing real work (8.6 Reasoning models and test-time compute, 10.8 Coding agents and computer use) |
| 2026 | long-running and managed agents, agent memory, harness design | the engineering of reliable autonomy becomes the frontier (10.4 Memory and context engineering, 10.11 Building production agents) |
Two patterns run through the table. Progress alternates between ideas (backprop, attention) and scale (GPUs, data, compute). And almost every breakthrough was a fix for a specific failure of its predecessor: XOR motivated hidden layers, vanishing gradients motivated LSTMs and ResNets, the seq2seq bottleneck motivated attention, attention's quadratic cost motivates today's efficient architectures (7.10 Efficient inference: KV cache, GQA, FlashAttention, speculative decoding, quantization, 7.12 Beyond vanilla attention: state space models, long context and hybrids).
The vocabulary you need on day one
- Model. A function that maps inputs to outputs; (theta) is the collection of all its adjustable numbers.
- Parameters. The entries of : the weights and biases. GPT-2 small has about 124 million; frontier models have hundreds of billions (7.4 Inside the block: residuals, LayerNorm, FFN and embeddings).
- Loss. A number measuring how badly fits the training data; smaller is better (4.3 Loss functions catalog).
- Training. Adjusting to reduce , almost always by gradient descent (1.10 Optimization: from gradient descent to Adam). Inference is using the trained on new inputs. Training is expensive and done once; inference is cheap and done billions of times.
- Dataset splits. Train to fit, validation to choose settings, test to report an honest score exactly once (3.1 What is learning? ERM, generalization and the ML workflow, 3.5 Evaluating models: metrics, validation and the bias–variance trade-off).
- Overfitting. Fitting the training data's noise so that performance on new data drops; generalization is doing well on data you did not train on (3.6 Regularization and generalization).
- Hyperparameters. Settings you choose rather than learn: learning rate, number of layers, batch size.
- Epoch and batch. One pass over the training data; one small group of examples processed together.
- Embedding. A learned vector that represents an item — a word, an image, a user — so that geometry (distance, angle) reflects meaning (1.1 Vectors, dot products and norms, 6.3 Word embeddings).
- Token. The unit a language model reads and writes, usually a word piece; about three-quarters of an English word (6.1 Text to numbers: tokenization). The context window is how many tokens a model can consider at once.
How the phases build on each other
The math of 1.1 Vectors, dot products and norms through 1.10 Optimization: from gradient descent to Adam is the language. Classical ML (3.1 What is learning? ERM, generalization and the ML workflow) teaches you to think about generalization with models simple enough to analyze. Deep learning (4.1 From perceptron to MLP; universal approximation) replaces hand-made features with learned ones, using the same losses and optimizers. Vision (5.1 Convolution: the operation and its math) and sequences (6.4 Recurrent neural networks and BPTT) are the two great application domains whose problems produced the transformer (7.1 Attention Is All You Need: the big picture). Large language models (8.1 The LLM lifecycle and model landscape) are transformers at scale plus alignment; retrieval (9.1 Why RAG, and the canonical pipeline) and agents (10.1 What is an agent? Loops, autonomy and workflows vs agents) are what you build with them.
Where this shows up later
- Each paradigm gets its own treatment: supervised learning — 3.1 What is learning? ERM, generalization and the ML workflow; self-supervised pretraining — 7.6 Decoder-only: GPT and autoregressive generation; reinforcement learning — 4.11 Reinforcement learning essentials.
- The history becomes a reading list in 11.2 Landmark papers: the reading list and the Papers timeline page.
- The vocabulary is used, without definition, from 1.1 Vectors, dot products and norms onward.
Common pitfalls (4)
- Equating AI with chatbots; generative AI is one subset of a much larger field, and most deployed ML is still supervised prediction.
- Thinking 'unsupervised' means 'no signal' — the signal is structure in the data; self-supervised methods manufacture explicit labels from it.
- Confusing parameters (learned) with hyperparameters (chosen).
- Treating the test set as a second validation set; the moment you tune on it, its score stops being honest.
Recap: all 6 key points
- AI ⊃ ML ⊃ DL ⊃ GenAI: rules → learned from data → deep networks by gradient descent → models that generate data. Agents are systems built around a model: perceive, reason, act, loop.
- Four paradigms by signal: supervised (labels), unsupervised (structure), self-supervised (labels manufactured from the data), reinforcement (rewards).
- LLMs are self-supervised at heart (predict the next token) and then refined with supervised examples and reinforcement learning.
- Progress alternates between ideas (backprop, attention) and scale (GPUs, data); almost every breakthrough fixed a specific failure of its predecessor.
- Training adjusts parameters θ to lower the loss L(θ); inference applies the trained function. Train/validation/test splits exist to measure generalization honestly.
- A token is roughly three-quarters of an English word; an embedding is a learned vector whose geometry encodes meaning.
Watch
The clearest eight-minute picture of what an LLM is and how it is trained; watch first.
Read
Exercises
- Classify ten systems
List ten AI systems you use or know (spam filter, photo tagging, a recommendation feed, a chatbot, a coding assistant, a self-driving stack, a translation app, fraud detection, an image generator, a game AI). For each, say which circle it lives in (AI/ML/DL/GenAI, agent or not) and which learning paradigm trained it. Expected: at least two are supervised, at least two self-supervised, and you can defend each label in one sentence.
- Explain the timeline from memory
Close the notes and write the milestones for 1986, 2012, 2017, 2020 and 2022 with the problem each solved. Then check the table. Expected: five correct years and the 'fix for a predecessor's failure' pattern stated in your own words.
- Vocabulary in one sentence each
Write a one-sentence definition of: model, parameters, loss, training vs inference, validation vs test set, overfitting, embedding, token, context window. Use the notation and where appropriate. Expected: definitions you could paste into a glossary without edits.
Quiz
Flashcards
These cards are now in your spaced-repetition queue. Review all due cards →