Some theoretical improvements on the tightness of PAC-Bayes risk certificates for neural networks
Diego García-Pérez, Emilio Parrado-Hernández, John Shawe-Taylor
TL;DR
The paper advances PAC-Bayes risk certificates for neural networks by deriving two new explicit bounds (TRP and RTS) that tighten existing guarantees and facilitate gradient-based optimization of risk certificates. It introduces an implicit-differentiation–driven approach and a KL-modulating technique to align gradients when optimizing bounds, including for non-differentiable losses like the 0-1 loss. Empirical validation on MNIST and CIFAR-10 demonstrates non-vacuous generalization bounds for CIFAR-10 with shallower networks and shows improved certifiability when optimizing for the bound directly. The work provides practical algorithms and code to reproduce experiments, highlighting both the potential and current limitations of PAC-Bayes bounds in explaining deep learning success, and suggesting future architecture- and data-aware directions.
Abstract
This paper presents four theoretical contributions that improve the usability of risk certificates for neural networks based on PAC-Bayes bounds. First, two bounds on the KL divergence between Bernoulli distributions enable the derivation of the tightest explicit bounds on the true risk of classifiers across different ranges of empirical risk. The paper next focuses on the formalization of an efficient methodology based on implicit differentiation that enables the introduction of the optimization of PAC-Bayesian risk certificates inside the loss/objective function used to fit the network/model. The last contribution is a method to optimize bounds on non-differentiable objectives such as the 0-1 loss. These theoretical contributions are complemented with an empirical evaluation on the MNIST and CIFAR-10 datasets. In fact, this paper presents the first non-vacuous generalization bounds on CIFAR-10 for neural networks. Code to reproduce all experiments is available at github.com/Diegogpcm/pacbayesgradients.
