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–23
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.

Session

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.

Lecture 22

Object Detection: From One Label to a Set of Objects

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

Lecture 23

Beyond Boxes: Dense, Structured, and Promptable Vision

Semantic, instance and panoptic segmentation; keypoints, depth, promptable masks and language grounding.

Generative modelling

Lectures 24–28
Lecture 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

Learning to Generate I: Distributions and Autoencoders

Fit and sample distributions, Gaussian mixtures on MNIST, from PCA to autoencoders (MLP, CNN, ViT), why autoencoders cannot generate, and the probabilistic view.

Lecture 26

Learning to Generate II: The Variational Autoencoder

KL and the ELBO applied to a decoder, variational inference for one digit, amortisation and the encoder, reparameterisation, and the VAE trained on MNIST.

Lecture 27

GANs: Learn the Judge, Not the Likelihood

A generator trained against a learned discriminator: the D and G steps, why G’s gradient flows through D, the minimax and non-saturating losses, mode collapse and conditioning.

Lecture 28

From Noise to Images: Denoising Diffusion

Corrupt a digit step by step, train a network to predict the noise and sample backwards; the ELBO behind the loss, U-Nets and Transformers, guidance, and diffusion for text.

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