Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Riemannian Laplace approximations for Bayesian neural networks

About

Bayesian neural networks often approximate the weight-posterior with a Gaussian distribution. However, practical posteriors are often, even locally, highly non-Gaussian, and empirical performance deteriorates. We propose a simple parametric approximate posterior that adapts to the shape of the true posterior through a Riemannian metric that is determined by the log-posterior gradient. We develop a Riemannian Laplace approximation where samples naturally fall into weight-regions with low negative log-posterior. We show that these samples can be drawn by solving a system of ordinary differential equations, which can be done efficiently by leveraging the structure of the Riemannian metric and automatic differentiation. Empirically, we demonstrate that our approach consistently improves over the conventional Laplace approximation across tasks. We further show that, unlike the conventional Laplace approximation, our method is not overly sensitive to the choice of prior, which alleviates a practical pitfall of current approaches.

Federico Bergamin, Pablo Moreno-Mu\~noz, S{\o}ren Hauberg, Georgios Arvanitidis• 2023

Related benchmarks

TaskDatasetResultRank
Image ClassificationFashionMNIST (test)
Accuracy83.33
218
Out-of-Distribution DetectionFashionMNIST (ID) vs MNIST (OoD)
AUROC0.94
61
Out-of-Distribution DetectionKMNIST (test)
AUROC0.953
22
Binary ClassificationBanana synthetic (in-distribution)
Accuracy0.8777
14
Out-of-Distribution DetectionFashionMNIST (test)
AUROC0.917
14
Out-of-Distribution DetectionEMNIST (test)
AUROC0.917
14
Out-of-Distribution DetectionFashionMNIST (In-Distribution) vs KMNIST (Out-of-Distribution) (test)
AUROC92.5
14
Out-of-Distribution DetectionFashionMNIST (In-Distribution) vs EMNIST (Out-of-Distribution) (test)
AUROC0.891
14
ClassificationBreast
Accuracy72
12
ClassificationUCI Ionosphere
NLL0.17
11
Showing 10 of 30 rows

Other info

Follow for update