TL;DR
This paper introduces Functional Wasserstein Bridge Inference (FWBI), a novel method for Bayesian deep learning that addresses limitations of existing approaches by using Wasserstein distance to infer function-space posteriors. FWBI offers more meaningful priors and better uncertainty quantification, outperforming other methods on various tasks.
What Problem Does This Paper Address?
Bayesian Deep Learning (BDL) aims to combine the powerful function approximation of deep learning with the principled uncertainty estimation of Bayesian methods. However, traditional parameter-space variational inference methods struggle with incorporating meaningful prior information about the unknown function and can lead to pathological behaviors in deep models. Existing function-space methods, while promising, often rely on Kullback-Leibler (KL) divergence, which can be ill-defined for infinite-dimensional function distributions, leading to unstable objectives. This paper tackles these issues by proposing a new function-space variational inference framework that uses Wasserstein distance to bridge the gap between functional priors and posteriors.
Methods
The core of the proposed method is Functional Wasserstein Bridge Inference (FWBI). It introduces a novel variational objective that replaces the problematic KL divergence with a Wasserstein bridge. This bridge decomposes the functional distance into a parameter-space 2-Wasserstein distance and a function-space 1-Wasserstein distance.
The process involves:
- Distilling a functional prior: A bridging distribution is learned to approximate a desired functional prior (e.g., a Gaussian Process prior). This is achieved by minimizing the 1-Wasserstein distance between the bridging distribution and the functional prior.
- Matching variational posterior and bridging distribution: The variational posterior over function parameters is then matched to the bridging distribution using the 2-Wasserstein distance. This step is performed in parameter space, making it tractable.
- Joint optimization: FWBI jointly optimizes the parameters of the variational posterior and the bridging distribution, creating a more robust inference process. An enhanced 1-Wasserstein distance with a second-order moment matching term is used to better preserve uncertainty information from the prior.
Datasets
The paper evaluates FWBI on several standard datasets:
- UCI datasets for multivariate regression tasks (Yacht, Boston, Concrete, Wine, Kin8nm, Protein).
- Mushroom dataset for contextual bandit problems.
- MNIST, FashionMNIST, and CIFAR-10 for classification and out-of-distribution (OOD) detection tasks.
Key Insights and Ideas
- Wasserstein distance as a superior alternative to KL divergence: The paper strongly advocates for Wasserstein distance in function-space inference, highlighting its ability to avoid the ill-defined nature of KL divergence for infinite-dimensional distributions and its robustness to initialization.
- Bridging distribution as a key enabler: The introduction of a bridging distribution acts as a crucial intermediary, allowing for the tractable matching of functional priors and variational posteriors in parameter space.
- Meaningful functional priors: FWBI facilitates the incorporation of rich, interpretable functional priors (like GPs) that can encode domain knowledge (e.g., periodicity, smoothness), leading to better model performance and uncertainty quantification.
- Robustness to initialization: Unlike KL-based methods, the Wasserstein distance-based objective in FWBI is shown to be less sensitive to initialization, leading to more stable and reliable results.
Key Results
- Improved predictive performance: FWBI consistently outperforms parameter-space methods (like BBB, KLBBB, WBBB) and other function-space methods (like FBNN, GWI) on various tasks, including polynomial curve fitting, periodic curve learning, multivariate regression, and image classification.
- Better uncertainty quantification: The method demonstrates more reliable uncertainty estimates, particularly in unseen regions, which is crucial for safety-critical applications.
- Efficiency: FWBI shows competitive running times, being significantly faster than some functional methods like FBNN and GWI on large datasets.
- Robustness: FWBI exhibits more stable convergence and is less sensitive to initialization compared to KL-based methods.
Limitations and Future Work
- Computational Cost: While efficient, function-space methods can still be computationally more demanding than parameter-space methods, especially for very large models or datasets.
- Hyperparameter Tuning: The FWBI objective involves hyperparameters (e.g., $\lambda_1, \lambda_2, \lambda_3$) that require tuning.
- Future Work: The authors suggest exploring theoretical comparisons with other Bayesian approximation methods and applying FWBI to more complex BDL models, such as deep ensembles, and to tasks like active learning and Bayesian optimization. They also plan to investigate its application in more complex scenarios.
Summary updated