Exact Bayesian layers via characteristic functions
Organizations: Vermont Complex Systems Institute, University of Vermont · School of Electrical Engineering and Computer Science, University of Ottawa · Department of Computer Science, University of Vermont · Santa Fe Institute ·
Abstract
Bayesian neural networks provide principled uncertainty estimates, but training them with Monte Carlo sampling can be expensive. Sampling-free variational inference algorithms make training Bayesian neural networks feasible, but existing approaches assume a Gaussian output distribution, which can be inaccurate in applied problems. Here, we introduce CF-Prop, an uncertainty propagation method that uses characteristic functions to compute the exact output distribution of a Bayesian ReLU layer, without any sampling, even in non-Gaussian settings. Because CF-Prop propagates characteristic functions, the evidence lower bound---the objective of variational training---can be computed in closed form for a broad class of likelihoods, including the Gaussian, Poisson, and Gamma. This allows to implement an efficient resulting variational inference algorithm, CF-VI. On CIFAR-100, CF-VI achieves the lowest calibration error of any tested method, improving on the next best method by about 35%. On a heavy-tailed insurance claim dataset, CF-VI accurately captures tail uncertainty that is severely underestimated by both other sampling-free methods and Monte Carlo methods.
Figures & tables
| Likelihood | |
|---|---|
| Gaussian | |
| Poisson | |
| Gamma | |
| Weibull | |
| Categorical | |
| Any density |
| Test NLL ( ) | Boston | Concrete | Energy | Kin8nm | Naval | Power | Wine | Yacht | Avg. rank |
|---|---|---|---|---|---|---|---|---|---|
| CF-VI | |||||||||
| DVI | |||||||||
| dDVI | |||||||||
| CovProp | |||||||||
| VBLL | |||||||||
| Deep ensemble |
| CIFAR-100 | CIFAR-10 | |||||
| Head | ECE (%) | NLL | Acc. (%) | ECE (%) | NLL | Acc. (%) |
| CF-VI | ||||||
| DNN | ||||||
| VBLL | ||||||
| Last-Layer Laplace | ||||||
| DVI | ||||||
Bayesian Neural Networks
Bayesian neural networks place probability distributions over neural-network parameters or functions to quantify predictive uncertainty and support robust decisions.
See all 103 papers