3Blue1Brown
Vectors | Chapter 1, Essence of linear algebra
Builds the picture you need for everything else: a vector as an arrow, as a list of numbers, and why both views matter.
Covers: Vectors, vector addition, scaling.
Lectures & explainers
1–14 of 56 videos
Watch a few at a time, or choose the chapter you want to explore.
Chapter 2
3Blue1Brown
Builds the picture you need for everything else: a vector as an arrow, as a list of numbers, and why both views matter.
Covers: Vectors, vector addition, scaling.
3Blue1Brown
The single best explanation of why a matrix is a transformation of space — which is exactly what a neural-network layer does.
Covers: Matrices as functions that move vectors; matrix–vector multiplication.
3Blue1Brown
Explains why the dot product measures alignment, connecting the arithmetic to the geometry.
Covers: Dot product, projection, the link between dot products and linear maps.
3Blue1Brown
Shows why multiplying matrices means applying one transformation after another — exactly what stacking neural-network layers does.
Covers: Matrix–matrix multiplication as composition of linear maps.
3Blue1Brown
The clearest visual intuition for eigenvectors: directions a transformation only stretches.
Covers: Eigenvectors, eigenvalues, why they matter for understanding a matrix.
3Blue1Brown
Turns Bayes from a formula into a picture of restricting your view to the evidence.
Covers: Prior, likelihood, posterior, and the area picture of Bayes theorem.
3Blue1Brown
Why a 90%-accurate test can still be wrong most of the time — base rates, made unforgettable.
Covers: Base rates, false positives, the odds form of Bayes rule.
3Blue1Brown
Rebuilds the idea of a derivative from scratch, visually, without assuming you remember school calculus.
Covers: What derivatives and integrals are really about.
3Blue1Brown
The chain rule is the engine of backpropagation; this makes it feel obvious rather than memorized.
Covers: Chain rule and product rule as nudges propagating through functions.
3Blue1Brown
Connects the abstract idea of minimizing a function to how a real network learns to recognise digits.
Covers: Cost functions, gradients in many dimensions, gradient descent.
StatQuest with Josh Starmer
Works gradient descent out by hand on a tiny regression problem, one step at a time.
Covers: Loss, derivatives, step size, stochastic gradient descent.
Aurélien Géron
Ten minutes that tie entropy, cross-entropy and KL divergence together — the three quantities behind language-model training.
Covers: Entropy as average surprise, cross-entropy as loss, KL as the gap between them.
3Blue1Brown
A playful but rigorous introduction to information and entropy as expected bits of surprise.
Covers: Information in bits, entropy, choosing actions that maximize expected information.
StatQuest with Josh Starmer
Short and concrete — what a confidence interval actually tells you, via bootstrapping.
Covers: Bootstrapping, confidence intervals.
Chapter 3
StatQuest with Josh Starmer
Seven minutes on the most important trade-off in machine learning.
Covers: Bias, variance, overfitting, underfitting.
StatQuest with Josh Starmer
Least squares, R², and what a fitted line actually tells you — from the ground up.
Covers: Fitting a line, residuals, R², p-values.
StatQuest with Josh Starmer
A short, clear picture of how logistic regression turns a line into probabilities.
Covers: The S-shaped curve, classification with probabilities, maximum likelihood.
StatQuest with Josh Starmer
How a tree chooses its questions — the most interpretable model in this chapter.
Covers: Splits, impurity (Gini), leaves, building a tree.
StatQuest with Josh Starmer
Why many random trees beat one careful tree.
Covers: Bootstrapping, random feature subsets, voting, out-of-bag error.
StatQuest with Josh Starmer
PCA built up geometrically, with no linear algebra assumed beyond the basics.
Covers: Principal components, variance explained, projection.
StatQuest with Josh Starmer
The k-means loop, animated.
Covers: Assign, update, repeat; choosing k.
StatQuest with Josh Starmer
How to evaluate a classifier across every possible threshold.
Covers: Confusion matrices, true/false positive rates, ROC curves, AUC.
StatQuest with Josh Starmer
Why you never test on your training data, and how to use limited data well.
Covers: Train/test splits, k-fold cross-validation.
StatQuest with Josh Starmer
Regularization made concrete: accept a little bias to reduce a lot of variance.
Covers: Ridge penalty, λ, bias–variance, fitting with few data points.
Chapter 4
Andrej Karpathy
Builds automatic differentiation from nothing; afterwards backpropagation stops feeling like magic.
Covers: Derivatives, the chain rule, computational graphs, backprop, a tiny neural network.
3Blue1Brown
The clearest visual introduction to what a neural network actually computes, layer by layer.
Covers: Neurons, weights, biases, layers, activations — all on digit recognition.
3Blue1Brown
Builds intuition for how each training example 'nudges' every weight — before any calculus.
Covers: What backpropagation does, and why stochastic gradient descent uses mini-batches.
3Blue1Brown
The chain rule applied to a network, step by step — the formal version of the previous video.
Covers: Derivatives through layers, the chain rule, sensitivity of the cost to each weight.
Chapter 5
3Blue1Brown
A visual introduction to discrete convolution that starts with adding dice and ends with image kernels and FFTs.
Covers: Slide, multiply and add; image kernels such as blurs and edge detectors; and why the same operation appears in probability and signal processing.
StatQuest with Josh Starmer
Walks a tiny CNN through a complete example, filter to pooling to fully connected layer, with every number shown.
Covers: Filters, feature maps and max pooling, one step at a time, ending in a small image classifier.
3Blue1Brown
Builds the intuition behind splitting a sound into its frequencies, the operation every spectrogram column performs.
Covers: Winding a signal around a circle, why a frequency present in the signal stands out, and how that separates mixed tones.
Steve Brunton
A compact overview of the RL problem, its leading algorithms and applications, from a control-theory perspective.
Covers: Agent, environment, reward, policy and value; Markov decision processes; the credit-assignment problem; and Q-learning.
Google DeepMind
The first lecture of the classic UCL course by the lead researcher on AlphaGo. For when you want the full course after this chapter.
Covers: Rewards, the agent–environment loop, states and Markov states, policies, value functions, models, and exploration versus exploitation.
Chapter 6
Andrej Karpathy
Builds a character-level bigram model from counts, then trains a one-layer neural network that learns the same table by gradient descent.
Covers: Language modeling, count tables, smoothing, negative log-likelihood, and swapping counting for a trained network.
Andrej Karpathy
Implements the Bengio et al. 2003 neural language model at character level: an embedding lookup, a hidden layer and a softmax over the next character.
Covers: Learned embeddings, a fixed context window, training splits and why sharing vectors beats exact-count tables.
Chapter 7
3Blue1Brown
A visual tour of a GPT from input text to next-token probabilities — ideal before or right after Chapter 7.
Covers: Tokens, embeddings, the flow of data through a GPT, softmax and temperature.
3Blue1Brown
Animates exactly what queries, keys and values do. Watch it alongside the Attention Explorer.
Covers: Queries, keys, values, the attention pattern, masking, multi-head attention.
3Blue1Brown
The feed-forward half of a Transformer block gets less attention than attention; this fixes that.
Covers: MLP sublayers, directions in embedding space, superposition (intuition).
Andrej Karpathy
The best way to reach IMPLEMENT level on Transformers: write one yourself, line by line, in PyTorch.
Covers: Self-attention, multi-head attention, masking, residuals, layer norm — all built from a bigram baseline up.
Chapter 8
Andrej Karpathy
Many odd LLM behaviours trace back to tokenization; this shows you why by building a BPE tokenizer.
Covers: Unicode, bytes, byte-pair encoding, GPT-2/GPT-4 tokenizers, special tokens.
Andrej Karpathy
A clear one-hour overview of what LLMs are, how they are trained, and where they're going — good orientation for Part III.
Covers: Pretraining, fine-tuning, scaling, tool use, security issues.
Andrej Karpathy
A long, general-audience walk through the whole pipeline behind a chat model, from internet text to tokens to pretraining to post-training.
Covers: The full training stack behind a chat model, from internet text and tokens to a pretrained base model and the post-training that turns it into an assistant.
Andrej Karpathy
Build and train the smallest GPT-2 from scratch in PyTorch, then optimise it. For when you want to implement what this chapter describes.
Covers: The GPT-2 network in code, the engineering that makes training fast, and a full training run using the GPT-2 and GPT-3 papers' hyperparameters.
Chapter 9
Stanford Online
Teaches the habit this chapter is built on: napkin maths for memory (bytes per parameter) and compute (FLOPs) before you train anything.
Covers: Floating-point formats and their memory cost, counting the FLOPs of a training step, and the training loop from tensors to optimizer.
Stanford Online
A clear university lecture on how training is split across many GPUs, with the trade-offs between the methods.
Covers: Data parallelism, ZeRO stages 1–3 and FSDP, tensor and pipeline parallelism, activation recomputation, and how they combine.
Stanford Online
Goes beyond 'bigger is better' to how scaling laws are fitted and used to make decisions.
Covers: Data scaling, Kaplan et al. and Chinchilla, IsoFLOP analysis and choosing the batch size.
Stanford Online
A tour of what real pretraining datasets contain and how they were built, from a course that argues data matters most.
Covers: Pre-, mid- and post-training data, Common Crawl, C4 and other datasets, and the conversion, filtering and deduplication steps between a raw crawl and training text.
Chapter 10
Stanford Online
A technical companion to the chapter’s demonstration, preference and reinforcement-learning pipeline.
Covers: Supervised fine-tuning and alignment through human feedback; connects data, reward and policy optimization.
Chapter 11
Stanford Online
A survey of what changed inside the Transformer block between 2017 and today's open models, and which choices nearly everyone now agrees on.
Covers: Pre-norm versus post-norm, RMSNorm, gated activations such as SwiGLU, rotary position embeddings, multi-query and grouped-query attention, and common hyperparameter choices.
Stanford Online
A careful lecture on why mixture-of-experts models are now common at the frontier, and on what makes them hard to train.
Covers: Routers and top-k routing, expert and device load balancing, token dropping, training stability, and recent designs such as DeepSeek's.
Stanford Online
The hardware background for this chapter: why memory movement, not arithmetic, so often sets the speed.
Covers: How GPUs execute work, the memory hierarchy, arithmetic intensity and the roofline model, tiling, and how FlashAttention applies these ideas.
Stanford Online
The closest single lecture to this chapter: the arithmetic of serving a language model and the main ways to make it cheaper.
Covers: Prefill and generation, arithmetic intensity, the KV cache and how GQA shrinks it, quantization, pruning and distillation, speculative sampling, continuous batching and paged attention.
Chapter 12
Stanford Online
Douwe Kiela, one of the authors of the original RAG paper, surveys retrieval-augmented language models and ends with the open questions.
Covers: Why language models need retrieval, the main families of retrieval-augmented models from the recent literature, and the questions that remain open.
Chapter 13
Latent Space
Hear a ReAct author discuss the transition from language-model reasoning to acting and the role of computer interfaces.
Covers: ReAct, reflection, coding agents, agent-computer interfaces and agent evaluation. The publisher provides a topic guide; the YouTube runtime was checked separately.
Chapter 15
3Blue1Brown
A guest video by Welch Labs: animated, careful and math-first, the clearest single explanation of how CLIP and diffusion fit together in text-to-image models.
Covers: CLIP's shared embedding space, DDPM as learning to reverse noise, the vector-field view, DDIM, DALL·E 2, conditioning, classifier-free guidance and negative prompts.
Chapter 16
Stanford Online
Percy Liang's lecture is the best single overview of how language models are actually evaluated, and of why 'which benchmark?' is a question about your goal, not a lookup.
Covers: What an evaluation is for, perplexity, knowledge, instruction-following, agent, reasoning and safety benchmarks, LLM judges, train–test overlap, realism and validity, and evaluating methods versus systems.
Next: Chapter 3 · Machine Learning