Tutorials › Statistical Learning (Graduate) › An Oracle Inequality for Regularized Kernel Classifiers

Kernel Classification Guarantees · Tutorial 771 of 989

An Oracle Inequality for Regularized Kernel Classifiers

Learn how to compare a regularized kernel classifier with every RKHS comparator while accounting explicitly for its norm penalty and empirical-process deviation.

Advanced 11 min read

What You'll Learn

  • Define the population and empirical penalized objectives for a kernel score.
  • State the bounded-loss and uniform-deviation conditions for the oracle inequality.
  • Prove the empirical minimizer’s norm bound and compare its objective with any comparator.
  • Interpret the comparator’s risk, norm penalty, and deviation terms.
  • Apply the inequality to explicit finite classification models and samples.
  • Avoid applying a deviation bound at a radius that does not cover the fitted score.

Why Compare a Fitted Classifier With an Oracle?

A regularized kernel classifier is chosen from data, but its performance is judged by its population loss. A useful guarantee should therefore connect what the fitted score minimizes empirically to what a population-optimal choice could achieve. An oracle inequality makes this comparison without requiring us to know which comparator is best in advance: it bounds the fitted classifier by the risk and complexity of any chosen RKHS score, plus a term measuring empirical-process error.

The comparator term matters. A score with low risk but a very large RKHS norm may be costly under regularization; a smaller-norm score may have slightly higher risk but yield a better total bound. The inequality keeps both considerations visible.

Setup and Assumptions

Let \((X_i,Y_i)_{i=1}^n\) be independent observations with common distribution \(P\), where \(Y_i\in\{-1,+1\}\). Let \(\mathcal H\) be a reproducing kernel Hilbert space of real-valued scores on the input space, with norm \(\|\cdot\|_{\mathcal H}\). A measurable loss \(\ell(y,t)\) assigns loss \(\ell(Y,f(X))\) to score \(f\). Write

$$ P\ell_f=E[\ell(Y,f(X))], \qquad P_n\ell_f=\frac{1}{n}\sum_{i=1}^n\ell(Y_i,f(X_i)). $$

Here \(P\ell_f\) is the population risk and \(P_n\ell_f\) is the empirical risk. Assume throughout the theorem that \(0\leq\ell(y,t)\leq1\) for every label and score, and that the zero score belongs to \(\mathcal H\). These conditions hold, for example, for the zero-one classification loss with a fixed convention for ties. The bounded-loss assumption is important for the simple norm bound below; it is not automatic for every classification loss.

Definition: For a regularization parameter \(\lambda>0\), the empirical penalized objective is \(J_n(f)=P_n\ell_f+\lambda\|f\|_{\mathcal H}^2\), and the population penalized objective is \(J(f)=P\ell_f+\lambda\|f\|_{\mathcal H}^2\). An empirical penalized minimizer \(\hat f_\lambda\) satisfies \(J_n(\hat f_\lambda)\leq J_n(f)\) for every \(f\in\mathcal H\). Assume such a measurable minimizer exists.

We use a uniform-deviation event of the type studied for norm-constrained kernel scores. For a fixed radius \(S>0\), suppose that, on an event \(\mathcal E\),

$$ \sup_{\|f\|_{\mathcal H}\leq S} \left|P\ell_f-P_n\ell_f\right|\leq\varepsilon. $$

The radius must cover both the fitted score and the comparators to which we apply the event. The theorem below states exactly how to choose it. A probability guarantee follows immediately if this event has probability at least \(1-\delta\): the oracle inequality then holds with probability at least \(1-\delta\).

The Oracle Inequality

Theorem: Assume the bounded-loss and existence conditions above. Fix \(R\geq0\), and suppose the uniform-deviation event holds at radius \(S=\max\{R,\lambda^{-1/2}\}\). Then, on that event, for every \(g\in\mathcal H\) with \(\|g\|_{\mathcal H}\leq R\), $$ P\ell_{\hat f_\lambda}+\lambda\|\hat f_\lambda\|_{\mathcal H}^2 \leq P\ell_g+\lambda\|g\|_{\mathcal H}^2+2\varepsilon. $$ Consequently, $$ P\ell_{\hat f_\lambda} \leq \inf_{\|g\|_{\mathcal H}\leq R} \left\{P\ell_g+\lambda\|g\|_{\mathcal H}^2\right\} +2\varepsilon. $$

The second display follows from the first because the fitted score’s penalty is nonnegative, and because the first inequality holds for every comparator in the radius-\(R\) ball. The important point is that the bound compares against the best penalized population risk in that ball, not just the smallest population risk.

Proof: Bound the Fitted Norm, Then Compare Objectives

The radius \(S\) cannot in general be chosen as \(R\) alone: the fitted score need not have norm at most that of the comparator. Instead, comparison with the zero score supplies a deterministic bound on the fitted norm.

1
Control the fitted score’s norm.
By empirical minimization and bounded loss, \(J_n(\hat f_\lambda)\leq J_n(0)=P_n\ell_0\leq1\). Since empirical loss is nonnegative, \(\lambda\|\hat f_\lambda\|_{\mathcal H}^2\leq1\), so \(\|\hat f_\lambda\|_{\mathcal H}\leq\lambda^{-1/2}\).
2
Put both scores inside the deviation radius.
The fitted score has norm at most \(\lambda^{-1/2}\leq S\). Any comparator \(g\) under consideration has norm at most \(R\leq S\). Thus the uniform-deviation event applies to both.
3
Transfer the fitted objective to population risk.
Use \(P\ell_{\hat f_\lambda}\leq P_n\ell_{\hat f_\lambda}+\varepsilon\), leaving the penalty unchanged.
4
Use empirical minimization and transfer back for the comparator.
Minimization gives \(J_n(\hat f_\lambda)\leq J_n(g)\), while \(P_n\ell_g\leq P\ell_g+\varepsilon\). Combining these inequalities proves the claim.

In full, the chain is

$$ \begin{aligned} P\ell_{\hat f_\lambda}+\lambda\|\hat f_\lambda\|_{\mathcal H}^2 &\leq P_n\ell_{\hat f_\lambda} +\lambda\|\hat f_\lambda\|_{\mathcal H}^2+\varepsilon\\ &=J_n(\hat f_\lambda)+\varepsilon\\ &\leq J_n(g)+\varepsilon\\ &=P_n\ell_g+\lambda\|g\|_{\mathcal H}^2+\varepsilon\\ &\leq P\ell_g+\lambda\|g\|_{\mathcal H}^2+2\varepsilon. \end{aligned} $$

Every deviation step uses the event at radius \(S\), justified by Step 2. Since \(g\) was arbitrary in the radius-\(R\) ball, taking the infimum proves the stated oracle comparison. \(\square\)

Worked Examples

Worked Example: A One-Point Classification Problem

Let \(X\) be constant and let \(P(Y=-1)=0.30\), \(P(Y=+1)=0.70\). Use the constant kernel \(K(x,x')=1\), whose RKHS consists of constant scores \(f(x)=c\) with \(\|f\|_{\mathcal H}=|c|\). Take zero-one loss, predicting \(+1\) at score zero. In a sample of 100 observations, suppose 37 labels are \(-1\) and 63 are \(+1\).

For any score \(c>0\), the classifier predicts \(+1\), so its population risk is \(0.30\). In particular, choose comparator \(g(x)=2\); then \(P\ell_g=0.30\) and \(\|g\|_{\mathcal H}^2=4\). The empirical negative-label proportion is \(0.37\), so the deviation for the positive prediction is \(0.37-0.30=0.07\). For a negative prediction, the empirical and population error proportions differ by the same \(0.07\). Thus the uniform deviation over all constant scores is \(0.07\), and it is valid to use \(\varepsilon=0.08\).

Set \(\lambda=0.05\) and \(R=2\). The required radius is \(S=\max\{2,\sqrt{1/0.05}\}=\sqrt{20}\), which covers the comparator and the fitted score. The oracle inequality gives

$$ P\ell_{\hat f_\lambda} +0.05\|\hat f_\lambda\|_{\mathcal H}^2 \leq 0.30+0.05(4)+2(0.08) =0.30+0.20+0.16 =0.66. $$

Since the penalty is nonnegative, this also implies \(P\ell_{\hat f_\lambda}\leq0.66\). The conclusion is a valid upper bound, not a claim that the fitted risk equals \(0.66\).

Worked Example: A Two-Point Input Space

Let \(X\in\{a,b\}\), with \(P(X=a)=0.6\) and \(P(X=b)=0.4\). Let \(P(Y=-1\mid X=a)=0.1\) and \(P(Y=-1\mid X=b)=0.4\). Use the delta kernel \(K(x,x')=1\) when \(x=x'\) and \(0\) otherwise. The RKHS norm satisfies \(\|f\|_{\mathcal H}^2=f(a)^2+f(b)^2\). Take the comparator \(g(a)=g(b)=1\), which predicts positive at both points.

Its risk is the probability of a negative label: \(P\ell_g=0.6(0.1)+0.4(0.4)=0.06+0.16=0.22\). Its squared norm is \(1^2+1^2=2\). Suppose the sample of size 100 has joint counts \((a,-1)=7\), \((a,+1)=53\), \((b,-1)=16\), and \((b,+1)=24\). The corresponding population cell probabilities are \(0.06,0.54,0.16,0.24\); the empirical proportions differ from them by \(0.01,-0.01,0,0\).

For any score on this two-point space, its zero-one error set is a subset of the four label-input cells. The signed cell discrepancies sum to zero, and the largest absolute discrepancy of any subset is \(0.01\). Hence the uniform deviation is at most \(\varepsilon=0.01\), including over the required norm ball. Set \(\lambda=0.1\), \(R=\sqrt{2}\); then \(S=\max\{\sqrt{2},\sqrt{10}\}=\sqrt{10}\). The inequality yields

$$ P\ell_{\hat f_\lambda} +0.1\|\hat f_\lambda\|_{\mathcal H}^2 \leq 0.22+0.1(2)+2(0.01) =0.22+0.20+0.02 =0.44. $$

The comparator’s contribution is \(0.42\), while the two deviation transfers add \(0.02\).

Worked Example: Choosing Between Two Comparators

Let \(X\in\{a,b,c\}\) have probabilities \(0.5,0.3,0.2\), respectively. Let the conditional negative-label probabilities be \(0.1,0.5,0.8\). Use the delta kernel on these three points, so the squared RKHS norm is the sum of the three squared scores. For zero-one loss, compare \(g_1=(3,3,3)\) and \(g_2=(1,1,-1)\), where entries are scores at \(a,b,c\).

The all-positive score \(g_1\) makes errors on negative labels, so its risk is \(0.5(0.1)+0.3(0.5)+0.2(0.8)=0.05+0.15+0.16=0.36\). Its squared norm is \(27\). The score \(g_2\) predicts positive at \(a,b\) and negative at \(c\), so its risk is \(0.05+0.15+0.2(1-0.8)=0.24\); its squared norm is \(1+1+1=3\).

For a sample of size 1000, suppose the six cell counts in the order \((a,-1),(a,+1),(b,-1),(b,+1),(c,-1),(c,+1)\) are \(51,449,148,152,158,42\). The corresponding expected counts are \(50,450,150,150,160,40\), so the discrepancies in proportions are \(0.001,-0.001,-0.002,0.002,-0.002,0.002\). Their absolute values sum to \(0.010\); because they sum to zero, any subset has discrepancy at most \(0.005\). Every classifier’s error set is such a subset, so \(\varepsilon=0.005\) is valid.

With \(\lambda=0.02\) and \(R=\sqrt{3}\), the required radius is \(S=\max\{\sqrt{3},\sqrt{50}\}=\sqrt{50}\). The penalized population values of the two comparators are \(0.36+0.02(27)=0.90\) and \(0.24+0.02(3)=0.30\). Using the better of these gives

$$ P\ell_{\hat f_\lambda} +0.02\|\hat f_\lambda\|_{\mathcal H}^2 \leq 0.30+2(0.005)=0.31. $$

Although \(g_1\) has a larger score magnitude, its norm penalty makes it the worse oracle comparator here. The inequality formalizes that trade-off.

What the Bound Does—and a Common Pitfall

The bound separates three ingredients: comparator population risk, comparator norm penalty, and twice the uniform deviation. It is finite-sample and holds on the specified deviation event; it does not by itself assert that the risk tends to an optimal value as \(n\) grows. Such a conclusion would require additional conditions controlling the deviation, regularization choice, and available approximations.

  • Pitfall: use only the comparator’s radius. One might apply the deviation event at radius \(R\) because \(\|g\|_{\mathcal H}\leq R\). That reasoning does not cover \(\hat f_\lambda\), whose norm may exceed \(R\).
  • Correction: Compare the empirical objective with the zero score. Bounded loss gives \(\|\hat f_\lambda\|_{\mathcal H}\leq\lambda^{-1/2}\), so use \(S=\max\{R,\lambda^{-1/2}\}\). The regularization parameter therefore affects not only the comparator penalty but also the radius needed for the deviation bound.
Key takeaway: On a uniform-deviation event covering both the fitted score and its comparators, a regularized empirical minimizer has penalized population risk no more than the best comparator’s penalized population risk plus \(2\varepsilon\).

Check Your Understanding

Check that you can identify the assumptions and each term in the comparison.

  1. Why does comparison with the zero score imply \(\|\hat f_\lambda\|_{\mathcal H}\leq\lambda^{-1/2}\)? Which assumptions are used?
  2. If the comparator radius is \(R=3\) and \(\lambda=0.2\), what radius must the uniform-deviation event cover?
  3. For comparator risk \(0.25\), squared norm \(5\), \(\lambda=0.04\), and \(\varepsilon=0.03\), calculate the oracle upper bound on the fitted penalized population objective.
  4. Why is it not enough to have a deviation bound only for the comparator when proving the oracle inequality?
  5. What extra kind of conditions would be needed to turn this finite-sample comparison into a consistency claim?
Clinical Biostats