Why Catoni’s Bound Has an Exponential Transform
A PAC-Bayes guarantee must account for two sources of difficulty: how well a posterior distribution performs on the observed sample, and how far that posterior departs from a prior chosen independently of the sample. Catoni’s bound combines these quantities, but it does not simply add a complexity penalty to empirical risk. Instead, it places their sum inside an increasing exponential transform of the risk.
The bounded-loss assumption is what makes this transform possible. A chord bound for the exponential function controls the moment of each loss; independence then turns the one-observation control into a product over the sample. The resulting probability statement holds simultaneously for every posterior, including one selected after seeing the data.
The Exponential-Moment Bound
Fix a temperature parameter \(\lambda>0\), and put \(c_\lambda=1-e^{-\lambda}\), so \(0<c_\lambda<1\). For a single loss value \(x\in[0,1]\), convexity of \(x\mapsto e^{-\lambda x}\) implies that its value lies below the chord joining its values at 0 and 1:
Taking expectation for a fixed hypothesis gives \(E[e^{-\lambda\ell(h,Z)}]\leq 1-c_\lambda R(h)\). Since the observations are independent, the exponential moment of the empirical sum factors into \(n\) one-observation moments. This gives the key bound below.
Proof. The numerator is \(\exp\{-\lambda\sum_{i=1}^n\ell(h,Z_i)\}\). Independence and the chord inequality give
The denominator is positive and does not depend on the sample. Dividing by it proves the assertion. \(\square\)
Integrate the lemma with respect to \(\pi\). Because the integrand is nonnegative, Tonelli’s theorem permits exchanging the expectation over the sample and the integral over hypotheses. Thus the expectation of the integrated quantity is at most one. Markov’s inequality then says that, with probability at least \(1-\delta\) over the sample,
This event concerns the prior integral and does not depend on a choice of posterior. That fact is what will allow a single event to support a guarantee for all posteriors at once.
Catoni’s Variational PAC-Bayes Bound
The change-of-measure inequality says that, for a measurable function \(g\) and any \(\rho\) absolutely continuous with respect to \(\pi\),
whenever the terms are well defined. Apply it on the high-probability event above to \(g(h)=-\lambda n\widehat R(h)-n\log\{1-c_\lambda R(h)\}\). The logarithm of \(e^g\) is exactly the logarithm of the integrand in that event. Rearranging and using the convexity of \(-\log(1-c_\lambda r)\) gives the risk guarantee.
Proof. Work on the event where the prior integral is at most \(1/\delta\). Applying the change-of-measure inequality to the stated \(g\) yields
Define \(\phi(r)=-\log(1-c_\lambda r)\) for \(r\in[0,1]\). Its second derivative is \(c_\lambda^2/(1-c_\lambda r)^2>0\), so \(\phi\) is convex. The last display therefore implies
Since \(\phi\) is increasing, exponentiating the inequality \(-\log(1-c_\lambda E_\rho R)\leq A\), where \(A=\lambda E_\rho\widehat R+(\operatorname{KL}(\rho\Vert\pi)+\log(1/\delta))/n\), gives \(1-c_\lambda E_\rho R\geq e^{-A}\). Rearrangement yields the theorem’s bound. The high-probability event was selected before choosing \(\rho\), so the conclusion holds simultaneously for all such posteriors. \(\square\)
The theorem is a variational guarantee in the sense that it applies to every posterior and makes the relevant trade-off explicit. For fixed \(\lambda\), a smaller posterior empirical risk improves the bound, while a posterior farther from the prior incurs a larger KL penalty. The function of these two quantities on the right-hand side is increasing, so any posterior with a smaller value of \(\lambda E_\rho\widehat R+\operatorname{KL}(\rho\Vert\pi)/n\) has at least as favorable a guarantee.
Worked Applications
Worked Example: A Posterior with a KL Penalty of \(\log 2\)
Suppose \(n=50\), \(\lambda=0.5\), \(\delta=0.1\), and a posterior has empirical risk \(E_\rho\widehat R=0.10\) and \(\operatorname{KL}(\rho\Vert\pi)=\log 2\). Compute its Catoni risk bound.
The exponent’s positive quantity is
The denominator is \(1-e^{-0.5}\approx0.393469\), while \(1-e^{-A}\approx1-e^{-0.109915}\approx0.104089\). Hence
This is an upper bound on posterior-averaged true risk, not a claim that the risk equals \(0.2645\). The empirical risk is only \(0.10\); the gap in the guarantee reflects both the finite sample size and the confidence and KL terms.
Worked Example: A Two-Hypothesis Posterior
Let \(\mathcal H=\{h_1,h_2\}\), with prior probabilities \(\pi(h_1)=\pi(h_2)=0.5\). A posterior assigns probabilities \(0.7\) and \(0.3\), and the two hypotheses have empirical risks \(0.10\) and \(0.40\). Take \(n=100\), \(\lambda=1\), and \(\delta=0.05\).
First average the empirical risks:
The posterior’s KL divergence is
Thus
Since \(1-e^{-1}\approx0.632121\) and \(1-e^{-0.220780}\approx0.198107\), the bound is
The posterior’s empirical risk is a probability-weighted average across both hypotheses. Its complexity is also the KL divergence of the whole posterior, rather than the penalty for selecting just one of the hypotheses.
Worked Example: A Point Posterior on a Low-Prior-Mass Hypothesis
Consider a finite hypothesis space with a hypothesis \(h_*\) that has prior mass \(0.1\). Let \(\rho\) put all its mass on \(h_*\), whose empirical risk is \(0.20\). With \(n=40\), \(\lambda=0.8\), and \(\delta=0.05\), calculate the bound for this point posterior.
For a point posterior, the KL divergence is \(\operatorname{KL}(\rho\Vert\pi)=\log(1/0.1)=\log 10\approx2.302585\). Therefore
The transform has denominator \(1-e^{-0.8}\approx0.550671\), and its numerator is \(1-e^{-0.292458}\approx0.253574\). Thus
The small prior mass has a visible cost: the KL term is \(\log 10\). A low empirical risk alone does not determine the guarantee; how much prior mass was assigned to the selected hypothesis also matters.
Reading the Guarantee Carefully
Several features of the result are important in practice:
- It is simultaneous over posteriors. The posterior may depend on the observed sample, because the event used in the proof is an event about the prior integral that holds before any posterior is selected.
- The prior must be sample-independent. The proof integrates the exponential moment with respect to \(\pi\) before applying the change-of-measure inequality. If the prior is selected using the same data without an appropriate adjustment, this argument does not justify the stated bound.
- The loss scale matters. The chord inequality used here is for losses in \([0,1]\). A loss bounded in \([0,B]\) must first be rescaled, or the bound must be written with the corresponding range-dependent transform.
- The temperature is fixed for this statement. For each fixed \(\lambda>0\), the probability guarantee is as stated. Taking a data-dependent or selected temperature requires a valid additional argument; it does not follow merely from having a bound for each fixed value.
Check Your Understanding
Answer each question by referring to the assumptions or steps in the derivation.
- Where is the restriction \(\ell(h,Z)\in[0,1]\) used in the exponential-moment argument?
- Why does the high-probability event in the proof support a posterior chosen after observing the sample?
- For fixed \(\lambda\), which two posterior-dependent quantities enter the exponent in Catoni’s bound, and how does each affect the guarantee?
- What changes in the numerical bound if a posterior’s KL divergence increases while its empirical risk and all other values remain fixed?
- Why does a point posterior on a hypothesis of prior mass \(0.1\) have KL divergence \(\log 10\)?