Skip to content
Road to Intelligence

The Road to Intelligence

After “The Road to”, GPT-2 small’s top guesses were “the” (4.5%), “Damascus” (4.0%) and “Recovery” (1.3%). “Intelligence” came 3,034th.

I · FoundationsthecatsatsoitII · Branches & Languagethe cat sat on the …matsofarugbedIII · Large Language ModelstoolsIV · SystemsV · Judgment

Five parts, read in order. The road shows reading order, not a single path through history. Point at a part to see what it covers.

Most explanations of AI start with the newest model and work backwards. This one starts in 1950 and walks forward. Each idea arrives because the one before it ran into a wall: rules couldn't keep up with the world, so machines learned from examples; reading one word at a time was too slow, so attention let every word see every other.

It's written for engineers who use AI every day and want the theory underneath to click. Every paper and video is checked against its source, and claims about fast-moving research say how settled they are.

16 chapters, 219 concepts, 52 hands-on experiments, 288 papers and 56 videos.

Everything on the road

219 ideas, placed by meaning.

Each star is one concept page, placed by a real embedding model: pages it reads as similar sit close together. Point at a star to see its nearest neighbours and what it builds on, click to fly in, or rearrange the stars along the road you’ll walk.

Prefer a list? Browse all 219 as a list, or see them as towns on the atlas.

The whole road

Five parts, 16 chapters.

16 chapters are open now. Each one starts from a problem and ends where the next one begins. To feel how far the road goes, take the long descent: 75 years of training compute on one scale.

  1. Part I

    Foundations

    From hand-written rules to machines that learn.

  2. Part II

    Branches & Language

    Seeing, hearing, acting — and the long road to understanding text.

  3. Part III

    Large Language Models

    Prediction at scale, and how it becomes an assistant.

  4. Part IV

    Systems

    Retrieval, tools, agents, reasoning and many modalities.

  5. Part V

    Judgment

    How we measure, trust, secure and study these systems.

Learn by doing

See What the Model Sees

Type anything. This is the real tokenizer from GPT-2 and GPT-4, splitting your text the way the model receives it. Every chapter has experiments like this one.

Open the Lab →

Follow one thread

From a list of numbers to the mechanism inside every LLM.

Five ideas, each built on the one before. Scroll, and the figure follows along.

  1. 01

    Vectors

    A word becomes a list of numbers. Here it's just two numbers, so each word can be drawn as an arrow.

    catdogcat = [0.80, 0.55]dog = [0.72, 0.66]
    Toy 2-D vectors, so they can be drawn. Real models use hundreds of dimensions.
    Read the concept →
  2. 02

    Dot product

    Multiply matching numbers and add them up. Arrows that point the same way score high: cat and dog score 0.94, cat and car only 0.26.

    catdogcarcat · dog = 0.94cat · car = 0.26
    The dot product of the same toy vectors.
    Read the concept →
  3. 03

    Embeddings

    Learn those numbers from text, and words used in similar places end up close together. Meaning becomes distance.

    catkittendogpuppycartruckbusapplebread
    Illustration of an embedding space. Real ones have hundreds of dimensions.
    Read the concept →
  4. 04

    Attention

    To understand “it”, score every other word with a dot product, turn the scores into weights, and mix. Here “it” gives 54% of its attention to “cat”.

    thecat54%wastiredsoitslept
    What “it” attends to, using the hand-set toy weights from the Attention from Scratch lab.
    Read the concept →
  5. 05

    Self-attention

    Do that for every word at once and you get a table of weights. That table is computed inside every layer of a large language model.

    thecatwastiredsoitsleptthe66cat25was52tiredso66it54slept4529
    Every word at once: rows ask, columns answer. Weights in %, same toy model.
    Read the concept →

The road so far

The questions that moved AI forward.

Each answer raised the next question, from “Can machines think?” in 1950 to models that think before they answer. Watch them unfold as a short animated story, or follow every step on the timeline.

An animated tour of these moments, about four minutes. It starts only when you press play.

Your progress, kept

Pick up exactly where you stopped.

  1. Mark as you go. Every concept can be set to Learning, Understood or Revisit; chapters, papers, videos and experiments can be ticked off.
  2. Sign in to keep it. With Google or an email link, your progress is saved to your account and follows you to any device. We store only your email and your progress.
  3. Without an account, it's temporary. You can mark things without signing in, but they're kept only in this browser: clearing your browsing data, switching devices or, in Safari, seven days without a visit erases them.

219 concepts, one block each. Mark a concept Understood and its block fills in.

Every idea tells you how much it deserves:

How to read the labels →