Tutorials › Statistical Learning (Graduate) › Exp-Concavity and Mixability of Prediction Losses

Exponential Weights and Convex Aggregation · Tutorial 328 of 989

Exp-Concavity and Mixability of Prediction Losses

Learn to test exp-concavity through curvature, obtain a mixability guarantee, and see why mixability can hold even when exp-concavity fails.

Advanced 11 min read

What You'll Learn

  • Define exp-concavity and mixability for losses on a convex prediction domain.
  • Derive the Hessian criterion for exp-concavity on a full-dimensional domain.
  • Adapt the curvature criterion to a lower-dimensional prediction domain.
  • Prove that exp-concavity implies mixability for convex domains.
  • Verify exp-concavity for bounded squared loss and analyze a mixable linear loss.
  • Distinguish a sufficient curvature condition from a necessary definition of mixability.

Why These Two Properties Matter

An aggregation rule combines several candidate predictions into one. Convexity of a loss can make the loss of an averaged prediction no worse than the average loss of the candidates, but that comparison can leave a substantial gap. Exp-concavity and mixability describe stronger ways to control the loss of an aggregate. They are closely related, but they are not the same property: exp-concavity is a shape condition on the loss as a function of the prediction, while mixability asks directly whether a suitable aggregate can satisfy a particular loss bound.

Both properties depend on the scale of the loss and on the prediction domain. A loss may have one property on a restricted domain but not on a larger one. We therefore state the domain and the constant explicitly throughout.

Definition: Let \(\mathcal D\subseteq\mathbb R^d\) be a prediction domain, let \(\mathcal Y\) be an outcome set, and let \(\ell:\mathcal D\times\mathcal Y\to\mathbb R\) be a loss. For \(\eta>0\), the loss is \(\eta\)-exp-concave if, for every fixed \(y\in\mathcal Y\), the function \(p\mapsto \exp\{-\eta\ell(p,y)\}\) is concave on \(\mathcal D\). If \(\mathcal D\) is convex, the loss is \(\eta\)-mixable if, for every finite collection \(p_1,\ldots,p_m\in\mathcal D\) and weights \(\alpha_i\geq0\) with \(\sum_{i=1}^m\alpha_i=1\), there exists \(p_*\in\mathcal D\) such that, for every \(y\in\mathcal Y\),

\(\displaystyle \ell(p_*,y)\leq-\frac{1}{\eta}\log\!\left(\sum_{i=1}^m\alpha_i\exp\{-\eta\ell(p_i,y)\}\right).\)

The aggregate \(p_*\) in the definition of mixability must be chosen from the predictions and weights, not separately for each outcome \(y\). The same \(p_*\) must make the inequality hold for every possible outcome. Zero weights are allowed and contribute zero to the sum. Since \(\ell\) is real-valued and at least one weight is positive, the sum inside the logarithm is positive.

A Curvature Test for Exp-Concavity

When the loss is twice continuously differentiable in \(p\), exp-concavity has a local matrix test. The domain qualifications matter: the ordinary Hessian condition applies on the interior of a full-dimensional domain. If the domain lies in a lower-dimensional affine space, only directions within that space are relevant.

Theorem: Suppose \(\mathcal D\subseteq\mathbb R^d\) is convex with nonempty interior, and, for each \(y\), \(p\mapsto\ell(p,y)\) is twice continuously differentiable on an open neighborhood of \(\mathcal D\). Then \(\ell\) is \(\eta\)-exp-concave on \(\mathcal D\) if and only if, for every \(y\in\mathcal Y\) and every \(p\in\operatorname{int}(\mathcal D)\),

\(\displaystyle \nabla_p^2\ell(p,y)\succeq \eta\,\nabla_p\ell(p,y)\nabla_p\ell(p,y)^{\mathsf T}.\)

Here \(A\succeq B\) means that \(A-B\) is positive semidefinite.

Proof. Fix \(y\) and write \(g(p)=\exp\{-\eta\ell(p,y)\}\). Differentiating by the chain rule gives

$$ \nabla_p^2 g(p) = \eta g(p)\left[ \eta\,\nabla_p\ell(p,y)\nabla_p\ell(p,y)^{\mathsf T} -\nabla_p^2\ell(p,y) \right]. $$

Because \(g(p)>0\) and \(\eta>0\), the Hessian \(\nabla_p^2g(p)\) is negative semidefinite exactly when the stated curvature inequality holds. A twice continuously differentiable function on an open convex set is concave if and only if its Hessian is negative semidefinite there. This gives the equivalence on \(\operatorname{int}(\mathcal D)\), which is convex.

For the boundary, if \(g\) is concave on \(\mathcal D\), its restriction to the interior is concave, so the Hessian condition holds there. Conversely, if that condition holds on the interior, \(g\) is concave there. For any \(p,q\in\mathcal D\), choose \(r\in\operatorname{int}(\mathcal D)\) and set \(p_\varepsilon=(1-\varepsilon)p+\varepsilon r\) and \(q_\varepsilon=(1-\varepsilon)q+\varepsilon r\), where \(0<\varepsilon<1\). Both points lie in the interior. Concavity there gives the concavity inequality for \(p_\varepsilon,q_\varepsilon\). Letting \(\varepsilon\) decrease to zero and using continuity of \(g\) gives that inequality for \(p,q\). Thus concavity extends to the boundary. Since \(y\) was arbitrary, the result holds for every outcome. \(\square\)

If \(\mathcal D\) has lower affine dimension, the same differentiation applies, but the Hessian inequality should be tested only in directions parallel to its affine hull. An ambient-space Hessian condition can impose restrictions in directions that no feasible prediction can move. That is why the full-dimensional hypothesis in the theorem cannot simply be omitted.

Exp-Concavity Provides a Mixability Aggregate

The relation between the two properties follows directly from Jensen's inequality. If the transformed loss is concave, its value at the weighted average prediction is at least the weighted average of its values at the candidates. Taking logarithms reverses the comparison because of the negative sign.

Theorem: If \(\mathcal D\) is convex and \(\ell\) is \(\eta\)-exp-concave on \(\mathcal D\), then \(\ell\) is \(\eta\)-mixable. A valid aggregate is the deterministic weighted average \(p_*=\sum_{i=1}^m\alpha_i p_i\).

Proof. Convexity of \(\mathcal D\) ensures that \(p_*=\sum_i\alpha_i p_i\) belongs to \(\mathcal D\). Fix any \(y\in\mathcal Y\). By concavity of \(p\mapsto\exp\{-\eta\ell(p,y)\}\) and Jensen's inequality,

$$ \exp\{-\eta\ell(p_*,y)\} \geq \sum_{i=1}^m\alpha_i\exp\{-\eta\ell(p_i,y)\}. $$

The two sides are positive. Taking logarithms preserves their order, and multiplying by \(-1/\eta\) reverses it. Therefore

$$ \ell(p_*,y) \leq -\frac{1}{\eta} \log\!\left(\sum_{i=1}^m\alpha_i\exp\{-\eta\ell(p_i,y)\}\right). $$

This holds for every \(y\), using the same \(p_*\), so the definition of \(\eta\)-mixability is satisfied. \(\square\)

This implication is one-way in general. Mixability permits a suitable aggregate that need not be the arithmetic average. Consequently, a loss can be mixable even when its transformed loss is not concave and the curvature test fails.

Worked Example: Exp-Concavity of Bounded Squared Loss

Let \(\mathcal D=\mathcal Y=[0,1]\), with squared loss \(\ell(p,y)=(p-y)^2\). Find a value of \(\eta\) that works uniformly over this domain.

For fixed \(y\), the first and second derivatives with respect to the prediction are

$$ \nabla_p\ell(p,y)=2(p-y), \qquad \nabla_p^2\ell(p,y)=2. $$

The curvature condition in one dimension is \(2\geq\eta\,4(p-y)^2\). On \([0,1]\), \(|p-y|\leq1\), so \(4(p-y)^2\leq4\). Hence the condition holds everywhere if \(2\geq4\eta\), or \(\eta\leq1/2\). At \(p=0,y=1\), equality holds when \(\eta=1/2\), so this calculation does not permit any larger uniform constant by this curvature test. The theorem establishes that squared loss is \(1/2\)-exp-concave on this domain, and therefore it is \(1/2\)-mixable.

Worked Example: Checking the Mixability Bound Numerically

Use the same squared loss, and take predictions \(p_1=0\), \(p_2=0.6\), weights \(\alpha_1=0.25\), \(\alpha_2=0.75\), and \(\eta=1/2\). The weighted-average aggregate is

$$ p_*=0.25(0)+0.75(0.6)=0.45. $$

For outcome \(y=0\), the aggregate loss is \((0.45-0)^2=0.2025\). The right side of the mixability inequality is

$$ -2\log\!\left(0.25e^0+0.75e^{-0.5(0.36)}\right) =-2\log\!\left(0.25+0.75e^{-0.18}\right) \approx 0.2637452. $$

Thus \(0.2025\leq0.2637455\), as required. For outcome \(y=1\), the aggregate loss is \((0.45-1)^2=0.3025\). The right side is

$$ -2\log\!\left(0.25e^{-0.5(1)}+0.75e^{-0.5(0.16)}\right) = -2\log\!\left(0.25e^{-0.5}+0.75e^{-0.08}\right) \approx 0.3393. $$

Again, \(0.3025\leq0.3393\). Since the outcome domain here consists of every \(y\in[0,1]\), checking just these two outcomes is not by itself a proof for all outcomes; the preceding theorem supplies that proof. The calculations illustrate the bound at two endpoints and are consistent with the uniform guarantee.

Worked Example: A Mixable Loss That Is Not Exp-Concave

Let \(\mathcal D=[0,1]\), \(\mathcal Y=\{0,1\}\), and \(\ell(p,y)=py\). This loss is bounded between zero and one. For \(y=1\), its transformed version is \(p\mapsto e^{-\eta p}\), whose second derivative is \(\eta^2e^{-\eta p}>0\) for every \(\eta>0\). It is strictly convex, not concave, on the nondegenerate interval \([0,1]\). Thus the loss is not \(\eta\)-exp-concave for any positive \(\eta\).

Nevertheless, it is \(\eta\)-mixable for every \(\eta>0\). Given predictions and weights, define

$$ p_*=-\frac{1}{\eta}\log\!\left(\sum_{i=1}^m\alpha_i e^{-\eta p_i}\right). $$

Because every \(p_i\in[0,1]\), each \(e^{-\eta p_i}\) lies in \([e^{-\eta},1]\). Their weighted average lies in the same interval. Applying the decreasing function \(-\eta^{-1}\log(\,\cdot\,)\) shows that \(p_*\in[0,1]\). For \(y=1\), \(\ell(p_*,1)=p_*\), which equals the right side of the mixability inequality. For \(y=0\), every candidate and the aggregate have loss zero, and the right side is \(-\eta^{-1}\log(1)=0\). The required inequality therefore holds for both possible outcomes with this single aggregate. This verifies directly that mixability does not imply exp-concavity.

What the Conditions Do—and Do Not—Say

The curvature criterion is useful because it turns a global concavity question into a pointwise inequality involving the gradient and Hessian of the loss. The right side, \(\eta\nabla_p\ell\nabla_p\ell^{\mathsf T}\), grows with the squared slope of the loss. A loss that bends upward strongly enough relative to its slope can satisfy the condition; a steep loss with little curvature may fail it. Boundedness alone does not guarantee exp-concavity: boundedness controls loss values, not the local derivatives required by the curvature test.

The constant also depends on the loss scale. If \(\tilde\ell=c\ell\) for \(c>0\), then \(\tilde\ell\) is \(\tilde\eta\)-exp-concave exactly when \(\ell\) is \(c\tilde\eta\)-exp-concave. A numerical value of \(\eta\) is therefore meaningful only together with the loss's units and scaling.

A common mistake is to identify the curvature inequality with the definition of mixability, or to conclude that failure of the inequality rules out mixability. The correction is to keep the roles distinct. The Hessian inequality characterizes exp-concavity under the stated smoothness and domain conditions. Jensen's inequality then proves that exp-concavity is sufficient for mixability. The linear-loss example shows why that implication cannot be reversed.

There is a second domain-related pitfall: applying a full ambient Hessian test to a prediction set with empty interior in \(\mathbb R^d\). Concavity on such a set constrains only changes that remain in its affine hull. For a lower-dimensional domain, use the Hessian quadratic form only along directions parallel to that affine hull, or reparameterize the predictions in coordinates on the affine hull.

Key takeaway: Exp-concavity is a curvature property of the transformed loss; mixability is an aggregate inequality. On a convex domain, exp-concavity guarantees mixability through the weighted-average prediction, but mixability can hold without exp-concavity.

Check Your Understanding

Use the definitions and results above to answer the following questions.

  1. State the Hessian condition for \(\eta\)-exp-concavity and explain why it is checked on the interior of a full-dimensional domain.
  2. Why does the aggregate in the definition of mixability have to be chosen independently of the outcome?
  3. For squared loss on \([0,1]\), what is the largest value of \(\eta\) certified by the curvature calculation?
  4. Explain how Jensen's inequality and multiplication by a negative number produce the mixability inequality from exp-concavity.
  5. For the loss \(\ell(p,y)=py\) with \(p\in[0,1]\) and \(y\in\{0,1\}\), give the aggregate that verifies mixability and explain why exp-concavity fails.
Clinical Biostats