44.02.03 · optimization-control / 02-convex-duality-kkt

Fenchel Duality and the Conjugate as a Modeling Tool

shipped3 tiersLean: none

Anchor (Master): Rockafellar 1970 Convex Analysis (Princeton) §31, §16, §12; Boyd & Vandenberghe 2004 Convex Optimization (Cambridge) §5; Bauschke & Combettes 2017 Convex Analysis and Monotone Operator Theory in Hilbert Spaces 2nd ed. (Springer) Ch. 15, §13.3

Intuition Beginner

Many practical problems are really two cost pieces glued together. You want a model that fits your data, and you also want that model to stay simple. Fitting is one cost; complexity is another. The total job is to make the sum small. Curve-fitting with a smoothness penalty, signal recovery with a sparsity penalty, portfolio choice with a risk penalty — all share this shape: minimize one piece plus a second piece.

Fenchel duality is a way to take such a glued-together problem apart cleanly. Each piece has a mirror-image description called its conjugate, which records the same information in the language of slopes rather than positions. When you rewrite each piece through its conjugate and recombine, the original minimization turns into a different maximization — its dual. The two problems share one answer, so you may solve whichever is easier.

Why is this so useful for building models? Because the conjugate dictionary is small and reusable. A handful of conjugate pairs — a squared term, an absolute-value term, a "stay inside this set" rule, a "biggest stretch in a direction" measure — combine by a few fixed rules. Once you know the pieces and the rules, you can assemble a convex model the way you snap together blocks, and read off its dual for free.

Here is the everyday picture. Two factories each make part of a product, and you want the cheapest combined output. Instead of negotiating the whole bundle at once, you post a price per unit of the shared resource. Each factory responds to that price on its own, and you tune the price until the two responses agree. The conjugate is exactly "the best each piece can do at a given price," and the dual problem is the search for the price that makes the pieces fit together.

Visual Beginner

Figure: on the left, two cost curves and are stacked and their sum is minimized at a single bottom point; on the right, the same data viewed through conjugates, where the dual reads off the best price. A linear "price line" of slope slides up until it just touches both pieces from below at a common slope; the height where it meets the axis is the dual value, and at the matching price the two pieces share a tangent.

   primal: minimize f(x) + g(x)         dual: choose a price y

   cost                                   each piece answers the price:
    |   f \        / g                    f gives  -f*(y)
    |     \      /                         g gives  -g*(-y)
    |      \    /                          add them: dual value at price y
    |  sum  \  /  <- min of the sum
    |        \/                            slide the price line up until
  --+---------+----------- x               it supports both pieces:
    |        x*                            best price y*  ->  dual optimum
    |
   primal optimum p* = dual optimum d*   (they agree: Fenchel duality)

Worked example Beginner

Fit a single number to a measurement, but keep small. Minimize the sum of a fit cost and a size cost:

The honest answer is plain: add the two pieces, , whose smallest value sits where the slope is zero, at , giving total cost . We now recover from the price (dual) side.

Step 1. Write each conjugate. The mirror of is , and the mirror of is . (Each is found by tilting the piece by a line of slope and reading the top; the squared term keeps a squared mirror.)

Step 2. Form the dual value at a price. The dual posts one price to the first piece and the opposite price to the second, then sums the best responses:

Step 3. Pick the best price. Maximize . Its slope is , zero at , where .

What this tells us. The best dual value is , exactly the primal minimum, and the matching price is — which is the shared slope of the two pieces at (since and ). The price that closes the problem is the common tangent slope.

Check your understanding Beginner

Formal definition Intermediate+

Throughout, and are proper closed convex functions, is linear, and the conjugate is the Legendre-Fenchel transform of 37.07.03. The pairing is the standard inner product and the adjoint.

Definition (Fenchel primal and dual problems). The Fenchel primal problem is the composite minimization

and the Fenchel dual problem is

The dual is itself a convex program: are closed convex (conjugates always are, by 37.07.03), so the objective is concave in .

Definition (support function). For a nonempty set , the support function is . The indicator takes the value on and off . Conjugation pairs them: , and for closed convex , [Rockafellar §13].

Definition (dual norm). For a norm on , the dual norm is . The conjugate of a norm is the indicator of the dual unit ball, — zero when , otherwise.

Definition (infimal convolution). The infimal convolution of is

It is the largest convex function whose epigraph is the (Minkowski) sum . The exact-at-the-end identity is conjugate duality of the two binary operations, sum and infimal convolution: , and dually under a qualification, established in the Key theorem.

Counterexamples to common slips

  • Fenchel duality without a constraint qualification can have a positive gap. Take , , with closed convex whose domains meet only at a single boundary point (for instance and extended suitably). Then and the values can split. Weak duality survives unconditionally; only equality needs the qualification.
  • The conjugate-of-a-sum identity needs domain overlap. holds with attainment only when . Without it the infimal convolution may fail to be attained or fail to be closed, and one must pass to its lsc closure.
  • A norm is not its own conjugate. Unlike , which is self-conjugate, the conjugate of is not a norm but the indicator of the dual unit ball. The squared norm scales the conjugate; the bare norm produces a hard constraint. Confusing the two collapses the dual of a LASSO-type problem.

Key theorem with proof Intermediate+

The hinge is Fenchel's duality theorem: it equates the composite primal with the conjugate-pair dual under a relative-interior qualification, and the engine is the Legendre-Fenchel machinery of 37.07.03 together with the separation theorem standing behind it.

Theorem (Fenchel duality). Let and be proper closed convex, and .

(i) (Weak duality.) For every and , ; hence .

(ii) (Strong duality.) If the qualification

holds and is finite, then and the dual supremum is attained at some .

Proof of (i). Fix . The Fenchel-Young inequality of 37.07.03 applied to at the pair gives . Applied to at it gives . Adding the two,

which rearranges to . Taking the supremum over on the left and the infimum over on the right yields .

Proof of (ii). Embed the problem in the perturbation framework. Define the value function

so . Under the convexity of and linearity of , the function is jointly convex, and is its partial infimum over , hence convex (a partial infimum of a jointly convex function is convex, by the projection-of-a-convex-set calculus of 44.01.01). The qualification places in : indeed , and the relative-interior point gives . A finite convex function with in the relative interior of its domain is subdifferentiable there: (Rockafellar's subdifferentiability theorem, the relative-interior case of 44.02.05). Pick . By the Fenchel-Young equality of 37.07.03, means , i.e. .

It remains to identify with the dual objective. Compute the conjugate of directly:

Substitute , so and :

Therefore . Combined with weak duality from (i), all are equal and attains the dual.

Bridge. This theorem builds toward the proximal and splitting algorithms of chapter 06 and appears again in every regularized estimator whose penalty is handled on the dual side. This is exactly the Lagrangian strong duality of 44.02.01 re-expressed through the conjugate: introduce a splitting variable , attach a multiplier to the equality , and the Lagrangian dual function becomes , so Fenchel duality is dual to Lagrangian duality term-by-term and generalises the price picture of 44.02.01 to the conjugate-pairing form. The foundational reason the gap closes is that the value function is subdifferentiable at precisely when , the relative-interior qualification, which is the conjugate-duality reading of Slater's condition. Putting these together, the multiplier is simultaneously the optimal dual price, the shared subgradient linking the two pieces through the conjugacy inversion of 44.02.05, and the marginal sensitivity of to perturbing the coupling.

Exercises Intermediate+

Advanced results Master

Conjugate calculus as a modeling algebra

The operational power of Fenchel duality rests on a closed set of rules that compute conjugates of composite functions, turning model assembly into symbolic manipulation [Boyd & Vandenberghe §3.3]. Separability conjugates coordinatewise: . Scaling and affine precomposition obey for and when is invertible, with a partial-inverse statement otherwise. The two binary operations sum and infimal convolution are exchanged by conjugation, unconditionally and under [Rockafellar §16]. The Moreau envelope is the canonical smoothing: its conjugate is , a strongly convex regularization on the dual side, and its gradient is , the bridge to proximal algorithms. These rules, applied recursively, let one read off the dual of any tree of convex pieces glued by sums and linear maps.

The Rockafellar conjugate-duality framework

Rockafellar's Convex Analysis §31 subsumes Lagrangian, Fenchel, and conic duality into a single perturbational scheme [Rockafellar §31]. One starts from a bivariate convex function — the objective embedded in a family of perturbations indexed by — and forms the value function and the Lagrangian-type function , the partial conjugate in . The primal value is and the dual value is , where conjugates in both arguments. Weak duality is the generic max-min inequality; strong duality with dual attainment is being closed and subdifferentiable at , equivalently and . Specializing gives Fenchel duality; gives Lagrangian duality; the cone-perturbation gives conic duality. The duality gap is in every case the discrepancy between the value function and its closed convex hull at the origin, and the constraint qualification is uniformly .

Fenchel-Rockafellar duality and the role of attainment

The sharp statement separates no gap from dual attainment. If are proper closed convex and (or the symmetric relative-interior condition), then with the dual supremum attained [Bauschke & Combettes Ch. 15]. The qualification controls attainment, not merely the absence of a gap: there exist closed convex with finite but the dual sup unattained, the analogue of a recession-direction failure. In the polyhedral special case — polyhedral convex — strong duality and attainment hold with no relative-interior hypothesis, the conjugate-duality face of the unconditional polyhedral strong duality that Farkas-type theorems of the alternative supply, because polyhedral epigraphs are closed under linear images.

Self-duality of the squared norm and the Moreau decomposition

The quadratic is the unique self-conjugate function, , and this fixed-point status makes it the canonical regularizer. Its consequence is the Moreau identity: for any proper closed convex and any , , decomposing every point into a primal-proximal and a dual-proximal part. The identity is the proximal shadow of the conjugacy inversion of 44.02.05: the proximal map is the resolvent , and inverting the subdifferential through conjugation inverts the resolvent through Moreau. This is why dual and primal-dual splitting methods can apply a proximal step to a function only through its conjugate, and the conjugate calculus above is precisely what makes those conjugate proximal steps computable.

Synthesis. The conjugate is exactly the change of coordinates from positions to prices, and the central insight of this unit is that Fenchel duality is one perturbational scheme of which Lagrangian duality is a sibling specialization, not a separate theorem. This is exactly the strong duality of 44.02.01 read through the conjugate: the splitting multiplier on produces the conjugate-pair dual, so Fenchel duality is dual to Lagrangian duality term-by-term and both generalise to the Rockafellar bivariate framework where the gap is the value function's failure of closure at . The foundational reason the gap vanishes is subdifferentiability of at the origin, the relative-interior qualification that generalises Slater. Putting these together, the conjugate calculus — separability, the sum/infimal-convolution exchange, the support function and dual norm, the self-dual quadratic — is a modeling algebra: each convex penalty contributes a conjugate, each linear coupling an adjoint, and the dual assembles mechanically; the bridge is the perturbation function , the single convex object through which Fenchel, Lagrangian, and conic duality, the conjugacy inversion of 44.02.05, and the proximal machinery of chapter 06 become one theory, and it appears again in the large-deviations conjugacy of 37.07.03 where the same algebra combines rate functions.

Full proof set Master

Proposition 1 (conjugate of a sum / infimal-convolution exchange). Let be proper closed convex with . Then , and the infimal convolution on the right is exact (attained) and closed.

Proof. The direction for any proper functions is Exercise 4. Apply it to the pair : since are closed convex, by Fenchel-Moreau 37.07.03, so . Conjugating both sides and using that has a closed convex hull whose conjugate is gives . The relative-interior qualification upgrades closure to exactness: by the subdifferential sum rule of 44.02.05, which holds under exactly this qualification, for each the infimum defining is attained at a with and realizing a common subgradient, so no closure operation is needed and pointwise with attainment.

Proposition 2 (Fenchel duality, gap and attainment). For proper closed convex and linear , weak duality is unconditional; if with and finite, then with dual attainment.

Proof. Weak duality is part (i) of the Key theorem, a direct sum of two Fenchel-Young inequalities. For strong duality, the perturbation function is convex with ; the qualification places . A proper convex function finite on a neighborhood-in-its-affine-hull of is subdifferentiable there (44.02.05), so ; pick . Fenchel-Young equality 37.07.03 gives . The computation in the Key theorem identifies , whence , equality throughout with attaining the dual.

Proposition 3 (support function and dual-norm conjugacy). For nonempty closed convex , and ; for a norm with dual norm , where , and .

Proof. by definition of the indicator. Since is closed convex (a supremum of linear functions) and is closed convex, biconjugation 37.07.03 gives . For the norm, Exercise 1 computes ; conjugating again and using biconjugation, because a norm is closed convex. The pair is thus a conjugate pair, the mechanism by which an penalty in a primal becomes an constraint in the dual.

Proposition 4 (log-sum-exp / negative-entropy conjugacy). Let . Then on the simplex and off it; the pair is mutually conjugate, .

Proof. is convex (its Hessian is the covariance matrix of the softmax distribution, positive semidefinite) and finite everywhere, hence closed. Exercise 6 computes : stationarity of forces into the relative interior of with , the additive constant canceling, giving ; off the supremum diverges via a coordinate sent to (for ) or a uniform shift (for ), so there. Since is closed convex, Fenchel-Moreau 37.07.03 gives ; conjugating the negative entropy on the simplex returns log-sum-exp. This pair is the convex-duality core of the exponential family and of the entropy-regularized linear programs that underlie softmax models.

Connections Master

  • Lagrangian duality and Slater's condition 44.02.01 is the sibling specialization: introducing a splitting variable and a multiplier on turns the Lagrangian dual function into , so Fenchel duality is Lagrangian duality re-expressed through conjugates, and Slater's interior-point condition becomes the relative-interior qualification on the perturbation function. Exercise 8 recovers the constrained Lagrangian dual from a Fenchel dual by encoding the constraint cone in .

  • The Legendre-Fenchel transform 37.07.03 is the immediate analytic engine: the conjugate, the Fenchel-Young inequality, and the Fenchel-Moreau biconjugation theorem proved there are what make the dual objective well-defined and what close the gap, and the conjugate calculus of this unit (dual norms, support functions, infimal convolution) is the same algebra that combines large-deviations rate functions in the probabilistic setting.

  • Subdifferential calculus 44.02.05 supplies the optimality and recovery layer: the conjugacy inversion links the optimal primal and dual variables through a shared subgradient, the Moreau-Rockafellar sum rule under the relative-interior qualification is exactly the condition making the conjugate-of-a-sum identity exact, and subdifferentiability of the value function at is what produces the attained dual multiplier .

  • The convex-operation calculus and supporting-hyperplane structure of 44.01.01 underlies the perturbation function's convexity: is convex because it is a partial infimum of a jointly convex function, and the relative-interior and recession-cone facts that govern when the infimum is attained and the gap closes are the convex-set apparatus assembled there.

Historical & philosophical context Master

The conjugate of a convex function originates with Werner Fenchel, whose 1949 paper On conjugate convex functions (Canadian Journal of Mathematics 1, 73-77) introduced the supremum-defined transform; the duality theorem for that now bears his name appeared in his 1951 Princeton lecture notes Convex Cones, Sets, and Functions [Fenchel 1953], where he paired the conjugates of two convex functions and proved their values meet under a separation hypothesis. Fenchel's formulation was geometric, framed through the supporting hyperplanes of the two epigraphs, and he isolated the qualification — that the functions' domains overlap in a relative-interior sense — needed to exclude a gap.

The synthesis of Fenchel's duality with Lagrange's multiplier method is due to R. Tyrrell Rockafellar, whose Convex Analysis [Rockafellar §31] (Princeton, 1970) introduced the bivariate perturbation function and showed that Fenchel duality, Lagrangian duality, and conic duality are specializations of a single conjugate-duality scheme in which the gap is the value function's failure of lower-semicontinuity at the origin. Jean-Jacques Moreau, working in parallel in the early 1960s, contributed the infimal convolution, the Moreau envelope, and the proximal decomposition that connect conjugacy to the algorithms; Bauschke and Combettes later codified the Hilbert-space form and the attainment-versus-gap distinction. Boyd and Vandenberghe brought the conjugate calculus into engineering practice, where the conjugate dictionary became the standard device for deriving the duals of regularized estimation problems.

Bibliography Master

@book{boyd2004convex,
  author    = {Boyd, Stephen and Vandenberghe, Lieven},
  title     = {Convex Optimization},
  publisher = {Cambridge University Press},
  year      = {2004}
}

@book{rockafellar1970convex,
  author    = {Rockafellar, R. Tyrrell},
  title     = {Convex Analysis},
  series    = {Princeton Mathematical Series},
  number    = {28},
  publisher = {Princeton University Press},
  year      = {1970}
}

@article{fenchel1949conjugate,
  author  = {Fenchel, Werner},
  title   = {On conjugate convex functions},
  journal = {Canadian Journal of Mathematics},
  volume  = {1},
  pages   = {73--77},
  year    = {1949}
}

@misc{fenchel1953convex,
  author       = {Fenchel, Werner},
  title        = {Convex Cones, Sets, and Functions},
  note         = {Lecture notes, Department of Mathematics, Princeton University},
  year         = {1953}
}

@book{bauschke2017convex,
  author    = {Bauschke, Heinz H. and Combettes, Patrick L.},
  title     = {Convex Analysis and Monotone Operator Theory in Hilbert Spaces},
  edition   = {2nd},
  series    = {CMS Books in Mathematics},
  publisher = {Springer},
  year      = {2017}
}

@article{moreau1965proximite,
  author  = {Moreau, Jean-Jacques},
  title   = {Proximit\'e et dualit\'e dans un espace hilbertien},
  journal = {Bulletin de la Soci\'et\'e Math\'ematique de France},
  volume  = {93},
  pages   = {273--299},
  year    = {1965}
}