Convex Optimization
Convex optimization studies problems where the feasible set and objective have no hidden local traps. This is why least squares, regularized linear models, and logistic regression are easier to reason about than general neural-network training.
Defining math
A set is convex if
A function is convex if
The problem
is convex when both conditions hold. For differentiable , gives the supporting-hyperplane view. For twice-differentiable , connects convexity to Jacobians and Hessians.
Worked example
Take with points and weights . The weighted mean and the function evaluated there are
while the weighted mean of the function values is
Jensen’s inequality holds with a positive gap of — the visible cost of spread under a curved convex function.
Caveats
Convexity is a property of the chosen variables and formulation. Reparameterizing can destroy it, constraints can make the feasible set nonconvex, and stochastic training noise can still slow gradient descent even when the objective is convex.
References
Nav