Saved in:
Bibliographic Details
Main Author: Schodt, David J.
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2405.02063
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910657576697856
author Schodt, David J.
author_facet Schodt, David J.
contents Bayesian Neural Networks (BNNs) extend traditional neural networks to provide uncertainties associated with their outputs. On the forward pass through a BNN, predictions (and their uncertainties) are made either by Monte Carlo sampling network weights from the learned posterior or by analytically propagating statistical moments through the network. Though flexible, Monte Carlo sampling is computationally expensive and can be infeasible or impractical under resource constraints or for large networks. While moment propagation can ameliorate the computational costs of BNN inference, it can be difficult or impossible for networks with arbitrary nonlinearities, thereby restricting the possible set of network layers permitted with such a scheme. In this work, we demonstrate a simple yet effective approach for propagating statistical moments through arbitrary nonlinearities with only 3 deterministic samples, enabling few-sample variational inference of BNNs without restricting the set of network layers used. Furthermore, we leverage this approach to demonstrate a novel nonlinear activation function that we use to inject physics-informed prior information into output nodes of a BNN.
format Preprint
id arxiv_https___arxiv_org_abs_2405_02063
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Few-sample Variational Inference of Bayesian Neural Networks with Arbitrary Nonlinearities
Schodt, David J.
Machine Learning
Bayesian Neural Networks (BNNs) extend traditional neural networks to provide uncertainties associated with their outputs. On the forward pass through a BNN, predictions (and their uncertainties) are made either by Monte Carlo sampling network weights from the learned posterior or by analytically propagating statistical moments through the network. Though flexible, Monte Carlo sampling is computationally expensive and can be infeasible or impractical under resource constraints or for large networks. While moment propagation can ameliorate the computational costs of BNN inference, it can be difficult or impossible for networks with arbitrary nonlinearities, thereby restricting the possible set of network layers permitted with such a scheme. In this work, we demonstrate a simple yet effective approach for propagating statistical moments through arbitrary nonlinearities with only 3 deterministic samples, enabling few-sample variational inference of BNNs without restricting the set of network layers used. Furthermore, we leverage this approach to demonstrate a novel nonlinear activation function that we use to inject physics-informed prior information into output nodes of a BNN.
title Few-sample Variational Inference of Bayesian Neural Networks with Arbitrary Nonlinearities
topic Machine Learning
url https://arxiv.org/abs/2405.02063