
25 Problems
Optimization
Study the optimization algorithms that power ML training. From vanilla gradient descent to Adam, schedulers, and convergence analysis.
6 Easy12 Medium7 Hard
Unlock the full study plan
Upgrade to Pro to access the full curriculum.
6 sections
What you will learn
Optimization is how a model's weights are found. This plan has 25 problems in six sections, from finding the minimum of simple functions to gradient descent, momentum, adaptive optimizers such as Adam, learning-rate schedules, regularization and second-order methods.
Prerequisites
Python, NumPy and basic derivatives. The Calculus for ML study plan covers the gradients and Hessians used here.
The sections, in order
- Foundations: minima of quadratics, convexity from the Hessian, polytope membership and classifying critical points.
- Gradient descent basics: vanilla, batch, stochastic and mini-batch gradient descent, and classical and Nesterov momentum.
- Adaptive methods: AdaGrad, RMSProp, Adam and AdamW.
- Learning-rate scheduling: learning-rate sweeps, linear warmup, cosine annealing with restarts and the one-cycle policy.
- Regularization: lasso with ISTA, gradient accumulation, dropout and early stopping.
- Advanced optimization: Newton's method, gradient clipping, L-BFGS and a comparison of optimizers.
Where to go next
See these optimizers at work in Cracking Deep Learning, or read about loss landscapes to understand why some optimizers generalize better.