A Framework for Variational Inference of Lightweight Bayesian Neural Networks with Heteroscedastic Uncertainties
David J. Schodt, Ryan Brown, Michael Merritt, Samuel Park, Delsin Menolascino, Mark A. Peot
TL;DR
The paper addresses uncertainty quantification in lightweight Bayesian neural networks by embedding total predictive uncertainty into the variances of BNN parameters rather than relying on an additional aleatoric-output head. It develops a sampling-free variational inference framework built on moment propagation, where the per-point variance satisfies $\sigma_k^2 = \sigma_{a,k}^2 + \sigma_{e,k}^2$, and layer-wise mean/variance updates are derived for FC, Conv, pooling, and Leaky-ReLU layers. This approach avoids increasing model size while capturing both epistemic and aleatoric uncertainties, demonstrated on a heteroscedastic polynomial regression task where embedded variance improves out-of-distribution reliability and can outperform learned-variance in lightweight regimes. The results highlight a practical path for deploying uncertainty-aware BNNs on resource-constrained devices, combining accuracy with efficient, sampling-free inference.
Abstract
Obtaining heteroscedastic predictive uncertainties from a Bayesian Neural Network (BNN) is vital to many applications. Often, heteroscedastic aleatoric uncertainties are learned as outputs of the BNN in addition to the predictive means, however doing so may necessitate adding more learnable parameters to the network. In this work, we demonstrate that both the heteroscedastic aleatoric and epistemic variance can be embedded into the variances of learned BNN parameters, improving predictive performance for lightweight networks. By complementing this approach with a moment propagation approach to inference, we introduce a relatively simple framework for sampling-free variational inference suitable for lightweight BNNs.
