Optimization Mastery
How models actually learn: gradients, momentum, adaptive methods, and the schedules that decide whether training converges. You will implement gradient descent, Adam, and learning rate policies, then reach the quasi-Newton methods used in serious solvers. Take it after ML From Scratch or Deep Learning Essentials.
Your progress
0/30 · 0%Path readiness 0%Easy 0% · Medium 0% · Hard 0%
Continue path · Exponential LR ScheduleWhat you will learn
- Tune training with warmup, decay, clipping, and weight-decay schedules
- Implement SGD, momentum, Nesterov, Adam, AdamW, and Lion updates
- Handle constraints and stochastic gradients with projected methods
- Reach quasi-Newton solvers: BFGS, L-BFGS, Gauss-Newton, and trust regions
Before you start
1Schedules and Stability
The learning-rate policy decides whether training converges. Implement exponential, step, warmup, and polynomial schedules, plus value and norm gradient clipping.
- Easy
- Easy
- Easy
- Easy
- Easy
- Medium
- Easy
Stage checkpoint
0/2 to passA checkpoint is a short retrieval test drawn from this stage: solve 2 of 3 from memory to mark the stage complete. The stage stays open either way.
2First-Order Optimizers
Follow the gradient: full-batch and mini-batch descent, momentum, Nesterov acceleration, Adam, AdamW, and the sign-based Lion update.
- Medium
- Medium
- Medium
- Medium
- Medium
- Medium
- Medium
Stage checkpoint
0/2 to passA checkpoint is a short retrieval test drawn from this stage: solve 2 of 3 from memory to mark the stage complete. The stage stays open either way.
- Generic Adam UpdateMedium
- AdamW Decoupled Weight DecayMedium
- Lion Sign UpdateMedium
3Adaptive and Constrained Methods
Variants that adapt per parameter and methods that respect constraints: Adagrad, RMSProp, stochastic regression, AMSGrad, projected gradient, conjugate gradients, natural gradient, and Frank-Wolfe.
- Easy
- Easy
- Medium
- Medium
- Medium
- Hard
- Hard
- Hard
- Hard
Stage checkpoint
0/2 to passA checkpoint is a short retrieval test drawn from this stage: solve 2 of 3 from memory to mark the stage complete. The stage stays open either way.
4Second-Order and Quasi-Newton
When first-order steps stall, use curvature: Hessian-vector products, finite-difference Newton steps, BFGS, L-BFGS, Gauss-Newton, Levenberg-Marquardt, and trust-region updates.
- Medium
- Medium
- Medium
- Hard
- Hard
- Hard
- Hard
Stage checkpoint
0/2 to passA checkpoint is a short retrieval test drawn from this stage: solve 2 of 3 from memory to mark the stage complete. The stage stays open either way.
Capstone
CollectionClose the path with one real artifact from the catalog.
A focused set that revisits every update rule this path builds, from SGD to the adaptive methods.