Convex optimization
f(λx + (1−λ)y) ≤ …
The idea
For a convex function (like a bowl) every local minimum is also global — and easy to find.The board
- Convex: the segment between two points of the graph lies above the graph.
- x2, |x|, ex are convex; sin x isn't.
- A bowl has only one bottom → gradient descent always gets there.
- Logistics, portfolios, machine learning — many problems reduce to convex ones.
The most common mistake
Thinking neural networks are convex. They aren't — that's why training them is an art.The trick
A sum of convex functions is convex — that's how big models are built from small pieces.Problems
Which function is convex?
- sin x
- −x²
- x²
- x³
Show the answer
x² — A bowl.
For a convex f, a local minimum is…
- nonexistent
- fake
- a maximum
- global
Show the answer
global — The bowl has one bottom.