25  Optimization

Gradients tell us which way is downhill; optimization is the study of how to actually get to the bottom. This chapter explains why gradient descent and its accelerated, stochastic, and second-order variants work, what the adaptive per-coordinate methods that actually train today’s networks — AdaGrad, Adam, AdamW — add to them and where their guarantees break, when convexity guarantees they find the global optimum, how constraints and their multipliers reshape a problem through Lagrangian duality, and which numerical pitfalls turn a correct algorithm into a NaN. The main book’s optimization chapter is the reader’s practical first encounter: it should explain how to choose, configure, and diagnose optimizers in training. This appendix is its mathematical companion. It derives representative guarantees and failure modes, but is not intended to duplicate the main chapter’s workflow-oriented treatment.

Resources and Further Reading

A short, opinionated reading list for going deeper on optimization as it is used in machine learning: convexity, gradient and second-order methods, duality, and numerics.

Books

Courses and video lectures

Tutorials, notes, and surveys