The story and the devices
The story
Shannon's guessing game. In 1951 Claude Shannon asked people to guess the next letter of an English text, and from their mistakes estimated how much information English carries. Every modern model plays a version of that game: language models guess the next token, diffusion models guess the noise, robot policies guess the next action, world models guess the next frame. The question that grows through the series: what do you have to know to guess well? And alongside it, the field's own history: who tried what, why it worked or didn't, and how each idea led to the next.
- Act I, Foundations: information, the symbolic era and its search and logic, linear algebra, calculus and autodiff, randomness.
- Act II, Learning from Data: classical and statistical learning, generalization, neural networks, the deep learning revolution (CNNs, RNNs), optimization, and the mathematics of scale.
- Act III, The Transformer Era: attention, the language-model lineage from GPT-1 to today's open-weight frontier, memory, sparsity, the hardware, pretraining at scale, and inference.
- Act IV, Generation and Perception: VAEs, GANs, flows and energy models; diffusion and flow matching; images, video and 3D; tokens for every sense; self-supervised learning; symmetry and science (AlphaFold, weather, maths).
- Act V, Agency: reinforcement learning from Bellman to AlphaZero and MuZero, post-training and alignment, reasoning, agents and world models.
- Finale: open a model up and see what it knows; then ask whether we can trust it.
Three devices hold it together:
- The scoreboard (
explainer.ai.scoreboard): one fixed passage, chapter 2 of Dashiell Hammett's The Maltese Falcon (1930), in the US public domain and on Project Gutenberg since 1 January 2026. It is held out of the training data for the models we build here. Earlier editions may have reached pretrained models; the Gutenberg release date does not establish that their training data is uncontaminated. Each row is a model's bits per character on it. Part 1 computes the passage and the first rows (.cache/ai1/scoreboard.json); later parts add the models they build (Kneser–Ney and an ∞-gram in Part 7, a neural n-gram in Part 9, a character LSTM in Part 10, a small transformer in Part 13, and more), all trained on the same thirty novels. - Payoffs: each idea is introduced with "where this comes back" (
explainer.ai.payoff_card), and the later part opens by calling back to it. - The timeline strip (
explainer.ai.timeline, 1940–2030) on every chapter card.