AI Base

Course 04 of 10

Deep Learning

Multi-layer neural networks that learn useful representations themselves.

12 chapters · 68 lessons · builds on Machine Learning · About this course

01Neural Network Foundations5 lessons

A neural network is many simple units arranged in layers, each one a tiny scoring function like the ones in the Math and Machine Learning subjects. Chapter overview

  1. 1From Linear Models to Neural Networks 5 min
  2. 2The Artificial Neuron and Activation Functions 4 min
  3. 3The Multilayer Feedforward Network 4 min
  4. 4Universal Approximation 4 min
  5. 5Why Depth Helps 5 min
02Training Deep Networks6 lessons

Gradient descent and backpropagation (see Gradient Descent and Backpropagation by Hand in Math) are the engine; this section covers the practical decisions that decide whether that engine actually… Chapter overview

  1. 1Weight Initialization 4 min
  2. 2Vanishing and Exploding Gradients 4 min
  3. 3Gradient Clipping 4 min
  4. 4Learning Rate Schedules and Warmup 5 min
  5. 5Batch Size and Training Dynamics 4 min
  6. 6Second-Order and Natural Gradient Ideas 5 min
03Regularization and Generalization6 lessons
04Convolutional Neural Networks8 lessons
05Sequence Models7 lessons

Text, audio and time series are sequences: order matters, and length varies. This section covers the networks built to read one step at a time while keeping a memory of what came before. Chapter overview

  1. 1Recurrent Neural Networks 4 min
  2. 2Backpropagation Through Time 4 min
  3. 3Long Short-Term Memory 5 min
  4. 4Gated Recurrent Units 5 min
  5. 5Bidirectional and Stacked RNNs 5 min
  6. 6Sequence-to-Sequence Models 4 min
  7. 7Word Embeddings 5 min
06Attention and the Road to Transformers4 lessons

Attention as Dot Products in Math already covers the core mechanism: compare a query with every key, weight by the result, and average the values. Chapter overview

  1. 1Multi-Head Attention 5 min
  2. 2Positional Encoding 4 min
  3. 3Encoder-Decoder Architectures with Attention 4 min
  4. 4Why Attention Replaced Recurrence 4 min
07Representation Learning6 lessons
08Generative Deep Learning5 lessons

Generative vs Discriminative Models in Machine Learning draws the line; this section walks the deep architectures that learn to generate rather than only recognise, from a bottleneck that… Chapter overview

  1. 1Variational Autoencoders 5 min
  2. 2Generative Adversarial Networks 4 min
  3. 3Training Instabilities in GANs 4 min
  4. 4Normalizing Flows 4 min
  5. 5Diffusion Models 5 min
09Graphs, Structure and Beyond Grids3 lessons

Not every input is a grid of pixels or a left-to-right sequence. Chapter overview

  1. 1Graph Neural Networks 5 min
  2. 2Neural ODEs 5 min
  3. 3Mixture of Experts 5 min
10Efficiency and Deployment5 lessons
11Training at Scale6 lessons

Training a large network is an engineering problem as much as a mathematical one: it runs on specific hardware, for hours or weeks, and can silently fail in ways a small model never would. Chapter overview

  1. 1Why GPUs and Accelerators 5 min
  2. 2Mixed Precision Training 4 min
  3. 3Distributed and Data-Parallel Training 5 min
  4. 4Hyperparameter Tuning for Deep Networks 5 min
  5. 5Debugging a Training Run 4 min
  6. 6Checkpointing and Reproducibility 5 min
12Deep Learning in Practice7 lessons
Deep Learning glossaryEvery key term from this course in one alphabetical list. Next course · 05Neural Networks