Tutorials › Statistical Learning (Graduate) › Bregman Loss Regret and Conditional Means

Bayes Rules and Conditional Risk · Tutorial 62 of 989

Bregman Loss Regret and Conditional Means

Learn how Bregman loss turns the conditional-mean property into an exact regret formula, and when that formula guarantees a unique minimum.

Beginner 11 min read

What You'll Learn

  • Define Bregman loss with the outcome and action in the appropriate order.
  • Derive its conditional regret identity and identify the assumptions it needs.
  • Explain how convexity and strict convexity give optimality and uniqueness.
  • Calculate regret for quadratic, exponential, and multivariate potentials.
  • Recognize why reversing the loss arguments or omitting convexity can change the conclusion.

Why the Conditional Mean Appears

Squared-error loss is not the only loss for which the conditional mean is the optimal prediction. A broader family comes from differentiable convex functions called potentials. Their associated Bregman losses measure the gap between a function and its tangent approximation. With the outcome in the first argument and the action in the second, the conditional regret of an action has a particularly simple form: it is the Bregman divergence from the conditional mean to that action.

The exact algebraic identity and the claim of optimality are related but distinct. Differentiability and a well-defined conditional mean give the identity; convexity makes its right-hand side nonnegative; strict convexity makes it positive for every action other than the mean. Keeping those steps separate prevents a common error: treating an algebraic identity as if it alone proved that the mean minimizes risk.

Potential, Divergence, and Conditional Risk

Let \(C\) be an open convex subset of \(\mathbb{R}^d\), and let \(\phi:C\to\mathbb{R}\) be differentiable. The gradient \(\nabla\phi(a)\) is the vector of first derivatives at \(a\). Define the Bregman divergence from \(a\) to \(y\) by the difference between \(\phi(y)\) and its first-order approximation at \(a\).

Definition: The Bregman divergence generated by \(\phi\) is \(D_\phi(y,a)=\phi(y)-\phi(a)-\nabla\phi(a)^\mathsf{T}(y-a)\), for \(y,a\in C\). When \(Y\) is an outcome and \(a\) is a prediction or action, the associated Bregman loss is \(D_\phi(Y,a)\). Its conditional risk given information \(\mathcal{G}\) is \(E[D_\phi(Y,a)\mid\mathcal{G}]\), when this conditional expectation is defined.

The order of the arguments matters: the gradient is evaluated at the action \(a\), not the outcome \(y\). In general \(D_\phi(y,a)\neq D_\phi(a,y)\). The potential need not be quadratic, and the divergence need not be symmetric.

For the conditional statement, let \(\mathcal{G}\) represent the information available when choosing an action. Suppose \(Y\) takes values in \(C\), \(E[\|Y\|\mid\mathcal{G}]<\infty\), and its conditional mean \(M=E[Y\mid\mathcal{G}]\) belongs to \(C\) almost surely. Actions \(A\) under consideration are \(\mathcal{G}\)-measurable and take values in \(C\). Assume the terms in the conditional risks below are integrable; in particular, the products involving \(\nabla\phi(A)\) and \(Y-A\), and those involving \(\nabla\phi(M)\) and \(Y-M\), must have finite conditional expectations. These assumptions ensure the algebra uses well-defined quantities. They can be checked for the particular potential, outcome distribution, and actions in an application.

The Conditional Regret Identity

Write \(R(A\mid\mathcal{G})=E[D_\phi(Y,A)\mid\mathcal{G}]\) for the conditional risk of an available action, and define \(R(M\mid\mathcal{G})\) in the same way. The identity below does not require \(\phi\) to be convex. Convexity enters only when interpreting the sign of the resulting difference.

Theorem: Under the domain, conditional-mean, and integrability assumptions above, for every admissible \(\mathcal{G}\)-measurable action \(A\), \(R(A\mid\mathcal{G})-R(M\mid\mathcal{G})=D_\phi(M,A)\) almost surely. Differentiability suffices for this identity. If \(\phi\) is convex, the conditional mean minimizes conditional risk. If \(\phi\) is strictly convex, it is the unique minimizing action up to almost-sure equality.

Proof of the identity. Since \(A\) is \(\mathcal{G}\)-measurable, \(\phi(A)\) and \(\nabla\phi(A)\) are known given \(\mathcal{G}\). Expand the divergence and use \(E[Y\mid\mathcal{G}]=M\):

$$ \begin{aligned} R(A\mid\mathcal{G}) &=E[\phi(Y)\mid\mathcal{G}]-\phi(A) -\nabla\phi(A)^\mathsf{T}(M-A),\\ R(M\mid\mathcal{G}) &=E[\phi(Y)\mid\mathcal{G}]-\phi(M) -\nabla\phi(M)^\mathsf{T}(M-M)\\ &=E[\phi(Y)\mid\mathcal{G}]-\phi(M). \end{aligned} $$

Subtract the second expression from the first. The terms \(E[\phi(Y)\mid\mathcal{G}]\) cancel, leaving \(\phi(M)-\phi(A)-\nabla\phi(A)^\mathsf{T}(M-A)=D_\phi(M,A)\), as claimed. This calculation used differentiability to define the divergence, and the conditional-mean property to replace \(E[Y\mid\mathcal{G}]\) by \(M\); it did not use convexity. \(\square\)

Why convexity gives minimization. For differentiable convex \(\phi\), the tangent-plane inequality says \(\phi(u)\geq\phi(v)+\nabla\phi(v)^\mathsf{T}(u-v)\) for \(u,v\in C\). Taking \(u=M\) and \(v=A\) gives \(D_\phi(M,A)\geq0\). The identity therefore implies \(R(A\mid\mathcal{G})\geq R(M\mid\mathcal{G})\). If \(\phi\) is strictly convex, the tangent-plane inequality is strict whenever \(M\neq A\); hence the risk difference is strictly positive on that event. Any minimizing action must equal \(M\) almost surely. \(\square\)

Worked Examples

Worked Example: Quadratic Potential

Let \(\phi(t)=t^2/2\) on \(\mathbb{R}\). Then \(\phi'(a)=a\), so \(D_\phi(y,a)=y^2/2-a^2/2-a(y-a)=(y-a)^2/2\). Suppose, conditionally on the available information, \(Y\) equals \(0,2,4\) with probabilities \(1/4,1/2,1/4\). Its conditional mean is \(m=(1/4)0+(1/2)2+(1/4)4=2\).

At action \(a=1\), the conditional risk is \(R(1)=(1/4)(1/2)+(1/2)(1/2)+(1/4)(9/2)=1/8+1/4+9/8=3/2\). At the mean, it is \(R(2)=(1/4)(2)+(1/2)(0)+(1/4)(2)=1\). Thus the regret is \(3/2-1=1/2\). The identity gives the same answer: \(D_\phi(2,1)=(2-1)^2/2=1/2\).

Worked Example: A Nonquadratic Potential

Take \(\phi(t)=e^t\) on \(\mathbb{R}\), a strictly convex differentiable potential. Its loss is \(D_\phi(y,a)=e^y-e^a-e^a(y-a)\). Let \(Y\) equal \(0\) or \(2\), each with probability \(1/2\). Its mean is \(m=1\), and \(E[e^Y]=(1+e^2)/2\).

At action \(a=0\), the conditional risk is \(R(0)=(1+e^2)/2-1(1+1-0)=(e^2-3)/2\). At action \(a=1\), it is \(R(1)=(1+e^2)/2-e(1+1-1)=(1+e^2)/2-e\). Their difference is \(R(0)-R(1)=e-2\), approximately \(0.718\). The divergence formula confirms this: \(D_\phi(1,0)=e-1-1=e-2\). The mean minimizes risk even though this loss is not squared error.

Worked Example: A Two-Dimensional Prediction

For \(u\in\mathbb{R}^2\), set \(\phi(u)=u^\mathsf{T}Bu/2\), where \(B=\begin{pmatrix}2&1\\1&2\end{pmatrix}\). This matrix is positive definite: its eigenvalues are \(1\) and \(3\). The gradient is \(Bu\), and direct expansion gives \(D_\phi(y,a)=(y-a)^\mathsf{T}B(y-a)/2\). Let \(Y\) equal \((0,0)^\mathsf{T}\) and \((2,1)^\mathsf{T}\) with equal probabilities. Then \(m=(1,1/2)^\mathsf{T}\).

At action \(a=(0,0)^\mathsf{T}\), the loss is zero for the first outcome. For the second, \(B(2,1)^\mathsf{T}=(5,4)^\mathsf{T}\), so its loss is \((2,1)(5,4)^\mathsf{T}/2=14/2=7\). The risk is therefore \((0+7)/2=3.5\). At the mean, the deviations are \((-1,-1/2)^\mathsf{T}\) and \((1,1/2)^\mathsf{T}\). For either deviation \(v=(1,1/2)^\mathsf{T}\), \(Bv=(2.5,2)^\mathsf{T}\), so \(v^\mathsf{T}Bv/2=(2.5+1)/2=1.75\). Thus \(R(m)=1.75\), and the regret of the zero action is \(3.5-1.75=1.75\). The divergence gives the same value: \(D_\phi(m,0)=m^\mathsf{T}Bm/2=1.75\).

What the Assumptions Do

The formula is useful because it gives more than an optimizer: it expresses the exact cost of using an alternative action. Under convexity, this cost is nonnegative and determined by the gap between the action and the conditional mean through the chosen potential. For a quadratic potential it is a squared distance; for another potential, the geometry of the regret can differ. The conditional-mean conclusion is therefore not a claim that all Bregman losses are squared errors. It follows from the specific orientation of the divergence and its tangent-plane inequality.

The assumptions also matter in practice. The mean must exist and be an available action in the domain. If it falls outside the allowed action set, the theorem as stated does not show that it is an admissible minimizer. Conditional risks and the terms used to expand them must be well-defined as well; otherwise subtracting them or invoking conditional linearity may not be justified.

Common Pitfall: Convexity and Argument Order

A tempting but incorrect argument is: “The regret identity holds for a differentiable potential, so the conditional mean must minimize risk.” The identity alone says the risk difference is \(D_\phi(M,A)\); it does not say that this quantity is nonnegative. For example, with \(\phi(t)=-t^2/2\), the identity still holds, but \(D_\phi(y,a)=-(y-a)^2/2\). If \(Y\) is equally likely to be \(-1\) or \(1\), its mean is zero. The risks at actions \(0\) and \(1\) are respectively \(-1/2\) and \(-1\), so action \(1\) has lower risk. Convexity is what ensures nonnegative regret; strict convexity ensures uniqueness.

A second error is to reverse the arguments and use \(D_\phi(A,Y)\) as the loss while applying the same identity. The proof specifically expands \(D_\phi(Y,A)\), whose gradient is evaluated at the chosen action. Reversing the arguments changes the loss and does not, in general, preserve the conditional-mean result. Always check which argument is the outcome and which is the action before using the formula.

Key takeaway: For the loss \(D_\phi(Y,A)\), the conditional risk difference from the conditional mean is exactly \(D_\phi(M,A)\). Differentiability and suitable domain, mean, and integrability conditions give the identity; convexity makes the mean optimal, and strict convexity makes it uniquely optimal.

Check Your Understanding

Use the definitions and assumptions in this tutorial to answer the following questions.

  1. In \(D_\phi(y,a)\), at which argument is the gradient evaluated, and why does that order matter?
  2. Which assumptions give the regret identity, and which additional assumption makes its right-hand side nonnegative?
  3. For a strictly convex differentiable potential, what does zero regret imply about an admissible action and the conditional mean?
  4. Why must the conditional mean belong to the action domain for the stated minimization conclusion to apply?
  5. For \(\phi(t)=t^2/2\), calculate \(D_\phi(3,1)\) and interpret it as a risk difference when the conditional mean is \(3\).
Clinical Biostats