Skip to content
AI.info

Mathematical foundations

Convexity, Smoothness, and Optimization Landscapes

Understand convex sets and functions, smoothness, strong convexity, local minima, saddle points, and why deep-learning landscapes need careful language.

By the end you can

Example

Small examples that separate the definitions

One-dimensional functions separate the definitions cleanly. Each separation below is one that a published theorem later leans on.

  • Convex and smooth: f(x)=x² has a Lipschitz gradient on bounded domains and one global minimum. That is the β-smooth convex setting over which Bubeck states the rates in his Theorems 3.3 and 3.19.
  • Convex but nonsmooth: f(x)=|x| has a global minimum at zero but no ordinary derivative there. The missing derivative is load-bearing. Laurent and von Brecht show that a convex Lipschitz loss which is not differentiable lets deep linear networks acquire sub-optimal local minima.
  • Smooth but nonconvex: f(x)=x⁴−x² has multiple stationary points and two local minima. For smooth nonconvex programs in general, Murty and Kabadi proved in 1987 that even checking a candidate point is NP-complete.
  • Strongly convex: f(x)=x²+3x has a uniform positive second derivative.
  • Lipschitz but not smooth: |x| changes at a bounded rate, yet its derivative jumps at zero.

Convexity is a global shape condition

A set is convex when the entire line segment between any two points in the set stays inside it. A function is convex when its graph lies below every chord connecting two points. This global structure has a powerful consequence. Every local minimum of a convex function is global. If the function is strictly convex, a minimizer is unique when it exists.

Most deep networks are not convex in their parameters. Convex analysis stays valuable because many subproblems, losses and local approximations inherit convex structure. But the sentence "every local minimum is global" can also be proved without convexity, and then the hypotheses are the entire content of the result. Kawaguchi proved it in 2016 for deep linear networks of any depth and widths, under “no unrealistic assumptions”: the loss is non-convex and non-concave, every local minimum is a global minimum, and every critical point that is not a global minimum is a saddle point. His deep nonlinear result needs an independence assumption on top of that.

Laurent and von Brecht reached the same conclusion in 2018 for any convex differentiable loss, provided the hidden layers are at least as wide as the input or the output layer. They also state exactly which hypothesis is holding the result up: “This result is the strongest possible in the following sense: If the loss is convex and Lipschitz but not differentiable then deep linear networks can have sub-optimal local minima.” The conclusion survives the loss of convexity. It does not survive the loss of differentiability.

Convexity converts a local certificate into a global conclusion, but only within the stated domain.

Visual

Four landscape properties that are often conflated

Each property answers a different question about the objective, and only some of them come with a number attached. Smoothness does. The β in β-smooth is what fixes the step size η=1/β under which Bubeck's Theorem 3.3 holds, and Su and colleagues state their accelerated rate under the matching hypothesis s ≤ 1/L. Convexity carries no constant of its own. Strong convexity adds a curvature lower bound. A Lipschitz function bounds how fast the output moves, not how fast the gradient does.

FigureHierarchy · 4 levels
  • Convexity

    Are chords above the graph, making local minima global?

    • Strong convexity

      Is there a uniform quadratic lower curvature bound?

      • Smoothness

        Does the gradient change at a bounded rate?

        • Lipschitz function

          Can the output change no faster than a fixed multiple of input distance?

A function can be convex but nonsmooth, smooth but nonconvex, or Lipschitz without a Lipschitz gradient.

A convex differentiable function stays above every tangent plane

For differentiable convex f, the inequality f(y) ≥ f(x)+∇f(x)ᵀ(y−x) holds for all x and y in the domain. The tangent is a global lower bound. At a point with zero gradient, the inequality immediately proves global optimality. For nonsmooth convex functions, subgradients generalize the supporting-plane idea.

Drop convexity and there is no such certificate. The loss is not merely one of convenience. Murty and Kabadi proved in 1987 that deciding whether “a given feasible solution is not a local minimum” of a smooth nonconvex program is NP-complete. Thirty-five years later Ahmadi and Zhang restate that reduction as one “which shows the NP-hardness of deciding if a given point is a local minimizer of a quadratic program”. Then, in 2022, they settle a 1992 open problem of Pardalos and Vavasis: “We show that unless P=NP, there cannot be a polynomial-time algorithm that finds a point within Euclidean distance c^n (for any constant c ≥ 0) of a local minimizer of an n-variate quadratic function over a polytope.”

A quadratic over a polytope is close to the simplest nonconvex program that can be written down. The convex tangent-plane inequality is not a nicety on top of an otherwise similar problem. It is the difference between a one-line certificate and a task no polynomial-time algorithm can even approximate.

Analogy

A bowl has no hidden valleys to fall into

A sheet shaped like a bowl has no hidden valleys. Any straight chord between two points lies above the surface, so descending cannot trap you in a worse local basin. Strong convexity means the bowl has a minimum amount of curvature everywhere. Smoothness bounds how abruptly the slope can change. Constrained or high-dimensional domains are harder to picture as a bowl, and a nonsmooth convex function has sharp corners where the sheet would crease.

The part of the picture that fails first is the plural: the range of hills separating one bowl from the next. In 2018 Draxler and colleagues built continuous paths between separately trained minima on CIFAR10 and CIFAR100. The paths are essentially flat in both the training and the test landscape. Their reading of it: “This implies that minima are perhaps best seen as points on a single connected manifold of low loss, rather than as the bottoms of distinct valleys.”

A second group reported the same phenomenon independently that year. Garipov and colleagues found that “the optima of these complex loss functions are in fact connected by simple curves, over which training and test accuracy are nearly constant”, and turned that geometry into an ensembling method evaluated on CIFAR-10, CIFAR-100 and ImageNet. Two separately trained solutions can be neither the same point nor separated by a barrier. The bowl picture has no room for that third possibility.

Convexity removes bad local minima; smoothness controls how predictable the gradient is.

Steps

Auditing an optimization claim

Before repeating a guarantee, trace every assumption that makes it valid. The published theorems show what a completed trace looks like. Laurent and von Brecht require a convex differentiable loss and hidden layers at least as wide as the input or the output layer. Kawaguchi's deep nonlinear case requires an independence assumption; his deep linear case does not. Bubeck's Theorem 3.3 requires a β-smooth convex objective and the step size η=1/β. Remove any one of those lines and what remains under it is a different statement from the one that was proved.

FigureProcess · 5 steps
  1. 1. State the domain

    Identify constraints and whether the feasible set is convex.

  2. 2. Classify the objective

    Check convexity, differentiability, smoothness, and curvature bounds.

  3. 3. Name the point type

    Use gradient and Hessian evidence without overclaiming global behavior.

  4. 4. Match the algorithm

    Verify that its convergence theorem covers the objective and step rule.

  5. 5. Separate theory from observation

    Report empirical behavior independently from mathematical guarantees.

Comparison

Minimum, maximum, saddle, and flat region

A zero gradient begins the classification. It does not finish it. Two groups argued from random matrix theory that in high dimensions the classification usually comes out "saddle". Dauphin and colleagues put it this way in 2014: “Here we argue, based on results from statistical physics, random matrix theory, neural network theory, and empirical evidence, that a deeper and more profound difficulty originates from the proliferation of saddle points, not local minima, especially in high dimensional problems of practical interest.” Choromanska and colleagues reached a compatible conclusion independently the next year, through a spin-glass analysis. The lowest critical values lie in a band above the global minimum, and the number of local minima outside that band “diminishes exponentially with the size of the network”. Their abstract names the three assumptions that buy this, which is the point. It is a result about a model of the landscape, not a survey of landscapes.

The flat column needs a warning of a different kind. Dinh and colleagues showed in 2017 that flatness is not a property of the model at all: “Specifically, when focusing on deep networks with rectifier units, we can exploit the particular geometry of parameter space induced by the inherent symmetries that these architectures exhibit to build equivalent models corresponding to arbitrarily sharper minima.” Same function, same generalization, arbitrarily sharper minimum. Four years later Petzka and colleagues were still naming “reparameterizations that change certain flatness measures but leave generalization unchanged” as the open obstacle, and proposed a relative flatness measure specifically to get around it. Curvature at a stationary point is read in a coordinate system. The coordinates are a modeling choice.

FigureComparison · 3 columns

Local minimum

Nearby perturbations do not lower the objective.

  • Positive definite Hessian is a sufficient local condition
  • Can be non-global in nonconvex problems
  • Flat minima may have zero-curvature directions
  • Validation still determines model usefulness

Saddle point

Some nearby directions rise and others fall.

  • Indefinite Hessian provides a local certificate
  • Common in high-dimensional nonconvex landscapes
  • Gradient can be zero
  • Noise or curvature methods may help escape

Flat stationary region

Gradient and some curvature directions vanish.

  • Higher-order terms may determine behavior
  • Can reflect symmetry or non-identifiability
  • Parameter movement may leave predictions unchanged
  • Second-order tests may be inconclusive

Key idea

Do not call a deep-network objective “almost convex” without evidence

Empirical optimization success does not imply convexity. Overparameterization, normalization, stochastic gradients and architectural symmetries can create favorable paths without satisfying convex definitions. Statements about benign landscapes need a specified model, data assumptions, parameterization, and a theorem or an experiment. Use convex intuition where it applies, but label it as intuition when the objective lacks the required structure.

Loss-landscape pictures are the usual source of the overclaim. Li and colleagues published a set of them in 2018. Their contribution is a “filter normalization” method that makes two loss surfaces comparable side by side, and they used it to “explore how network architecture affects the loss landscape, and how training parameters affect the shape of minimizers”. Note what that is and is not. It is evidence about the particular surfaces they plotted, under a normalization they had to introduce before two pictures could even be set beside each other. It is not a proof of convexity anywhere. A picture that looks like a bowl is not a chord inequality.

A convenient geometric metaphor is not an optimization guarantee.

Position

A convergence rate quoted without its hypotheses is a rate for a different function

In a convergence theorem the hypotheses come first. They are also the first thing dropped when the result is repeated. “Gradient descent converges to the minimum” is a sentence learned in the convex chapter, where a step rule and a smoothness constant are stated alongside it. Bubeck's 2015 monograph shows how much those two are carrying. On a β-smooth convex objective, gradient descent with step size η=1/β satisfies f(x_t)−f(x*) ≤ 2β‖x₁−x*‖²/(t−1). That is Theorem 3.3. Nesterov's accelerated gradient descent, on the same class, with the same one gradient per step, satisfies f(y_t)−f(x*) ≤ 2β‖x₁−x*‖²/t². That is Theorem 3.19. And Theorem 3.14 says no black-box first-order method can do better than 3β‖x₁−x*‖²/(32(t+1)²) there, a lower bound first proved by Nemirovski and Yudin in 1983. Su and colleagues state the same O(‖x₀−x*‖²/(sk²)) rate for Nesterov's 1983 scheme under the hypothesis s ≤ 1/L, and mark the gap plainly: “It is well-known that this rate is optimal among all methods having only information about the gradient of f at consecutive iterates (Nesterov, 2004). This is in contrast to vanilla gradient descent methods, which have the same computational complexity but can only achieve a rate of O(1/k).” One objective class, one gradient per iteration, and two different guarantees — 1/(t−1) against 1/t². "Gradient descent converges" names neither of them. Neither number survives without the β and the step rule that produced it.

Carry the sentence into training and the convexity that licensed it is gone too. For differentiable convex f the inequality f(y) ≥ f(x)+∇f(x)ᵀ(y−x) holds for all x and y in the domain, so a point with zero gradient is globally optimal and every local minimum is global. Most deep networks are not convex in their parameters. There a vanishing gradient certifies stationarity and nothing else. Separating a minimum from a saddle from a flat region takes curvature evidence the quoted sentence never mentioned. In the general smooth nonconvex case, Murty and Kabadi proved that evidence is NP-complete to obtain, and Ahmadi and Zhang showed it cannot even be approximated to within Euclidean distance c^n unless P=NP. Dropping a hypothesis here is not the same as putting a result too strongly. It states a different result, and that one is false.

The hypotheses are easy to drop because four properties get bundled into the single word well-behaved: convexity, strong convexity, smoothness, and a Lipschitz function. A function can be convex without being smooth, smooth while being severely nonconvex, or Lipschitz without having a Lipschitz gradient. Absolute value is convex with no ordinary derivative at zero. x⁴−x² is smooth, with multiple stationary points and two local minima. A step-size rule justified by a smoothness constant and a global-optimality claim justified by convexity are separate borrowings. Each needs its own hypothesis checked.

Convex analysis is not the loser in this argument. It keeps its value because subproblems, losses and local approximations often do inherit convex structure, and because the convex case is where these words are defined sharply enough for their absence to be noticed. What has to stop is the traffic in the other direction, where optimization that went well is reported as though it had established the shape. Theorems that say every local minimum is global for a nonconvex network do exist — Kawaguchi's in 2016, Laurent and von Brecht's in 2018 — and each of them is a list of hypotheses with a conclusion attached. One of those hypotheses stops holding the moment the loss stops being differentiable. A rate is a property of a function class and a step rule, in the same way. It is never a property of an optimizer's reputation.

Convexity is what licenses “this local minimum is global”; without it the same zero gradient certifies only stationarity.

Key takeaways