Tutorials › Statistical Learning (Graduate) › Penalized Risk Criteria And Oracle Comparators

Regularization and Oracle Inequalities · Tutorial 246 of 989

Penalized Risk Criteria And Oracle Comparators

Learn how penalized criteria select estimators and how population-risk oracle comparators provide a fixed benchmark for evaluating that selection.

Advanced 10 min read

What You'll Learn

  • Define empirical and population risk, including the role of an extended-valued regularization functional.
  • Distinguish a data-selected penalized empirical minimizer from a fixed population-risk comparator.
  • Interpret oracle criteria and oracle inequalities without confusing risk with penalized objective value.
  • Identify conditions that ensure a penalized minimizer exists and explain approximate minimizers when it does not.
  • Prove how the empirical risk and penalty change along a penalization path.

Why Separate the Selected Estimator From Its Comparator?

Regularization combines two aims: fit the observed data and control the complexity or size of the fitted rule. The resulting estimator depends on the sample, while its most useful benchmark is usually defined using the population distribution. Keeping these objects distinct is essential: a data-selected rule is random, but a population-risk comparator is fixed once the distribution and candidate class are specified.

This distinction also clarifies what an oracle inequality says. It compares the risk of a selected estimator with the risk of a benchmark that may be unavailable in practice, often allowing an additional complexity term. It does not claim that the estimator equals the benchmark, nor that minimizing a penalized empirical criterion directly minimizes population risk.

Penalized Empirical Risk and Regularization

Let \(Z_1,\ldots,Z_n\) be independent observations with common distribution \(P\), and let \(\mathcal F\) be a nonempty class of candidate predictors or statistical rules. For \(f\in\mathcal F\), let \(\ell_f(z)\) be its loss at observation \(z\). Assume the loss is measurable and has a well-defined expectation; for ordinary finite-risk comparisons, take \(E[|\ell_f(Z)|]<\infty\). The empirical risk and population risk are

$$ R_n(f)=\frac{1}{n}\sum_{i=1}^n \ell_f(Z_i), \qquad R(f)=E[\ell_f(Z)]. $$

A regularization functional \(J:\mathcal F\to[0,\infty]\) assigns a cost to each candidate. It may encode a norm, model size, roughness, or another chosen measure of complexity. With a fixed tuning parameter \(\lambda>0\), the penalized empirical criterion is

$$ Q_{n,\lambda}(f)=R_n(f)+\lambda J(f). $$

If \(J(f)=+\infty\), then \(Q_{n,\lambda}(f)=+\infty\) for \(\lambda>0\); such a candidate cannot be a minimizer when some candidate has finite criterion. The restriction \(\lambda>0\) matters: if one also wishes to define the unpenalized case \(\lambda=0\), define it separately by \(Q_{n,0}(f)=R_n(f)\), rather than using \(0\cdot J(f)\) when \(J(f)\) can be infinite.

Definition: A penalized empirical risk minimizer at tuning parameter \(\lambda>0\) is a sample-dependent rule \(\hat f_\lambda\in\mathcal F\) satisfying \(Q_{n,\lambda}(\hat f_\lambda)=\inf_{f\in\mathcal F}Q_{n,\lambda}(f)\). If the infimum is not attained, an \(\varepsilon\)-minimizer satisfies \(Q_{n,\lambda}(\hat f_\lambda)\leq \inf_{f\in\mathcal F}Q_{n,\lambda}(f)+\varepsilon\), for a specified \(\varepsilon>0\).

Existence is not automatic. A finite candidate class with at least one finite criterion has a minimizer. For an infinite class, attainment can require additional structure, such as compactness and lower semicontinuity; measurability of a selected minimizer is also needed when making probability statements about it. If attainment or a measurable exact selection is unavailable, an approximate minimizer is often the appropriate object. The exact existence conditions depend on the class and criterion.

Population Comparators and Oracle Criteria

A comparator is a candidate used as a benchmark. It is not chosen by minimizing the observed criterion. One common benchmark is the best population-risk candidate,

$$ R^*_{\mathcal F}=\inf_{f\in\mathcal F}R(f). $$

When the infimum is attained, a rule \(f^*\in\mathcal F\) with \(R(f^*)=R^*_{\mathcal F}\) is a population-risk minimizer. If it is not attained, the infimum still defines the benchmark. A different and often useful comparator accounts for regularization:

$$ Q_{\lambda}^{\mathrm{pop},*} = \inf_{f\in\mathcal F}\{R(f)+\lambda J(f)\}. $$

This is the best value of a penalized population criterion, not necessarily the smallest population risk. The two comparators answer different questions. A low-risk rule may have a large penalty, while a rule with a modestly higher risk may have a much smaller penalty.

Definition: An oracle comparator is a fixed candidate, or an infimum over fixed candidates, defined using the population distribution and a stated benchmark criterion. An oracle inequality is a probability or expectation bound comparing the risk of a data-selected estimator with such a benchmark, usually with an additional remainder or complexity term.

For example, an oracle inequality may have the schematic form

$$ R(\hat f_\lambda) \leq \inf_{f\in\mathcal F}\{R(f)+A_n(f)\}+r_n, $$

on an event of specified probability, where \(A_n(f)\) is a stated comparator cost and \(r_n\) is a remainder. The precise terms and assumptions vary by result; this display is a definition of the form, not a guarantee that it holds automatically. The inequality may instead concern excess risk \(R(\hat f_\lambda)-R^*_{\mathcal F}\), or an expectation such as \(E[R(\hat f_\lambda)]\). These formulations are not interchangeable without appropriate assumptions.

The comparator in the infimum is fixed while the data are drawn, although finding the best one may require knowing \(P\). By contrast, \(\hat f_\lambda\) depends on the observed sample. Its population risk \(R(\hat f_\lambda)\) is consequently random through the selected rule. This is why oracle comparisons are meaningful: they ask how close a data-driven procedure comes to a benchmark it could not generally select directly.

Worked Example: Empirical Selection and a Population Comparator

Let \(Y\) equal 1 with probability \(1/4\) and 0 with probability \(3/4\). Consider three constant predictors \(f_0=0\), \(f_1=1\), and \(f_{1/2}=1/2\), with squared-error loss \(\ell_f(Y)=(Y-f)^2\). Suppose the observed sample is \(Y_1=0,Y_2=1\). Set \(J(f_0)=0\), \(J(f_1)=1\), \(J(f_{1/2})=1/4\), and \(\lambda=1/5\).

For the observed sample, the empirical risks are \(R_n(f_0)=(0^2+1^2)/2=1/2\), \(R_n(f_1)=(1^2+0^2)/2=1/2\), and \(R_n(f_{1/2})=((1/2)^2+(1/2)^2)/2=1/4\). The penalized criteria are therefore \(1/2\), \(1/2+1/5=7/10\), and \(1/4+(1/5)(1/4)=3/10\), respectively. Thus the selected empirical minimizer is \(f_{1/2}\).

In the population, \(R(f_0)=1/4\), \(R(f_1)=3/4\), and \(R(f_{1/2})=(1/4)(1/4)+(3/4)(1/4)=1/4\). The best population-risk comparator has risk \(1/4\), attained by both \(f_0\) and \(f_{1/2}\). The penalized population criteria are \(1/4\), \(3/4+1/5=19/20\), and \(1/4+1/20=3/10\), so \(f_0\) minimizes the penalized population criterion. In this instance the selected rule and the penalized population comparator differ, even though the selected rule has the best population risk. The example shows why the empirical selection, the risk comparator, and the penalized population comparator must be named separately.

Two Useful Facts About Comparators and Penalization

First, a comparator need not attain its defining infimum to be useful. If a criterion has a finite infimum, candidates can approach that infimum as closely as desired.

Proposition: Let \(q:\mathcal F\to\mathbb R\cup\{+\infty\}\) have a finite infimum \(q^*=\inf_{f\in\mathcal F}q(f)\). For every \(\varepsilon>0\), there exists \(f_\varepsilon\in\mathcal F\) such that \(q(f_\varepsilon)<q^*+\varepsilon\).

Proof. Suppose no such candidate existed. Then \(q(f)\geq q^*+\varepsilon\) for every \(f\in\mathcal F\), so \(q^*+\varepsilon\) would be a lower bound for all values of \(q\). This contradicts that \(q^*\) is their greatest lower bound, since \(q^*+\varepsilon>q^*\). Hence a candidate with \(q(f_\varepsilon)<q^*+\varepsilon\) exists. \(\square\)

This elementary fact is important in oracle comparisons: writing an infimum does not silently assert the existence of an oracle candidate attaining it. For a penalized empirical criterion, it also justifies approximate minimization whenever its infimum is finite, although it does not by itself establish that the chosen approximate minimizer is measurable.

Second, increasing the penalty weight has a precise effect on exact empirical minimizers. The result below assumes finite penalties at the minimizers; otherwise the comparisons of penalty values need not be defined.

Proposition: Let \(0<\lambda_1<\lambda_2\), and suppose \(f_1\) and \(f_2\) are exact minimizers of \(R_n(f)+\lambda_1J(f)\) and \(R_n(f)+\lambda_2J(f)\), respectively. If both have finite empirical risks and penalties, then \(J(f_2)\leq J(f_1)\) and \(R_n(f_2)\geq R_n(f_1)\).

Proof. Optimality of \(f_1\) at \(\lambda_1\) and \(f_2\) at \(\lambda_2\) gives

$$ R_n(f_1)+\lambda_1J(f_1) \leq R_n(f_2)+\lambda_1J(f_2), \qquad R_n(f_2)+\lambda_2J(f_2) \leq R_n(f_1)+\lambda_2J(f_1). $$

Adding these inequalities cancels the empirical risks and yields \((\lambda_2-\lambda_1)(J(f_2)-J(f_1))\leq 0\). Since \(\lambda_2-\lambda_1>0\), \(J(f_2)\leq J(f_1)\). Rearranging the first optimality inequality gives \(R_n(f_2)-R_n(f_1)\geq\lambda_1(J(f_1)-J(f_2))\geq0\). Thus the penalty cannot increase and the empirical risk cannot decrease along this comparison of exact minimizers. \(\square\)

This is a statement about the empirical criterion and its minimizers, not about population risk: it does not imply \(R(f_2)\geq R(f_1)\). Nor does it specify how the data-selected rule compares with a population oracle. Oracle inequalities require additional arguments and assumptions beyond this monotonicity fact.

Worked Example: A Scalar Quadratic Penalty

Suppose two observed responses are 2 and 4, and a constant prediction \(f_\theta\) predicts \(\theta\in\mathbb R\). Use squared-error loss and \(J(f_\theta)=\theta^2\). The empirical risk is

$$ R_n(f_\theta) =\frac{(2-\theta)^2+(4-\theta)^2}{2} =(\theta-3)^2+1. $$

For \(\lambda=1\), the criterion is \((\theta-3)^2+1+\theta^2\). Differentiating gives \(2(\theta-3)+2\theta=0\), so the minimizer is \(\hat\theta=3/2\). The second derivative is \(4>0\), confirming a unique minimum. Its empirical risk is \((3/2-3)^2+1=13/4\), its penalty is \(9/4\), and its criterion is \(13/4+9/4=11/2\).

If the population distribution assigns probability \(1/2\) to each of 2 and 4, then \(R(f_\theta)=(\theta-3)^2+1\). The unpenalized population-risk minimizer is \(\theta=3\), with risk 1; the selected value \(\theta=3/2\) has risk \(13/4\). For the penalized population criterion, however, the same derivative calculation gives \(\theta=3/2\). Thus a penalized population comparator and a minimum-risk comparator need not be the same. For general \(\lambda>0\), differentiating \((\theta-3)^2+1+\lambda\theta^2\) gives \(\theta=3/(1+\lambda)\), whose squared penalty decreases as \(\lambda\) increases.

Worked Example: A Finite Empirical Regularization Path

Consider three candidates with empirical risk and penalty pairs \(A=(0.20,0)\), \(B=(0.10,1)\), and \(C=(0.05,3)\). At \(\lambda=0.05\), their criteria are \(0.20\), \(0.10+0.05=0.15\), and \(0.05+0.15=0.20\). Candidate \(B\) is the unique minimizer. At \(\lambda=0.20\), the criteria are \(0.20\), \(0.10+0.20=0.30\), and \(0.05+0.60=0.65\), so \(A\) is the unique minimizer.

The penalty falls from 1 to 0 as the tuning parameter rises, while empirical risk rises from \(0.10\) to \(0.20\), as the proposition requires. These numbers say nothing by themselves about the population risks of \(A\) and \(B\). A population-risk comparison would need their risks under the data-generating distribution.

Common Pitfall: Treating the Oracle as the Selected Rule

A frequent error is to read an oracle inequality as though the estimator were the minimizer of the population criterion on its right-hand side. The estimator is selected from the observed data; the oracle comparator is defined using population quantities and is typically fixed before observing the sample. Another error is to call the penalized objective itself “risk.” The penalty is part of the selection criterion, while \(R(f)\) refers to expected loss. A bound on one does not automatically equal a bound on the other.

A related technical mistake is to allow \(J(f)=+\infty\), set \(\lambda=0\), and then write \(R_n(f)+\lambda J(f)\) without defining the product \(0\cdot\infty\). The correction is to use \(\lambda>0\), restrict to finite-penalty candidates in the zero-weight case, or define \(Q_{n,0}(f)=R_n(f)\) separately. Stating this convention prevents an undefined criterion from being mistaken for a well-defined optimization problem.

Key takeaway: Penalized empirical minimization defines a data-dependent selection rule. An oracle comparator is a fixed population benchmark, and an oracle inequality quantifies their risk relationship under stated conditions. Keep the risk, penalty, selected estimator, and comparator distinct.

Check Your Understanding

Answer using the definitions and distinctions developed above.

  1. What is the difference between \(R_n(f)\) and \(R(f)\), and which one depends on the observed sample?
  2. If the population-risk infimum over a class is not attained, can it still be used as an oracle benchmark? Explain.
  3. Why must a criterion involving an extended-valued penalty specify what happens at \(\lambda=0\)?
  4. In the scalar quadratic example, why is the unpenalized population-risk minimizer different from the penalized population comparator?
  5. What do the monotonicity results establish about empirical risk and penalty as \(\lambda\) increases, and what do they not establish about population risk?
Clinical Biostats