Skip to content
ML Academy

Neural networks, deep learning, NLP · insight-0415

Use Adam to iterate fast, but test SGD with momentum before final training

Evidence type
empirical finding
Difficulty
medium
Roles
ML engineer, Data scientist
Industries
cross-industry

Summary: situation, action, reason, boundary

  1. Situation

    Your model trained with Adam is close to final and the remaining question is test accuracy, not speed of iteration.

  2. Action

    Keep Adam (or AdamW) during exploration. For the final model, run a tuned SGD-with-momentum baseline under the same split, metric and tuning budget, and keep whichever wins on validation.

  3. Reason

    Wilson et al. observed adaptive methods generalizing worse than SGD on several deep-learning models even with better training loss; the effect is task dependent, so measure it.

  4. Boundary

    Vision and tabular nets trained from scratch where final accuracy matters.

Symptom or risk

Adaptive methods can find solutions that fit training data well but generalize worse than SGD on some tasks, leaving accuracy on the table.

Exceptions

Transformers and large-language-model fine-tuning are usually trained with AdamW; SGD often struggles there.

Trade-offs

SGD needs more careful learning-rate schedules and more tuning time.

Pitfalls

Giving Adam a tuned schedule and SGD the defaults, then declaring Adam better.

Lessons and concepts

Claims and their sources