Learning Rate
The learning rate controls step size.
If the learning rate is too small, training can be slow.
If it is too large, training can overshoot useful regions or diverge.
The learning rate does not choose the direction. The gradient chooses the local direction. The learning rate decides how far to move in that direction.
This is why the same gradient can be helpful or harmful depending on scale. A small step may lower the loss. A very large step may jump across the useful region and land where the loss is worse.
Update Rule
In:
eta scales the update.
For the same gradient, a larger eta produces a larger step.
If the gradient is 6, then:
- with
eta = 0.1, the step size is0.6 - with
eta = 0.5, the step size is3
ML Reading
Learning rate is often one of the most important training choices.
Schedules can change the learning rate over time. A training run may start with larger steps and later use smaller steps.
This is not arbitrary. Early training may need broad movement. Later training may need smaller adjustments near a useful region.
When training diverges, the learning rate is one of the first things to inspect. It is not the only possible cause, but it directly controls update size.
If the gradient is 6 and the learning rate is 0.5, what is the step size
before applying the minus sign?
Compute it first, then check your number.
Hint
Solution
0.5 * 6 = 3. The learning rate scales the gradient before the minus sign
chooses the descent direction.
The gradient is 6. Which learning rate gives a larger step: 0.1 or 0.5?
Compute it first, then check your number.
Hint
The learning rate multiplies the gradient.
Solution
0.5 gives the larger step because it multiplies the same gradient by a larger
number.
Does the learning rate mainly control update direction or update distance?
Answer it first, then check.
Hint
The gradient gives the local direction.
Solution
The learning rate mainly controls update distance, or step size. The gradient supplies the local direction; the learning rate decides how far to move.
Can a learning-rate schedule use larger steps early and smaller steps later?
Answer it first, then check.
Hint
The ML reading describes this pattern.
Solution
Yes. Many schedules start with larger steps and later reduce the learning rate.
Enter 1 if a learning rate can be too large even when the gradient direction
is correct locally.
Compute it first, then check your number.
Hint
Imagine stepping downhill so far that you jump past the valley.
Solution
Enter 1. The gradient gives a local direction. If the learning rate is too
large, the finite step can overshoot and make loss worse.
Before Moving On
Learning rate turns gradient direction into an actual step.