Optimization Algorithms & Tuning

Mini-batches, momentum, Adam, schedules, and the hyperparameter search that finds the run.

Module 03.3 · Advanced
Free

9h · 12 lessons · 1 challenge

Before this: Making Deep Networks Train

About this module

Plain gradient descent is not what trains a modern network. This module builds the alternatives in the order they were invented and for the reasons they were: mini-batches for throughput, exponentially weighted averages for noise, then momentum, RMSProp and Adam as three answers to the same problem.

Then the tuning: which hyperparameters matter, on what scale to sample them, and how batch normalization changes the answer.

After this module you can

12 lessons

Lesson 1
1Mini-batch gradient descent
Kind
Concept
Length
45 min
Lesson 2
2Exponentially weighted averages, and bias correction
Kind
Concept
Length
45 min
Lesson 3
3Momentum, RMSProp and Adam
Kind
Concept
Length
55 min
Lesson 4
4Learning rate decay, schedules and warmup
Kind
Concept
Length
45 min
Lesson 5
5The problem of local optima and plateaus
Kind
Concept
Length
40 min
Lesson 6
6Tuning hyperparameters, and picking the right scale
Kind
Concept
Length
50 min
Lesson 7
7Batch normalization at training and at test time
Kind
Concept
Length
50 min
Lesson 8
8Batch size, gradient noise and the linear scaling rule
Kind
Concept
Length
45 min
Lesson 9
9Clipping, accumulation and mixed precision in practice
Kind
Concept
Length
45 min
Lesson 10
10LR Roulette: find the sweet spot in five runs
Kind
Interactive
Length
30 min
Lesson 11
11Run the sweep and read the surface
Kind
Lab
Length
90 min
Lesson 12
12Checkpoint: tune the run
Kind
Checkpoint
Length
25 min

The challenge: LR Roulette

Five training runs, one learning rate each. Find the sweet spot before you run out.

Worth 450 XP.

Related modules

All modules