NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Expressive Priors for Generalization and Uncertainty Estimation in Neural Networks

Dominik Schnaus, Jongseok Lee, Daniel Cremers, Rudolph Triebel

Introduction

Bayesian Neural Networks (BNNs) are theoretically the gold standard for uncertainty estimation in deep learning. However, their practical application is often hindered by the challenge of prior specification. In high-dimensional weight spaces, researchers typically default to uninformative isotropic Gaussian priors. This choice often results in the "cold posterior effect," where BNN performance is suboptimal unless the posterior distribution is artificially sharpened (cooled). Furthermore, standard theoretical guarantees for these models are frequently "vacuous," providing generalization bounds so loose they offer no practical insight.

This paper introduces a framework to learn expressive, structured priors by repurposing the posteriors of pre-trained models. By combining Kronecker-factored Laplace approximations with PAC-Bayes generalization bounds, the authors achieve non-vacuous theoretical guarantees and significantly improved performance in data-scarce and sequential learning environments.

Methodology

The proposed framework rests on three technical pillars designed to make expressive priors both scalable and theoretically grounded.

1. Scalable Laplace Approximations

The authors approximate the posterior of a pre-trained model (e.g., a ResNet-50 trained on ImageNet) as a Gaussian distribution. To handle the millions of parameters in modern networks, they utilize Kronecker-factored Approximate Curvature (KFAC). This method decomposes the massive covariance matrix into smaller, manageable Kronecker products, allowing for efficient storage and computation of the structured prior.

2. The Power Method for Kronecker Sums

When transitioning from a source task to a target task, the model must combine the prior knowledge with new data, often requiring the summation of two Kronecker-factored matrices. Because the sum of two Kronecker products is not inherently a single Kronecker product, scalability usually breaks down. The authors resolve this with a novel Power Method (Algorithm 1) that identifies the optimal rank-one Kronecker approximation, maintaining computational efficiency without sacrificing the structural information of the prior.

3. PAC-Bayes Optimization

Rather than relying on heuristic hyperparameter tuning, the framework uses PAC-Bayes bounds (specifically McAllester and Catoni bounds) as a differentiable objective. By optimizing the scales of the prior and posterior to minimize these bounds directly, the model explicitly targets improved generalization error. This approach also allows for the development of Bayesian Progressive Neural Networks (BPNNs) for continual learning, where posteriors from previous tasks serve as priors for new lateral connections in the architecture.

Experimental Evaluation

The researchers evaluated the framework across diverse scales, from theoretical toy problems to large-scale transfer learning.

Theoretical Milestones

On the NotMNIST dataset, the authors achieved a generalization bound of 0.885. In the context of deep learning theory, producing a bound below 1.0 (the trivial limit of the loss) is a significant milestone, indicating that the mathematical guarantees are non-vacuous and practically relevant.

Few-Shot and Continual Learning

The learned priors proved exceptionally effective in small-data regimes. In few-shot learning tasks (up to 25 samples per class) across eight diverse datasets—including CIFAR-100, Oxford-IIIT Pets, and specialized medical imaging sets—the method consistently outperformed standard Neural Networks, MC Dropout, and Deep Ensembles in both accuracy and calibration (ECE and AUROC). Notably, BNNs with learned priors achieved accuracy comparable to standard priors while using up to 10x less data.

In continual learning scenarios using the Washington RGB-D dataset, the BPNN architecture achieved an average accuracy of 97.3%, surpassing both standard Progressive Neural Networks (96.7%) and isotropic BNNs (95.2%).

Key Insights

  • Priors as Knowledge Transfer: The research frames expressive priors as a probabilistic form of transfer learning. Instead of initializing with static weights, the model starts with a distribution that encodes which weight correlations are critical for performance.
  • Mitigating the Cold Posterior Effect: The results suggest that the cold posterior effect is largely an artifact of poor prior specification. When the prior is learned from relevant data, the need for aggressive temperature tuning is significantly reduced.
  • Stability: Learned priors exhibit greater stability across varying weight decay settings compared to isotropic priors, which are notoriously sensitive to hyperparameter choices.

Limitations and Future Work

While the framework shows great promise, it requires a relevant source task to derive the initial prior. If the source and target tasks are entirely unrelated, the benefits of the expressive prior may diminish. Additionally, the current implementation optimizes individual scales; future research could explore optimizing the entire covariance matrix for even tighter generalization bounds. Finally, scaling this approach to massive Transformer-based foundational models remains an open frontier for the field.

Conclusion

By moving beyond "boring" Gaussian priors, this work demonstrates that structured, learned priors can bridge the gap between Bayesian theory and deep learning practice. The combination of KFAC-based Laplace approximations and PAC-Bayes optimization provides a robust path toward models that are not only more accurate but also more reliable in their uncertainty estimations.

Summary updated

BibTeX
@inproceedings{schnaus2023learning,
  author = {Dominik Schnaus and Jongseok Lee and Daniel Cremers and Rudolph Triebel},
  title = {{Learning Expressive Priors for Generalization and Uncertainty Estimation in Neural Networks}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=YzSeC2HsMz},
}
Figure