Course map
Stage 1: Foundations
Stage 2: Machine Learning
Stage 3: Deep Learning
Stage 4: LLMs & Generative AI
Stage 5: Production & Specialization

Part 11 / Topic 1 of 6

Optimizers

All optimizers step against the gradient; they differ in how they size the step.

Optimizer Idea When
SGD Plain steps Simple, well-studied
SGD + momentum Steps remember direction, smoothing noise Classic for vision models
Adam Per-parameter step sizes from gradient running averages The strong default
AdamW Adam with weight decay done correctly Default for transformers

Start with Adam at lr=1e-3. That default trained every network in this stage so far.

🧪 Quick quiz

  1. How does Adam differ from plain SGD?
Show the answer

It adapts the step size per parameter using running averages of gradients — hence less learning-rate tuning. Well-tuned SGD with momentum is still common for some vision models.

Done here? The practice set for Part 11 — 4 exercises with solutions — is on the part page.

Search the guide