25 November 2026 · 4 min readInteractive 3D
What is a learning rate? Why step size matters
Too small and training takes forever. Too big and it bounces out of control. Find the sweet spot yourself.
The learning rate is a single number that decides how big each step of gradient descent is. It is often the first setting people adjust when a model will not train, and for good reason.
Three things that can happen
- Too small: every step is safe, but the ball needs hundreds of them. Training is slow and expensive.
- About right: the ball heads straight to the bottom in a few dozen steps.
- Too big: the ball jumps past the bottom, lands on the other side, and jumps back. It may never settle, or it may fly off completely.
How people choose it
There is no formula that gives the perfect learning rate. People try a few values, often 10 times apart, and watch the loss. Many training runs also start with a larger rate and shrink it over time, so early steps cover ground quickly and late steps settle precisely. That plan is called a schedule.
A bowl that is steeper in one direction than another is the hardest case: a rate that suits the gentle direction overshoots in the steep one. Our bowl is twice as steep front to back as side to side.
A worked example
Use the loss L(w) = w², with slope 2w, starting at w = 1. The update is w ← w − η × 2w = w(1 − 2η), where η is the learning rate.
- η = 0.1: w is multiplied by 0.8 each step: 1, 0.8, 0.64 … slow but steady
- η = 0.45: multiplied by 0.1: 1, 0.1, 0.01 … very fast
- η = 1: multiplied by −1: 1, −1, 1 … bouncing for ever
- η = 1.2: multiplied by −1.4: 1, −1.4, 1.96 … blowing up
The same pattern appears in real models: too small wastes time, a little too big makes training jump around, and much too big makes the loss shoot up to infinity.
Schedules: changing the rate as you go
Many models start with a small rate for a few steps (warm-up), raise it, then slowly lower it towards the end (decay). Large steps early cover distance; small steps late settle into a good valley without bouncing out.
A practical recipe
- Try rates spaced by ten: 0.1, 0.01, 0.001.
- Pick the largest that still makes the loss go down smoothly.
- If the loss suddenly jumps to “NaN” (not a number), the rate is too high.
- Use a schedule that lowers the rate later in training.
Adaptive optimisers such as Adam choose a different effective step size for each weight, but they still need a base learning rate.
Batch size and learning rate
Bigger batches give a more accurate slope, so larger steps are safe. A common rule of thumb is to scale the learning rate up roughly in proportion when the batch size is increased, with a warm-up period at the start.
Glossary
- Step size: another name for the learning rate.
- Warm-up: starting with a small rate for the first steps.
- Decay: lowering the rate over time.
- Divergence: the loss growing without limit.
Try these yourself
- Q1. L = w², rate 0.25, w = 4: factor 0.5, so w = 2, then 1, then 0.5
- Q2. Which rate makes w jump straight to 0 on L = w²? 0.5, since 1 − 2 × 0.5 = 0
- Q3. Loss goes 1.0, 0.99, 0.98 … very slowly. Raise or lower the rate? Raise it
- Q4. Loss goes 1.0, 3.2, 9.7 … Raise or lower? Lower it, sharply
An everyday picture
Parking a car: big turns of the wheel get you near the space quickly, but you need small, careful adjustments at the end. A learning-rate schedule does exactly that.
In short
The learning rate sets the step size. Too small is slow, too large bounces or explodes. Try values spaced by ten and lower the rate as training goes on.
Keep going
Questions people ask
What is a learning rate in machine learning?
The size of each step gradient descent takes. It multiplies the gradient before the weights are updated.
What happens if the learning rate is too high?
Training overshoots the minimum and can bounce or blow up, with the loss growing instead of shrinking.
What is a good learning rate?
It depends on the model; common starting points are 0.001 for Adam and 0.01 to 0.1 for plain gradient descent. Try values spaced by ten.