Global optimum

Also known as: global minimum · global maximum

On this page 7

A global optimum is a point in the feasible region at which the objective function attains its best value over the entire region: the lowest value for a minimization problem (a global minimum) or the highest value for a maximization problem (a global maximum). Optimization theory contrasts it with a local optimum, which is only best within some neighborhood of the point.

In artificial intelligence, the global optimum is the ideal target of training and search: the parameter set with the lowest possible loss, the shortest possible tour or the hyperparameter configuration with the best validation score. Whether an algorithm can find it, certify it or only approximate it depends mainly on the structure of the problem, above all on convexity.

Formal definition of a global optimum

For a minimization problem with objective f and feasible set X, a point x* is a global minimizer when f(x*) is less than or equal to f(x) for every x in X. The value f(x*) is the optimal value. A local minimizer only needs this inequality inside a small ball around x*, so every global minimizer is also local, while the reverse is generally false.

Several distinctions sharpen the definition. A strict global minimizer is the unique point achieving the optimal value. A problem may have many global minimizers with equal value, as in neural networks whose hidden units can be permuted. A global optimum may also fail to exist: an objective can approach an infimum it never reaches, which is why the Weierstrass extreme value theorem (a continuous function on a compact set attains its minimum) matters in practice.

The table below summarizes the main kinds of optimal points and what each one guarantees.

Point typeConditionGuarantee
Global minimumf(x*) at most f(x) for all feasible xNo better point exists anywhere
Local minimumf(x*) at most f(x) near x*No better point in a neighborhood
Strict global minimumStrict inequality for all x other than x*Unique optimal solution
Saddle pointZero gradient, mixed curvatureNot optimal in any sense
Epsilon-optimal pointf(x) within epsilon of the optimal valueCertified near-optimality
Kinds of optimal points

Why convexity decides whether the global optimum is reachable

In a convex optimization problem, a convex objective is minimized over a convex feasible set, and every local minimum is automatically a global minimum. Gradient descent, interior-point methods and the simplex algorithm can therefore stop at the first stationary or optimal vertex they find. Duality theory adds certificates: a zero duality gap under the Karush-Kuhn-Tucker conditions proves global optimality.

In non-convex optimization, the landscape can contain many local minima, flat plateaus and saddle points, and first-order conditions cannot distinguish a global minimizer from a poor local one. Finding a certified global optimum is then NP-hard in general, even for quadratic objectives with box constraints. Combinatorial problems such as the traveling salesman problem or integer programming are similarly hard, although exact algorithms can solve many practical instances.

The following comparison shows how problem class affects the attainable guarantee.

Problem classCan global optimum be certifiedTypical method
Linear programmingYes, in polynomial timeSimplex or interior-point
Convex quadratic programmingYes, efficientlyInterior-point, active set
Mixed-integer linear programmingYes, but worst case exponentialBranch and bound with cuts
General nonlinear non-convexRarely, only for small problemsSpatial branch and bound
Deep network trainingNo, in practiceStochastic gradient methods
Global optimality by problem class

Methods that search for the global optimum

Algorithms fall into exact global methods and heuristic global methods. Exact methods, such as branch and bound, interval analysis and cutting planes, partition the search space and discard regions whose lower bound exceeds the best known solution. They return a solution together with a proven optimality gap, but their running time can grow exponentially with dimension.

Heuristic and stochastic methods trade guarantees for scale. Simulated annealing accepts uphill moves with a temperature-controlled probability, and with a sufficiently slow logarithmic cooling schedule it converges to a global optimum only in the limit. Multi-start local search, genetic algorithms, tabu search and Bayesian optimization with a surrogate model explore broadly and then refine promising areas, yet none of them certifies global optimality in finite time.

The table below compares common strategies by guarantee and cost.

StrategyOptimality guaranteeMain cost
Branch and boundProven gap, exact at zero gapExponential worst-case time
Multi-start local searchProbabilistic, improves with startsMany local solver runs
Simulated annealingAsymptotic onlySlow cooling for quality
Bayesian optimizationNone in finite budgetSurrogate fitting per step
Grid or random searchOnly on the sampled pointsGrows with dimension
Strategies for global search

The global optimum in machine learning practice

Training a deep neural network minimizes a highly non-convex loss, yet practitioners rarely seek the global minimum of the training loss. Empirical and theoretical work on overparameterized networks suggests that many local minima reach near-zero training loss and that saddle points, not bad local minima, are the main obstacle in high dimensions. Stochastic gradient noise and momentum help escape such saddles.

More importantly, the global minimum of training loss is not the goal. A network that reaches it may overfit, while flat minima with slightly higher training loss often generalize better. The real target is low expected loss on unseen data, which the training objective only approximates. Regularization, early stopping and validation-based model selection deliberately keep the optimizer away from the exact global minimizer of the empirical objective.

The same caution applies to hyperparameter search. Grid search, random search, Hyperband and the tree-structured Parzen estimator look for the best configuration on a noisy validation metric, so the apparent global optimum partly reflects validation noise. Repeated evaluation or a held-out test set protects against selecting a lucky configuration.

Common misconceptions and pitfalls

Several recurring errors arise when teams reason about global optimality.

MisconceptionWhy it is wrongBetter practice
Zero gradient means optimalSaddle points and maxima also have zero gradientCheck curvature or use convexity
Best of many runs is globalSampling never proves optimalityReport it as best found
Global optimum always existsUnbounded or open sets may lack oneVerify bounds and compactness
Global optimum is uniqueSymmetry creates equivalent solutionsCompare objective values, not parameters
Global training minimum generalizes bestIt may overfit the training dataOptimize validation performance
Misconceptions about global optima

A further pitfall concerns solver tolerances. A solver that reports an optimal status typically means the solution satisfies feasibility and optimality conditions within numerical tolerances, often around 1e-6 to 1e-9, and for mixed-integer problems within a user-set relative optimality gap, commonly 0.01 percent. Reading that status as exact global optimality overstates what was proved.

The short version

Imagine searching a large mountain range for the lowest valley. A valley that looks lowest from where you stand is a local optimum. The global optimum is the lowest valley in the whole range.

Some landscapes have only one valley, so any downhill walk ends at the right place. Most real landscapes have many valleys. There, a walker can get stuck in a shallow one. Finding the deepest valley for certain can take enormous effort, so many methods settle for a very good valley instead.

Where it makes a difference

A logistics planner at a regional distribution company must route twelve delivery vans across about 300 stops each morning. The team first uses a fast local search that improves routes by swapping stops. It finishes in seconds but often stalls in a local optimum whose total distance is several percent above what is achievable.

The team then formulates the problem as a mixed-integer linear program and runs a branch-and-bound solver with a 15-minute time limit and a 1 percent optimality gap. The solver returns routes together with a proven lower bound, so the planner knows the plan is within 1 percent of the global optimum. Compared with the local search, the certified plan cuts daily driving distance by about 4 percent, and the bound tells the planner when further computation is not worth the wait.