26  Optimization

The main optimization chapter introduces the update rules used to train models and discusses how to choose and diagnose them. This appendix supplies the mathematical analysis behind those rules. It asks when a local descent direction produces a finite decrease, how stochastic and coordinatewise scaling alter the guarantee, when convexity upgrades stationarity to global optimality, how constraints change first-order conditions, and when finite-precision arithmetic invalidates an otherwise sound algorithm.

The first three sections form the main theoretical path: gradient methods, stochastic and adaptive variants, and convexity. The constrained-optimization section then develops multipliers, projections, and duality. The final section is largely independent and can be read whenever numerical stability becomes relevant. Throughout, results are stated with the assumptions that make them valid and are separated from empirical guidance for large neural networks.

Resources and Further Reading

The following references cover convexity, first- and second-order methods, duality, and numerical optimization for machine learning.

Books

Courses and video lectures

Tutorials, notes, and surveys