Compare SGD, momentum and Adam in a few sentences each

MediumConcept10 minRERSPro outline

The question

Explain what plain SGD, SGD with momentum and Adam do to the gradient before updating the weights.

Why does Adam need bias correction, and why do many large models use AdamW instead of Adam with L2 regularization?

What the interviewer is looking for

  • Update rules written correctly, including the running averages in Adam
  • Momentum explained as an exponential average that smooths noise and speeds along consistent directions
  • Bias correction explained: the averages start at zero, so early estimates are too small
  • Decoupled weight decay explained: with Adam, L2 in the loss gets rescaled by the adaptive step, AdamW applies decay directly
  • Practical trade-offs: memory for optimizer state, sensitivity to learning rate, generalization debates

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Written by BlogLLM in the style of a publicly reported Google DeepMind question type: short textbook definitions: precision and recall, optimizers, loss functions.

Reported in: glassdoor.co.in

Practice question written by BlogLLM based on publicly reported interview formats. Not an official Google DeepMind question.