Why does the linear scaling rule often require learning rate warm-up to avoid early divergence?

Quick Overview

Asks why scaling the learning rate linearly with batch size usually needs a warm-up phase to keep early training from diverging. Tests understanding of the approximation behind the rule, loss curvature and step-size stability, and the limits of large-batch training.

Why does the linear scaling rule often require learning rate warm-up to avoid early divergence?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why does the linear scaling rule often require learning rate warm-up to avoid early divergence? The linear scaling rule says that when the batch size grows by a factor of $k$, the learning rate should also be multiplied by $k$. ```hint Check the assumption behind the rule Compare one step with batch $kB$ at rate $k\eta$ against $k$ steps with batch $B$ at rate $\eta$. What has to be true about the gradients along the way for those two to land in the same place? ``` ```hint Look at curvature On a simple quadratic loss, find the learning rate above which gradient descent stops converging, and think about how the curvature of a network's loss behaves near initialization. ``` ### What a Strong Answer Covers - What the linear scaling rule states and the approximation that justifies it - Why that approximation is weakest at the start of training - How the learning rate relates to the sharpness of the loss surface, and why a too-large rate diverges - What warm-up does and why the full scaled rate becomes stable after it - Where linear scaling stops working even with warm-up ### Follow-up Questions - How would you choose the length of the warm-up, and what goes wrong if it is too short or too long? - Why do Adam-style optimizers often benefit from warm-up even at small batch sizes? - How do LARS and LAMB change the update so that larger batches can train well? - Is linear scaling the right rule for Adam, or would you scale the learning rate differently?

Overview: Asks why scaling the learning rate linearly with batch size usually needs a warm-up phase to keep early training from diverging. Tests understanding of the approximation behind the rule, loss curvature and step-size stability, and the limits of large-batch training.

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

Why does the linear scaling rule often require learning rate warm-up to avoid early divergence?

The linear scaling rule says that when the batch size grows by a factor of kk, the learning rate should also be multiplied by kk.

What a Strong Answer Covers Guidance

  • What the linear scaling rule states and the approximation that justifies it
  • Why that approximation is weakest at the start of training
  • How the learning rate relates to the sharpness of the loss surface, and why a too-large rate diverges
  • What warm-up does and why the full scaled rate becomes stable after it
  • Where linear scaling stops working even with warm-up

Follow-up Questions Guidance

  • How would you choose the length of the warm-up, and what goes wrong if it is too short or too long?
  • Why do Adam-style optimizers often benefit from warm-up even at small batch sizes?
  • How do LARS and LAMB change the update so that larger batches can train well?
  • Is linear scaling the right rule for Adam, or would you scale the learning rate differently?