SECTION 03 / 8

Convex conjugates: definition, optimization and geometry

2 min read
On this page 2 headings
Figure 33. Quadratic conjugate optimization.
Figure 33. Quadratic conjugate optimization.
Open image ↗
Illustration: Convex conjugates: definition, optimization and geometry

For a function f, its convex conjugate is

f∗(t)=sup⁡u{tu−f(u)}f^*(t)=\sup_{u}\{tu-f(u)\}

with the supremum taken over the domain of f. We fix t, vary u, and take the largest possible objective value. The conjugate is a new function of t. It is convex, even when f is not convex.

Conjugate of a quadratic

Figure 35. Quadratic conjugate solution.
Figure 35. Quadratic conjugate solution.
Open image ↗
Illustration: Convex conjugates: definition, optimization and geometry
  1. Start with

    f(u)=u22f(u)=\frac{u^2}{2}

    for all real u. Then

    f∗(t)=sup⁡u(tu−u22)f^*(t)=\sup_u\left(tu-\frac{u^2}{2}\right)
  2. Differentiate with respect to u:

    ddu(tu−u22)=t−u\frac{d}{du}\left(tu-\frac{u^2}{2}\right)=t-u

    The stationary point is u=tu=t.

  3. The second derivative is −1-1, so this is the unique maximum.

  4. Substitute u=tu=t:

    f∗(t)=t2−t22=t22f^*(t)=t^2-\frac{t^2}{2}=\frac{t^2}{2}
  5. For t=2t=2, the maximizing input is u=2u=2 and the maximum value is

    f∗(2)=2f^*(2)=2

Geometric interpretation: for convex differentiable f, a supporting line of slope t has the form

y=tu−f∗(t)y=tu-f^*(t)

when the supremum is attained. Its vertical intercept is −f∗(t)-f^*(t).

Figure 34. Supporting tangent geometry.
Figure 34. Supporting tangent geometry.
Open image ↗
Illustration: Convex conjugates: definition, optimization and geometry

The conjugate used for KL divergence

Figure 36. KL convex conjugate.
Figure 36. KL convex conjugate.
Open image ↗
Illustration: Convex conjugates: definition, optimization and geometry
  1. Use

    f(u)=uln⁡uf(u)=u\ln u

    for u>0u>0, extended continuously by

    f(0)=0f(0)=0

    the optimization domain is u≥0u\geq0.

  2. Form tu−uln⁡utu-u\ln u. Its derivative for u>0u>0 is t−(ln⁡u+1)t-(\ln u+1).

  3. Set it to zero:

    ln⁡u=t−1\ln u=t-1

    hence u=et−1u=e^{t-1}.

  4. The objective is strictly concave on u>0u>0 (second derivative −1u-\frac1u).

  5. Substitution gives

    f∗(t)=et−1f^*(t)=e^{t-1}

Note the distinction between

f(u)=uln⁡uf(u)=u\ln u

used in the KL f-divergence, and

f∗(t)=et−1f^*(t)=e^{t-1}

its convex conjugate. They are different functions.

YOUR STUDY PROGRESS

Finished this section? Save your progress.

Back to top ↑