Skip to main content
QUICK REVIEW

[Paper Review] Learning PAC-Bayes Priors for Probabilistic Neural Networks

María Pérez‐Ortiz, Omar Rivasplata|arXiv (Cornell University)|Sep 21, 2021
Adversarial Robustness in Machine LearningComputer Science26 references7 citations
TL;DR

This paper investigates learning data-dependent PAC-Bayes priors for probabilistic neural networks to improve generalization bounds and classifier performance. By training priors on subsets of data using various objectives—including Bayesian-inspired and data augmentation methods—it demonstrates that optimized priors yield consistently tight risk certificates across six datasets, even for overparameterized models, advancing self-certified learning.

ABSTRACT

Recent works have investigated deep learning models trained by optimising PAC-Bayes bounds, with priors that are learnt on subsets of the data. This combination has been shown to lead not only to accurate classifiers, but also to remarkably tight risk certificates, bearing promise towards self-certified learning (i.e. use all the data to learn a predictor and certify its quality). In this work, we empirically investigate the role of the prior. We experiment on 6 datasets with different strategies and amounts of data to learn data-dependent PAC-Bayes priors, and we compare them in terms of their effect on test performance of the learnt predictors and tightness of their risk certificate. We ask what is the optimal amount of data which should be allocated for building the prior and show that the optimum may be dataset dependent. We demonstrate that using a small percentage of the prior-building data for validation of the prior leads to promising results. We include a comparison of underparameterised and overparameterised models, along with an empirical study of different training objectives and regularisation strategies to learn the prior distribution.

Motivation & Objective

  • To investigate the impact of learning data-dependent PAC-Bayes priors on the performance and generalization guarantees of probabilistic neural networks.
  • To determine the optimal amount of data required to learn effective priors, with a focus on dataset-specific trade-offs.
  • To evaluate the effectiveness of different training objectives and regularization strategies in learning priors that yield tight risk certificates.
  • To assess whether overparameterized models can achieve strong generalization guarantees when trained with learned priors.
  • To explore the role of data augmentation and dropout in improving prior learning and resulting risk certificate tightness.

Proposed method

  • The authors train probabilistic neural networks by optimizing PAC-Bayes bounds, where the prior distribution is learned from a subset of the training data, ensuring data independence from the empirical risk term.
  • They compare multiple training objectives for prior learning, including empirical risk minimization (ERM), Bayesian-inspired objectives (e.g., BNN-style ELBO), and mixup-based regularization.
  • A KL divergence term between the posterior and prior is used as a regularizer, and the prior is optimized via gradient-based methods with hyperparameter sweeps over KL trade-off coefficients.
  • The method evaluates risk certificates (upper bounds on generalization error) and stochastic 0-1 error on test data, with priors trained on varying percentages of the dataset (10%, 25%, 50%).
  • Data augmentation techniques like mixup and dropout are applied during prior learning to improve generalization and prior quality.
  • The approach is evaluated across six diverse datasets, including MNIST, CIFAR-10, and tabular datasets, with both fully connected and convolutional networks.

Experimental results

Research questions

  • RQ1What is the optimal proportion of training data to allocate for learning the PAC-Bayes prior, and does this vary across datasets?
  • RQ2How do different training objectives for prior learning affect the tightness of risk certificates and test accuracy?
  • RQ3Can data-dependent priors significantly improve generalization bounds in overparameterized neural networks?
  • RQ4Does data augmentation during prior learning lead to tighter risk certificates and better classifier performance?
  • RQ5How does the choice of prior—especially informed vs. uninformed—impact the optimization and final model performance?

Key findings

  • The risk certificate tightness is consistently strong across all six datasets, indicating robustness of the method to data and architecture variations.
  • Using a Bayesian-inspired objective ($f_{\texttt{bbb}}$) to learn the full prior distribution yields tighter risk certificates and lower stochastic 0-1 error than ERM-based priors.
  • Mixup regularization during prior learning significantly improves performance, enabling tight certificates with only 10% of the data used for prior construction—outperforming ERM with 50% of the data.
  • For MNIST with 25% training data, the mixup-based prior learning achieved a risk certificate of 0.041 and a stochastic 0-1 error of 0.025, outperforming ERM with 50% data.
  • Dropout during prior learning further improves results, reducing the risk certificate to 0.026 and error to 0.020 when 50% of data is used.
  • The KL term in the PAC-Bayes bound dominates the bound value, indicating that a well-chosen prior is crucial for tight generalization guarantees.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.