Optimization
Optimization is the task of choosing variables that make an objective small or large. In machine learning the variables are often parameters, the objective is a loss plus regularization, and the algorithm may be a deterministic solver, gradient descent, or a stochastic optimizer.
Defining math
A standard minimization problem is
With equality and inequality constraints it becomes
Unconstrained differentiable optima satisfy the first-order stationarity condition , but that is only a candidate condition unless curvature or global structure is known. Convex optimization is special because local minima are global minima.
Worked example
Minimize . Applying the stationarity condition ,
with objective . The two coordinates decouple, so each squared term is minimized independently at its own center. For nonconvex losses such as deep-network training, an optimizer may instead find only a useful stationary point, which is why optimizers are judged empirically as well as mathematically.
Caveats
The objective defines the behavior. A perfectly optimized proxy can still be misaligned with the real task, and poor scaling can make a mathematically simple problem numerically hard. Constraints, regularization, and numerical stability are part of the optimization problem, not afterthoughts.
References
Nav