Deep Learning (DL) · Beginner level

Beginner level · Module 5: Training Neural Networks Well · Lesson 2 of 3

Learning Rates and Schedules

Find a good learning rate and adjust it during training for faster, more stable learning.

In this lesson you will

  • Diagnose learning rates from loss curves
  • Use learning-rate schedules

Key concepts

too high vs too low learning ratelearning-rate range teststep and cosine scheduleswarm-up

The lesson

The learning rate is usually the most important setting. Too high and the loss jumps around or explodes; too low and training crawls.

A learning-rate range test trains briefly while increasing the rate and shows where loss falls fastest. Start a little below that point.

Schedules lower the learning rate during training — in steps or along a smooth cosine curve — so the model makes big early progress and fine adjustments later.

Step by step

  1. Train with three learning rates and plot the losses.
  2. Run a simple learning-rate range test.
  3. Add a cosine schedule.
  4. Compare final validation accuracy.
Data and chart

Three learning rates, three very different training runs

Training loss per epoch shows learning rates that are too small, about right and far too large.

Training loss per epoch for the same model with three learning rates (illustrative)
Epochlr 0.0001lr 0.01lr 1.0
12.32.32.3
22.281.43.1
32.260.954.8
42.240.76.2
52.220.587.9
62.20.529.4
Training loss by epoch lr 0.0001: 1 2.3, 2 2.28, 3 2.26, 4 2.24, 5 2.22, 6 2.2. lr 0.01: 1 2.3, 2 1.4, 3 0.95, 4 0.7, 5 0.58, 6 0.52. lr 1.0: 1 2.3, 2 3.1, 3 4.8, 4 6.2, 5 7.9, 6 9.4 02.557.510123456lr 0.0001lr 0.01lr 1.0

What the data shows

lr 0.0001 is too small: the loss falls by only 0.02 per epoch, so training would take far too long.

lr 0.01 is about right: a large early drop, then smaller improvements as the model settles. lr 1.0 is far too large: each step overshoots and the loss grows — training is diverging.

Recommendation

Start near 0.01 for this model, consider a schedule that lowers it later in training, and always watch the first few epochs: a rising loss means stop and reduce the learning rate.

Practice activity

Choose and justify the learning rate and schedule for the leaf classifier.

Expected result: A choice supported by loss curves and validation results.

Check your understanding

  1. What does a learning rate that is too high look like?

    Show answer

    The loss jumps around or increases.

  2. Why lower the learning rate during training?

    Show answer

    To allow fine adjustments after fast early progress.

Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.