mlsanityData to 14 Oct 2026

Accelerated Execution of Bayesian Neural Networks using a Single Probabilistic Forward Pass and Code Generation

arXiv 2511.23440 ↗First posted 28 Nov 2025cs.LG cs.AR cs.DCcited by 0

Not on the map. Why?

Abstract (arXiv)

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 deploying PFP-based BNNs on embedded ARM CPUs. Using the TVM deep learning compiler, we implement a dedicated library of Gaussian-propagating operators for multilayer perceptrons and convolutional neural networks, combined with manual and automated tuning strategies. Ablation studies show that PFP consistently outperforms SVI in computational efficiency, achieving speedups of up to 4200x for small mini-batches. PFP-BNNs match SVI-BNNs on Dirty-MNIST in accuracy, uncertainty estimation, and OOD detection while greatly reducing compute cost. These results highlight the potential of combining Bayesian approximations with code generation to enable efficient BNN deployment on resource-constrained systems.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 28 of its 58 references that are in the map. First posted on arXiv 28 Nov 2025.

Builds on

28 of 58 references.

References · 28

  1. 2014Adam: A Method for Stochastic Optimizationcited by 37,240
  2. 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,448
  3. 2017Fashion-MNIST: a Novel Image Dataset for Benchmarking Machine Learning Algorithmscited by 4,349
  4. 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,926
  5. 2017What Uncertainties Do We Need in Bayesian Deep Learning for Computer Vision?cited by 2,352
  6. 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,329
  7. 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,593
  8. 2016Variational Inference: A Review for Statisticianscited by 1,472
  9. 2018ProxylessNAS: Direct Neural Architecture Search on Target Task and Hardwarecited by 673
  10. 2015Weight Uncertainty in Neural Networkscited by 554
  11. 2018Pyro: Deep Universal Probabilistic Programmingcited by 380
  12. 2018AMC: AutoML for Model Compression and Acceleration on Mobile Devicescited by 378
16 more
  1. 2020Hands-on Bayesian Neural Networks -- a Tutorial for Deep Learning Userscited by 338
  2. 2020ZeroQ: A Novel Zero Shot Quantization Frameworkcited by 269
  3. 2017Advances in Variational Inferencecited by 236
  4. 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 201
  5. 2015Bayesian Convolutional Neural Networks with Bernoulli Approximate Variational Inferencecited by 159
  6. 2021Repulsive Deep Ensembles are Bayesiancited by 104
  7. 2022Do Bayesian Neural Networks Need To Be Fully Stochastic?cited by 63
  8. 2022TensorIR: An Abstraction for Automatic Tensorized Program Optimizationcited by 38
  9. 2022Tensor Program Optimization with Probabilistic Programscited by 30
  10. 2018Relay: A New IR for Machine Learning Frameworkscited by 24
  11. 2018VIBNN: Hardware Acceleration of Bayesian Neural Networkscited by 20
  12. 2020Resource-Efficient Neural Networks for Embedded Systemscited by 20
  13. 2024Function Space Diversity for Uncertainty Prediction via Repulsive Last-Layer Ensemblescited by 8
  14. 2022Towards Hardware-Specific Automatic Compression of Neural Networkscited by 4
  15. 2021Shift-BNN: Highly-Efficient Probabilistic Bayesian Neural Network Training via Memory-Friendly Pattern Retrievingcited by 3
  16. 2024On Hardware-efficient Inference in Probabilistic Circuitscited by 1

Built on by

Not cited yet.