Why Truncate an Unbounded Loss?
Finite-class selection is especially direct when every candidate's loss is bounded: concentration inequalities then control how far empirical risk can be from population risk. But losses such as squared error can be unbounded, and finite expected risk by itself does not give the same concentration guarantee. Truncation addresses this gap. It caps each observed loss so a bounded-loss inequality applies, while an explicit tail term records what capping removed.
The resulting guarantee has two competing terms. A higher cap reduces the truncation bias but makes the bounded observations less concentrated; a lower cap improves the concentration term but discards more of the loss tail. A useful threshold must balance both.
Truncated Risk and Its Bias
Let \(Z_1,\ldots,Z_n\) be independent and identically distributed observations from a distribution \(P\). A finite dictionary contains \(M\) measurable candidate loss functions \(\ell_1,\ldots,\ell_M\), with \(\ell_j(Z)\geq 0\). Assume each has finite risk \(R_j=E[\ell_j(Z)]<\infty\). For a fixed threshold \(\tau>0\), define the capped loss, its population risk, and its empirical risk as follows.
This bias is not the probability of exceeding the threshold: it measures the expected amount by which losses exceed it. For nonnegative losses, Tonelli's theorem gives the useful tail identity
Indeed, pointwise \((x-\tau)_+=\int_\tau^\infty \mathbf{1}\{x>t\}\,dt\). The integrand is nonnegative, so Tonelli permits exchanging expectation and integration without requiring a separate integrability condition; the assumed finite risk ensures the resulting bias is finite.
Worked Example: Computing the Bias from an Exponential Tail
Suppose one candidate's loss \(L=\ell_j(Z)\) has the exponential distribution with rate \(1\), so \(P(L>t)=e^{-t}\) for \(t\geq 0\). Its mean risk is \(E[L]=1\). For \(\tau\geq 0\), the tail identity gives
The truncated risk is therefore \(R_\tau=1-e^{-\tau}\). For example, at \(\tau=2\), the bias is \(e^{-2}\approx 0.1353\), and the truncated risk is approximately \(0.8647\). The capped risk is easier to concentrate, but it understates the original risk by exactly \(0.1353\).
A Finite-Dictionary Oracle Bound
Choose the candidate with the smallest empirical truncated risk, using a fixed rule to break ties: \(\hat j\in\arg\min_{1\leq j\leq M}\widehat R_{j,\tau}\). The next result compares its original, untruncated risk with the best original risk in the dictionary. Its assumption on bias is explicit: there must be a known bound \(B(\tau)\) such that \(b_j(\tau)\leq B(\tau)\) for every candidate.
Proof. For each fixed candidate \(j\), the \(n\) truncated losses are independent and lie in \([0,\tau]\). Hoeffding's inequality for independent bounded variables states that if \(W_i\in[0,\tau]\), then \(P(|n^{-1}\sum_i W_i-E[W_1]|>\epsilon)\leq 2\exp(-2n\epsilon^2/\tau^2)\). Apply this to each candidate and use the union bound. With \(\epsilon=\tau\sqrt{\log(2M/\delta)/(2n)}\), the probability that any candidate violates the deviation bound is at most
On the complementary event, every candidate simultaneously satisfies \(|\widehat R_{j,\tau}-R_{j,\tau}|\leq\epsilon\). For any fixed \(j\), use this event, the defining empirical minimization, and the uniform bias bound:
The inequality holds for every \(j\), so taking the minimum over the finite dictionary and substituting the value of \(2\epsilon\) proves the result. \(\square\)
The concentration penalty grows linearly with \(\tau\) and decreases at the usual square-root rate in \(n\). The factor \(\log(2M/\delta)\) reflects both the number of candidates and the desired confidence. The bias term, in contrast, depends on the loss tails and need not be inferred from the bounded-loss concentration step.
Worked Example: Choosing a Threshold for Exponential Losses
Suppose all candidates have exponential loss tails with rate \(1\), so that the common bias bound is \(B(\tau)=e^{-\tau}\). Let \(n=200\), \(M=5\), and \(\delta=0.05\). The theorem's coefficient on \(\tau\) is
Thus the excess-risk bound is \(e^{-\tau}+A\tau\). Differentiating gives \(-e^{-\tau}+A\), so when \(A<1\) the unique minimizer is \(\tau_*=-\log A\). Here \(\tau_*\approx 1.4689\), or \(1.469\) to three decimal places. At this threshold, the bias is \(e^{-\tau_*}=A\approx 0.23018\), and the penalty is \(A\tau_*\approx 0.3381\). Their sum is approximately \(0.5683\). The theorem therefore gives an excess-risk bound of about \(0.5683\), with probability at least \(0.95\).
Tail Bounds Make the Trade-Off Quantitative
The tail identity converts assumptions about large losses into bounds on truncation bias. For example, if for all \(t\geq\tau\) a candidate satisfies \(P\{\ell_j(Z)>t\}\leq Ct^{-q}\), where \(C>0\) and \(q>1\), then
If this holds uniformly over the dictionary, the oracle bound's excess term is at most \(C\tau^{1-q}/(q-1)+A\tau\), where \(A=\sqrt{2\log(2M/\delta)/n}\). Minimizing this expression over positive \(\tau\) yields the following threshold and bound.
To verify this, differentiate the bias-plus-penalty function. Its derivative is \(-C\tau^{-q}+A\), which vanishes at \(\tau_*=(C/A)^{1/q}\). The derivative is negative below this value and positive above it, so this is the minimum. Substitution gives a bias term \(C^{1/q}A^{(q-1)/q}/(q-1)\) and a penalty \(C^{1/q}A^{(q-1)/q}\); adding them gives the displayed expression. Thus this tail envelope leads to a rate proportional to \((\log(2M/\delta)/n)^{(q-1)/(2q)}\), rather than automatically giving the bounded-loss square-root rate.
Worked Example: A Pareto-Type Tail and a Numerical Balance
Let \(L\) have survival probability \(P(L>t)=t^{-2}\) for \(t\geq1\), with \(P(L>t)=1\) for \(0\leq t<1\). This is a nonnegative loss with finite mean. For every \(\tau\geq1\), its truncation bias is exactly
Suppose the concentration coefficient is \(A=0.10075\). The bound's two terms are \(1/\tau+0.10075\tau\). Differentiating gives \(-1/\tau^2+0.10075\), so the minimizing threshold is \(1/\sqrt{0.10075}\approx3.15\), which is in the required range \(\tau\geq1\). At the stated threshold \(\tau=3.15\), the bias is \(1/3.15\approx0.31746\), the penalty is \(0.10075(3.15)=0.3173625\), and their sum is approximately \(0.6348\) (about \(0.635\)). Both terms matter: reporting only the tail bias would omit a penalty of similar size.
What the Bound Does—and Does Not—Say
For a finite dictionary with integrable losses, each \(b_j(\tau)\) tends to zero as \(\tau\) increases: \((\ell_j-\tau)_+\) tends pointwise to zero and is bounded above by the integrable \(\ell_j\), so dominated convergence applies. Since there are finitely many candidates, the maximum of their biases also tends to zero. This fact alone does not give a convenient rate: the theorem needs a numerical upper bound \(B(\tau)\) to quantify the trade-off for a particular sample size.
A common mistake is to argue that truncation is harmless because the original risks are finite. Finite mean guarantees that the bias vanishes eventually, but it does not specify how quickly; two finite-mean losses can have very different tails. A second mistake is to use the concentration penalty while dropping the bias. The bounded empirical risks estimate \(R_{j,\tau}\), not \(R_j\). The proof's final comparison needs the bias bound for the selected candidate as well as for the comparator, which is why the theorem assumes a uniform bound across the dictionary.
There is also a tuning issue: the proof takes \(\tau\) as fixed before observing the data. Choosing it after inspecting the same empirical losses is not covered by this probability statement as written. A data-dependent choice needs an additional argument controlling the choices considered. The central practical lesson is to state the tail assumption, obtain \(B(\tau)\), and balance it against the concentration term rather than selecting a threshold by convenience alone.
Worked Example: Truncation Can Reverse the Population Ranking
Consider two candidates. Candidate 1 has loss \(L_1=100\) with probability \(0.02\) and \(L_1=0\) with probability \(0.98\). Candidate 2 always has loss \(L_2=1.5\). Their original risks are
Candidate 2 is the better population-risk comparator. At threshold \(\tau=1\), however, the truncated risks are
The truncated population ranking favors candidate 1. Its bias is \(b_1(1)=2-0.02=1.98\), while candidate 2's bias is \(b_2(1)=1.5-1=0.5\). In particular, a uniform bias bound must be at least \(1.98\); it cannot be omitted just because the capped losses are bounded. The example isolates the role of the bias term; finite-sample selection adds the separate concentration penalty from the theorem.
Check Your Understanding
Use the definitions and bound above to answer the following.
- For a nonnegative loss \(L\), explain why its truncation bias is \(E[(L-\tau)_+]\), rather than simply \(P(L>\tau)\).
- In the oracle bound, why does the concentration term contain \(2\log(2M/\delta)\) under the square root?
- If \(P(L>t)\leq Ct^{-3}\) for all \(t\geq\tau\), what upper bound does the tail integral give for the truncation bias?
- For the exponential example, how do the bias and concentration penalty change when \(\tau\) increases?
- Why does finite expected risk alone not provide a specified numerical truncation-bias bound at a given threshold?