How can you diagnose an improperly tuned learning rate from the training loss curve?

Quick Overview

Asks how to read a training loss curve to tell whether the learning rate is too high, too low or about right. Tests recognition of divergence, oscillation and slow linear descent, how to separate them from batch noise, overfitting and schedule effects, and how to confirm the diagnosis with short runs or an LR range test.

How can you diagnose an improperly tuned learning rate from the training loss curve?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

You are watching the training loss of a neural network trained with a gradient-based optimizer. How can you diagnose an improperly tuned learning rate from the training loss curve? ```hint Shapes to compare Sketch the curve you would expect when every step is far too large, and again when every step is far too small. Then ask what a healthy curve looks like between the two. ``` ```hint Rule out lookalikes Other problems also make a curve noisy, flat or unstable. Think about which ones, and about a short experiment that would confirm the learning rate is the cause. ``` ### What a Strong Answer Covers - Curve signatures of a learning rate that is too high, including divergence, spikes and a plateau at a high value - Curve signatures of a learning rate that is too low - What a well-tuned curve looks like - How to tell learning-rate problems apart from batch noise, overfitting and schedule effects - A quick experiment that confirms the diagnosis ### Follow-up Questions - Why do transformers often need learning-rate warmup, and what does the loss curve look like without it? - How should the learning rate change when you increase the batch size? - Walk through an LR range test. How do you pick a value from its plot? - The loss turns into NaN after 10,000 steps of smooth training. What besides the learning rate could cause it?

Overview: Asks how to read a training loss curve to tell whether the learning rate is too high, too low or about right. Tests recognition of divergence, oscillation and slow linear descent, how to separate them from batch noise, overfitting and schedule effects, and how to confirm the diagnosis with short runs or an LR range test.

PracHub logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

You are watching the training loss of a neural network trained with a gradient-based optimizer. How can you diagnose an improperly tuned learning rate from the training loss curve?

What a Strong Answer Covers Guidance

  • Curve signatures of a learning rate that is too high, including divergence, spikes and a plateau at a high value
  • Curve signatures of a learning rate that is too low
  • What a well-tuned curve looks like
  • How to tell learning-rate problems apart from batch noise, overfitting and schedule effects
  • A quick experiment that confirms the diagnosis

Follow-up Questions Guidance

  • Why do transformers often need learning-rate warmup, and what does the loss curve look like without it?
  • How should the learning rate change when you increase the batch size?
  • Walk through an LR range test. How do you pick a value from its plot?
  • The loss turns into NaN after 10,000 steps of smooth training. What besides the learning rate could cause it?