B Convex Analysis
Convexity is one of the most powerful structural assumptions in optimisation. When both the objective and feasible region are convex, local optima are global optima, duality theory provides certificates of optimality, and efficient algorithms exist with provable convergence guarantees. In generative modelling, convex analysis underpins Wasserstein distances (via Kantorovich duality), -divergences (via Fenchel conjugates), and the ELBO derivation (via Jensen's inequality). This appendix develops the core ideas from first principles, emphasising the results that appear most frequently in the main text.
Convex Sets
The notion of convexity begins with geometry. A region is convex if, intuitively, you can walk in a straight line between any two of its points without ever leaving the region. This simple geometric property has remarkably deep consequences for analysis and optimisation.
Definition 1 (Convex Set).
A set is convex if for every pair of points and every scalar , the point also lies in . In other words, the line segment connecting any two points of is entirely contained in .
Familiar examples abound: the real line , any subspace, any halfspace , and the Euclidean ball are all convex. The empty set and singleton sets are convex by convention (the defining condition holds vacuously or trivially).
Definition 2 (Convex Combination).
A point is a convex combination of points if it can be written as (Combination) where for all and .
Convex combinations generalise the two-point definition: a set is convex if and only if it contains all convex combinations of its points. For , we recover the original definition. For , convex combinations sweep out a triangle; for general , they form a simplex.
Definition 3 (Convex Hull).
The convex hull of a set , denoted , is the set of all convex combinations of points in : (HULL) Equivalently, is the smallest convex set containing : the intersection of all convex sets that contain .
The equivalence of these two characterisations is instructive. The intersection definition immediately shows that is convex (by Theorem 1 below), while the explicit formula makes it computable. In computational geometry, finding the convex hull of a finite point set is a fundamental problem with algorithms in two dimensions.
Definition 4 (Affine Function).
A function is affine if for some matrix and vector . An affine function is simultaneously convex and concave.
Theorem 1 (Operations Preserving Convexity).
The following operations preserve convexity of sets:
Intersection. If is any (possibly infinite) family of convex sets, then is convex.
Affine image. If is convex and is affine, then is convex.
Minkowski sum. If and are convex, then is convex.
Proof.
Part (i). Let and . For each , both and belong to , and since is convex, . Since this holds for every , we have .
Part (ii). Let , so and for some . Then Since is convex, , so the right-hand side belongs to .
Part (iii). Let and with , . For : where the two terms lie in and respectively by convexity. Hence the sum belongs to .
Key Idea.
In machine learning, many constraint sets are convex: the probability simplex (probability vectors), the unit ball (weight decay), the cone of positive semidefinite matrices (kernel methods), and the Birkhoff polytope of doubly stochastic matrices (optimal transport). Even when the objective is non-convex (as in training neural networks), recognising convex constraint structure enables powerful algorithmic tools such as projected gradient descent and FrankโWolfe methods.
Convex Functions
Having established the geometry of convex sets, we turn to convex functions, which are the analytic counterpart. The graph of a convex function curves upward (or is flat), so that any secant line lies above the curve. This simple shape constraint leads to a rich theory of inequalities, optimality conditions, and duality.
Definition 5 (Convex Function).
A function is convex if its effective domain is a convex set and, for all and all , (Function DEF) A function is concave if is convex.
The convention of allowing to take the value is a convenient device: it lets us encode constraints into the objective by setting for infeasible points, unifying constrained and unconstrained optimisation.
Definition 6 (Strictly Convex).
A function is strictly convex if the inequality in (Function DEF) is strict whenever and . Geometrically, the chord between any two distinct points on the graph lies strictly above the graph (except at the endpoints).
Definition 7 (Strongly Convex).
A function is -strongly convex (with parameter ) if is convex. Equivalently, for all , (Strong) Strong convexity means the function grows at least quadratically away from any tangent hyperplane.
Strong convexity is strictly stronger than strict convexity, which is strictly stronger than convexity. The function is strictly convex but not strongly convex (its curvature vanishes at the origin). In optimisation, strong convexity is the โgold standardโ because it guarantees both uniqueness of the minimiser and linear convergence rates for gradient descent.
Proposition 1 (Unique Minimiser).
If is -strongly convex with , then has at most one minimiser.
Proof.
Suppose and are both global minimisers, so . Applying the strong convexity condition (Strong) with and : Since is a minimiser, the first-order optimality condition gives (or, if is unconstrained, ). Either way, , which forces , hence .
Theorem 2 (Jensen's Inequality).
Let be a convex function and let be a random variable taking values in with . Then (Jensen) If is concave, the inequality reverses: .
Proof.
We proceed by induction on the number of mass points, then extend by a limiting argument.
Base case (). If takes values with probabilities , then and . The inequality is precisely the definition of convexity.
Inductive step. Suppose the result holds for points. Let take values with probabilities . Without loss of generality, (otherwise the result is trivial). Write By convexity of , The point is the expectation of a random variable supported on points with probabilities . By the inductive hypothesis, . Substituting:
Extension to continuous distributions. For a general random variable with density, approximate by discrete random variables (e.g., by quantisation) and pass to the limit using the dominated convergence theorem and lower semicontinuity of .
Historical Note.
Jensen's inequality is named after Johan Jensen, who published it in 1906, although the result for finite sums was known earlier. Jensen was a Danish mathematician and engineer who worked for the Copenhagen Telephone Company. His inequality has become one of the most widely used tools in probability, information theory, and statistical physics.
Key Idea.
Jensen's inequality is arguably the single most important inequality in variational inference. The entire evidence lower bound (ELBO) rests on applying Jensen to the concave logarithm: Every VAE, every diffusion model's variational bound, and every EM algorithm traces back to this one application of convexity. Understanding when the inequality is tight (when is almost surely constant, i.e., when closely matches the true posterior) guides the design of better approximate posteriors.
Theorem 3 (First-Order Condition).
Let be differentiable on an open convex domain. Then is convex if and only if for all , (First Order) Geometrically, the tangent hyperplane at any point is a global underestimator of the function.
Proof.
() Assume is convex. For any , convexity gives which we rearrange to Taking , the right-hand side converges to by the definition of the gradient.
() Assume (First Order) holds. Fix and , and let . Apply the first-order condition at in two directions: Multiply the first inequality by and the second by , then add: The second term vanishes because . Therefore , which is precisely convexity.
Theorem 4 (Second-Order Condition).
Let be twice continuously differentiable on an open convex domain. Then:
is convex if and only if the Hessian is positive semidefinite everywhere: for all .
is -strongly convex if and only if for all .
Proof.
We prove part (i); part (ii) follows by applying (i) to .
() Suppose is convex. Fix and any direction . The univariate function is convex in (as the composition of with an affine map). A convex function of one variable has non-negative second derivative wherever it exists, so Since is arbitrary, .
() Suppose for all . By Taylor's theorem with integral remainder, for any : for some on the line segment between and . Since , the last term is non-negative, giving , which is the first-order condition for convexity.
Theorem 5 (Operations Preserving Convexity of Functions).
The following operations preserve convexity of functions:
Non-negative weighted sum. If are convex and , then is convex.
Pointwise maximum. If is any family of convex functions, then is convex.
Composition with affine mapping. If is convex, then is convex for any matrix and vector .
Proof.
Part (i). For : where the inequality uses convexity of each and non-negativity of each .
Part (ii). For and each : Taking the supremum over on the left gives .
Part (iii) follows directly from the definition, since the composition is affine and preserves convex combinations.
Example 1 (Important Convex Functions).
The following functions arise frequently in machine learning and generative modelling:
Quadratic: (and more generally for ).
Exponential: (convex on ; used in log-sum-exp).
Negative logarithm: on (the key function behind the ELBO).
Norms: for , including the -norm (sparsity) and -norm (weight decay).
Max: (convex as a pointwise maximum of linear functions).
Log-sum-exp: (the smooth approximation to ; convex by Theorem 5(ii) and a limiting argument).
Subgradients
Not all convex functions are differentiable. Consider at the origin, or , the ReLU activation that has become ubiquitous in deep learning. At the โkinkโ of these functions, no single tangent line exists. Yet the geometry of convexity still provides useful linear underestimators. The theory of subgradients extends calculus to non-smooth convex functions, providing the foundation for optimisation algorithms that handle non-differentiable objectives.
Definition 8 (Subgradient).
A vector is a subgradient of a convex function at a point if (Subgradient) Geometrically, defines a supporting hyperplane to the epigraph of at the point : the affine function is a global underestimator of .
Comparing with Theorem 3, we see that at a differentiable point, the gradient is the unique subgradient. At non-differentiable points, there may be many subgradients, each defining a different supporting hyperplane.
Definition 9 (Subdifferential).
The subdifferential of at , denoted , is the set of all subgradients of at : (Subdifferential) When is differentiable at , the subdifferential reduces to a singleton: .
Theorem 6 (Existence of Subgradients).
Let be convex. Then at every point in the interior of , the subdifferential is nonempty, closed, convex, and compact.
The proof relies on the supporting hyperplane theorem (a consequence of the HahnโBanach theorem in functional analysis) and is omitted here. The key practical message is that convex functions always admit subgradients at interior points, which guarantees that subgradient-based optimisation methods are always well-defined.
Example 2 (Subdifferentials of Common Functions).
Absolute value, :
ReLU, :
Pointwise maximum, where each is convex and differentiable: the convex hull of the gradients of the โactiveโ functions (those achieving the maximum).
Theorem 7 (Subgradient Optimality Condition).
Let be convex. A point is a global minimiser of if and only if .
Proof.
() Suppose minimises , so for all . This can be rewritten as , which shows that is a subgradient of at .
() Suppose . By definition of the subgradient, for all , so is a global minimiser.
Remark 1 (Elegance of the Subgradient Condition).
The subgradient optimality condition is striking in its simplicity: checking global optimality of a convex function reduces to checking membership of the zero vector in a set. For smooth functions, this recovers the familiar ; for non-smooth functions, it provides a complete characterisation that no gradient-based condition can.
Key Idea.
Subgradients explain why non-smooth activations like ReLU work in deep learning. Although the gradient of is undefined at , the subdifferential provides valid descent directions. In practice, automatic differentiation libraries choose an arbitrary element of the subdifferential (typically ) at the non-differentiable point, and this works well because the set of inputs that land exactly at a kink has Lebesgue measure zero during training. The theory of Clarke subdifferentials extends these ideas to non-convex functions, providing the theoretical foundation for training deep networks with ReLU, leaky ReLU, and other piecewise-linear activations.
Epigraphs and Sublevel Sets
The epigraph provides a bridge between convex functions and convex sets, allowing us to translate questions about function convexity into questions about set convexity. This perspective is both theoretically elegant and practically powerful: operations that are natural for sets (intersection, projection) correspond to useful operations on functions (pointwise maximum, infimal convolution).
Definition 10 (Epigraph).
The epigraph of a function is the subset of defined by (Epigraph) In words, is the region โon and aboveโ the graph of . The name comes from the Greek epi (above).
Theorem 8 (Epigraph Characterisation of Convexity).
A function is convex if and only if is a convex subset of .
Proof.
() Suppose is convex. Let , so and . For : where the first inequality uses convexity of and the second uses . Hence , proving that is convex.
() Suppose is convex. For any , the points and lie in . By convexity of , for : By the definition of the epigraph, this means , which is convexity of .
The epigraph characterisation is more than a theoretical curiosity. It allows us to prove convexity of complicated functions by showing that their epigraphs can be expressed as intersections of halfspaces (which are convex sets by Theorem 1). This technique is particularly useful for functions defined implicitly as optima of parameterised families.
Definition 11 (Sublevel Set).
For a function and a scalar , the -sublevel set of is (Sublevel)
Sublevel sets are the horizontal โslicesโ of the epigraph. For the function , the sublevel sets are Euclidean balls . For , they are -balls.
Theorem 9 (Sublevel Sets of Convex Functions).
If is convex, then every sublevel set is convex. The converse is false: a function can have all sublevel sets convex without being convex.
Proof.
Suppose is convex and let , so and . For : Hence , proving is convex.
Remark 2 (Converse Fails).
Consider the function on . Each sublevel set is either empty (if ), all of (if ), or a symmetric interval for some (if ). In every case, the sublevel set is convex (an interval). However, is not convex: it has a local maximum at and is concave near the origin. Functions whose sublevel sets are all convex are called quasiconvex. Quasiconvexity is a strictly weaker condition than convexity, though it still permits useful optimisation theory; in particular, quasiconvex functions on compact convex sets attain their maxima at extreme points, a fact used in some game-theoretic formulations of generative adversarial networks.
Conjugate Functions and Fenchel Duality
The Fenchel conjugate (also called the convex conjugate or the LegendreโFenchel transform) is one of the most elegant constructions in convex analysis. It provides a systematic way to convert between primal and dual representations of convex functions, and it is the mathematical engine behind variational representations of divergences in generative modelling. In the next few pages we develop the theory from its definition through the biconjugate theorem and into the concrete conjugate computations that arise in the f-GAN framework.
Definition 12 (Convex Conjugate).
Let . The Fenchel conjugate (or convex conjugate) of is the function defined by (Conjugate DEF) The domain of consists of those for which the supremum is finite.
Geometrically, measures the largest vertical gap between the linear function and the graph of . When is smooth and strictly convex, the supremum is attained at the unique point where , and the conjugate equals , the -intercept of the tangent line with slope . fig:convex:conjugate-geom illustrates this construction.
Theorem 10 (Conjugate is Always Convex).
For any function (not necessarily convex), the conjugate is convex and closed (lower semicontinuous).
Proof.
For each fixed , the map is an affine function of . The conjugate is a pointwise supremum of this family of affine functions. A supremum of convex (in particular, affine) functions is convex (the epigraph of the supremum is the intersection of the individual epigraphs, which are half-spaces, hence convex). Furthermore, each is continuous and therefore closed; the supremum of closed functions is closed.
Theorem 11 (Fenchel's Inequality).
For any function and all , (Fenchel INEQ)
Proof.
By definition, . Rearranging gives .
Theorem 12 (FenchelโMoreau Biconjugate Theorem).
If is closed (lower semicontinuous) and convex, then . That is, the conjugate of the conjugate recovers the original function.
Proof.
We show both directions.
(). By Theorem 11 applied with in place of , for every we have , hence for all . Taking the supremum over gives , but more directly, applying the original Fenchel inequality to gives , so for every . Since , we obtain .
(). Because is closed and convex, it is the pointwise supremum of all affine functions that it dominates: for every , . Each such affine minorant satisfies for all , hence . Therefore . Taking the supremum over all such yields .
Theorem 13 (FenchelโYoung Equality).
Let be a closed convex function. Then (Fenchel Young) where denotes the subdifferential of at .
This elegant result says that Fenchel's inequality becomes an equality precisely at conjugate pairs linked by the subgradient relation. In the smooth case it reduces to .
We now work through several conjugate computations that arise repeatedly in generative modelling.
Example 3 (Conjugate of a Quadratic).
Let where . Setting the gradient of to zero gives , so . Substituting back, (CONJ QUAD) The conjugate of a quadratic defined by is a quadratic defined by . This is the matrix generalization of the scalar identity .
Example 4 (Conjugate of a Norm).
Let for any norm . Then (CONJ NORM) where is the dual norm. To see this, note that if then , so the supremum is at most (achieved at ). If , choose where and send to get . Hence is the indicator function of the unit dual-norm ball.
Example 5 (Conjugate of Negative Entropy).
Let for (with ). Then gives . Substituting: (CONJ Entropy) This conjugate pair is central to the KL-divergence variational formula.
Example 6 (Conjugate of an Indicator Function).
Let be a nonempty closed convex set and let be its indicator function ( on , outside). Then (CONJ Indicator) the support function of . The support function encodes the geometry of : it gives the signed distance from the origin to the supporting hyperplane with outward normal .
Example 7 (Log-Sum-Exp).
The function is convex as a smooth approximation of . Its conjugate is (CONJ Logsumexp) the negative entropy restricted to the probability simplex. This duality between log-sum-exp and entropy is fundamental: it underlies the connection between softmax classifiers and maximum-entropy distributions.
Key Idea.
Fenchel conjugates are the mathematical engine behind the f-GAN framework. Every -divergence has a variational (dual) representation which turns divergence estimation into an optimisation over a critic/discriminator network , with serving as the โactivation functionโ applied to the critic's output. Different choices of (and hence ) recover different GAN variants: the original GAN uses , the KL-GAN uses , and the reverse-KL GAN uses .
Historical Note.
The Legendre transform was introduced by Adrien-Marie Legendre in the 18th century to convert between the Lagrangian and Hamiltonian formulations of classical mechanics. Werner Fenchel generalised it to arbitrary convex functions in the 1940s, removing the smoothness and strict-convexity assumptions that Legendre's version required. R. Tyrrell Rockafellar developed the full theory in his landmark 1970 monograph Convex Analysis, which remains the definitive reference. The application to divergences and generative models came much later, with Nguyen, Wainwright, and Jordan (2010) establishing the variational representation of -divergences that would inspire the f-GAN framework of Nowozin, Cseke, and Tomioka (2016).
Lagrangian Duality
Many optimisation problems in machine learning are naturally constrained: the discriminator in a Wasserstein GAN must be -Lipschitz, the coupling in optimal transport must have prescribed marginals, and probability vectors must sum to one. Lagrangian duality provides a systematic way to handle constraints by introducing dual variables (Lagrange multipliers) that put a โpriceโ on constraint violations. This section develops the theory from the Lagrangian through weak duality, Slater's condition, and strong duality, culminating in the inf-sup swap theorem that underpins the KantorovichโRubinstein duality used in WGANs.
Consider the standard-form optimisation problem: (Standard FORM) where the domain is nonempty. We denote the optimal primal value by .
Definition 13 (Lagrangian).
The Lagrangian can be interpreted as a โsoftโ version of the constrained objective: instead of forbidding constraint violations outright, it charges a per-unit penalty for violating the -th inequality constraint. Making large forces the solution toward feasibility.
Definition 14 (Lagrange Dual Function).
The Lagrange dual function is (DUAL FUNC) The dual function is always concave, regardless of whether the primal problem is convex, because it is a pointwise infimum of affine functions of .
Theorem 14 (Weak Duality).
For any and any , (WEAK Duality) That is, the dual function provides a lower bound on the optimal primal value.
Proof.
Let be any feasible point: and . Since and , every term . Therefore Taking the infimum over all : . Since this holds for every feasible , we obtain .
Definition 15 (Duality Gap).
The Lagrange dual problem is . The duality gap is .
Definition 16 (Strong Duality).
Strong duality holds when the duality gap is zero: . Strong duality does not hold in general, but it does hold under mild regularity conditions for convex problems.
The fundamental question is: when does strong duality hold? The most widely used sufficient condition for convex problems is Slater's condition.
Definition 17 (Slater's Condition).
For a convex problem (where are convex and are affine), Slater's condition holds if there exists a point such that Such a point is called strictly feasible. When some of the inequality constraints are affine, the strict inequality is only required for the nonaffine constraints; the affine ones need only satisfy .
Theorem 15 (Slater's Theorem).
Proof outline.
Define the set and let . By convexity of the problem, is a convex set. The set is convex (a ray), and (no feasible point achieves an objective value strictly below ).
By the separating hyperplane theorem, there exist with and such that for all and all . Slater's condition ensures that : if , the strictly feasible point leads to a contradiction because the -coordinates can be made strictly negative while staying in . Normalising by (setting ) yields the Lagrange multipliers for which .
Example 8 (Least Squares with Equality Constraints).
Consider subject to . The Lagrangian is . Setting gives , so . Substituting back into the constraint yields a linear system for . The combined primal-dual system is the familiar KKT system: Since the problem is convex and the constraints are affine, Slater's condition reduces to feasibility: any with suffices.
Example 9 (Linear Program Duality).
The linear program subject to , has Lagrangian with . The dual function is Maximising over (which is absorbed by the constraint ), the dual LP is: subject to . Strong duality always holds for LPs whenever the primal is feasible; Slater's condition is not needed because all constraints are affine.
Theorem 16 (Inf-Sup Swap).
Proof.
Left side equals . For a fixed , consider the inner supremum over . If violates any inequality constraint , setting makes the supremum . If violates any equality constraint , sending likewise gives . If is feasible, the optimal choice is (since when and ), yielding (the terms vanish). Therefore Taking the infimum over gives .
Right side equals . The inner infimum by definition. The outer supremum is .
Conclusion. Strong duality gives , completing the proof.
Key Idea.
The KantorovichโRubinstein duality for the Wasserstein-1 distance is a direct application of this machinery. The primal problem is: minimise over couplings with marginals and . This is a linear program (linear objective, affine marginal constraints). Slater's condition holds trivially: the product measure is strictly feasible. Strong duality then swaps and , yielding the dual: which is precisely what the WGAN critic network optimises.
KKT Conditions
The KarushโKuhnโTucker (KKT) conditions are the most important optimality conditions in constrained optimisation. For convex problems with strong duality, they provide necessary and sufficient conditions for a point to be optimal. In machine learning, KKT conditions characterise the optimal solutions of support vector machines, constrained optimisation in normalising flows, and optimal transport problems.
Theorem 17 (KKT Conditions).
Consider a convex problem with all functions differentiable. If strong duality holds, then is primal optimal and is dual optimal if and only if the following four conditions hold simultaneously:
Primal feasibility:; for all ;; for all .
Dual feasibility:; for all .
Complementary slackness:; for all .
Stationarity:; .
Proof.
Sufficiency (for convex problems). Suppose the four conditions hold and the problem is convex. Because all are convex, is convex in . Stationarity (iv) says that , so minimises . Therefore where the penultimate step uses complementary slackness (iii) and primal feasibility (i). Hence . Combined with weak duality , we conclude , so is primal optimal and is dual optimal.
Necessity (under strong duality). Suppose is primal optimal and is dual optimal with . Dual feasibility (ii) is part of the dual constraints. Primal feasibility (i) holds by assumption. We have Since and , each term . The inequality above forces the sum to be zero, which requires every term to vanish: for all (complementary slackness). Additionally, the inequality must hold with equality, so is a minimiser of . Since is differentiable, this gives (stationarity).
Remark 3 (Complementary Slackness Interpretation).
The condition has a clean interpretation. For each inequality constraint, exactly one of two situations occurs:
The constraint is inactive: , meaning the constraint is slack. Then , so the constraint does not affect the optimal solution.
The constraint is active: , meaning the constraint is tight. Then may be positive, reflecting the โpriceโ of tightening the constraint.
In economic terms, is the shadow price: it measures how much the optimal objective would improve if the -th constraint were relaxed by an infinitesimal amount.
Example 10 (Water-Filling Power Allocation).
Consider the power allocation problem: distribute a total power budget across channels to maximise total capacity. In convex-minimisation form: where is the noise level in channel . The KKT stationarity condition with multiplier for the equality constraint and for gives If , then and . If , then . The resulting water-filling solution is (Water Filling) where is chosen so that . The name โwater-fillingโ comes from imagining the as the bottoms of containers of varying depth: pouring water (power) fills from the shallowest container first, with the water level uniform across all active channels.
Historical Note.
William Karush derived these optimality conditions in his 1939 master's thesis at the University of Chicago, but the work went largely unnoticed. Harold Kuhn and Albert Tucker independently rediscovered them in 1951, publishing the result in the proceedings of the Second Berkeley Symposium. For decades the conditions were known as the โKuhnโTucker conditionsโ until Karush's priority was recognised in the 1970s through the efforts of historians of optimisation. This is one of many examples in mathematics where graduate student work was overshadowed by more established researchers, a pattern that, happily, the modern culture of open preprints and arxiv has done much to correct.
Minimax Problems and Saddle Points
Generative adversarial networks are fundamentally minimax problems: the generator minimises while the discriminator maximises the same objective. Understanding when , and when saddle points exist, is therefore directly relevant to understanding when and why GANs converge. This section develops the classical theory of minimax problems and saddle points, beginning with the definition of a saddle point and culminating in the Von Neumann minimax theorem and its implications for adversarial training.
Definition 18 (Saddle Point).
Let , , and let . A pair is a saddle point of if (Saddle DEF) Equivalently, minimises over and maximises over . Geometrically, the graph of curves upward in the -direction and downward in the -direction at the saddle point, resembling a horse saddle.
Theorem 18 (Minimax Inequality).
For any function , (Minimax INEQ) The left-hand side is called the maximin value and the right-hand side the minimax value. The inequality states that the best guaranteed payoff for the maximiser (who moves first) is at most the worst-case cost for the minimiser (who moves first).
Proof.
Fix an arbitrary . For every we have The left inequality holds because the infimum is a lower bound, and the right inequality holds because the supremum is an upper bound. Since the rightmost expression does not depend on , we take the infimum over on the right: Since this holds for every , we may take the supremum over on the left to obtain the desired inequality.
Theorem 19 (Saddle Point Implies Minimax Equality).
If is a saddle point of , then the minimax value equals the maximin value and both equal : (Saddle Minimax)
Proof.
Since maximises , we have . Bounding the outer minimisation by its value at , Similarly, since minimises , we have . Bounding the outer maximisation by its value at , Combining these two bounds with the minimax inequality (Theorem 18), so all three quantities are equal.
Theorem 20 (Von Neumann Minimax Theorem).
Let and be compact convex sets, and let be continuous such that
is convex for each fixed , and
is concave for each fixed .
Then: (VON Neumann) and a saddle point exists.
Proof.
We give a sketch that highlights the key ideas. Define . Since is concave and is compact, the maximum is attained for every . Moreover, is convex: for any and , using the convexity of in . Since is continuous and convex on the compact set , it attains its minimum at some . Similarly, define , which is concave and attains its maximum at some .
By the minimax inequality (Theorem 18), . The convex-concave structure of can be used, via a separating hyperplane argument on the epigraphs, to show that as well. It follows that is a saddle point, and the minimax and maximin values coincide.
Definition 19 (Nash Equilibrium).
In a two-player zero-sum game with payoff , a Nash equilibrium is a pair such that no player can improve their payoff by unilaterally changing their strategy: For zero-sum games, Nash equilibria coincide exactly with saddle points.
Key Idea.
The original GAN solves where is concave in (a sum of logarithms of and ) but highly non-convex in (since is parameterised by a deep neural network). The Von Neumann minimax theorem does not apply, which is precisely why GAN training is unstable. The minimax inequality may be strict: the โgenerator-firstโ game and the โdiscriminator-firstโ game can have different values.
WGANs, spectral normalisation, and gradient penalties are all designed to bring the GAN objective closer to the convex-concave setting where minimax theory guarantees convergence. When the GAN objective is re-parameterised in distribution space (rather than parameter space), the optimal discriminator yields an objective that is convex in the generator's distribution , partially recovering the conditions of the Von Neumann theorem.
Example 11 (Bilinear Saddle Point).
Consider on compact convex sets and , where . For fixed , is linear (hence convex) in ; for fixed , is linear (hence concave) in . The Von Neumann theorem applies, and a saddle point exists.
This bilinear game is the simplest model of a GAN-like adversarial problem. When and are simplices (probability vectors), the game becomes a matrix game, and the saddle-point strategies are mixed Nash equilibria. Gradient descent-ascent on bilinear objectives oscillates without converging, which foreshadows the training instabilities observed in GANs.
Historical Note.
John von Neumann proved his minimax theorem in 1928 as part of his foundational work on game theory, which he later expanded with Oskar Morgenstern in their 1944 book Theory of Games and Economic Behavior. Maurice Sion generalised the theorem to quasi-convex/quasi-concave functions in 1958, weakening the linearity assumptions considerably. The connection to generative modelling was made explicit by Goodfellow et al. (2014), who showed that the optimal discriminator yields a convex-in- objective when viewed in distribution space, partially recovering the minimax setting.
Bregman Divergences
Bregman divergences generalise the notion of โdistanceโ beyond Euclidean distance, using a convex function to define a measure of dissimilarity. They arise naturally in information geometry, entropic optimal transport, and mirror descent algorithms. In generative modelling, the Sinkhorn algorithm for optimal transport is elegantly understood as alternating Bregman projections, and the KL divergence, the central quantity in variational inference, is itself a Bregman divergence.
Definition 20 (Bregman Divergence).
Let be a strictly convex, differentiable function. The Bregman divergence associated with is (Bregman DEF) Intuitively, measures the gap between and its first-order Taylor approximation centred at , evaluated at .
Theorem 21 (Non-Negativity).
for all , with equality if and only if .
Proof.
By the first-order condition for strict convexity of : Rearranging gives when . When , we have trivially.
Remark 4 (Bregman Divergence Is Not a Metric).
Despite its name, is not a metric in general. It is typically asymmetric () and does not satisfy the triangle inequality. The term โdivergenceโ is used deliberately to distinguish it from a true distance. The asymmetry is not a defect but a feature: it allows Bregman divergences to encode directional information about the curvature of .
Example 12 (Squared Euclidean Distance).
Let . Then and This is the unique Bregman divergence that is symmetric and satisfies the triangle inequality. It is both a Bregman divergence and a squared metric.
Example 13 (KL Divergence).
Let (the negative entropy) defined on the probability simplex. Then and This reveals that the KL divergence is a Bregman divergence, which immediately explains its asymmetry: in general.
Example 14 (ItakuraโSaito Distance).
Let on . Then This divergence is scale-invariant and appears in audio signal processing, where it measures spectral distortion between power spectra.
Definition 21 (Bregman Projection).
The Bregman projection of a point onto a closed convex set with respect to is (Bregman PROJ) When , this reduces to the standard Euclidean projection .
Key Idea.
The Sinkhorn algorithm for entropic optimal transport can be understood as alternating Bregman projections with equal to the negative entropy, giving KL divergence as the Bregman divergence. The two constraint sets are:
(row marginals match ), and
(column marginals match ).
Each Sinkhorn iteration projects onto one constraint, then the other, by rescaling the rows and columns of the coupling matrix. The theory of alternating Bregman projections guarantees convergence to the unique point in that minimises the KL divergence from the initial coupling, which is precisely the entropy-regularised optimal transport plan.
Proximal Operators
Proximal operators provide a principled way to handle non-smooth terms in optimisation by combining a gradient-like step with a regularisation penalty. They are the building blocks of modern first-order methods for composite optimisation problems of the form , where is smooth and may be non-differentiable.
Definition 22 (Proximal Operator).
For a closed, proper, convex function , the proximal operator of is the mapping defined by (PROX DEF) The minimiser always exists and is unique because the objective is the sum of a convex function and a strictly convex quadratic, making it strongly convex. Intuitively, finds the point that balances being close to (the quadratic term) with having small -value (the penalty term).
Theorem 22 (Proximal Operator is Firmly Non-Expansive).
For any closed convex , the proximal operator satisfies: (PROX FIRM) for all . In particular, (non-expansiveness).
Proof.
Let and . By the optimality condition for (PROX DEF), we have and . By the monotonicity of the subdifferential of a convex function (if and , then ), we obtain: Expanding gives , which rearranges to the stated inequality. The non-expansiveness follows by applying the CauchyโSchwarz inequality to the right-hand side.
Example 15 (Proximal of Norm: Soft-Thresholding).
For with , the proximal operator acts component-wise via soft-thresholding: (SOFT Threshold) This operator shrinks each component of towards zero by , setting small components exactly to zero. It is the key step in LASSO regression and compressed sensing for promoting sparsity.
Example 16 (Proximal of Indicator Function: Projection).
For the indicator function of a closed convex set (i.e., if and otherwise), the proximal operator reduces to the Euclidean projection: This shows that projection is a special case of the proximal operator, and all results for proximal operators (such as non-expansiveness) immediately apply to projections.
Theorem 23 (Moreau Decomposition).
For any closed proper convex function and any : (Moreau) where is the Fenchel conjugate of . This decomposes every vector into a โprimalโ component and a โdualโ component .
Remark 5 (Interpretation of the Moreau Decomposition).
When is the indicator of a closed convex set , we have and , which is the residual after projection. The conjugate is the support function of , and its proximal operator extracts the component of that โpoints awayโ from . The decomposition is the familiar orthogonal decomposition in the Euclidean case.
Remark 6 (Proximal Gradient Methods).
For problems of the form , where is smooth with Lipschitz-continuous gradient and is convex but possibly non-smooth with an inexpensive proximal operator, the proximal gradient method iterates: (PROX GRAD) where is the step size. Each iteration alternates a gradient step on with a proximal step on . With step size (where is the Lipschitz constant of ), the method achieves an convergence rate. Accelerated variants such as FISTA (Fast Iterative Shrinkage-Thresholding Algorithm) achieve the optimal rate among first-order methods.
In generative modelling, the denoising step in DDPM can be interpreted as a proximal-like operation: given a noisy observation, the learned denoiser finds the closest clean signal under the learned prior, balancing data fidelity (proximity to the noisy input) with prior plausibility (the regularisation term).
Exercises
Convex Sets and Functions ( B.1โB.2)
Exercise 1 (Intersection of Convex Sets).
Let be an arbitrary family of convex subsets of . Prove that the intersection is convex. Give an example showing that the union of two convex sets need not be convex.
Exercise 2 (Convexity Preserved Under Affine Composition).
Let be convex and let be affine, i.e., for some matrix and vector . Prove that is convex.
Hint: Use the definition of convexity directly and the affinity of .
Exercise 3 (Jensen's Inequality).
Let be convex and let be a random variable with finite and . Prove that (Jensen EX) Hint: By the supporting hyperplane characterisation of convexity, for any there exists a subgradient such that for all . Choose and take expectations.
Subgradients ( B.3)
Exercise 4 (Subdifferential of the Max Function).
Let for . At a point where exactly coordinates achieve the maximum (i.e., ), show that the subdifferential is where denotes the -th standard basis vector.
Exercise 5 (Subdifferential of the Euclidean Norm).
Let for . Show that:
For : (a singleton).
At : (the closed unit ball).
Conjugate Functions ( B.5)
Exercise 6 (Conjugate of the Euclidean Norm).
Prove that the Fenchel conjugate of is the indicator function of the unit ball: Hint: Compute by considering the CauchyโSchwarz inequality and analysing the cases and separately.
Exercise 7 (Conjugate of Log-Sum-Exp).
Consider the log-sum-exp function . Compute its conjugate and show that where is the probability simplex. This shows that the conjugate of log-sum-exp is the negative entropy restricted to the simplex.
Hint: Differentiate with respect to and use the fact that the softmax function arises as the gradient of log-sum-exp.
Exercise 8 (Conjugate of a Quadratic).
Let where (positive definite).
Compute and show that .
Verify the biconjugate identity: .
Duality and KKT Conditions ( B.6โB.7)
Exercise 9 (Dual of a Standard-Form Linear Program).
Consider the LP in standard form: Write the Lagrangian, compute the dual function, and show that the dual problem is: Note: Equivalently, with the sign convention , the dual becomes subject to .
Exercise 10 (Slater's Condition for Optimal Transport).
The Kantorovich primal problem for Wasserstein-1 distance is where is the set of couplings with marginals and . This is a linear program over the convex set .
Verify that the product coupling belongs to , and explain why Slater's condition is automatically satisfied for this LP (since all constraints are affine). Conclude that strong duality holds.
Exercise 11 (KKT Conditions for Constrained Least Norm).
Consider the optimisation problem: where has full row rank and .
Write the Lagrangian and derive the KKT conditions.
Show that the KKT conditions yield the closed-form solution .
Verify that is the minimum-norm solution of (the MooreโPenrose pseudoinverse solution).
Minimax Problems ( B.8)
Exercise 12 (Proving the Minimax Inequality).
Let be an arbitrary function. Prove directly from the definitions of supremum and infimum that Give a concrete example where the inequality is strict. Relate this to the observation that the โgenerator-firstโ and โdiscriminator-firstโ GAN objectives can differ.
Exercise 13 (Bilinear Saddle Point on a Square).
Consider the function on .
Find all saddle points of .
Compute and .
Verify that and that the common value equals evaluated at any saddle point.
Bregman Divergences and Proximal Operators ( B.9โB.10)
Exercise 14 (KL Divergence as a Bregman Divergence).
Show that the KL divergence is a Bregman divergence by identifying the generating function . Specifically:
Let (negative entropy). Compute .
Substitute into the Bregman divergence formula and simplify to obtain .
Explain why the fact that KL is a Bregman divergence immediately implies it is non-negative (Gibbs' inequality) and asymmetric.
Exercise 15 (Proximal Operator of the Norm).
For with , compute the proximal operator from the definition:
Show that the problem separates into independent scalar problems.
For each scalar problem , analyse the subdifferential optimality condition to derive
Sketch the function and verify that it is a continuous, piecewise linear, non-expansive mapping.