Gradium × TensorTonic Voice Challenge is open for registration.Register now
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.

Upgrade to Pro
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

  1. Foundations: minima of quadratics, convexity from the Hessian, polytope membership and classifying critical points.
  2. Gradient descent basics: vanilla, batch, stochastic and mini-batch gradient descent, and classical and Nesterov momentum.
  3. Adaptive methods: AdaGrad, RMSProp, Adam and AdamW.
  4. Learning-rate scheduling: learning-rate sweeps, linear warmup, cosine annealing with restarts and the one-cycle policy.
  5. Regularization: lasso with ISTA, gradient accumulation, dropout and early stopping.
  6. 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.