esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
Let’s talk

I’ll build the agent for it.

What Does the Learning Rate Do?

How the learning rate sets the step size when a model trains, what goes wrong when it is too small or too big, and how teams pick it, for your AI interview.

In short

The learning rate sets how big a step a model takes each time it corrects its weights during training. Too small and training crawls; too big and the model overshoots and bounces around, or never settles.

11 min readBeginnerCommon · estimateFacts checked 27 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

The learning rate is the size of each step a model takes when it learns. After it measures its mistakes, the model moves its weights a small distance downhill, and the learning rate sets that distance. Too small and training takes forever. Too big and the model overshoots and bounces around. The right value depends on the problem, so check it on your own model and data.

What is the learning rate, in plain words?

A model learns by making small corrections. Each correction nudges its weights a little, in the direction that lowers its mistakes. The learning rate is the number that sets how big each nudge is.

Picture a courier on foot in fog, trying to reach the lowest point of a town. They feel the slope under their feet and step downhill. A long stride might carry them past the bottom. Tiny shuffles get there by nightfall. The learning rate is the stride length. A demand forecast for a supermarket chain learns the same way, correcting its weights after each batch of sales.

Key words

Weight
A number the model learns. A model has many, and training tunes them.
Loss
A score for how wrong the model is right now. Training tries to make it smaller.
Gradient
The slope of the loss. It points uphill, and its size shows how steep the rise is.
Loss curve
A line chart of the loss after each step. It shows whether training is settling.
Hyperparameter
A setting you choose before training starts. The model does not learn it.

How does the learning rate change each step?

Each step follows one rule. The model multiplies the gradient by the learning rate, then takes that amount away from the current weight. The learning rate is the dial that sets how far each move goes.

What one update does

Current weight

the number the model has now

The step

Slope of the loss

which way the loss rises, how steep

Learning rate

the step size you set, e.g. 0.1

Next weight

current weight, moved downhill

  1. 1The current weight goes into the step, where the model works out the slope.
  2. 2It multiplies the slope by the learning rate and takes that amount away from the weight.
One update. The slope says which way the loss rises, the learning rate sets how far to move, and the new weight is the old one moved the opposite way by that amount.
  1. 1

    Measure the loss

    Run the model on a batch of examples and score how wrong it is.

  2. 2

    Find the slope

    Work out how the loss would change if each weight moved a little.

  3. 3

    Multiply by the learning rate

    A small rate gives a small move. A large rate gives a large one.

  4. 4

    Move the weights

    Subtract the scaled slope from each weight, then repeat with the next batch.

What goes wrong when it is too small or too big?

Run the same model three ways and change only the learning rate. The code learns one weight from one made-up example: a 2 km courier run takes 6 minutes, so the right pace is 3 minutes per km.

Python
# One weight, one made-up courier run: a 2 km trip took 6 minutes, so the right pace is 3 minutes per km.
X, Y = 2.0, 6.0

def loss(w):
    return (w * X - Y) ** 2

def gradient(w):
    # Slope of the loss at w: how steeply the loss rises if w goes up.
    return 2 * (w * X - Y) * X

for lr in [0.01, 0.1, 0.3]:
    w = 0.0
    print(f"learning rate {lr}")
    for step in range(1, 21):
        w = w - lr * gradient(w)  # the step: slope times learning rate
        if step in (1, 5, 20):
            print(f"  after {step:2d} steps: w = {w:9.3f}, loss = {loss(w):12.4f}")

Output

learning rate 0.01
  after  1 steps: w =     0.240, loss =      30.4704
  after  5 steps: w =     1.023, loss =      15.6380
  after 20 steps: w =     2.434, loss =       1.2818
learning rate 0.1
  after  1 steps: w =     2.400, loss =       1.4400
  after  5 steps: w =     2.999, loss =       0.0000
  after 20 steps: w =     3.000, loss =       0.0000
learning rate 0.3
  after  1 steps: w =     7.200, loss =      70.5600
  after  5 steps: w =    19.135, loss =    1041.3168
  after 20 steps: w = -2507.048, loss = 25201357.0773

At 0.01 the weight creeps toward 3 and is still short after 20 steps. At 0.1 it reaches 3 in about five steps. At 0.3 each step overshoots further than the last, and the loss explodes.

Three learning rates on one problem

Same model, same data

Too small: 0.01

20 steps, weight is 2.43 of 3

Just right: 0.1

5 steps, weight is 2.999 of 3

Too big: 0.3

5 steps, loss is over 1,000

Crawls along

loss still falling after 20 steps

Reaches the answer

loss rounds to 0.0000 by step 5

Overshoots and blows up

loss reaches 25 million by step 20

  1. 1A small step still moves downhill, just slowly.
  2. 2A step that fits lands on the answer, and the loss stops falling.
  3. 3Steps this big overshoot the bottom and land further away each time.
The same model and data, trained at three rates (numbers from the code above). The middle setting converges. The other two fail in opposite ways: one too slowly, one by overshooting.
  • “If the learning rate is too low, the model can take a long time to converge.”

    Google's machine learning crash course

  • “However, if the learning rate is too high, the model never converges, but instead bounces around the weights and bias that minimize the loss.”

    Google's machine learning crash course

Too low is slow. It can take a long time to converge, so a run may not finish in budget. Too high can look fine at first, then the loss starts swinging or climbs.

How do teams pick a learning rate?

There is no universal number. Google's crash course says the ideal rate is problem-dependent, and that each model and dataset has its own.

Google's crash course states the goal: pick a rate that is not too high nor too low, so the model converges quickly. The ideal rate depends on the problem, so check it on your own model and data by reading the loss curve. Leslie Smith's 2015 arXiv paper reports that cycling the rate between limits gives improved classification accuracy compared with fixed values, often in fewer iterations and without a need to tune. Its tests include image datasets such as CIFAR and ImageNet.

  • “It is known that the learning rate is the most important hyper-parameter to tune for training deep neural networks.”

    Leslie N. Smith, 2015, cyclical learning rates

Tip

Asked how to pick one? Say the ideal rate depends on the problem, so you test a few rates on short runs and read the loss curve. Don't claim there is one magic number.

How would you choose a learning rate for a fraud model?

A card company retrains its fraud model every week on about 40 million payments. One full run takes nine hours, so you cannot try twenty settings. The numbers are made up, but the trade-off is real.

  1. 1

    Try a short sweep

    Train on one week of data for about an hour per setting, at three or four rates spread across a wide range.

  2. 2

    Read the loss curve

    Pick the rate whose loss falls steadily with no spikes. A rate that bounces is too big. A rate that barely moves is too small.

  3. 3

    Check on unseen data

    Score payments the model never trained on. A low training loss can hide a model that only memorised the past.

  4. 4

    Plan the full run

    Keep the rate the sweep picked, and save a copy each night so a bad run can be rolled back.

A bad choice costs a retrain you cannot afford, so size the sweep to the budget and say so out loud.

What does the interviewer want to hear?

A strong answer covers

  • A plain definition: the learning rate is the step size for each weight update.
  • What it multiplies: the gradient, and how that moves the weights.
  • Both failure modes: too small is slow, too big overshoots and diverges.
  • No single right value: it depends on the model and data, found by trials and the loss curve.
  • Changing the rate during training (Smith's cyclical rates) as the next step beyond one fixed rate.
  • Hyperparameter vs parameter, in one sentence.

Common traps

  • Trap"A bigger learning rate always trains faster."

    BetterOnly up to a point. Too big and the loss bounces or explodes, so the run slows or fails.

  • Trap"Set it to 0.1 and you are done."

    Better0.1 works in our small example, but it is not a rule. Check the loss curve for your model and data.

  • Trap"A small learning rate is always the safe choice."

    BetterIt avoids overshooting, but it can waste compute or stop short of a good answer. Balance it with a time budget.

Can you spot the problem?

Spot the problem

A team fine-tunes a pretrained language model on 2,000 support tickets. Which config line is the risky one?

Quick check

A training run's loss jumps up and down after every update and never settles. What do you change first?

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q415What is gradient descent?12 min
  2. Q416SGD vs Adam?11 min
  3. Q418What is backpropagation?11 min
  4. Q413Overfitting vs underfitting?10 min
  5. Q414L1, L2 and dropout regularisation?13 min

Last updated on 27 November 2026

Building an AI product that has to work reliably?

I design and build AI products and agents, the UI and the system behind them. Book a short call and tell me what you need to build.