Accelerated Execution of Bayesian Neural Networks using a Single Probabilistic Forward Pass and Code Generation
Bernhard Klein, Falk Selker, Hendrik Borras, Sophie Steger, Franz Pernkopf, Holger Fr\"oning

TL;DR
This paper introduces an efficient method for deploying Bayesian neural networks using a single deterministic forward pass, significantly reducing computational costs while maintaining accuracy and uncertainty estimation capabilities.
Contribution
The paper presents a novel end-to-end pipeline utilizing probabilistic forward pass approximation and code generation to efficiently deploy Bayesian neural networks on embedded systems.
Findings
PFP outperforms SVI in computational efficiency with up to 4200x speedup.
PFP-BNNs match SVI-BNNs in accuracy and uncertainty estimation.
The approach enables deployment of Bayesian models on resource-constrained devices.
Abstract
Machine learning models perform well across domains such as diagnostics, weather forecasting, NLP, and autonomous driving, but their limited uncertainty handling restricts use in safety-critical settings. Traditional neural networks often fail to detect out-of-domain (OOD) data and may output confident yet incorrect predictions. Bayesian neural networks (BNNs) address this by providing probabilistic estimates, but incur high computational cost because predictions require sampling weight distributions and multiple forward passes. The Probabilistic Forward Pass (PFP) offers a highly efficient approximation to Stochastic Variational Inference (SVI) by assuming Gaussian-distributed weights and activations, enabling fully analytic uncertainty propagation and replacing sampling with a single deterministic forward pass. We present an end-to-end pipeline for training, compiling, optimizing, and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAdversarial Robustness in Machine Learning · Gaussian Processes and Bayesian Inference · Advanced Neural Network Applications
