Abstract
In statistical learning theory, a generalization bound usually involves a complexity measure imposed by the considered theoretical framework. This limits the scope of such bounds, as other forms of capacity measures or regularizations are used in algorithms. In this paper, we leverage the framework of disintegrated PAC-Bayes bounds to derive a general generalization bound instantiable with arbitrary complexity measures. One trick to prove such a result involves considering a commonly used family of distributions: the Gibbs distributions. Our bound stands in probability jointly over the hypothesis and the learning sample, which allows the complexity to be adapted to the generalization gap as it can be customized to fit both the hypothesis class and the task.
Introduction
Generalization bounds—the mathematical guarantees that a model will perform well on unseen data—are usually tied to rigid, often pessimistic complexity measures like VC-dimension. This research introduces a flexible framework using "disintegrated" PAC-Bayes theory and Gibbs distributions, allowing researchers to plug in arbitrary complexity measures—even those learned by neural networks—to derive valid, computable, and potentially much tighter generalization bounds.
Historically, there has been a major disconnect in machine learning: the complexity measures theorists use (like Rademacher complexity) are often very different from the regularizers practitioners use (like weight decay). Furthermore, existing bounds are often "vacuous," providing theoretical limits that are practically useless (e.g., an error bound exceeding 100%). This paper addresses how to create a mathematically sound generalization bound that accommodates any custom complexity measure.
Methodology
The authors leverage two powerful mathematical tools to bridge this gap:
- Disintegrated PAC-Bayes Bounds: Unlike standard PAC-Bayes theory, which bounds the average risk of a distribution, "disintegrated" versions provide a high-probability bound for a single model sampled from that distribution.
- Gibbs Distributions: The model distribution is defined as a Gibbs distribution (or Boltzmann distribution): $\rho_S(h) \propto \exp[-\mu(h, S)]$.
The core innovation is the parametric function $\mu(h, S)$. By setting the posterior distribution to be a Gibbs distribution based on this function, $\mu$ can be treated as a customizable complexity measure. To make this practical, the authors use Stochastic Gradient Langevin Dynamics (SGLD) to sample models, turning abstract theory into a computable algorithm where different complexity measures can be "plugged and played."
Experimental Setup
The framework was evaluated using an All Convolutional Network on two standard computer vision benchmarks:
- MNIST: The classic dataset of handwritten digits.
- FashionMNIST: A more challenging dataset of clothing items.
Key Insights and Ideas
The "Any Measure" Framework
The choice of $\mu$ is entirely up to the user. It can be a standard norm, a measure of loss landscape flatness, or even a "Neural Complexity" measure. The experiments confirm that standard weight norms (like Frobenius or $L_2$ distance) are poor proxies for predicting the generalization gap in deep networks, often resulting in vacuous bounds.
Informed Priors and Neural Complexity
Using a small portion of data to build an "informed prior" drastically tightens the bounds compared to using a blind uniform prior. Furthermore, the authors trained a separate, small neural network specifically to predict the generalization gap. When this "learned" measure was plugged into the framework, it produced the tightest, most predictive bounds observed.
Key Results
- Computability: Unlike previous theoretical work requiring knowledge of true risk, this framework provides a fully computable bound using only training data and the chosen complexity measure.
- Tightness: When using an informed prior and a "Gap" measure (where complexity perfectly matches the generalization gap), the bound tracks the true test risk almost perfectly.
- Non-Vacuous Bounds: Using "Neural Complexity," the authors achieved non-vacuous bounds for deep neural networks without relying on complex data-dependent priors, a significant milestone in PAC-Bayesian research.
Limitations and Future Work
The framework is sensitive to the concentration parameter $\alpha$, which controls the "peakiness" of the Gibbs distribution. Additionally, sampling via SGLD introduces computational overhead compared to standard SGD training. Future work may explore handcrafted parametric functions that are simpler than neural networks but more predictive than basic weight norms, and applying the framework to architectures beyond convolutional nets.
Summary updated