Why do layer-wise adaptive optimizers like LARS and LAMB help in very large-batch training?

Quick Overview

Asks why layer-wise adaptive optimizers such as LARS and LAMB make very large-batch neural network training stable. Tests understanding of per-layer gradient and weight scales, trust ratios, warm-up, and when standard optimizers are enough.

Why do layer-wise adaptive optimizers like LARS and LAMB help in very large-batch training?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

Why do layer-wise adaptive optimizers like `LARS` and `LAMB` help in very large-batch training? Explain the problem they address, how each one computes its update, and what practitioners should know before using them. ```hint Compare layers Look at the ratio of weight norm to gradient norm in different layers of a deep network. What does one large learning rate do to the layer where that ratio is smallest? ``` ```hint Relative step size Think about measuring each update against the size of the weights it changes, one layer at a time. ``` ### What a Strong Answer Covers - Why large batches push the global learning rate up, and why one global rate fails across layers. - The trust ratio in LARS and how it sets a per-layer step size. - How LAMB applies the same idea to the Adam update. - Practical details: which parameters are excluded, the continued need for warm-up, and the evidence that tuned standard optimizers can match these methods. ### Follow-up Questions - Why are biases and normalization parameters usually excluded from the trust ratio? - Adam already normalizes each coordinate. What does a per-layer trust ratio add on top of that? - How would you set the learning rate and warm-up when moving from a batch of 256 to a batch of 32k? - If well-tuned SGD with momentum or Adam can match LARS and LAMB, when would you still choose them?

Overview: Asks why layer-wise adaptive optimizers such as LARS and LAMB make very large-batch neural network training stable. Tests understanding of per-layer gradient and weight scales, trust ratios, warm-up, and when standard optimizers are enough.

PracHub logo
General
Nov 25, 2026
hardMachine Learning EngineerOtherMachine Learning
0
0

Why do layer-wise adaptive optimizers like LARS and LAMB help in very large-batch training? Explain the problem they address, how each one computes its update, and what practitioners should know before using them.

What a Strong Answer Covers Guidance

  • Why large batches push the global learning rate up, and why one global rate fails across layers.
  • The trust ratio in LARS and how it sets a per-layer step size.
  • How LAMB applies the same idea to the Adam update.
  • Practical details: which parameters are excluded, the continued need for warm-up, and the evidence that tuned standard optimizers can match these methods.

Follow-up Questions Guidance

  • Why are biases and normalization parameters usually excluded from the trust ratio?
  • Adam already normalizes each coordinate. What does a per-layer trust ratio add on top of that?
  • How would you set the learning rate and warm-up when moving from a batch of 256 to a batch of 32k?
  • If well-tuned SGD with momentum or Adam can match LARS and LAMB, when would you still choose them?