Learning path
15 stages, 87 topics, roughly 69 hours of reading before you attempt the problems — and the problems are where the time actually goes. The order is a dependency claim: each stage uses results proved in the ones above it.
How to use this
Read a topic, then do its problems before moving on — the reading is the smaller half. Mark topics studied as you go and the mastery graph will show what has opened up; the daily selection will start resurfacing old work for review. Skipping ahead is fine if you already know a stage: the graph will tell you what a page assumes, and you can go back for exactly that.
Stage 1Foundations
3 topics · ~2h readingThe linear algebra, matrix calculus and analysis that every later page assumes without saying so. Most of the difficulty people attribute to machine learning theory is actually unfamiliarity here.
You can thendifferentiate matrix expressions without index gymnastics, and read a spectral argument without stopping.
Studied0 / 3- Linear Algebra for Machine LearningFoundations · FoundationsInner products, orthogonal projection, the spectral theorem, the SVD and the matrix norms that every later bound is written in.45m · 5p
- Multivariable and Matrix CalculusFoundations · FoundationsGradients, Jacobians, Hessians and Taylor expansion, set up so that backpropagation and every smoothness assumption later are routine.45m · 4p
- Analysis PrerequisitesFoundations · FoundationsSuprema, limits, Lipschitz continuity, compactness and the two or three analysis facts that the probability and optimisation proofs quietly rely on.15m · 3p
Stage 2Probability, stated precisely
3 topics · ~2h readingMeasure-theoretic probability at working depth: what a random variable is, what conditioning means, and which mode of convergence a theorem is actually asserting.
You can thentell almost-sure from in-probability convergence, and say what a conditional expectation is without waving at "averaging".
Studied0 / 3- Probability Spaces and Random VariablesProbability · FoundationsThe measure-theoretic setup, stated once and precisely, so that later statements about independence, conditioning and convergence have something to mean.15m · 3p
- Expectation, Variance and Conditional ExpectationProbability · CoreExpectation as an integral, the variance identities used in every bias–variance computation, and conditional expectation as an orthogonal projection.45m · 4p
- Modes of Convergence, LLN and CLTProbability · CoreThe four notions of convergence for random variables, which implications hold between them, and the two limit theorems everything downstream depends on.45m · 3p
Stage 3High-dimensional probability
5 topics · ~5h readingThe technical core of modern learning theory: sub-Gaussian tails, concentration inequalities, covering numbers and the geometry of high dimension. Nearly every guarantee later in the path bottoms out here.
You can thenprove a concentration bound from scratch and read "with probability at least 1 − δ" as a quantitative statement rather than a ritual.
Studied0 / 5- Sub-Gaussian and Sub-Exponential Random VariablesHigh-Dim Probability · AdvancedOrlicz norms, moment generating functions and the equivalent characterisations that make "has a Gaussian-like tail" a usable hypothesis.45m · 5p
- Concentration InequalitiesHigh-Dim Probability · AdvancedMarkov to McDiarmid, each with its hypotheses, a complete proof, an interpretation and the regime in which it is the right tool.120m · 8p
- High-Dimensional Geometry and Concentration of the NormHigh-Dim Probability · AdvancedWhy a Gaussian vector lives on a thin shell, why random directions are nearly orthogonal, and why almost all of a sphere's volume sits near any equator.45m · 5p
- Nets, Covering Numbers and Metric EntropyHigh-Dim Probability · GraduateHow to reduce a supremum over an infinite set to a maximum over a finite one, and what that reduction costs.45m · 4p
- The Johnson–Lindenstrauss LemmaHigh-Dim Probability · GraduateA complete proof that random projection to O(log N / eps^2) dimensions preserves all pairwise distances, with the dimension requirement, the geometry and the limits of the result.45m · 6p
Stage 4Random matrices and high-dimensional statistics
4 topics · ~4h readingWhat happens to spectra and estimators when the dimension grows with the sample size — the regime every modern model lives in.
You can thenpredict the spectrum of a sample covariance matrix, and say why an estimator that is consistent for fixed d can fail when d ≍ n.
Studied0 / 4- Spectral Norm of Random MatricesRandom Matrices · GraduateThe net-plus-concentration argument that gives the sqrt(n) + sqrt(p) bound, and the semicircle law for Wigner matrices.45m · 4p
- Sample Covariance and the Marchenko–Pastur LawRandom Matrices · GraduateWhat the spectrum of an empirical covariance matrix looks like when the dimension is comparable to the sample size, and why that breaks classical statistics.45m · 5p
- Covariance Estimation and Sample ComplexityHigh-Dim Statistics · GraduateHow many samples are needed to estimate a covariance matrix in operator norm, and what the answer says about the curse of dimensionality.45m · 4p
- Sparse Recovery, Compressed Sensing and the LassoHigh-Dim Statistics · ResearchRestricted isometry, restricted eigenvalues, the lasso error bound, and why sparsity turns an impossible problem into a tractable one.120m · 6p
Stage 5Convex optimization
6 topics · ~8h readingConvexity, smoothness and strong convexity, then complete convergence proofs: gradient descent, projections and proximal steps, duality, acceleration and second-order methods.
You can thenderive a rate rather than quote one, and recognise which assumption a published rate is buying its constant from.
Studied0 / 6- Convex Sets, Convex Functions, Smoothness and Strong ConvexityOptimization · CoreThe four properties that every convergence theorem quantifies over, with the equivalences and the counterexamples that show they are genuinely different.45m · 5p
- Gradient Descent and Its Convergence RatesOptimization · AdvancedFour complete convergence proofs — convex, strongly convex, non-smooth and non-convex — with the exact assumptions each one needs.120m · 7p
- Lagrangian Duality and the KKT ConditionsAdvanced Optimization · AdvancedWeak and strong duality, Slater's condition, and the five KKT conditions — set up so that the SVM derivation is a direct application.45m · 4p
- Projected, Proximal and Constrained First-Order MethodsAdvanced Optimization · GraduateProjection, the proximal operator, mirror descent and Frank–Wolfe, and the single inequality that makes all of their proofs work.120m · 4p
- Momentum and Nesterov AccelerationAdvanced Optimization · GraduateHeavy ball, Nesterov's method, the estimate-sequence proof of the O(1/t^2) rate, and why acceleration is fragile.120m · 5p
- Newton, Quasi-Newton and Conjugate GradientAdvanced Optimization · GraduateLocal quadratic convergence, the BFGS update, L-BFGS memory, and why second-order methods are rare in deep learning.45m · 4p
Stage 6Stochastic optimization
2 topics · ~3h readingSGD and its descendants: step-size schedules, variance, the difference between convergence of the iterates and of the averages, and what adaptive methods do and do not guarantee.
You can thenstate the assumptions under which SGD converges, and explain precisely why "Adam converges" is not a theorem in the form it is usually quoted.
Studied0 / 2- SGD — Convergence Under Every Standard AssumptionSGD · GraduateConvex, strongly convex and non-convex SGD; constant versus decaying steps; Robbins–Monro; and the difference between expected and high-probability guarantees.120m · 7p
- Adaptive Methods and Variance ReductionSGD · GraduateAdaGrad, RMSProp, Adam and AdamW derived from their design goals, plus SVRG and SAGA and what each one actually guarantees.45m · 5p
Stage 7Statistical learning theory
3 topics · ~4h readingEmpirical risk minimisation, uniform convergence, VC dimension, Rademacher complexity — and where the classical picture stops describing what deep networks do.
You can thenderive a generalisation bound, and say exactly which of its assumptions modern practice violates.
Studied0 / 3- Empirical Risk Minimisation and Uniform ConvergenceLearning Theory · GraduateWhy minimising training error can work, why it needs a uniform bound, and the finite-class and PAC guarantees that follow.45m · 5p
- VC Dimension, Sauer's Lemma and Rademacher ComplexityLearning Theory · GraduateThe two standard measures of a hypothesis class's capacity, with complete proofs of Sauer's lemma and the Rademacher generalisation bound.120m · 6p
- Bias–Variance, Interpolation and Double DescentLearning Theory · GraduateThe exact decomposition, the classical U-curve, the second descent past the interpolation threshold, and what is proved about each.45m · 5p
Stage 8Classical machine learning
6 topics · ~7h readingThe models whose mathematics is fully understood: linear and ridge regression, logistic regression, kernels and RKHS, SVMs, nearest neighbours, trees and ensembles.
You can thenderive each method from an objective rather than recall its formula, and know which ones have closed-form solutions and why.
Studied0 / 6- Linear, Ridge and Lasso RegressionClassical ML · CoreThe normal equations as orthogonal projection, the exact bias and variance of ridge, and why the unbiased estimator is rarely the best one.45m · 5p
- Logistic RegressionClassical ML · CoreThe log-likelihood, its convexity, the Hessian as a weighted Gram matrix, and what happens when the data is separable.15m · 4p
- Nearest Neighbours and the Curse of DimensionalityClassical ML · AdvancedConsistency of k-NN, the exact rate under smoothness, and the concentration argument that explains why it fails in high dimension.45m · 4p
- Trees, Bagging and BoostingClassical ML · AdvancedImpurity and greedy splitting, the exact variance algebra behind bagging, and boosting derived as functional gradient descent.45m · 5p
- Kernels, RKHS and the Representer TheoremClassical ML · GraduatePositive definite kernels, the reproducing property, a complete proof of the representer theorem, and kernel ridge regression.120m · 6p
- Support Vector Machines — Complete DerivationClassical ML · GraduateHard and soft margin, the Lagrangian, every KKT condition interpreted, both duals derived in full, the kernel trick, and the margin generalisation bound.120m · 8p
Stage 9Deep learning mathematics
4 topics · ~6h readingApproximation theory, backpropagation as reverse-mode differentiation, convolution and normalisation, attention — followed by an honest account of what is proven about why any of it trains.
You can thenderive backpropagation and attention from first principles, and separate the theorems about deep learning from the folklore.
Studied0 / 4- Approximation Theory and BackpropagationDeep Learning · AdvancedUniversal approximation with its exact hypotheses, why it says nothing about learnability, and backpropagation as reverse-mode differentiation on a computational graph.45m · 5p
- Convolution, Recurrence and NormalisationDeep Learning · AdvancedEquivariance as the defining property of convolution, the Fourier view, the vanishing-gradient computation for RNNs, and the LSTM gating equations derived from it.45m · 6p
- The Mathematics of TransformersDeep Learning · GraduateAttention derived from scratch, why the scaling is 1/sqrt(d_k), multi-head as a low-rank sum, positional encodings, residual and normalisation placement, and the exact complexity.120m · 7p
- Why Does Deep Learning Optimization Work?DL Theory · ResearchA careful ledger of what is proved about training deep networks, what each theorem excludes, and which questions are genuinely open.120m · 7p
Stage 10Modern AI: language models and retrieval
6 topics · ~8h readingAutoregressive factorisation and cross-entropy, preference optimisation, scaling laws, and the geometry that makes dense retrieval work — and sometimes fail.
You can thenderive the DPO objective, read a scaling-law fit critically, and compute a retrieval pipeline’s recall ceiling before blaming the generator.
Studied0 / 6- Language Modelling, Cross Entropy and PerplexityLLMs · GraduateThe autoregressive factorisation, maximum likelihood as KL minimisation, what perplexity measures, and where the entropy floor comes from.45m · 5p
- RLHF, Bradley–Terry and DPOLLMs · ResearchThe preference model, the KL-regularised RL objective, its closed-form optimum, and the algebra that turns it into a supervised loss.120m · 4p
- Scaling Laws, Fine-Tuning and In-Context LearningLLMs · ResearchThe compute-optimal allocation computation, LoRA's rank argument, and what is actually known about how in-context learning works.45m · 5p
- Embedding Geometry and SimilarityRAG · GraduateCosine, dot product and Euclidean distance and the exact relations between them; why high-dimensional near-orthogonality is what makes retrieval possible; and the maximum-of-N problem that limits it.45m · 5p
- Vector Search — Exact and Approximate Nearest NeighboursRAG · GraduateThe complexity of exact search, why tree methods fail in high dimension, and the mathematics of LSH, IVF, product quantisation and HNSW.120m · 6p
- Retrieval as a Latent-Variable ModelRAG · ResearchRAG written as marginalisation over a latent document, the exact decomposition of its error, and why retrieval failures propagate rather than average out.120m · 5p
Stage 11Adapting a pretrained model
3 topics · ~1h readingWhat changes when you stop training from scratch: the low-rank hypothesis behind LoRA, the memory arithmetic that decides what fits on a GPU, and what is actually known about forgetting.
You can thencompute a training run’s memory budget before launching it, and say why LoRA does not reduce activation memory.
Studied0 / 3- Low-Rank AdaptationFine-Tuning · AdvancedLoRA's parameterisation, why B starts at zero and the update is scaled by α/r, and the low-rank hypothesis that the method rests on but does not prove.15m · 5p
- The Memory Arithmetic of TrainingFine-Tuning · AdvancedSixteen bytes per trainable parameter, the activation bill, and why checkpointing every √L layers is exactly the right thing to do.15m · 3p
- Forgetting and RegularisationFine-Tuning · GraduateWhere the quadratic penalty in elastic weight consolidation comes from, why the Fisher information is the right curvature, and what the derivation assumes that deep networks violate.15m · 3p
Stage 12Quantization and serving
6 topics · ~2h readingThe systems half: rounding error and where it goes, the Hessian-weighted objective behind GPTQ, the roofline that separates prefill from decode, and the queueing arithmetic of a server.
You can thenpredict whether a workload is compute- or memory-bound from first principles, and explain why a few outlier channels break per-tensor INT8.
Studied0 / 6- Uniform Quantization and Its ErrorQuantization · AdvancedAffine quantizers, the exact error bound, the additive-noise model that is not a theorem, and the clipping–resolution trade-off.15m · 5p
- Hessian-Aware RoundingQuantization · GraduateRounding each weight to the nearest grid point is not optimal — the layer-wise reconstruction objective has a closed-form correction, and that is what GPTQ computes.45m · 4p
- Outlier Features and Scale MigrationQuantization · GraduateA handful of activation channels with huge magnitudes wrecks per-tensor quantization — and an exact diagonal invariance lets you move the difficulty somewhere it hurts less.15m · 2p
- Inference Arithmetic and the RooflineLLM Ops · AdvancedWhy prefill is compute-bound and decode is memory-bound, derived from the FLOP and byte counts of a transformer forward pass.15m · 5p
- KV Cache, Batching and Little's LawLLM Ops · AdvancedThe memory equation that decides how many sequences fit, and why static batching wastes a logarithmically growing fraction of the GPU.15m · 4p
- Speculative DecodingLLM Ops · GraduateA draft model proposes, the target model verifies — and a rejection-sampling argument makes the output distribution exactly the target's, with no approximation.15m · 2p
Stage 13AI system design
15 topics · ~7h readingWhat it takes to put a model in front of real traffic: the queueing theory that decides how hard you can load a server, the arithmetic of tail latency under fan-out, the communication cost of every way of splitting a model across devices, and where the money goes.
You can thensize a serving cluster from a latency target rather than by guessing, and say which of parallelism, caching or batching a given bottleneck actually calls for.
Studied0 / 15- What a Serving System Must GuaranteeAI Systems · CoreThe vocabulary the rest of this field is written in — offered load, utilisation, throughput, concurrency and latency percentiles — defined precisely enough to compute with.15m · 1p
- Little's Law and the Capacity of a Serving SystemAI Systems · CoreThe one identity that holds for any queueing system whatsoever — L = λW — proved from an area argument, and the sizing rules that follow from it.15m · 2p
- Queueing and the Utilisation WallAI Systems · AdvancedWhy latency diverges like 1/(1−ρ) as a server approaches saturation, derived exactly for M/M/1 and M/G/1, and why variance costs as much as load.45m · 3p
- Tail Latency and Fan-Out AmplificationAI Systems · AdvancedWhy a request that touches a hundred machines is slow even when every machine is fast, and what hedging buys — derived from the distribution of a maximum.15m · 2p
- Scaling Limits — Amdahl, Gustafson and the Coherency PenaltyAI Systems · AdvancedThree models of what happens when you add machines: a hard ceiling, an escape from it, and the case where throughput actually falls.15m · 1p
- Sizing a Serving Cluster End to EndAI Systems · AdvancedPutting Little's law, the KV-cache budget and the utilisation wall together into a single sizing formula, and reading off which constraint actually binds.45m · 2p
- Caching — Hit Rates, Zipf and the Working SetAI Systems · AdvancedWhat a cache of a given size actually buys under realistic popularity skew, and why prefix caching is governed by a different quantity than object caching.15m · 1p
- Load Balancing and the Power of Two ChoicesAI Systems · AdvancedWhy sampling two servers and taking the shorter queue is exponentially better than sampling one, and why least-outstanding-requests beats round robin for variable work.15m · 1p
- Availability, Redundancy and Correlated FailureAI Systems · AdvancedThe arithmetic of nines — why chains multiply, why replicas help less than they look like they should, and the floor that correlated failure puts under any amount of redundancy.15m · 1p
- The Economics of Serving — Cost per TokenAI Systems · AdvancedDeriving unit cost from hardware price, throughput and utilisation, and the exact price of a tighter latency target.15m · 1p
- The Cost of Collective CommunicationAI Systems · GraduateThe alpha–beta model, and why a ring all-reduce moves a bounded amount of data per node no matter how many nodes there are.45m
- Splitting a Model Across DevicesAI Systems · GraduateData, tensor and pipeline parallelism compared by the one quantity that decides between them — bytes communicated per FLOP of useful work.45m
- Scheduling, Admission Control and FairnessAI Systems · GraduateWhy shortest-remaining-first minimises mean latency, what it costs the long requests, and why a bounded queue is a feature rather than a limitation.45m
- Autoscaling — Delay, Overshoot and Standing HeadroomAI Systems · GraduateWhy a scaling loop with a delay must keep spare capacity it never uses, and exactly how long a system stays behind after a load step.15m
- Rollout, Canaries and Online ExperimentsAI Systems · GraduateHow much traffic a canary needs before it can detect a regression, why stopping when the result looks good inflates the error rate, and what a guardrail suite costs in sensitivity.45m · 1p
Stage 14AI systems engineering
18 topics · ~11h readingThe software around the model. Everything a request passes through before and after the forward pass: the gateway that authenticates and meters it, the limiter that decides whether it runs, the router that picks a GPU, the cache that may answer it outright, the tools it calls, and the pipelines, evaluations and monitors that keep the whole thing honest over time.
You can thendesign and build the service around a model — its API, its limits, its routing, its caches, its data pipeline and its monitoring — rather than only the model call itself.
Studied0 / 18- The Anatomy of an AI SystemAI Engineering · CoreEverything a request passes through besides the model: the components, what each one owns, and why the boundaries fall where they do.15m
- API Design for Model EndpointsAI Engineering · CoreStreaming, deadlines, cancellation, idempotency and versioning — the parts of a model API that are hard to change once anyone depends on them.45m
- Gateways, Authentication and QuotaAI Engineering · AdvancedWhat belongs in the gateway and what does not, how tenancy is resolved, and why quota and rate limiting are different mechanisms with different failure modes.15m
- Rate Limiting AlgorithmsAI Engineering · AdvancedToken bucket, sliding window and GCRA, what each actually guarantees, and the two problems unique to limiting an LLM: metering tokens you have not generated yet, and doing it across many instances.45m
- The Model Context ProtocolAI Engineering · AdvancedWhat MCP standardises, the three server primitives and what controls each, the message shapes on the wire, and the security properties a host must enforce because the protocol cannot.45m
- Semantic CachingAI Engineering · AdvancedAnswering a question you have answered before when it is not phrased the same way — the threshold that decides it, the cost of getting it wrong, and what must never be cached.45m
- Autoscaling and Cold StartsAI Engineering · AdvancedWhy a GPU replica takes minutes to become useful, what that does to a scaling policy, and the four techniques that shorten it.45m
- Guardrails and Safety LayersAI Engineering · AdvancedInput and output checks around the model, what each can and cannot catch, and why the precision/recall trade is a product decision rather than a threshold.15m
- Data Pipelines and LineageAI Engineering · AdvancedThe pipeline that feeds a model — ingestion, validation, chunking, embedding, indexing — and the lineage records that make "why did it answer that?" a question with an answer.45m
- Reliability PatternsAI Engineering · AdvancedTimeouts, retries, jitter, circuit breakers, bulkheads and graceful degradation — and the arithmetic showing why an unbudgeted retry policy amplifies an outage.45m
- Observability for AI SystemsAI Engineering · AdvancedTracing a request through prefill, tools and retrieval; accounting for tokens and cost per tenant; and keeping prompts out of your logs.15m
- Vector Search InfrastructureAI Engineering · AdvancedIndex types and what each trades, the recall/latency dial, filtering, freshness and sharding.15m
- Deployment and RolloutAI Engineering · AdvancedShipping a model change: the registry, shadow traffic, canaries, and why a config change deserves more caution than a code change.15m
- Tool Loops in ProductionAI Engineering · GraduateThe agent loop as a piece of software: schema design, validation, parallelism, truncation, side effects and the termination conditions that stop it running forever.45m
- GPU Routing and Cache AffinityAI Engineering · GraduateChoosing which replica serves a request when the replicas are not interchangeable — prefix affinity, queue-aware placement, LoRA multiplexing and draining.45m
- Inference Server ArchitectureAI Engineering · GraduateThe software inside a replica: the scheduler loop, continuous batching, paged KV memory, preemption, and what disaggregating prefill from decode buys.45m
- Drift DetectionAI Engineering · GraduateWhat PSI actually measures, how to monitor an embedding distribution, and how to detect quality regressions when the labels arrive weeks late or never.45m
- Evaluation HarnessesAI Engineering · GraduateTurning "is it good?" into a test suite that runs in CI — golden sets, graders, the failure modes of LLM-as-judge, and why a passing eval on a changed config proves nothing.45m
Stage 15Agentic systems
3 topics · ~1h readingMulti-step tool-using systems, where per-step reliability is raised to the power of the horizon: compounding error, the bandit view of tool choice, and what inference-time search buys.
You can thencompute an agent’s trajectory success before building it, and price test-time search in both compute and KL divergence.
Studied0 / 3- Error Compounding in Agent TrajectoriesAgents · AdvancedPer-step reliability raised to the power of the horizon — why 95% per step is a failing agent, and what majority voting does and does not repair.15m · 6p
- Inference-Time Search and Best-of-nAgents · GraduateWhat sampling more candidates actually buys — exponentially decaying failure for linear cost, an unbiased pass@k estimator, and the exact KL price of best-of-n.15m · 4p
- Tool Selection and RegretAgents · GraduateAn agent choosing among tools is running a bandit — and the logarithmic regret of UCB tells you exactly what exploration is worth.45m · 1p