[Paper Review] All You Need is a Good Functional Prior for Bayesian Deep Learning
This paper proposes a novel framework to improve Bayesian deep learning by aligning neural network weight priors with user-specified functional priors using Wasserstein distance minimization. By tuning parameter priors to match desired function-space behaviors—especially via Gaussian process-induced priors—it achieves state-of-the-art performance in uncertainty quantification and predictive accuracy across multiple benchmarks.
The Bayesian treatment of neural networks dictates that a prior distribution is specified over their weight and bias parameters. This poses a challenge because modern neural networks are characterized by a large number of parameters, and the choice of these priors has an uncontrolled effect on the induced functional prior, which is the distribution of the functions obtained by sampling the parameters from their prior distribution. We argue that this is a hugely limiting aspect of Bayesian deep learning, and this work tackles this limitation in a practical and effective way. Our proposal is to reason in terms of functional priors, which are easier to elicit, and to "tune" the priors of neural network parameters in a way that they reflect such functional priors. Gaussian processes offer a rigorous framework to define prior distributions over functions, and we propose a novel and robust framework to match their prior with the functional prior of neural networks based on the minimization of their Wasserstein distance. We provide vast experimental evidence that coupling these priors with scalable Markov chain Monte Carlo sampling offers systematically large performance improvements over alternative choices of priors and state-of-the-art approximate Bayesian deep learning approaches. We consider this work a considerable step in the direction of making the long-standing challenge of carrying out a fully Bayesian treatment of neural networks, including convolutional neural networks, a concrete possibility.
Motivation & Objective
- To address the challenge of uncontrolled functional priors in Bayesian neural networks, where weight priors induce unintended inductive biases.
- To enable more interpretable and effective prior specification in Bayesian deep learning by shifting focus from parameter priors to functional priors.
- To develop a practical method for calibrating parameter priors such that the induced functional prior matches a desired distribution, e.g., a Gaussian process prior.
- To demonstrate that this approach leads to superior predictive performance and uncertainty calibration compared to standard priors and existing approximate Bayesian methods.
Proposed method
- Formalizes the problem of matching a functional prior (e.g., a Gaussian process) with the functional prior induced by a Bayesian neural network’s weight prior.
- Uses the Wasserstein distance between the induced functional prior and the target functional prior as the objective for optimization.
- Applies Kantorovich duality to reformulate the Wasserstein distance into a maximization over 1-Lipschitz functions, enabling differentiable optimization.
- Employs a dual formulation of the Wasserstein distance that allows backpropagation through the functional prior distribution.
- Optimizes the hyperparameters of the weight prior (e.g., variance, scale) to minimize the Wasserstein distance to the target functional prior.
- Combines the tuned parameter prior with scalable Markov chain Monte Carlo (MCMC) sampling for posterior inference.
Experimental results
Research questions
- RQ1How can we systematically control the functional prior induced by a Bayesian neural network’s weight prior?
- RQ2Can we design a method to match a desired functional prior (e.g., a GP prior) by tuning the weight prior parameters?
- RQ3What is the impact of using a Wasserstein distance-based objective for prior matching on predictive performance and uncertainty calibration?
- RQ4Does this approach outperform standard Gaussian priors and state-of-the-art approximate Bayesian deep learning methods?
- RQ5Can this framework be applied effectively to both fully connected and convolutional neural networks?
Key findings
- The proposed method significantly improves predictive performance across multiple vision and regression benchmarks compared to standard Gaussian priors.
- The tuned functional priors lead to better uncertainty calibration, with lower negative log-likelihood and higher predictive accuracy.
- The approach achieves state-of-the-art results in Bayesian deep learning, outperforming both standard priors and advanced approximate inference methods.
- The use of Wasserstein distance enables robust and stable optimization of the functional prior match, even in high-dimensional parameter spaces.
- Experiments show that the method effectively mitigates pathological behaviors in deep networks, such as degenerate function outputs (e.g., horizontal lines in deep tanh networks).
- The framework is generalizable to both fully connected and convolutional neural networks, demonstrating consistent improvements across architectures.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.