37

The complete map

How do all the pieces fit together, from neuron to chatbot?

11 minExecutive path

The complete map

With voice. You can pause and jump to any step.

Lesson complete

Subtitles

In the first lesson, we asked you to explain to a computer how you know an email is spam. Thirty-six lessons later, you know how a chatbot writes.

Voice

No voice: the lesson advances on its own with subtitles.

The voice for this lesson is being recorded: for now it advances on its own with subtitles.

0:00 / 0:00

What you will achieve

  • Walk the course’s whole path, from data to strategy, and state in one sentence the idea of each module and each lesson.
  • Place the main milestones on a timeline, from the 1943 neuron to ChatGPT and agents, and explain why the takeoff came with scale.
  • Use ten concrete questions with any AI team or vendor, and recognize which lesson each one comes from.

Key ideas

  1. The course is a single path: learning is lowering an error with data (modules 1 to 3); generating is learning how data are spread out and sampling from them (4 and 5); scale and alignment turn the model into an assistant (6 and 7); using it well is a matter of judgment (8).
  2. Each lesson grew out of another’s limit: XOR called for hidden layers; the short memory of networks that read in order called for attention; the base model, which only continues text, called for alignment.
  3. The core ideas are old: the artificial neuron dates from 1943, and backpropagation spread in 1986. What changed after 2012 was scale: massive data, GPUs, and training tricks.
  4. Ten questions work with any team or vendor: why AI, which data, how accurate on your cases, how it fails, where what it says comes from, what it costs, where your data goes, what it can do alone, whether it works equally for everyone, and who answers for it.
  5. To keep learning: review “under the hood,” read an original source, and test any system with your own cases.

What many people believe

Common belief Generative AI is a brand-new technology that appeared out of nowhere with ChatGPT.

What is true ChatGPT (2022) rests on ideas that are decades old: the neuron (1943), backpropagation (1986), attention (2014), and the transformer (2017). What was new was putting those pieces together at large scale, with massive data, GPUs, and tuning with human preferences.

Check yourself

Four questions. No grade, no account: they just show whether the idea stuck.

ConceptA network that reads a sentence word by word gradually forgets what came far back. Which piece of the course grew mainly out of that limit?
ConceptAccording to the course timeline, what made deep learning take off around 2012?
CalculationAn agent gets each step right 95% of the time, and a task has ten chained steps. If errors are independent, about what percentage of tasks go right from start to finish?
ApplicationA vendor shows you a flawless demo of their assistant and claims it is “98% accurate.” Which of the ten questions should you ask first?

Under the hoodFor those who want the math and the code. You do not need it to follow the course.

The course in eight formulas

Each formula comes from a lesson; here they are simply gathered so you can see the thread.

  1. A model and its error (lesson 3). A line predicts y^=wx+b\hat y = wx + b, and the loss is the average of the squared errors: L=1n∑i(yi−y^i)2L = \frac{1}{n}\sum_i (y_i - \hat y_i)^2.
  2. Gradient descent (lesson 4): w←w−η ∂L∂ww \leftarrow w - \eta \, \frac{\partial L}{\partial w}.
  3. The neuron (lesson 5): y=f(w1x1+w2x2+b)y = f(w_1x_1 + w_2x_2 + b), with ff an activation (step, sigmoid, ReLU).
  4. Backpropagation (lesson 8): the chain rule, ∂L∂w=∂L∂y ∂y∂z ∂z∂w\frac{\partial L}{\partial w} = \frac{\partial L}{\partial y}\,\frac{\partial y}{\partial z}\,\frac{\partial z}{\partial w}, applied from the output back to the input.
  5. Next piece and attention (lessons 19 and 21): pi=ezi/T∑jezj/Tp_i = \frac{e^{z_i/T}}{\sum_j e^{z_j/T}} and softmax ⁣(QK⊤/d)V\text{softmax}\!\left(QK^\top/\sqrt{d}\right)V.
  6. Scale (lessons 24 and 25): training compute C≈6NDC \approx 6ND (parameters times tokens) and memory ≈\approx parameters × bytes per parameter.
  7. The cost of an answer (lesson 26): input × its price + output × its price.
  8. Using it with judgment (lessons 32, 34, and 35): a chain of nn steps, each going right with probability pp, succeeds end to end with pnp^n; a score’s margin shrinks like 1/n1/\sqrt{n} cases; risk is R=P×IR = P \times I.

The ten questions, and what counts as a good answer

# Question Lessons Good answer Red flag
1 Why AI and not written rules? 1 The rule is hard to write, there are examples with answers, and errors are tolerable “Because everyone is using AI”
2 What data trained it, with what permission? 1, 23 Documented sources, licenses, and knowledge cutoff “It’s confidential,” full stop
3 How often is it right on my unseen cases? 10, 34 A figure measured on your unseen cases, with its margin Only a public benchmark or a demo
4 How does it fail, and how will I notice? 33 A measured error rate, types of error, and how they are checked “It doesn’t make mistakes”
5 Where does what it says come from? 23, 31 It cites sources you can check and states its knowledge cutoff Unsourced answers about your data or recent events
6 What does each full task cost? 20, 26, 30 A breakdown in input and output tokens per type of task A “per user” price with no volume or tokens
7 Where does my data go? 30, 35 Where it is stored, for how long, and whether it is used for training, in the contract “It’s safe,” with no contract
8 What can it do alone, and who approves? 32, 35 Minimal permissions, a log of every action, and human approval before anything irreversible Full access “so it can be useful”
9 Does it work equally well for everyone? 34, 35 Error measured by group of people Only the average
10 Who answers for it when it fails? 33, 35 An owner with a name, an incident log, and a way to correct things “It’s the model’s fault”

The timeline, with its sources

McCulloch and Pitts (1943), the all-or-nothing neuron; Rosenblatt (1958), the perceptron; Samuel (1959), checkers that learns; Minsky and Papert (1969), Perceptrons; Rumelhart, Hinton, and Williams (1986), backpropagation; Hochreiter and Schmidhuber (1997), LSTM; Krizhevsky, Sutskever, and Hinton (2012), AlexNet; Mikolov and colleagues (2013), word2vec; Goodfellow and colleagues (2014), GANs; Vaswani and colleagues (2017), the transformer; Brown and colleagues (2020), GPT-3; Stability AI (August 22, 2022), Stable Diffusion; OpenAI (November 30, 2022), ChatGPT; OpenAI (September 12, 2024), o1; Anthropic (November 25, 2024), MCP. Each date was verified in the lesson that tells it. The choice of milestones is this course’s: there are many others (Bahdanau and colleagues’ attention in 2014, ResNet in 2015, Ho and colleagues’ diffusion in 2020, RAG in 2020, CLIP in 2021).

In code

import math

# 1) lessons 3 and 4: fit y = w·x with gradient descent
xs, ys = [1, 2, 3, 4], [2.1, 3.9, 6.2, 7.8]
w, eta = 0.0, 0.01
for step in range(200):
    grad = sum(2 * (w * x - y) * x for x, y in zip(xs, ys)) / len(xs)
    w -= eta * grad
print(round(w, 3))

# 2) lesson 19: from scores to probabilities with softmax
def softmax(z, T=1.0):
    e = [math.exp(v / T) for v in z]
    s = sum(e)
    return [round(v / s, 3) for v in e]
print(softmax([2.0, 1.0, 0.1]))

# 3) lesson 32: ten steps that each go right 95% of the time
print(round(0.95 ** 10, 3))

# 4) this lesson: how the timeline’s milestones are spread out
milestones = [1943, 1958, 1959, 1969, 1986, 1997, 2012, 2013, 2014, 2017, 2020, 2022, 2024]
before = [a for a in milestones if a < 2012]
print(2012 - 1943, len(before), 2026 - 2012, len(milestones) - len(before))

Output:

1.99
[0.659, 0.242, 0.099]
0.599
69 6 14 7

What comes next

There is no lesson thirty-eight. What follows is up to you: come back to the map when something isn’t clear, read an original source, and test whatever you use with your own cases.

Decision lens

What this idea means if your job is to decide, not to code.

  • Use the ten questions as a checklist before buying or approving an AI project: ask for each answer in writing and with evidence (figures measured on your cases, contract clauses, logs), not with a demo.
  • If an answer is vague (“it’s very accurate,” “your data is safe”), go back on the map to the lesson it comes from and ask the concrete question: with how many cases and what margin? where is it stored and for how long? who approves?
  • When a “breakthrough” is announced, ask what changed, as in lesson thirteen: more data (whose, under which license?), more compute (at what cost?), or a better method. Each brings different costs and risks.
  • Start small and measured: a reversible pilot, evaluated with your own cases (lesson 34) and with a named owner (lesson 35). Decide with numbers whether it continues.

Terms in this lesson

Full transcript
CommentsThis lesson’s public conversation: questions, facts to check, ideas.

Comments live in GitHub Discussions, in the course’s public repository; writing one requires a GitHub account. They load from giscus.app when you open this section. The course reviewers read them, and if a change is accepted, it is applied in both languages. Open the thread on GitHub

Sources