Convex Margin-Based Loss Functions
Definition: Given a measurable prediction function , a measurable loss function , and a probability distribution on , the expected risk of is defined as
Definition: The Bayes (optimal) risk is given by . A function that attains the above infimum is called Bayes predictor or Bayes (optimal) learning rule.
Proposition: A Bayes optimal learning rule satisfies for -almost all
Examples: Bayes Risk and Bayes Predictor
Example: Binary Classification
, .
The risk can be decomposed as follows:
From this, we derive the (optimal) Bayes classifier for -almost all :
However, this leads to combinatorial optimization problems, which can be computationally intractable (NP-hard).
Can we define convex loss functions for real-valued prediction function that achieve the Bayes optimal risk?
Convex margin-based loss functions
Problem: Different loss functions lead to different optimal functions.
Question: Let be the function that minimizes the -risk
,
where is a convex margin-based loss function (surrogate of the 0-1-loss).
Does agree with the Bayes classifier ?
Convex margin-based loss functions (II)
Definition: A margin-based loss (measurable) function is classification calibrated if , where minimizes and is a Bayes classifier.
Convex margin-based loss functions
Theorem: Let be a margin-based, convex loss function. Then is classification calibrated if and only if is differentiable at 0 and \Phi'(0) < 0.
Examples:
Loss Function
Formula
Exponential Loss
Hinge Loss
Truncated Squared Loss
Squared Loss
Logistic Loss
Convex margin-based loss functions (II)
Derivation of the theorem: The -risk can be decomposed as follows (set )
.
Convex margin-based loss functions (III)
Introduce conditional -risk given :
Convex margin-based loss functions (IV)
Therefore, we have .
Convex margin-based loss functions (V)
Since we optimize over all measurable functions , the problem reduces to pointwise minimization { P_X-almost everywhere.
Convex margin-based loss functions (VI)
Therefore, consider minimization of for given (corresponds to ).
Convex margin-based loss functions (VII)
We remark that is classification calibrated if the following equivalences hold true
{ 2\xi - 1 > 0 \quad \iff \quad \operatorname{argmin}z r\Phi(z | \xi) \in (0, \infty) } and { 2\xi - 1 < 0 \quad \iff \quad \operatorname{argmin}z r\Phi(z | \xi) \in (-\infty, 0) }.
Convex margin-based loss functions (VIII)
Since is convex, also is convex in . We abbreviate .
Convex margin-based loss functions (IX)
Use monotonicity of the directional derivatives to obtain
{ \tilde{c}'\xi(0; +1) = \xi \Phi'(0; +1) + (1 - \xi) \Phi'(0; -1) < 0 \quad \iff \quad \operatorname{argmin}z \tilde{c}_\xi(z) \in (0, \infty) }.
Analogously, { \tilde{c}'\xi(0; +1) > 0 } if and only if .
Convex margin-based loss functions (X)
Therefore, consider minimization of for given (corresponds to ).
We remark that is classification calibrated if the following equivalences hold true
{ 2\xi - 1 > 0 \quad \iff \quad \operatorname{argmin}z r\Phi(z | \xi) \in (0, \infty) } and { 2\xi - 1 < 0 \quad \iff \quad \operatorname{argmin}z r\Phi(z | \xi) \in (-\infty, 0) }.
Since is convex, also is convex in . We abbreviate .
Use monotonicity of the directional derivatives to obtain
{ \tilde{c}'\xi(0; +1) = \xi \Phi'(0; +1) + (1 - \xi) \Phi'(0; -1) < 0 \quad \iff \quad \operatorname{argmin}z \tilde{c}_\xi(z) \in (0, \infty) }.
Analogously, { \tilde{c}'\xi(0; +1) > 0 } if and only if .
Convex margin-based loss functions (XI)
Convex margin-based loss functions (XII)
""
Now, assume is classification calibrated. Let to observe that
.
Moreover, by monotonicity of the (directional) derivatives, we always have , which yields and hence is differentiable at 0. We conclude that . Using { \xi > \frac{1}{2} }, yields , which induces that { \tilde{c}'\xi(0) < 0 }, and we deduce that { \Phi'(0) < 0 }.