Compare SGD, Adam and AdamW, and when you would pick each
MediumConcept15 minRSREPro outline
The question
Explain the update rules of SGD with momentum, Adam and AdamW. Why does AdamW decouple weight decay, and in what situations might plain SGD still be the better choice?
What the interviewer is looking for
- Correct update rules with moments and bias correction
- Clear explanation of why L2 in the loss is not the same as weight decay for Adam
- Memory cost of optimizer state
- Practical guidance: learning rate schedules, warmup, typical settings
Your answer
Saved in this browser only. Nobody else sees it.
Why this question
Written by BlogLLM in the style of a publicly reported Meta (general E-level SWE and ML loops, plus MSL / FAIR research roles) question type: compare optimizers such as SGD, Adam and AdamW, or derive EM for Gaussian mixtures versus k-means.
Reported in: trueinterview.io
Practice question written by BlogLLM based on publicly reported interview formats. Not an official Meta (general E-level SWE and ML loops, plus MSL / FAIR research roles) question.