The 60-second answer
SGD follows noisy gradients and often generalizes well with momentum and a tuned learning-rate schedule. Adam adapts per-parameter step sizes using first and second moments and usually converges faster early.
Build the answer in this order
SGD follows noisy gradients and often generalizes well with momentum and a tuned learning-rate schedule.
Adam adapts per-parameter step sizes using first and second moments and usually converges faster early.
Optimizer behavior depends strongly on learning rate, batch size, normalization, and weight decay.
Compare training speed, final validation quality, memory overhead, and sensitivity rather than naming a universal winner.
A useful interview mental model
This is the shape of a strong answer—not a script to memorize.
Senior-level signal
- Distinguish AdamW from adding an L2 term under Adam.
- For large-scale training, discuss optimizer state memory, gradient clipping, and distributed synchronization cost.
What the interviewer is really testing
Likely follow-up questions
Common weak-answer patterns
- Reciting a definition without mechanism or assumptions.
- Claiming one technique is always better without a data regime.
- Stopping before failure modes, validation, or deployment implications.