Optimization
Finding the values of a model's parameters at which the loss function reaches its minimum.
Why It Is Needed
Training a model is optimization: we look for the parameters at which the model makes the smallest error.
\[
\min_{w} Loss(w)
\]
Two Paths
| Path | How it works | When it is convenient |
|---|---|---|
| Analytical solution | a formula that gives the optimum at once | the problem is small |
| Iterative methods | move toward the minimum step by step | many parameters, large data |
Iterative methods are gradient descent and its adaptive variants: SGD, Momentum, AdaGrad, Adam.
Where to Look
- Descent on the loss landscape — the loss landscape and the gradient in motion.
- The optimizer race — SGD, Momentum and Adam on a single task.