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 type | Condition | Guarantee |
|---|---|---|
| Global minimum | f(x*) at most f(x) for all feasible x | No better point exists anywhere |
| Local minimum | f(x*) at most f(x) near x* | No better point in a neighborhood |
| Strict global minimum | Strict inequality for all x other than x* | Unique optimal solution |
| Saddle point | Zero gradient, mixed curvature | Not optimal in any sense |
| Epsilon-optimal point | f(x) within epsilon of the optimal value | Certified near-optimality |
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 class | Can global optimum be certified | Typical method |
|---|---|---|
| Linear programming | Yes, in polynomial time | Simplex or interior-point |
| Convex quadratic programming | Yes, efficiently | Interior-point, active set |
| Mixed-integer linear programming | Yes, but worst case exponential | Branch and bound with cuts |
| General nonlinear non-convex | Rarely, only for small problems | Spatial branch and bound |
| Deep network training | No, in practice | Stochastic gradient methods |
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.
| Strategy | Optimality guarantee | Main cost |
|---|---|---|
| Branch and bound | Proven gap, exact at zero gap | Exponential worst-case time |
| Multi-start local search | Probabilistic, improves with starts | Many local solver runs |
| Simulated annealing | Asymptotic only | Slow cooling for quality |
| Bayesian optimization | None in finite budget | Surrogate fitting per step |
| Grid or random search | Only on the sampled points | Grows with dimension |
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.
| Misconception | Why it is wrong | Better practice |
|---|---|---|
| Zero gradient means optimal | Saddle points and maxima also have zero gradient | Check curvature or use convexity |
| Best of many runs is global | Sampling never proves optimality | Report it as best found |
| Global optimum always exists | Unbounded or open sets may lack one | Verify bounds and compactness |
| Global optimum is unique | Symmetry creates equivalent solutions | Compare objective values, not parameters |
| Global training minimum generalizes best | It may overfit the training data | Optimize validation performance |
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.