Convexity: The Gold Standard of Optimization
In the complex world of high-dimensional optimization, Convexity is the most desirable property a problem can have. It provides a mathematical guarantee that any local minimum you find is also the global minimum, eliminating the fear of being trapped in sub-optimal valleys.
General Optimization and Convex Analysis
This page summarizes the core concepts of optimization, focusing on the formulation of problems, the properties of convex sets and functions, and the role of gradients in finding optimal solutions.
Based on the course "General optimization and convex analysis" by Pr. Pierre Hellier (Université de Rennes / Inria).
1. General Formulation
Optimization problems generally aim to find a variable that minimizes a specific loss function.
Unconstrained Optimization
The goal is to solve for:
: Loss function (or objective function).
: Vector of variables.
: Set of admissible solutions.
Objective: Find a vector such that .
Constrained Optimization
Often, the solution must satisfy specific rules (constraints):
This is equivalent to unconstrained optimization where the admissible set is defined by the intersection of these equality () and inequality () constraints.
Key Definitions
| Term | Definition |
|---|---|
| Feasible Point | Any point that satisfies all constraints. |
| Optimal Value | The minimal function value . |
| Optimal Solution | is optimal if . |
| Sub-optimal (Local) | is a local optimum if it is optimal only within a small ball around . |
2. Convexity
Convexity is a powerful property because it guarantees that local minima are global minima.
Convex Sets
A set is convex if the line segment connecting any two points in the set lies entirely within the set.
Examples of Convex Sets:
- and Positive Orthant
- Hyperplane:
- Half-space:
- Polyhedra:
If are convex sets, the following remain convex:
- Intersection:
- Cartesian Product:
- Affine Transformation: If is convex, then is convex.
Convex Functions
A function is convex if its graph lies below the line segment joining any two points on the graph (the chord).
- Strictly Convex: The inequality is strict ().
- Concave: If is convex, then is concave.
- Second Order Condition: If is twice differentiable, is convex .
Common Convex Functions:
- Affine:
- Exponential:
- Power: for
- Neg-entropy: for
3. Smoothness and Gradients
To solve optimization problems efficiently, we often rely on differentiability.
Differentiability Classes
- : Continuous functions.
- : Continuous first derivatives.
- : Smooth functions (infinitely differentiable).
The Gradient
For a function , the gradient is the vector of partial derivatives:
The gradient points in the direction of steepest ascent (where increases the most).
A differentiable function is convex if and only if:
4. Optimality Conditions
Necessary Condition
If is a local minimum, the gradient must vanish:
Sufficient Condition (The "Convex Advantage")
For convex functions, the zero gradient condition is not just necessary, it is sufficient.
If is convex:
Any local minimum is a global minimum.
is a global minimum.
View Proof Sketch
- Local is Global: Suppose is a local minimum but not global. There exists some where . By convexity, for small , the point is close to .
Since , the right side is strictly less than . This contradicts that is a local minimum.
- Gradient Condition: If , by the first-order convexity condition:
Since the gradient is 0, for all . Thus, is global.