A DPI-PAC-Bayesian Framework for Generalization Bounds

M. Guan, Farhad Farokhi, Jingge Zhu · DOI

Abstract: We develop a unified Data Processing Inequality PAC-Bayesian framework -- abbreviated DPI-PAC-Bayesian -- for deriving generalization error bounds in the supervised learning setting. By embedding the Data Processing Inequality (DPI) into the change-of-measure technique, we obtain explicit bounds on the binary Kullback-Leibler generalization gap for both Rényi divergence and any $f$-divergence measured between a data-independent prior distribution and an algorithm-dependent posterior distribution. We present three bounds derived under our framework using Rényi, Hellinger $p$ and Chi-Squared divergences. Additionally, our framework also demonstrates a close connection with other well-known bounds. When the prior distribution is chosen to be uniform, our bounds recover the classical Occam's Razor bound and, crucially, eliminate the extraneous $\log(2\sqrt{n})/n$ slack present in the PAC-Bayes bound, thereby achieving tighter results. The framework thus bridges data-processing and PAC-Bayesian perspectives, providing a flexible, information-theoretic tool to construct generalization guarantees.

Introduction

In machine learning theory, a generalization bound provides a mathematical guarantee on how a model's performance on training data relates to its performance on unseen data. These bounds are typically categorized into test-set bounds, which are tight but require data hold-outs, and train-set bounds, which utilize the entire dataset for both learning and bounding.

The PAC-Bayesian framework is the most prominent train-set bounding method. However, it has historically suffered from a technical inefficiency: when applied to simple, deterministic algorithms, standard PAC-Bayes bounds contain an extra "slack" term—$\log(2\sqrt{n})/n$—that makes them looser than the classical Occam’s Razor bound. This paper introduces the DPI-PAC-Bayesian framework to bridge this gap, offering a unified approach that maintains the flexibility of PAC-Bayes while achieving the tightness of Occam’s Razor.

The DPI-PAC-Bayesian Framework

The core innovation of this work is the integration of the Data Processing Inequality (DPI) into the "change-of-measure" technique commonly used in PAC-Bayesian analysis. While standard PAC-Bayes relies on the Donsker-Varadhan inequality to relate prior and posterior distributions, this framework uses DPI to upper-bound the probability of an "undesirable event" (a failure to generalize).

By applying this logic to various $f$-divergences, the authors derive three distinct types of bounds:

  1. $D_\alpha$-PAC-Bayes: Based on Rényi divergence.
  2. $H^p$-PAC-Bayes: Based on Hellinger $p$-divergence.
  3. $\chi^2$-PAC-Bayes: Based on Pearson Chi-Squared divergence.

Theoretical Insights

A primary contribution of this framework is the elimination of the aforementioned slack term. The authors prove that as the parameters $\alpha$ or $p$ approach infinity, these new bounds recover the Occam’s Razor bound exactly. This demonstrates that the Data Processing Inequality serves as a powerful information-theoretic tool for controlling posterior distribution complexity, analogous to KL-divergence but with significantly more flexibility.

Results and Empirical Evaluation

The theoretical findings were validated using a synthetic logistic classification problem in a 2D space with a finite hypothesis space of 50 random classifiers. The study compared the predicted generalization gap against the actual measured gap as the sample size $n$ increased from 100 to 1,600.

Comparison of generalization bounds across different sample sizes, highlighting the tightness of the $D_\alpha$ and $H^p$ variants compared to standard PAC-Bayes.

As shown in the figure above, the $D_\alpha$-PAC-Bayes bound consistently provided the tightest theoretical guarantee, outperforming both the $H^p$ variant and the standard PAC-Bayes bound across all sample sizes. Notably, the $D_\alpha$ bounds were highly robust to parameter selection, with various values of $\alpha$ yielding nearly identical, tight results. While the $\chi^2$ bound was the loosest among the new variants, it still converged toward the standard PAC-Bayes bound as sample sizes increased, serving as a viable parameter-free alternative.

Conclusion and Future Work

The DPI-PAC-Bayesian framework provides a robust, unified method for deriving tight generalization guarantees. By eliminating the historical slack in PAC-Bayesian theory, it offers a more precise tool for understanding model performance. Future research directions include extending these proofs to infinite hypothesis spaces and developing methods to identify the "optimal" undesirable events to further tighten the bounds.

Summary updated

BibTeX
@misc{guan2025dpi,
  author = {M. Guan and Farhad Farokhi and Jingge Zhu},
  title = {{A DPI-PAC-Bayesian Framework for Generalization Bounds}},
  year = {2025},
  eprint = {2507.14795},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.14795},
  howpublished = {arXiv},
}
Figure