Abstract
We derive generic information-theoretic and PAC-Bayesian generalization bounds involving an arbitrary convex comparator function, which measures the discrepancy between the training loss and the population loss. The bounds hold under the assumption that the cumulant-generating function (CGF) of the comparator is upper-bounded by the corresponding CGF within a family of bounding distributions. We show that the tightest possible bound is obtained with the comparator being the convex conjugate of the CGF of the bounding distribution, also known as the Cramér function. This conclusion applies more broadly to generalization bounds with a similar structure. This confirms the near-optimality of known bounds for bounded and sub-Gaussian losses and leads to novel bounds under other bounding distributions.
Introduction
A central goal of statistical learning theory is to certify generalization: if a model performs well on training data, can we guarantee it will perform well on new, unseen data? Traditionally, researchers bound the "generalization gap"—the simple difference between population loss and training loss.
However, a simple difference isn't always the most informative way to measure this discrepancy. For example, if your loss is bounded between 0 and 1, using the binary KL divergence as a "comparator" instead of a simple difference leads to much tighter bounds (the famous MLS bound). This research addresses the lack of a systematic principle for choosing these comparators. Specifically, if your loss isn't bounded or sub-Gaussian—say it follows a Poisson or Gamma distribution—what is the "best" function to use to measure the gap?
Methodology
The authors work within the PAC-Bayesian and information-theoretic frameworks. Their key technical contribution is a generic generalization bound that works with any convex comparator function $\Delta$. The core of their approach relies on the Cumulant-Generating Function (CGF), which describes the tail behavior of a distribution. They make a "sub-P" assumption: that the CGF of the actual loss is upper-bounded by the CGF of a family of "bounding distributions" $\mathcal{P}$.
They prove that the tightest possible bound is achieved when the comparator function is the Cramér function (the convex conjugate of the CGF) of the bounding distribution. For many common distributions (Natural Exponential Families), this Cramér function turns out to be a KL divergence between members of that family.
Key Insights and Results
Optimality of the Cramér Function
The Cramér function is a classic tool from large deviation theory used to characterize the probability of rare events. The authors show it is the mathematically "natural" choice for generalization bounds because it perfectly matches the assumed tail behavior of the loss. This theory explains why certain famous bounds work so well. For instance, the binary KL bound for bounded losses is simply the Cramér function for the Bernoulli distribution, while the sub-Gaussian bound is the Cramér function for the Normal distribution.
Quantitative Advantage
In numerical tests, the authors show that using the "correct" comparator leads to significantly lower (tighter) estimates of the population loss.
As seen in the figure above, for bounded losses, the binary KL bound is much more advantageous than the standard sub-Gaussian bound, especially when the training loss is small.
Similarly, the figure above demonstrates that for Poisson-type losses, the new Cramér-based bound is strictly tighter than the traditional approach of using a scaled difference.
Limitations and Future Work
The entire theory relies on the existence and bounding of the Cumulant-Generating Function. This effectively excludes "heavy-tailed" distributions (like Pareto or Cauchy) where the CGF might be infinite. The authors suggest extending this to moment-based constraints in the future. Additionally, in the PAC-Bayesian setting, there is a small logarithmic penalty term ($\ln \sqrt{n}$) that prevents the bound from being perfectly optimal in the very small data regime. Combining these optimal comparators with "data-dependent" or "exchangeable" priors could lead to even tighter practical bounds for deep learning.
Summary updated