A visual curriculum for machine learning
Descent
From Shannon’s guessing game to transformers, reinforcement learning from human feedback, and the questions no one has answered yet. Built for people starting further back than a PhD — and aiming further forward.
- Parts
- 24
- Lessons
- 126
- Reading time
- 101 h
- Pace
- 12 months
Motivation before mechanism
Every idea arrives as the answer to a problem someone actually had. You’ll know why neural networks, attention and the KV cache exist before you learn how they work.
Every symbol decoded
Equations come with a colour-coded decoder: hover a symbol to see what it means and how to say it out loud. Notation stops being a wall and becomes a compression format.
See it, then run it
Interactive plates you can drag and scrub, Manim animations, and Python you can run right here in the browser. Nothing stays purely conceptual.
The route
24 parts, one continuous descent
Each part assumes only the ones above it. The months are a suggested pace for a year of serious part-time study.
- 0Reading the languageWeek 1
Base Camp
How to use this curriculum, and a field guide to the symbols that make papers feel impenetrable. Learn to read an equation the way you read a sentence.
- IInformation and predictionMonth 1
Shannon's Game
In 1948 Claude Shannon measured information in bits and, a few years later, asked people to guess the next letter of English text. Every modern language model is still playing his game.
- IILinear algebra, calculus, probabilityMonths 1–2
The Toolkit
The three languages every paper is written in. Vectors and matrices as geometry, derivatives as sensitivity, probability as bookkeeping for uncertainty.
- IIILinear models, closed forms, descentMonth 2
Fitting Lines
Linear regression is the hydrogen atom of machine learning. Solve it exactly with the normal equations, then solve it again by walking downhill — and see why the second way is the one that scales.
- IVNeighbours, trees, ensembles, kernelsMonth 3
Beyond Lines
Before deep learning, and still the first thing to try on a spreadsheet: methods that bend the straight line into neighbourhoods, trees, votes and kernels, and the reasons each one works.
- VMetrics, validation, statisticsMonth 3
Measuring Honestly
A model is only as good as the way you measured it. Precision and recall, calibration, validation that doesn’t leak, what to do when classes are rare or the world shifts, and how sure you can be of a result.
- VIClustering, embeddings, anomaliesMonth 4
Finding Structure
No labels, only data. Grouping it, flattening it into pictures you can see, estimating where it is dense, and spotting the points that don’t belong.
- VIIBayesian inference, graphical models, samplingMonths 4–5
Thinking in Distributions
Treat every unknown as a distribution and learning becomes inference. Priors and posteriors, graphs of dependence, hidden states, and the two great tools for intractable integrals: variational inference and Markov chain Monte Carlo.
- VIIIConvexity, duality, convergenceMonth 5
The Shape of Loss
Every model is fitted by an optimizer. When a bowl has one bottom, what Lagrange multipliers mean, why Newton’s method is fast and expensive, and what can be proved about stochastic gradient descent.
- IXPAC, VC, bounds, banditsMonth 5
Why Learning Works
When can a finite sample tell you anything about the future? Probably-approximately-correct learning, capacity measured by VC dimension and Rademacher complexity, the no-free-lunch theorem, and learning online against an adversary.
- XFrom perceptrons to backpropMonth 6
Why Neural Networks
Linear models cannot learn their own features. A stack of simple nonlinear units can. The history of that idea — its winters, its revival — and the chain-rule machinery that makes it trainable.
- XICNNs, RNNs, LSTMsMonth 6
Seeing and Remembering
Architectures are assumptions about the world baked into wiring. Convolutions assume locality; recurrence assumes sequence. Why each was invented, and where each broke.
- XIIThe transformer and next-token predictionMonth 7
Attention
Attention began as a patch for translation and became the whole architecture. Queries, keys and values; heads and residual streams; and how GPT turned Shannon’s game into a trillion-parameter industry.
- XIIIKV cache, sparse attention, efficiencyMonth 7
Making It Fast
Attention is quadratic and generation is sequential. The engineering that makes large models usable: caching, sharing heads, skipping most of the attention matrix, and respecting the memory hierarchy.
- XIVVAEs, GANs, flows, diffusionMonth 8
Making New Things
Language models predict the next token; other generative models learn to turn noise into images, sound and molecules. Autoencoders, adversarial games, invertible flows, and diffusion — the idea behind modern image generators.
- XVVision, graphs, audio, time, recommendationMonth 8
Other Worlds
The same ideas, bent to different data. Images beyond classification, molecules and networks as graphs, sound, sequences in time, what to show whom, and models that join text to pictures.
- XVISupervised, unsupervised, RL, RLHF, RLVRMonth 9
Learning Signals
Where does the learning signal come from? Labels, structure in the data itself, or reward. From the Bellman equation to the pipelines that turn a text predictor into an assistant and a reasoner.
- XVIIDeep RL, planning, exploration, imitationMonth 9
Deeper Reinforcement
Reinforcement learning past the basics: deep value and actor–critic methods, planning with learned models, the exploration problem, learning from demonstrations and logged data, and many agents at once.
- XVIIIFine-tuning, retrieval, agents, scaleMonth 10
Building with LLMs
What it takes to adapt, shrink, ground, evaluate and train large language models in practice: parameter-efficient fine-tuning, quantization, retrieval-augmented generation, tool use, benchmarks, and parallelism across thousands of chips.
- XIXNumPy, SciPy, PyTorch, JAX, KerasMonth 10
Under the Hood
Frameworks are autodiff engines wrapped around fast array libraries. Build a tiny one yourself, then open up the real ones: strides, dispatchers, tapes, tracers and compilers.
- XXWidth, depth, double descent, grokking, scalingMonth 11
Strange Phenomena
Deep learning keeps doing things classical theory said it shouldn’t. What happens as networks get wider or deeper, why test error can fall twice, why generalization can arrive long after memorization — and where it all might end.
- XXIGraphs, interventions, counterfactualsMonth 11
Cause and Effect
Prediction asks what will happen; causality asks what would happen if we acted. Confounders, causal graphs, the do-operator, potential outcomes, and why a model that predicts perfectly can still mislead.
- XXIIInterpretability, robustness, fairness, privacy, safetyMonth 12
Trust
Deployed models are used by people and attacked by some of them. Looking inside networks, adversarial examples, what fairness can and can’t mean, privacy guarantees, calibrated uncertainty, and the problem of aligning capable systems.
- XXIIIReading researchMonth 12
The Summit
Everything converges here: take a real paper apart line by line, and leave with a method for reading the next hundred.