Course / 05

Deep Learning

How to train deep networks that work: automatic differentiation, losses, normalization and optimizers, convolutional networks for vision, self-supervised features and Vision Transformers, robustness and compression. The course the Generative Models and NLP courses build on.

Before you start: Machine Learning up to neural networks and backpropagation, and Python (the Programming in Python course). Every note ends with a Code section in PyTorch that runs on a laptop CPU in seconds, on synthetic data or small bundled datasets. Sequences, attention and Transformers for text are developed in the NLP course, and GANs, VAEs and diffusion in the Generative Models course, and uncertainty over the weights in the Bayesian Methods course; this course links to them instead of repeating them.

The plan of the course → · The course in one paragraph →

  1. Training
  2. CNNs
  3. Representations
  4. Robustness
  1. 01

    Training Neural Networks

    What it takes to train a deep network reliably, from autograd to the optimizer.

    After this section: Write a PyTorch training loop, choose a loss and regularization, and stabilize training with normalization, initialization and a learning-rate schedule.

    5 of 5 notes published
  2. 02

    Convolutional Networks

    Networks that share weights across space, and the vision tasks they solve.

    After this section: Compute the shapes, parameters and receptive field of a CNN, explain why residual connections let it go deep, and set up detection and segmentation outputs and metrics.

    4 of 4 notes published
  3. 03

    Representations and Vision Transformers

    Learning features without labels, and attention applied to images.

    After this section: Explain how a contrastive objective learns features without labels and how a Vision Transformer turns an image into tokens.

    2 of 2 notes published
  4. 04

    Robustness and Deployment

    Where trained networks fail, and how to make them small and fast.

    After this section: Craft an adversarial example, and shrink a network by pruning and distillation while measuring what it costs in accuracy.

    3 of 3 notes published