Skip to main content

Lectures

Each lecture lists its reading material first, then its videos, then practice. Every kind of resource has its own icon.

NotesSlidesCheat sheetPDF handoutFull recording3-minute summaryNotebookInteractive lab

Foundations

Lectures 1–4
Lecture 01

Where Deep Learning Losses Come From I

Distributions, likelihood, and loss.

Lecture 02

Where Deep Learning Losses Come From II

MLE, regression, and classification.

Lecture 03

Likelihood to Loss in Practice

MAP, regularization, and robust observation models.

Lecture 04

From Linear Models to Neural Networks

Neurons, activations, multilayer networks, XOR, and approximation.

Gradients and optimization

Lectures 5–9
Lecture 05

Optimization I — Gradient Estimates & Step Sizes

Batches, stochastic gradients, and optimizer geometry.

Lecture 06

Backpropagation & Autograd from Scratch

Computation graphs, reverse mode, and a scalar engine.

Lecture 07

Optimization II — Momentum, RMSProp & Adam

Moving averages and adaptive coordinate scaling.

Lecture 08

Vector, Matrix & Affine Autograd

Gradients, Jacobians, dense layers, and batched VJPs.

Lecture 09

Valid Outputs by Design & Learning-Rate Schedules

Constrained parameters, warmup, decay, and cosine.

Generalization

Lectures 10
Lecture 10

Generalization & Regularization

Learning curves, weight decay, early stopping, dropout, augmentation, Mixup, and label smoothing.

Attention and language

Lectures 11–15
Lecture 11

From characters to next-token prediction

Tokenization, learned embeddings, a hidden-layer MLP, training, and generation.

Lecture 12

Self-attention, from first principles

Lecture 13

Self-attention, continued

Embedding updates, next-token prediction, and positional encoding.

Lecture 14

Self-attention and multi-head attention

Lecture 15

From Attention to Applications

Encoder, decoder-only and encoder–decoder Transformers; token and sentence classification; causal self-attention and cross-attention.

Vision and language

Lectures 16–22
Lecture 16

Vision Transformer for image classification

Patch embeddings, full attention, embedding updates and CLS readout; CNN comparisons and image-covering experiments.

Lecture 17

CLIP: From Fixed Labels to Language-Defined Vision

Applications, two encoders, a step-by-step contrastive-loss calculation, zero-shot classification and a full architecture summary.

Lecture 18

From CLIP to Vision-Language Models

Visual prefixes, cross-attention and learned summaries; architecture diagrams, code walkthroughs, training and generation.

Lecture 19

Vision-Language Models, Part 2

Cross-attention and learned visual summaries; tensor shapes, training and generation, multiple-image questions and practical embedding demos.

Lecture 20

Concept Bottleneck Models: I

Interpretable-by-design prediction through named concepts; CUB examples, concept supervision, training schemes and interventions.

Lecture 21

Concept Bottleneck Models: II

Concept sufficiency, concept embedding models, post-hoc bottlenecks and classification by description; supervision costs, evaluation and failure modes.

Lecture 22

Learning ViTs with AI Tools

Socratic live coding of a Vision Transformer in PyTorch: using AI tools to understand patches, attention, tensor shapes and MNIST training.

Generative modelling

Lectures 23–25
Lectures 23 and 24

KL Divergence and Variational Inference

Bayes for a tiny neural network and its intractable evidence; surprise, entropy, codes, cross-entropy and KL; classification loss and knowledge distillation as KL; Monte Carlo and the reparameterisation trick; the ELBO step by step; VI for the network.

Lecture 25

Autoencoder and VAE

What generative models are for, and what x, y, p(x) and p(y | x) mean; an autoencoder on one handwritten 3, and why it cannot generate; three fixes that turn it into a VAE; and the VAE’s loss, reconstruction plus KL, derived from the ELBO of Lectures 23–24 by variational inference.

Object detection

Lecture 26
Lecture 26

Object Detection: From One Label to a Set of Objects

Spatial candidates, target assignment, worked losses, decoding, NMS, evaluation and DETR-style set prediction.

Course review

Lecture 27
Lecture 27

The Course in One Lecture

Ten models from Lectures 1 to 26 on one six-row recipe card: data, model, output, loss, update and what happens at test time.

Notes are the complete PDF handouts or interactive lectures. Slides open the classroom presentation. Cheat sheets are two-page reviews.