Start here: nineteen lessons that teach their subject
1 · The language of mathematics
Before calculus or linear algebra, learn to read and negate a precise statement. Most errors in later proofs are quantifier errors.
Quantifiers
∀ and ∃, quantifier order, and the two negation rules. This is what the ε–δ definition is made of.
After this lesson: You can negate a nested statement and explain why “every … some” is not “some … every”.
requires: Propositions and truth values · Predicates · Logical connectives
Rank–nullity theorem
dim V = dim ker T + dim im T, proved by extending a basis. The first real theorem about linear maps.
After this lesson: You can compute rank and nullity, produce a nullspace basis, and prove the dimension identity.
requires: Vector spaces · Subspaces · Linear transformations · Kernel and image · Basis and dimension
2 · Approximation and inference
Five tools that recur everywhere: local linearisation, descent, quadratic convergence, conditional probability, and a measure of disagreement.
Taylor Expansion and Local Approximation
Every gradient method is a statement about a local polynomial model. Without the remainder term, the step-size proofs are guesswork.
After this lesson: You can expand a function to second order and bound the error of the linear model.
requires: Limits And Continuity · Derivatives · Higher Order Derivatives · Partial Derivatives · Mean Value Theorem · Big O Notation · Gradient And Hessian
Gradient Descent
The canonical minimisation algorithm, derived from the Taylor model, with a real convergence proof and a worked quadratic.
After this lesson: You can choose a step size from L, predict divergence, and explain why the negative gradient is the steepest descent direction.
requires: Partial Derivatives · Directional Derivatives · Taylor Expansion and Local Approximation · Convex Functions
Newton's Method and Second-Order Optimization
Second-order information gives quadratic local convergence and a clear failure mode. It shows what curvature buys and costs.
After this lesson: You can derive the update from the quadratic model and explain when it diverges or stalls.
requires: Taylor Expansion and Local Approximation · Gradient And Hessian · Positive Definite Matrices · Cholesky Decomposition · Gradient Descent · Convex Functions · Line Search Methods
Bayes' Theorem and Bayesian Inference
The rule for updating a belief with evidence. Base rates are the most common source of wrong conclusions in ML evaluation.
After this lesson: You can compute a posterior, distinguish P(A|B) from P(B|A), and explain why a 99% test can still be wrong.
requires: Probability Axioms · Conditional Probability · Random Variables · Probability Distributions · Expectation And Variance · Joint Distributions
KL Divergence and Cross Entropy
The directed divergence behind cross-entropy, variational inference and RL regularisation. It is not a distance.
After this lesson: You can derive it from entropy, prove it is non-negative, and explain its asymmetry.
requires: Shannon Entropy · Expectation And Variance · Jensen's Inequality · Convex Functions · Maximum Likelihood · Gaussian Distribution
3 · Learning from data
Now the machinery: how a model represents data, how gradients reach the parameters, and how training stays stable.
Singular Value Decomposition and Principal Component Analysis
The decomposition that explains variance, compression and low-rank adaptation. Rank–nullity tells you what is lost.
After this lesson: You can derive PCA from the SVD and compute a low-rank approximation with a stated error.
requires: Matrix Factorization · Eigendecomposition · Orthogonal Matrices · Rayleigh Quotient · Covariance Matrix · Spectral Theorem
Backpropagation and Computational Graphs
Reverse-mode automatic differentiation on the computation graph. The chain rule made cheap.
After this lesson: You can backpropagate through a small network by hand and verify it against finite differences.
requires: Partial Derivatives · Chain Rule · Gradient Descent · Computational Graphs · Matrix Calculus
Softmax and Cross-Entropy Loss
The standard classification loss, derived rather than memorised, including the log-sum-exp stability trick.
After this lesson: You can derive the gradient, implement a stable version, and explain why accuracy is not loss.
requires: Logarithms · Probability Distributions · Maximum Likelihood · Backpropagation and Computational Graphs · Gradient Descent · Information Theory
Convolution and Convolutional Neural Networks
Weight sharing and locality, with an explicit output-shape and parameter-count calculation.
After this lesson: You can compute shapes and parameters, and explain the inductive bias a convolution imposes.
requires: Linear Algebra · Matrix Multiplication · Signal Processing Basics · Backpropagation and Computational Graphs · Feedforward Neural Networks
Adam and AdamW: Adaptive Moment Estimation
Moment estimates plus decoupled weight decay. The default optimiser, with the bias-correction step often skipped in explanations.
After this lesson: You can write the update, explain each state tensor, and say why AdamW differs from Adam + L2.
requires: Gradient Descent · SGD · Momentum · Rmsprop · Adagrad · Exponential Moving Average
Normalization Layers: LayerNorm and RMSNorm
A normalisation that drops mean-centering and is cheaper than LayerNorm. Small change, real numerical consequences.
After this lesson: You can implement it, compare it with LayerNorm, and explain the invariance each one has.
requires: Backpropagation and Computational Graphs · Gradient Descent · Scaled Dot-Product Self-Attention · Activation Functions · Batch Normalization
4 · Sequence models and decision making
The two settings that dominate current research: attention over sequences, and value-based or policy-based control.
Scaled Dot-Product Self-Attention
Queries, keys and values as a differentiable lookup, derived from the desire for content-based mixing.
After this lesson: You can write the attention equation, explain the scaling, and prove permutation equivariance.
requires: Linear Algebra · Softmax and Cross-Entropy Loss · Backpropagation and Computational Graphs · Sequence Modeling · Matrix Multiplication
Transformer Architecture
The full block: multi-head attention, residuals, normalisation, FFN, positions, causal masks and the parameter count.
After this lesson: You can implement a causal block, count its parameters, and explain the KV-cache and attention complexity.
requires: Scaled Dot-Product Self-Attention · Softmax and Cross-Entropy Loss · Backpropagation and Computational Graphs · Matrix multiplication · Normalization
Markov Decision Processes and Bellman Equations
The recursive consistency condition that makes sequential decisions tractable.
After this lesson: You can derive the expectation and optimality equations and explain the contraction argument.
requires: Probability Theory · Conditional Expectation · Markov Chains · Dynamic Programming · Discounted Returns
Q-Learning and Temporal Difference Control
Off-policy value learning from bootstrapped targets, with the overestimation and deadly-triad failure modes.
After this lesson: You can write the update, explain target networks, and diagnose divergence.
requires: Markov Decision Processes and Bellman Equations · Markov Decision Processes · Stochastic Approximation · Monte Carlo Methods · Epsilon Greedy Exploration
Proximal Policy Optimization
A policy-gradient method with a clipped surrogate objective. The clip is not a trust region, and the page says so.
After this lesson: You can derive the policy gradient, explain the ratio and clip, and implement a minimal update.
requires: Policy Gradient Theorem · Markov Decision Processes and Bellman Equations · Importance Sampling · Advantage Estimation · KL Divergence and Cross Entropy · Actor Critic Methods
Denoising Diffusion Probabilistic Models
Generation as iterative denoising, with the forward process, the training objective and the sampler derived.
After this lesson: You can write the noising process, derive the simplified loss, and explain the sampling trade-off.
requires: Gaussian Distributions · KL Divergence and Cross Entropy · Variational Inference · Markov Chains · Unet Architectures · Denoising Autoencoders
What is not on this path
The other 879 concept pages are generated templates. They exist so the taxonomy is navigable, but their prose is shared boilerplate and is not a lesson. They are marked “generated template · not reviewed” wherever they appear. Do not count reading them as progress. The quality page explains what the structural score does and does not measure.
The four full reference studies — LLM-as-a-Judge, and three others — are longer, research-level treatments. Take them after Stage 4 if your goal is evaluation, or after Stage 2 if you want the statistics first.