Pre-series · Machine Learning Foundations
A deep-dive, build-it-in-your-head tutorial series on the fundamentals underneath every GenAI system — the training loop, the four architectures, and the bottleneck each one was invented to break. Fifteen lessons, twenty interactive simulators and diagrams, and the questions an interviewer will actually ask, with the answer they're listening for.
Written for engineers who can code but were never walked through the maths, and for anyone about to be asked 'explain backpropagation' at a whiteboard. No prior ML required; comfort with a for-loop and a bit of algebra is enough.
≈ 12 focused hours · four tracks · finish with the interview gauntlet
Frameworks and model names turn over every eighteen months. Gradients, loss surfaces and the bias–variance trade-off have been stable since the 1980s and explain why every new thing works.
Nobody asks which SDK you used. They ask why cross-entropy rather than MSE, what √dₖ is for, and what you'd do about 99% train / 70% validation. Every lesson ends with those, answered.
Loss went NaN, validation flat, the model is confidently wrong. Every one of those is diagnosable from first principles and unguessable without them.
Start here
Told as a list of wins, the history of ML is a series of surprises. Told as a list of walls and what broke them, it's one argument repeated at increasing scale.
Krizhevsky, Sutskever & Hinton
The wall
Hand-engineered visual features had plateaued at ~26% top-5 error.
What it proved
That a deep CNN trained on 1.2M labelled images with two consumer GPUs, ReLU and dropout cut error to ~15% — and that scale, not cleverness, was the binding constraint all along.
Read the primary sourceEvery milestone removed a specific wall. Filter by what actually changed and the shape of the field's progress stops looking like a series of surprises.
Not illustrations — simulators. The neuron really runs gradient descent, the XOR network really fails without a hidden layer, and the backprop trace really re-derives every partial when you move a slider.
88 sources — the original papers, the canonical explainers, the interactive tools — sitting under the paragraph they support rather than in a pile at the end.
Every lesson ends with the questions this topic actually produces in an interview, the answer that lands, and what the interviewer is listening for underneath it.
The curriculum
Saved on this device only — no account, nothing leaves the browser.
Why hand-written logic hit a wall, what replaced it, and how to tell which kind of problem you actually have.
From 'the programmer supplies the logic' to 'the programmer supplies the examples'.
One neuron, one loss, one gradient, one update — the four-beat loop that every model on earth is running, from a house-price regressor to a frontier LLM.
Predict → measure the error → assign blame → nudge the parameters. Repeat a few billion times.
ANN → CNN → RNN → Transformer, told as a sequence of bottlenecks. Each architecture exists because the previous one couldn't see space, time or context.
Every architecture is an inductive bias — a guess about the structure of the data, baked into the wiring.
How a transformer became an LLM, how pixels and words ended up in one space, and where every fundamental you just learned shows up in an agent.
Nothing new is invented here. Scale, self-supervision and a loop around the model do the work.
The map of Track 3
Get the guess right and you need far less data. Get it wrong and you spend the project fighting your own model.
Best data type
Text at scale, and increasingly everything else
Core mechanism
Self-attention: every position attends to every position in one operation
Inductive bias — what it assumes
Deliberately weak — barely more than 'these tokens form a set, and here is their position'. It substitutes data for assumptions.
Primary advantage
Path length 1 between any two positions, so long-range dependencies are as learnable as short ones — and every position computes independently, so training parallelises and throughput scales with hardware.
The wall it runs into
O(n²) compute and memory in sequence length, and generation is still sequential because token t+1 needs token t. Weak inductive bias means it needs a great deal of data.
Where it still wins in 2026
Everything at scale — language, vision, audio, multimodal. The default unless you have a specific reason otherwise.
Read it left to right as a chain of consequences: each architecture exists because the previous one couldn't see something — space, then time, then long-range context.
45 cards drawn from every lesson. If you can answer these cold, you can hold a fundamentals interview without preparing for it.
State the difference between classical programming and ML in one sentence.
From rules to learning
This is the pre-series. Once the training loop is physical to you, the GenAI material stops being a vocabulary test and starts being engineering.