When would you choose SGD with momentum over an adaptive optimizer like Adam?

Quick Overview

An optimization question asking when stochastic gradient descent with momentum is a better choice than Adam or AdamW for training a neural network. It tests knowledge of generalization differences, established tuning recipes, optimizer memory, and which model families suit each optimizer.

When would you choose SGD with momentum over an adaptive optimizer like Adam?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

When would you choose `SGD` with momentum over an adaptive optimizer like `Adam`? ```hint Think about the setting Consider what kind of model and training recipe the choice is for, and which outcome or resource matters most: final test accuracy, tuning time, or memory. ``` ### What a Strong Answer Covers - The settings where SGD with momentum is the better choice, and the reasons - What is known about the generalization gap between adaptive methods and SGD, and how decoupled weight decay affects it - The memory and hyperparameter differences between the two optimizers - The settings where Adam or AdamW is the better choice, and the reasons - How to compare optimizers fairly ### Follow-up Questions - What is the difference between Adam with L2 regularization and AdamW, and why does it matter for generalization? - If you move a ResNet recipe from SGD to AdamW, which hyperparameters need retuning? - How would you train a model whose Adam optimizer state does not fit in memory? - Why does Adam handle sparse embedding gradients better than plain SGD?

Overview: An optimization question asking when stochastic gradient descent with momentum is a better choice than Adam or AdamW for training a neural network. It tests knowledge of generalization differences, established tuning recipes, optimizer memory, and which model families suit each optimizer.

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

When would you choose SGD with momentum over an adaptive optimizer like Adam?

What a Strong Answer Covers Guidance

  • The settings where SGD with momentum is the better choice, and the reasons
  • What is known about the generalization gap between adaptive methods and SGD, and how decoupled weight decay affects it
  • The memory and hyperparameter differences between the two optimizers
  • The settings where Adam or AdamW is the better choice, and the reasons
  • How to compare optimizers fairly

Follow-up Questions Guidance

  • What is the difference between Adam with L2 regularization and AdamW, and why does it matter for generalization?
  • If you move a ResNet recipe from SGD to AdamW, which hyperparameters need retuning?
  • How would you train a model whose Adam optimizer state does not fit in memory?
  • Why does Adam handle sparse embedding gradients better than plain SGD?