Learning Rate

A training setting that controls how large each update step is during optimization.

How far does one gradient step move?

Take a toy loss equal to half the square of a single weight. Its minimum is at zero and its gradient equals the current weight. Starting at 4, the loss is 8. Use the same gradient of 4 for both trial steps.

Learning rateNew weightNew loss
0.254 − 0.25 × 4 = 34.5
1.54 − 1.5 × 4 = −22
2.54 − 2.5 × 4 = −618

What does crossing zero tell you?

The second step passes the minimum yet still lowers the loss. The third also crosses zero but increases it. On this simple curve, repeat the update and a rate of 1.5 alternates sides while the distance halves each time. A rate of 2.5 increases the distance instead.

Three drafting compasses occupy different positions on a sloping surface.
The gradient supplies a local direction. The learning rate scales the movement.

How does this carry over to training?

Real loss surfaces curve differently in different directions, and minibatch gradients vary. Inspect a run’s loss history, validation result and update behavior together. The three rates are arithmetic examples for this particular curve, not universal defaults.

Follow the idea

Backpropagation · See how a gradient is obtained.

Loss Function · Read the objective the step is trying to reduce.

Source · Google on learning rate, batch size and epochs

Return to Learning Rate in the A–Z glossary